From e6a35a6ba7ad8f4f21ba0eca8bc19349808cd09f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 20 Mar 2023 12:05:26 -0700 Subject: [PATCH] feat: [compute] Update Compute Engine API to revision 20230307 (#770) (#4091) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Update Compute Engine API to revision 20230307 (#770) Source-Link: https://github.com/googleapis/googleapis/commit/c2016e5ebbba3a0578fda69bd4ebf1ac16425f08 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0885fd7ae8a805a377974edfba60ab7c9327f75a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6IjA4ODVmZDdhZThhODA1YTM3Nzk3NGVkZmJhNjBhYjdjOTMyN2Y3NWEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: fix dataform publishing(#4099) Release-As: 0.4.1 --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-compute/README.md | 8 + .../google/cloud/compute/v1/compute.proto | 584 +- .../google-cloud-compute/protos/protos.d.ts | 2026 ++- .../google-cloud-compute/protos/protos.js | 14624 +++++++++++----- .../google-cloud-compute/protos/protos.json | 962 +- .../google-cloud-compute/samples/README.md | 144 + .../samples/generated/v1/disks.update.js | 87 + .../generated/v1/firewall_policies.list.js | 2 +- .../generated/v1/firewall_policies.move.js | 2 +- .../generated/v1/images.get_from_family.js | 2 +- .../v1/instance_templates.aggregated_list.js | 87 + .../generated/v1/instances.set_name.js | 80 + .../generated/v1/region_disks.update.js | 87 + .../v1/region_instance_templates.delete.js | 75 + .../v1/region_instance_templates.get.js | 71 + .../v1/region_instance_templates.insert.js | 75 + .../v1/region_instance_templates.list.js | 88 + ...ppet_metadata.google.cloud.compute.v1.json | 554 +- ...metadata.google.cloud.compute.v1small.json | 2 +- packages/google-cloud-compute/src/index.ts | 4 + .../src/v1/autoscalers_client.ts | 2 +- .../src/v1/backend_buckets_client.ts | 2 +- .../src/v1/backend_services_client.ts | 2 +- .../src/v1/disk_types_client.ts | 2 +- .../src/v1/disks_client.ts | 124 +- .../src/v1/disks_client_config.json | 4 + .../src/v1/firewall_policies_client.ts | 8 +- .../src/v1/gapic_metadata.json | 102 + .../src/v1/global_addresses_client.ts | 2 +- .../global_network_endpoint_groups_client.ts | 2 +- .../src/v1/health_checks_client.ts | 2 +- .../src/v1/images_client.ts | 6 +- packages/google-cloud-compute/src/v1/index.ts | 1 + .../src/v1/instance_group_managers_client.ts | 2 +- .../src/v1/instance_templates_client.ts | 66 +- .../v1/instance_templates_client_config.json | 4 + .../src/v1/instances_client.ts | 123 +- .../src/v1/instances_client_config.json | 4 + .../src/v1/machine_images_client.ts | 2 +- .../src/v1/machine_types_client.ts | 2 +- .../src/v1/network_endpoint_groups_client.ts | 2 +- .../src/v1/networks_client.ts | 2 +- .../src/v1/node_templates_client.ts | 2 +- .../src/v1/node_types_client.ts | 2 +- .../src/v1/region_commitments_client.ts | 2 +- .../src/v1/region_disk_types_client.ts | 2 +- .../src/v1/region_disks_client.ts | 130 + .../src/v1/region_disks_client_config.json | 4 + .../src/v1/region_health_checks_client.ts | 2 +- .../v1/region_instance_templates_client.ts | 906 + ...gion_instance_templates_client_config.json | 42 + .../region_instance_templates_proto_list.json | 3 + .../region_network_endpoint_groups_client.ts | 2 +- .../v1/region_target_http_proxies_client.ts | 2 +- .../v1/region_target_https_proxies_client.ts | 2 +- .../src/v1/region_url_maps_client.ts | 2 +- .../src/v1/regions_client.ts | 2 +- .../src/v1/routers_client.ts | 2 +- .../src/v1/routes_client.ts | 2 +- .../src/v1/snapshots_client.ts | 2 +- .../src/v1/ssl_certificates_client.ts | 2 +- .../src/v1/ssl_policies_client.ts | 2 +- .../src/v1/subnetworks_client.ts | 2 +- .../src/v1/target_http_proxies_client.ts | 2 +- .../src/v1/target_https_proxies_client.ts | 2 +- .../src/v1/target_instances_client.ts | 2 +- .../src/v1/target_pools_client.ts | 2 +- .../src/v1/target_ssl_proxies_client.ts | 2 +- .../src/v1/target_tcp_proxies_client.ts | 2 +- .../src/v1/target_vpn_gateways_client.ts | 2 +- .../src/v1/url_maps_client.ts | 2 +- .../src/v1/vpn_gateways_client.ts | 2 +- .../src/v1/vpn_tunnels_client.ts | 2 +- .../src/v1/zones_client.ts | 2 +- .../system-test/fixtures/sample/src/index.js | 2 + .../system-test/fixtures/sample/src/index.ts | 9 + .../test/gapic_disks_v1.ts | 167 + .../test/gapic_instance_templates_v1.ts | 104 + .../test/gapic_instances_v1.ts | 167 + .../test/gapic_region_disks_v1.ts | 167 + .../gapic_region_instance_templates_v1.ts | 1104 ++ 81 files changed, 18056 insertions(+), 4833 deletions(-) create mode 100644 packages/google-cloud-compute/samples/generated/v1/disks.update.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instances.set_name.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_disks.update.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instance_templates.get.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js create mode 100644 packages/google-cloud-compute/src/v1/region_instance_templates_client.ts create mode 100644 packages/google-cloud-compute/src/v1/region_instance_templates_client_config.json create mode 100644 packages/google-cloud-compute/src/v1/region_instance_templates_proto_list.json create mode 100644 packages/google-cloud-compute/test/gapic_region_instance_templates_v1.ts diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index 8c702443ebe..f408a6c8ed7 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -158,6 +158,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Disks.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/disks.set_iam_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-compute/samples/generated/v1/disks.set_iam_policy.js,samples/README.md) | | Disks.set_labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/disks.set_labels.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-compute/samples/generated/v1/disks.set_labels.js,samples/README.md) | | Disks.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/disks.test_iam_permissions.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-compute/samples/generated/v1/disks.test_iam_permissions.js,samples/README.md) | +| Disks.update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/disks.update.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-compute/samples/generated/v1/disks.update.js,samples/README.md) | | External_vpn_gateways.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.delete.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-compute/samples/generated/v1/external_vpn_gateways.delete.js,samples/README.md) | | External_vpn_gateways.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.get.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-compute/samples/generated/v1/external_vpn_gateways.get.js,samples/README.md) | | External_vpn_gateways.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.insert.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-compute/samples/generated/v1/external_vpn_gateways.insert.js,samples/README.md) | @@ -276,6 +277,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Instance_groups.list_instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.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-compute/samples/generated/v1/instance_groups.list_instances.js,samples/README.md) | | Instance_groups.remove_instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_groups.remove_instances.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-compute/samples/generated/v1/instance_groups.remove_instances.js,samples/README.md) | | Instance_groups.set_named_ports | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_groups.set_named_ports.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-compute/samples/generated/v1/instance_groups.set_named_ports.js,samples/README.md) | +| Instance_templates.aggregated_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.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-compute/samples/generated/v1/instance_templates.aggregated_list.js,samples/README.md) | | Instance_templates.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_templates.delete.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-compute/samples/generated/v1/instance_templates.delete.js,samples/README.md) | | Instance_templates.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_templates.get.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-compute/samples/generated/v1/instance_templates.get.js,samples/README.md) | | Instance_templates.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_templates.get_iam_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-compute/samples/generated/v1/instance_templates.get_iam_policy.js,samples/README.md) | @@ -313,6 +315,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Instances.set_machine_type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_machine_type.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-compute/samples/generated/v1/instances.set_machine_type.js,samples/README.md) | | Instances.set_metadata | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_metadata.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-compute/samples/generated/v1/instances.set_metadata.js,samples/README.md) | | Instances.set_min_cpu_platform | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_min_cpu_platform.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-compute/samples/generated/v1/instances.set_min_cpu_platform.js,samples/README.md) | +| Instances.set_name | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_name.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-compute/samples/generated/v1/instances.set_name.js,samples/README.md) | | Instances.set_scheduling | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_scheduling.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-compute/samples/generated/v1/instances.set_scheduling.js,samples/README.md) | | Instances.set_service_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_service_account.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-compute/samples/generated/v1/instances.set_service_account.js,samples/README.md) | | Instances.set_shielded_instance_integrity_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_shielded_instance_integrity_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-compute/samples/generated/v1/instances.set_shielded_instance_integrity_policy.js,samples/README.md) | @@ -501,6 +504,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Region_disks.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.set_iam_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-compute/samples/generated/v1/region_disks.set_iam_policy.js,samples/README.md) | | Region_disks.set_labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.set_labels.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-compute/samples/generated/v1/region_disks.set_labels.js,samples/README.md) | | Region_disks.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.test_iam_permissions.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-compute/samples/generated/v1/region_disks.test_iam_permissions.js,samples/README.md) | +| Region_disks.update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.update.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-compute/samples/generated/v1/region_disks.update.js,samples/README.md) | | Region_health_check_services.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.delete.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-compute/samples/generated/v1/region_health_check_services.delete.js,samples/README.md) | | Region_health_check_services.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.get.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-compute/samples/generated/v1/region_health_check_services.get.js,samples/README.md) | | Region_health_check_services.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.insert.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-compute/samples/generated/v1/region_health_check_services.insert.js,samples/README.md) | @@ -535,6 +539,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Region_instance_groups.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.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-compute/samples/generated/v1/region_instance_groups.list.js,samples/README.md) | | Region_instance_groups.list_instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.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-compute/samples/generated/v1/region_instance_groups.list_instances.js,samples/README.md) | | Region_instance_groups.set_named_ports | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.set_named_ports.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-compute/samples/generated/v1/region_instance_groups.set_named_ports.js,samples/README.md) | +| Region_instance_templates.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.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-compute/samples/generated/v1/region_instance_templates.delete.js,samples/README.md) | +| Region_instance_templates.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.get.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-compute/samples/generated/v1/region_instance_templates.get.js,samples/README.md) | +| Region_instance_templates.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.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-compute/samples/generated/v1/region_instance_templates.insert.js,samples/README.md) | +| Region_instance_templates.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.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-compute/samples/generated/v1/region_instance_templates.list.js,samples/README.md) | | Region_instances.bulk_insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instances.bulk_insert.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-compute/samples/generated/v1/region_instances.bulk_insert.js,samples/README.md) | | Region_network_endpoint_groups.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.delete.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-compute/samples/generated/v1/region_network_endpoint_groups.delete.js,samples/README.md) | | Region_network_endpoint_groups.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.get.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-compute/samples/generated/v1/region_network_endpoint_groups.get.js,samples/README.md) | diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto index 8a6341f340d..7f2d79b4d57 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20230103 +// Source file revision: 20230307 // API name: compute // API version: v1 @@ -231,7 +231,7 @@ message AccessConfig { } - // The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically. + // The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork. optional string external_ipv6 = 532703707; // The prefix length of the external IPv6 range. @@ -749,7 +749,7 @@ message Address { // VM internal/alias IP, Internal LB service IP, etc. GCE_ENDPOINT = 230515243; - // A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment���s IP address range. + // A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range. IPSEC_INTERCONNECT = 340437251; // External IP automatically reserved for Cloud NAT. @@ -1195,6 +1195,31 @@ message AggregatedListInstanceGroupsRequest { } +// A request message for InstanceTemplates.AggregatedList. See the method description for details. +message AggregatedListInstanceTemplatesRequest { + // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + optional string filter = 336120696; + + // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + optional bool include_all_scopes = 391327988; + + // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + optional string page_token = 19994697; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + optional bool return_partial_success = 517198390; + +} + // A request message for Instances.AggregatedList. See the method description for details. message AggregatedListInstancesRequest { // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. @@ -1930,14 +1955,16 @@ message AliasIpRange { } -// +// [Output Only] Contains output only fields. message AllocationResourceStatus { + // Allocation Properties of this reservation. optional AllocationResourceStatusSpecificSKUAllocation specific_sku_allocation = 196231151; } -// +// Contains Properties set for the reservation. message AllocationResourceStatusSpecificSKUAllocation { + // ID of the instance template used to populate reservation properties. optional string source_instance_template_id = 111196154; } @@ -2741,7 +2768,7 @@ message AutoscalingPolicyScalingSchedule { // The start timestamps of time intervals when this scaling schedule is to provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression can describe a single timestamp if the optional year is set, in which case the scaling schedule runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: These timestamps only describe when autoscaler starts providing the scaling signal. The VMs need additional time to become serving. optional string schedule = 375820951; - // The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of ���UTC��� if left empty. + // The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of “UTC” if left empty. optional string time_zone = 36848094; } @@ -3029,6 +3056,9 @@ message BackendService { // This is a simple policy in which each healthy backend is selected in round robin order. This is the default. ROUND_ROBIN = 153895801; + // Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing. + WEIGHTED_MAGLEV = 254930962; + } // The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. @@ -3154,7 +3184,7 @@ message BackendService { // Check the LoadBalancingScheme enum for the list of possible values. optional string load_balancing_scheme = 363890244; - // A list of locality load balancing policies to be used in order of preference. Either the policy or the customPolicy field should be set. Overrides any value set in the localityLbPolicy field. localityLbPolicies is only supported when the BackendService is referenced by a URL Map that is referenced by a target gRPC proxy that has the validateForProxyless field set to true. + // A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration. repeated BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557; // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. @@ -3434,14 +3464,14 @@ message BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy { // An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation. optional string data = 3076010; - // Identifies the custom policy. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected. + // Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy. optional string name = 3373707; } // The configuration for a built-in load balancing policy. message BackendServiceLocalityLoadBalancingPolicyConfigPolicy { - // The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected. + // The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected. enum Name { // A value indicating that the enum field is not set. UNDEFINED_NAME = 0; @@ -3466,9 +3496,12 @@ message BackendServiceLocalityLoadBalancingPolicyConfigPolicy { // This is a simple policy in which each healthy backend is selected in round robin order. This is the default. ROUND_ROBIN = 153895801; + // Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing. + WEIGHTED_MAGLEV = 254930962; + } - // The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected. + // The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected. // Check the Name enum for the list of possible values. optional string name = 3373707; @@ -3476,9 +3509,32 @@ message BackendServiceLocalityLoadBalancingPolicyConfigPolicy { // The available logging options for the load balancer traffic served by this backend service. message BackendServiceLogConfig { + // This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. + enum OptionalMode { + // A value indicating that the enum field is not set. + UNDEFINED_OPTIONAL_MODE = 0; + + // A subset of optional fields. + CUSTOM = 388595569; + + // None optional fields. + EXCLUDE_ALL_OPTIONAL = 168636099; + + // All optional fields. + INCLUDE_ALL_OPTIONAL = 535606965; + + } + // Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false. optional bool enable = 311764355; + // This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace + repeated string optional_fields = 528589944; + + // This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. + // Check the OptionalMode enum for the list of possible values. + optional string optional_mode = 128697122; + // This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0. optional float sample_rate = 153193045; @@ -3716,7 +3772,7 @@ message Binding { // The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). optional Expr condition = 212430107; - // Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. + // Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. repeated string members = 412010777; // Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. @@ -3945,6 +4001,7 @@ message Commitment { ACTIVE = 314733318; + // Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation. CANCELLED = 41957681; CREATING = 455564985; @@ -3966,6 +4023,8 @@ message Commitment { COMPUTE_OPTIMIZED_C2D = 383246453; + COMPUTE_OPTIMIZED_C3 = 428004784; + GENERAL_PURPOSE = 299793543; GENERAL_PURPOSE_E2 = 301911877; @@ -5334,6 +5393,28 @@ message DeleteRegionInstanceGroupManagerRequest { } +// A request message for RegionInstanceTemplates.Delete. See the method description for details. +message DeleteRegionInstanceTemplateRequest { + // The name of the instance template to delete. + string instance_template = 309248228 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // A request message for RegionNetworkEndpointGroups.Delete. See the method description for details. message DeleteRegionNetworkEndpointGroupRequest { // The name of the network endpoint group to delete. It should comply with RFC1035. @@ -7358,6 +7439,9 @@ message ForwardingRule { // Identifies the backend service to which the forwarding rule sends traffic. Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types. optional string backend_service = 306946058; + // [Output Only] The URL for the corresponding base Forwarding Rule. By base Forwarding Rule, we mean the Forwarding Rule that has the same IP address, protocol, and port settings with the current Forwarding Rule, but without sourceIPRanges specified. Always empty if the current Forwarding Rule does not have sourceIPRanges specified. + optional string base_forwarding_rule = 524873104; + // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; @@ -7434,6 +7518,9 @@ message ForwardingRule { // [Output Only] The internal fully qualified service name for this Forwarding Rule. This field is only used for internal load balancing. optional string service_name = 359880149; + // If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). + repeated string source_ip_ranges = 111563210; + // This field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule, used in internal load balancing and network load balancing with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6. optional string subnetwork = 307827694; @@ -7769,7 +7856,7 @@ message GetFromFamilyImageRequest { // Name of the image family to search for. string family = 328751972 [(google.api.field_behavior) = REQUIRED]; - // Project ID for this request. + // The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; } @@ -8639,6 +8726,19 @@ message GetRegionInstanceGroupRequest { } +// A request message for RegionInstanceTemplates.Get. See the method description for details. +message GetRegionInstanceTemplateRequest { + // The name of the instance template. + string instance_template = 309248228 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionNetworkEndpointGroups.Get. See the method description for details. message GetRegionNetworkEndpointGroupRequest { // The name of the network endpoint group. It should comply with RFC1035. @@ -9306,7 +9406,7 @@ message GuestAttributesValue { // Guest OS features. message GuestOsFeature { - // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features. + // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling guest operating system features. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -9331,7 +9431,7 @@ message GuestOsFeature { } - // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features. + // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling guest operating system features. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -10159,7 +10259,7 @@ message Image { // Size of the image when restored onto a persistent disk (in GB). optional int64 disk_size_gb = 316263735; - // The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. + // The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. optional string family = 328751972; // A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter. @@ -11085,6 +11185,28 @@ message InsertRegionInstanceGroupManagerRequest { } +// A request message for RegionInstanceTemplates.Insert. See the method description for details. +message InsertRegionInstanceTemplateRequest { + // The body resource for this request + InstanceTemplate instance_template_resource = 10679561 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // A request message for RegionNetworkEndpointGroups.Insert. See the method description for details. message InsertRegionNetworkEndpointGroupRequest { // The body resource for this request @@ -12414,7 +12536,7 @@ message InstanceGroupManagersApplyUpdatesRequest { } - // Flag to update all instances instead of specified list of ���instances���. If the flag is set to true then the instances may not be specified in the request. + // Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request. optional bool all_instances = 403676512; // The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. @@ -12884,6 +13006,9 @@ message InstanceTemplate { // The instance properties for this instance template. optional InstanceProperties properties = 147688755; + // [Output Only] URL of the region where the instance template resides. Only applicable for regional resources. + optional string region = 138946292; + // [Output Only] The URL for this instance template. The server defines this URL. optional string self_link = 456214797; @@ -12895,6 +13020,28 @@ message InstanceTemplate { } +// Contains a list of InstanceTemplatesScopedList. +message InstanceTemplateAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of InstanceTemplatesScopedList resources. + map items = 100526016; + + // Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // A list of instance templates. message InstanceTemplateList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -12917,6 +13064,16 @@ message InstanceTemplateList { } +// +message InstanceTemplatesScopedList { + // [Output Only] A list of instance templates that are contained within the specified project and zone. + repeated InstanceTemplate instance_templates = 459889679; + + // [Output Only] An informational warning that replaces the list of instance templates when the list is empty. + optional Warning warning = 50704284; + +} + // message InstanceWithNamedPorts { // [Output Only] The status of the instance. @@ -13067,6 +13224,16 @@ message InstancesSetMinCpuPlatformRequest { } +// +message InstancesSetNameRequest { + // The current name of this resource, used to prevent conflicts. Provide the latest name when making a request to change name. + optional string current_name = 394983825; + + // The name to be applied to the instance. Needs to be RFC 1035 compliant. + optional string name = 3373707; + +} + // message InstancesSetServiceAccountRequest { // Email address of the service account. @@ -13214,7 +13381,7 @@ message Interconnect { // Target number of physical links in the link bundle, as requested by the customer. optional int32 requested_link_count = 45051387; - // [Output Only] Set to true if the resource satisfies the zone separation organization policy constraints and false otherwise. Defaults to false if the field is not present. + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; // [Output Only] Server-defined URL for the resource. @@ -13457,7 +13624,7 @@ message InterconnectAttachment { // URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network & region within which the Cloud Router is configured. optional string router = 148608841; - // [Output Only] Set to true if the resource satisfies the zone separation organization policy constraints and false otherwise. Defaults to false if the field is not present. + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; // [Output Only] Server-defined URL for the resource. @@ -13475,7 +13642,7 @@ message InterconnectAttachment { // Check the Type enum for the list of possible values. optional string type = 3575610; - // The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time. + // The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation time. optional int32 vlan_tag8021q = 119927836; } @@ -13836,7 +14003,7 @@ message InterconnectLocation { // Check the Status enum for the list of possible values. optional string status = 181260274; - // [Output Only] Set to true for locations that support physical zone separation. Defaults to false if the field is not present. + // [Output Only] Reserved for future use. optional bool supports_pzs = 83983214; } @@ -14469,7 +14636,7 @@ message ListFirewallPoliciesRequest { // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. optional string page_token = 19994697; - // Parent ID for this request. + // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. optional string parent_id = 459714768; // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. @@ -15757,6 +15924,31 @@ message ListRegionInstanceGroupsRequest { } +// A request message for RegionInstanceTemplates.List. See the method description for details. +message ListRegionInstanceTemplatesRequest { + // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the regions for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + optional bool return_partial_success = 517198390; + +} + // A request message for RegionNetworkEndpointGroups.List. See the method description for details. message ListRegionNetworkEndpointGroupsRequest { // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. @@ -17247,7 +17439,7 @@ message MoveFirewallPolicyRequest { // Name of the firewall policy to update. string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; - // The new parent of the firewall policy. + // The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. string parent_id = 459714768 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "parent_id" @@ -17954,7 +18146,7 @@ message NetworkInterface { // Check the Ipv6AccessType enum for the list of possible values. optional string ipv6_access_type = 504658653; - // An IPv6 internal network address for this network interface. + // An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. optional string ipv6_address = 341563804; // [Output Only] Type of the resource. Always compute#networkInterface for network interfaces. @@ -18553,7 +18745,7 @@ message NodeTemplate { // The node type to use for nodes group that are created from this template. optional string node_type = 465832791; - // The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both. + // Do not use. Instead, use the node_type property. optional NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; // [Output Only] The name of the region where the node template resides, such as us-central1. @@ -21005,6 +21197,8 @@ message Quota { NETWORKS = 485481477; + NETWORK_ATTACHMENTS = 149028575; + NETWORK_ENDPOINT_GROUPS = 102144909; NETWORK_FIREWALL_POLICIES = 101117374; @@ -21476,7 +21670,7 @@ message RegionInstanceGroupManagersApplyUpdatesRequest { } - // Flag to update all instances instead of specified list of ���instances���. If the flag is set to true then the instances may not be specified in the request. + // Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request. optional bool all_instances = 403676512; // The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. @@ -22070,6 +22264,7 @@ message Reservation { // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; + // Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation. map resource_policies = 22220385; // [Output Only] Status information for Reservation resource. @@ -22536,7 +22731,7 @@ message ResourcePolicyInstanceSchedulePolicy { // The start time of the schedule. The timestamp is an RFC3339 string. optional string start_time = 37467274; - // Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. + // Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. optional string time_zone = 36848094; // Specifies the schedule for starting instances. @@ -23056,7 +23251,7 @@ message RouterBgpPeer { // Check the AdvertiseMode enum for the list of possible values. optional string advertise_mode = 312134331; - // User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. + // User-specified list of prefix groups to advertise in custom mode, which currently supports the following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This excludes any routes learned for subnets that use VPC Network Peering. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. // Check the AdvertisedGroups enum for the list of possible values. repeated string advertised_groups = 21065526; @@ -24027,7 +24222,7 @@ message SecurityPoliciesWafConfig { // Represents a Google Cloud Armor security policy resource. Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview. message SecurityPolicy { - // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time. + // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -24075,7 +24270,7 @@ message SecurityPolicy { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time. + // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -24207,7 +24402,7 @@ message SecurityPolicyReference { // Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny). message SecurityPolicyRule { - // The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. + // The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. optional string action = 187661878; // An optional description of this resource. Provide this property when you create the resource. @@ -24222,6 +24417,9 @@ message SecurityPolicyRule { // A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced. optional SecurityPolicyRuleMatcher match = 103668165; + // Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect. + optional SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027; + // If set to true, the specified action is not enforced. optional bool preview = 218686408; @@ -24284,6 +24482,68 @@ message SecurityPolicyRuleMatcherConfig { } +// +message SecurityPolicyRulePreconfiguredWafConfig { + // A list of exclusions to apply during preconfigured WAF evaluation. + repeated SecurityPolicyRulePreconfiguredWafConfigExclusion exclusions = 208665701; + +} + +// +message SecurityPolicyRulePreconfiguredWafConfigExclusion { + // A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation. + repeated SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878; + + // A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation. + repeated SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495; + + // A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body. + repeated SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744; + + // A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded. + repeated SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846; + + // A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set. + repeated string target_rule_ids = 498430435; + + // Target WAF rule set to apply the preconfigured WAF exclusion. + optional string target_rule_set = 498440077; + +} + +// +message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { + // The match operator for the field. + enum Op { + // A value indicating that the enum field is not set. + UNDEFINED_OP = 0; + + // The operator matches if the field value contains the specified value. + CONTAINS = 215180831; + + // The operator matches if the field value ends with the specified value. + ENDS_WITH = 490402221; + + // The operator matches if the field value equals the specified value. + EQUALS = 442201023; + + // The operator matches if the field value is any value. + EQUALS_ANY = 337226060; + + // The operator matches if the field value starts with the specified value. + STARTS_WITH = 139505652; + + } + + // The match operator for the field. + // Check the Op enum for the list of possible values. + optional string op = 3553; + + // The value of the field. + optional string val = 116513; + +} + // message SecurityPolicyRuleRateLimitOptions { // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. @@ -24325,7 +24585,7 @@ message SecurityPolicyRuleRateLimitOptions { // Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value. optional string enforce_on_key_name = 132555246; - // Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny(status)", where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below. + // Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. optional string exceed_action = 167159073; // Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. @@ -25634,6 +25894,31 @@ message SetMinCpuPlatformInstanceRequest { } +// A request message for Instances.SetName. See the method description for details. +message SetNameInstanceRequest { + // The instance name for this request. + string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstancesSetNameRequest instances_set_name_request_resource = 272080980 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for InstanceGroups.SetNamedPorts. See the method description for details. message SetNamedPortsInstanceGroupRequest { // The name of the instance group where the named ports are updated. @@ -28847,6 +29132,36 @@ message UpdateBackendServiceRequest { } +// A request message for Disks.Update. See the method description for details. +message UpdateDiskRequest { + // The disk name for this request. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; + + optional string paths = 106438894; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // update_mask indicates fields to be updated as part of this request. + optional string update_mask = 500079778; + + // The name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for Instances.UpdateDisplayDevice. See the method description for details. message UpdateDisplayDeviceInstanceRequest { // The body resource for this request @@ -29144,6 +29459,36 @@ message UpdateRegionCommitmentRequest { } +// A request message for RegionDisks.Update. See the method description for details. +message UpdateRegionDiskRequest { + // The disk name for this request. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; + + optional string paths = 106438894; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // update_mask indicates fields to be updated as part of this request. + optional string update_mask = 500079778; + +} + // A request message for RegionHealthChecks.Update. See the method description for details. message UpdateRegionHealthCheckRequest { // Name of the HealthCheck resource to update. @@ -29769,7 +30114,7 @@ message VpnGateway { // [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. optional string kind = 3292052; - // A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an VpnGateway. + // A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnGateway. optional string label_fingerprint = 178124825; // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. @@ -30134,6 +30479,9 @@ message WafExpressionSetExpression { // Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required optional string id = 3355; + // The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. + optional int32 sensitivity = 27532959; + } // A request message for GlobalOperations.Wait. See the method description for details. @@ -30656,7 +31004,7 @@ service Autoscalers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request. + // Returns the specified autoscaler resource. rpc Get(GetAutoscalerRequest) returns (Autoscaler) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}" @@ -30741,7 +31089,7 @@ service BackendBuckets { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified BackendBucket resource. Gets a list of available backend buckets by making a list() request. + // Returns the specified BackendBucket resource. rpc Get(GetBackendBucketRequest) returns (BackendBucket) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}" @@ -30844,7 +31192,7 @@ service BackendServices { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified BackendService resource. Gets a list of available backend services. + // Returns the specified BackendService resource. rpc Get(GetBackendServiceRequest) returns (BackendService) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/backendServices/{backend_service}" @@ -30956,7 +31304,7 @@ service DiskTypes { option (google.api.method_signature) = "project"; } - // Returns the specified disk type. Gets a list of available disk types by making a list() request. + // Returns the specified disk type. rpc Get(GetDiskTypeRequest) returns (DiskType) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/diskTypes/{disk_type}" @@ -31020,7 +31368,7 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request. + // Returns the specified persistent disk. rpc Get(GetDiskRequest) returns (Disk) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}" @@ -31102,6 +31450,16 @@ service Disks { option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; } + // Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. + rpc Update(UpdateDiskRequest) returns (Operation) { + option (google.api.http) = { + body: "disk_resource" + patch: "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}" + }; + option (google.api.method_signature) = "project,zone,disk,disk_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + } // The ExternalVpnGateways API. @@ -31509,7 +31867,7 @@ service GlobalAddresses { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified address resource. Gets a list of available addresses by making a list() request. + // Returns the specified address resource. rpc Get(GetGlobalAddressRequest) returns (Address) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/addresses/{address}" @@ -31661,7 +32019,7 @@ service GlobalNetworkEndpointGroups { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. + // Returns the specified network endpoint group. rpc Get(GetGlobalNetworkEndpointGroupRequest) returns (NetworkEndpointGroup) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/networkEndpointGroups/{network_endpoint_group}" @@ -31867,7 +32225,7 @@ service HealthChecks { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request. + // Returns the specified HealthCheck resource. rpc Get(GetHealthCheckRequest) returns (HealthCheck) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/healthChecks/{health_check}" @@ -31963,7 +32321,7 @@ service Images { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified image. Gets a list of available images by making a list() request. + // Returns the specified image. rpc Get(GetImageRequest) returns (Image) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/images/{image}" @@ -31971,7 +32329,7 @@ service Images { option (google.api.method_signature) = "project,image"; } - // Returns the latest image that is part of an image family and is not deprecated. + // Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation. rpc GetFromFamily(GetFromFamilyImageRequest) returns (Image) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/images/family/{family}" @@ -32121,7 +32479,7 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns all of the details about the specified managed instance group. Gets a list of available managed instance groups by making a list() request. + // Returns all of the details about the specified managed instance group. rpc Get(GetInstanceGroupManagerRequest) returns (InstanceGroupManager) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}" @@ -32344,6 +32702,14 @@ service InstanceTemplates { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; + // Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. + rpc AggregatedList(AggregatedListInstanceTemplatesRequest) returns (InstanceTemplateAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/instanceTemplates" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group. rpc Delete(DeleteInstanceTemplateRequest) returns (Operation) { option (google.api.http) = { @@ -32353,7 +32719,7 @@ service InstanceTemplates { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified instance template. Gets a list of available instance templates by making a list() request. + // Returns the specified instance template. rpc Get(GetInstanceTemplateRequest) returns (InstanceTemplate) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/instanceTemplates/{instance_template}" @@ -32491,7 +32857,7 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns the specified Instance resource. Gets a list of available instances by making a list() request. + // Returns the specified Instance resource. rpc Get(GetInstanceRequest) returns (Instance) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}" @@ -32686,6 +33052,16 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } + // Sets name of an instance. + rpc SetName(SetNameInstanceRequest) returns (Operation) { + option (google.api.http) = { + body: "instances_set_name_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setName" + }; + option (google.api.method_signature) = "project,zone,instance,instances_set_name_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy. rpc SetScheduling(SetSchedulingInstanceRequest) returns (Operation) { option (google.api.http) = { @@ -33128,7 +33504,7 @@ service MachineImages { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified machine image. Gets a list of available machine images by making a list() request. + // Returns the specified machine image. rpc Get(GetMachineImageRequest) returns (MachineImage) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/machineImages/{machine_image}" @@ -33200,7 +33576,7 @@ service MachineTypes { option (google.api.method_signature) = "project"; } - // Returns the specified machine type. Gets a list of available machine types by making a list() request. + // Returns the specified machine type. rpc Get(GetMachineTypeRequest) returns (MachineType) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/machineTypes/{machine_type}" @@ -33400,7 +33776,7 @@ service NetworkEndpointGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. + // Returns the specified network endpoint group. rpc Get(GetNetworkEndpointGroupRequest) returns (NetworkEndpointGroup) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{network_endpoint_group}" @@ -33629,7 +34005,7 @@ service Networks { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified network. Gets a list of available networks by making a list() request. + // Returns the specified network. rpc Get(GetNetworkRequest) returns (Network) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/networks/{network}" @@ -33866,7 +34242,7 @@ service NodeTemplates { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified node template. Gets a list of available node templates by making a list() request. + // Returns the specified node template. rpc Get(GetNodeTemplateRequest) returns (NodeTemplate) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{node_template}" @@ -33938,7 +34314,7 @@ service NodeTypes { option (google.api.method_signature) = "project"; } - // Returns the specified node type. Gets a list of available node types by making a list() request. + // Returns the specified node type. rpc Get(GetNodeTypeRequest) returns (NodeType) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/nodeTypes/{node_type}" @@ -34456,7 +34832,7 @@ service RegionCommitments { option (google.api.method_signature) = "project"; } - // Returns the specified commitment resource. Gets a list of available commitments by making a list() request. + // Returns the specified commitment resource. rpc Get(GetRegionCommitmentRequest) returns (Commitment) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}" @@ -34504,7 +34880,7 @@ service RegionDiskTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the specified regional disk type. Gets a list of available disk types by making a list() request. + // Returns the specified regional disk type. rpc Get(GetRegionDiskTypeRequest) returns (DiskType) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/diskTypes/{disk_type}" @@ -34642,6 +35018,16 @@ service RegionDisks { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } + // Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. + rpc Update(UpdateRegionDiskRequest) returns (Operation) { + option (google.api.http) = { + body: "disk_resource" + patch: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}" + }; + option (google.api.method_signature) = "project,region,disk,disk_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + } // The RegionHealthCheckServices API. @@ -34718,7 +35104,7 @@ service RegionHealthChecks { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request. + // Returns the specified HealthCheck resource. rpc Get(GetRegionHealthCheckRequest) returns (HealthCheck) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/healthChecks/{health_check}" @@ -35001,6 +35387,52 @@ service RegionInstanceGroups { } +// The RegionInstanceTemplates API. +service RegionInstanceTemplates { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. + rpc Delete(DeleteRegionInstanceTemplateRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}" + }; + option (google.api.method_signature) = "project,region,instance_template"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified instance template. + rpc Get(GetRegionInstanceTemplateRequest) returns (InstanceTemplate) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}" + }; + option (google.api.method_signature) = "project,region,instance_template"; + } + + // Creates an instance template in the specified project and region using the global instance template whose URL is included in the request. + rpc Insert(InsertRegionInstanceTemplateRequest) returns (Operation) { + option (google.api.http) = { + body: "instance_template_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instanceTemplates" + }; + option (google.api.method_signature) = "project,region,instance_template_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Retrieves a list of instance templates that are contained within the specified project and region. + rpc List(ListRegionInstanceTemplatesRequest) returns (InstanceTemplateList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instanceTemplates" + }; + option (google.api.method_signature) = "project,region"; + } + +} + // The RegionInstances API. service RegionInstances { option (google.api.default_host) = @@ -35040,7 +35472,7 @@ service RegionNetworkEndpointGroups { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. + // Returns the specified network endpoint group. rpc Get(GetRegionNetworkEndpointGroupRequest) returns (NetworkEndpointGroup) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups/{network_endpoint_group}" @@ -35505,7 +35937,7 @@ service RegionTargetHttpProxies { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified TargetHttpProxy resource in the specified region. Gets a list of available target HTTP proxies by making a list() request. + // Returns the specified TargetHttpProxy resource in the specified region. rpc Get(GetRegionTargetHttpProxyRequest) returns (TargetHttpProxy) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{target_http_proxy}" @@ -35561,7 +35993,7 @@ service RegionTargetHttpsProxies { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified TargetHttpsProxy resource in the specified region. Gets a list of available target HTTP proxies by making a list() request. + // Returns the specified TargetHttpsProxy resource in the specified region. rpc Get(GetRegionTargetHttpsProxyRequest) returns (TargetHttpsProxy) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{target_https_proxy}" @@ -35683,7 +36115,7 @@ service RegionUrlMaps { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request. + // Returns the specified UrlMap resource. rpc Get(GetRegionUrlMapRequest) returns (UrlMap) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/urlMaps/{url_map}" @@ -35750,7 +36182,7 @@ service Regions { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the specified Region resource. Gets a list of available regions by making a list() request. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + // Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. rpc Get(GetRegionRequest) returns (Region) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}" @@ -35974,7 +36406,7 @@ service Routers { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified Router resource. Gets a list of available routers by making a list() request. + // Returns the specified Router resource. rpc Get(GetRouterRequest) returns (Router) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/routers/{router}" @@ -36065,7 +36497,7 @@ service Routes { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified Route resource. Gets a list of available routes by making a list() request. + // Returns the specified Route resource. rpc Get(GetRouteRequest) returns (Route) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/routes/{route}" @@ -36320,7 +36752,7 @@ service Snapshots { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified Snapshot resource. Gets a list of available snapshots by making a list() request. + // Returns the specified Snapshot resource. rpc Get(GetSnapshotRequest) returns (Snapshot) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/snapshots/{snapshot}" @@ -36410,7 +36842,7 @@ service SslCertificates { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified SslCertificate resource. Gets a list of available SSL certificates by making a list() request. + // Returns the specified SslCertificate resource. rpc Get(GetSslCertificateRequest) returns (SslCertificate) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/sslCertificates/{ssl_certificate}" @@ -36472,7 +36904,7 @@ service SslPolicies { option (google.api.method_signature) = "project,ssl_policy"; } - // Returns the specified SSL policy resource. Gets a list of available SSL policies by making a list() request. + // Returns the specified SSL policy resource. rpc Insert(InsertSslPolicyRequest) returns (Operation) { option (google.api.http) = { body: "ssl_policy_resource" @@ -36546,7 +36978,7 @@ service Subnetworks { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified subnetwork. Gets a list of available subnetworks list() request. + // Returns the specified subnetwork. rpc Get(GetSubnetworkRequest) returns (Subnetwork) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}" @@ -36710,7 +37142,7 @@ service TargetHttpProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified TargetHttpProxy resource. Gets a list of available target HTTP proxies by making a list() request. + // Returns the specified TargetHttpProxy resource. rpc Get(GetTargetHttpProxyRequest) returns (TargetHttpProxy) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/targetHttpProxies/{target_http_proxy}" @@ -36784,7 +37216,7 @@ service TargetHttpsProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified TargetHttpsProxy resource. Gets a list of available target HTTPS proxies by making a list() request. + // Returns the specified TargetHttpsProxy resource. rpc Get(GetTargetHttpsProxyRequest) returns (TargetHttpsProxy) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/targetHttpsProxies/{target_https_proxy}" @@ -36898,7 +37330,7 @@ service TargetInstances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request. + // Returns the specified TargetInstance resource. rpc Get(GetTargetInstanceRequest) returns (TargetInstance) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}/targetInstances/{target_instance}" @@ -36972,7 +37404,7 @@ service TargetPools { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified target pool. Gets a list of available target pools by making a list() request. + // Returns the specified target pool. rpc Get(GetTargetPoolRequest) returns (TargetPool) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}" @@ -37057,7 +37489,7 @@ service TargetSslProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified TargetSslProxy resource. Gets a list of available target SSL proxies by making a list() request. + // Returns the specified TargetSslProxy resource. rpc Get(GetTargetSslProxyRequest) returns (TargetSslProxy) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}" @@ -37161,7 +37593,7 @@ service TargetTcpProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request. + // Returns the specified TargetTcpProxy resource. rpc Get(GetTargetTcpProxyRequest) returns (TargetTcpProxy) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}" @@ -37235,7 +37667,7 @@ service TargetVpnGateways { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified target VPN gateway. Gets a list of available target VPN gateways by making a list() request. + // Returns the specified target VPN gateway. rpc Get(GetTargetVpnGatewayRequest) returns (TargetVpnGateway) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{target_vpn_gateway}" @@ -37299,7 +37731,7 @@ service UrlMaps { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request. + // Returns the specified UrlMap resource. rpc Get(GetUrlMapRequest) returns (UrlMap) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/urlMaps/{url_map}" @@ -37392,7 +37824,7 @@ service VpnGateways { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified VPN gateway. Gets a list of available VPN gateways by making a list() request. + // Returns the specified VPN gateway. rpc Get(GetVpnGatewayRequest) returns (VpnGateway) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpn_gateway}" @@ -37473,7 +37905,7 @@ service VpnTunnels { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request. + // Returns the specified VpnTunnel resource. rpc Get(GetVpnTunnelRequest) returns (VpnTunnel) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpn_tunnel}" @@ -37565,7 +37997,7 @@ service Zones { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the specified Zone resource. Gets a list of available zones by making a list() request. + // Returns the specified Zone resource. rpc Get(GetZoneRequest) returns (Zone) { option (google.api.http) = { get: "/compute/v1/projects/{project}/zones/{zone}" diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 3cdd4e2709a..ef8070c8747 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -5982,6 +5982,157 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListInstanceTemplatesRequest. */ + interface IAggregatedListInstanceTemplatesRequest { + + /** AggregatedListInstanceTemplatesRequest filter */ + filter?: (string|null); + + /** AggregatedListInstanceTemplatesRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListInstanceTemplatesRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListInstanceTemplatesRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListInstanceTemplatesRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListInstanceTemplatesRequest project */ + project?: (string|null); + + /** AggregatedListInstanceTemplatesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents an AggregatedListInstanceTemplatesRequest. */ + class AggregatedListInstanceTemplatesRequest implements IAggregatedListInstanceTemplatesRequest { + + /** + * Constructs a new AggregatedListInstanceTemplatesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest); + + /** AggregatedListInstanceTemplatesRequest filter. */ + public filter?: (string|null); + + /** AggregatedListInstanceTemplatesRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListInstanceTemplatesRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListInstanceTemplatesRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListInstanceTemplatesRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListInstanceTemplatesRequest project. */ + public project: string; + + /** AggregatedListInstanceTemplatesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListInstanceTemplatesRequest _filter. */ + public _filter?: "filter"; + + /** AggregatedListInstanceTemplatesRequest _includeAllScopes. */ + public _includeAllScopes?: "includeAllScopes"; + + /** AggregatedListInstanceTemplatesRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** AggregatedListInstanceTemplatesRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** AggregatedListInstanceTemplatesRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** AggregatedListInstanceTemplatesRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new AggregatedListInstanceTemplatesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListInstanceTemplatesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest): google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest; + + /** + * Encodes the specified AggregatedListInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest.verify|verify} messages. + * @param message AggregatedListInstanceTemplatesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest.verify|verify} messages. + * @param message AggregatedListInstanceTemplatesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListInstanceTemplatesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest; + + /** + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListInstanceTemplatesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest; + + /** + * Verifies an AggregatedListInstanceTemplatesRequest message. + * @param message Plain 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 AggregatedListInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListInstanceTemplatesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest; + + /** + * Creates a plain object from an AggregatedListInstanceTemplatesRequest message. Also converts values to other types if specified. + * @param message AggregatedListInstanceTemplatesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListInstanceTemplatesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListInstanceTemplatesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListInstancesRequest. */ interface IAggregatedListInstancesRequest { @@ -15700,7 +15851,8 @@ export namespace google { ORIGINAL_DESTINATION = 166297216, RANDOM = 262527171, RING_HASH = 432795069, - ROUND_ROBIN = 153895801 + ROUND_ROBIN = 153895801, + WEIGHTED_MAGLEV = 254930962 } /** Protocol enum. */ @@ -17263,7 +17415,8 @@ export namespace google { ORIGINAL_DESTINATION = 166297216, RANDOM = 262527171, RING_HASH = 432795069, - ROUND_ROBIN = 153895801 + ROUND_ROBIN = 153895801, + WEIGHTED_MAGLEV = 254930962 } } @@ -17273,6 +17426,12 @@ export namespace google { /** BackendServiceLogConfig enable */ enable?: (boolean|null); + /** BackendServiceLogConfig optionalFields */ + optionalFields?: (string[]|null); + + /** BackendServiceLogConfig optionalMode */ + optionalMode?: (string|null); + /** BackendServiceLogConfig sampleRate */ sampleRate?: (number|null); } @@ -17289,12 +17448,21 @@ export namespace google { /** BackendServiceLogConfig enable. */ public enable?: (boolean|null); + /** BackendServiceLogConfig optionalFields. */ + public optionalFields: string[]; + + /** BackendServiceLogConfig optionalMode. */ + public optionalMode?: (string|null); + /** BackendServiceLogConfig sampleRate. */ public sampleRate?: (number|null); /** BackendServiceLogConfig _enable. */ public _enable?: "enable"; + /** BackendServiceLogConfig _optionalMode. */ + public _optionalMode?: "optionalMode"; + /** BackendServiceLogConfig _sampleRate. */ public _sampleRate?: "sampleRate"; @@ -17376,6 +17544,17 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace BackendServiceLogConfig { + + /** OptionalMode enum. */ + enum OptionalMode { + UNDEFINED_OPTIONAL_MODE = 0, + CUSTOM = 388595569, + EXCLUDE_ALL_OPTIONAL = 168636099, + INCLUDE_ALL_OPTIONAL = 535606965 + } + } + /** Properties of a BackendServiceReference. */ interface IBackendServiceReference { @@ -19843,6 +20022,7 @@ export namespace google { ACCELERATOR_OPTIMIZED = 280848403, COMPUTE_OPTIMIZED = 158349023, COMPUTE_OPTIMIZED_C2D = 383246453, + COMPUTE_OPTIMIZED_C3 = 428004784, GENERAL_PURPOSE = 299793543, GENERAL_PURPOSE_E2 = 301911877, GENERAL_PURPOSE_N2 = 301912156, @@ -27472,6 +27652,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionInstanceTemplateRequest. */ + interface IDeleteRegionInstanceTemplateRequest { + + /** DeleteRegionInstanceTemplateRequest instanceTemplate */ + instanceTemplate?: (string|null); + + /** DeleteRegionInstanceTemplateRequest project */ + project?: (string|null); + + /** DeleteRegionInstanceTemplateRequest region */ + region?: (string|null); + + /** DeleteRegionInstanceTemplateRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionInstanceTemplateRequest. */ + class DeleteRegionInstanceTemplateRequest implements IDeleteRegionInstanceTemplateRequest { + + /** + * Constructs a new DeleteRegionInstanceTemplateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest); + + /** DeleteRegionInstanceTemplateRequest instanceTemplate. */ + public instanceTemplate: string; + + /** DeleteRegionInstanceTemplateRequest project. */ + public project: string; + + /** DeleteRegionInstanceTemplateRequest region. */ + public region: string; + + /** DeleteRegionInstanceTemplateRequest requestId. */ + public requestId?: (string|null); + + /** DeleteRegionInstanceTemplateRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new DeleteRegionInstanceTemplateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionInstanceTemplateRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest): google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest; + + /** + * Encodes the specified DeleteRegionInstanceTemplateRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest.verify|verify} messages. + * @param message DeleteRegionInstanceTemplateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionInstanceTemplateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest.verify|verify} messages. + * @param message DeleteRegionInstanceTemplateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionInstanceTemplateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest; + + /** + * Decodes a DeleteRegionInstanceTemplateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest; + + /** + * Verifies a DeleteRegionInstanceTemplateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteRegionInstanceTemplateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionInstanceTemplateRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest; + + /** + * Creates a plain object from a DeleteRegionInstanceTemplateRequest message. Also converts values to other types if specified. + * @param message DeleteRegionInstanceTemplateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionInstanceTemplateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionInstanceTemplateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionNetworkEndpointGroupRequest. */ interface IDeleteRegionNetworkEndpointGroupRequest { @@ -38715,6 +39013,9 @@ export namespace google { /** ForwardingRule backendService */ backendService?: (string|null); + /** ForwardingRule baseForwardingRule */ + baseForwardingRule?: (string|null); + /** ForwardingRule creationTimestamp */ creationTimestamp?: (string|null); @@ -38787,6 +39088,9 @@ export namespace google { /** ForwardingRule serviceName */ serviceName?: (string|null); + /** ForwardingRule sourceIpRanges */ + sourceIpRanges?: (string[]|null); + /** ForwardingRule subnetwork */ subnetwork?: (string|null); @@ -38818,6 +39122,9 @@ export namespace google { /** ForwardingRule backendService. */ public backendService?: (string|null); + /** ForwardingRule baseForwardingRule. */ + public baseForwardingRule?: (string|null); + /** ForwardingRule creationTimestamp. */ public creationTimestamp?: (string|null); @@ -38890,6 +39197,9 @@ export namespace google { /** ForwardingRule serviceName. */ public serviceName?: (string|null); + /** ForwardingRule sourceIpRanges. */ + public sourceIpRanges: string[]; + /** ForwardingRule subnetwork. */ public subnetwork?: (string|null); @@ -38911,6 +39221,9 @@ export namespace google { /** ForwardingRule _backendService. */ public _backendService?: "backendService"; + /** ForwardingRule _baseForwardingRule. */ + public _baseForwardingRule?: "baseForwardingRule"; + /** ForwardingRule _creationTimestamp. */ public _creationTimestamp?: "creationTimestamp"; @@ -49177,6 +49490,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionInstanceTemplateRequest. */ + interface IGetRegionInstanceTemplateRequest { + + /** GetRegionInstanceTemplateRequest instanceTemplate */ + instanceTemplate?: (string|null); + + /** GetRegionInstanceTemplateRequest project */ + project?: (string|null); + + /** GetRegionInstanceTemplateRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionInstanceTemplateRequest. */ + class GetRegionInstanceTemplateRequest implements IGetRegionInstanceTemplateRequest { + + /** + * Constructs a new GetRegionInstanceTemplateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionInstanceTemplateRequest); + + /** GetRegionInstanceTemplateRequest instanceTemplate. */ + public instanceTemplate: string; + + /** GetRegionInstanceTemplateRequest project. */ + public project: string; + + /** GetRegionInstanceTemplateRequest region. */ + public region: string; + + /** + * Creates a new GetRegionInstanceTemplateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionInstanceTemplateRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionInstanceTemplateRequest): google.cloud.compute.v1.GetRegionInstanceTemplateRequest; + + /** + * Encodes the specified GetRegionInstanceTemplateRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstanceTemplateRequest.verify|verify} messages. + * @param message GetRegionInstanceTemplateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionInstanceTemplateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionInstanceTemplateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstanceTemplateRequest.verify|verify} messages. + * @param message GetRegionInstanceTemplateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionInstanceTemplateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionInstanceTemplateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.GetRegionInstanceTemplateRequest; + + /** + * Decodes a GetRegionInstanceTemplateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.GetRegionInstanceTemplateRequest; + + /** + * Verifies a GetRegionInstanceTemplateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRegionInstanceTemplateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionInstanceTemplateRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionInstanceTemplateRequest; + + /** + * Creates a plain object from a GetRegionInstanceTemplateRequest message. Also converts values to other types if specified. + * @param message GetRegionInstanceTemplateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionInstanceTemplateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionInstanceTemplateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionInstanceTemplateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionNetworkEndpointGroupRequest. */ interface IGetRegionNetworkEndpointGroupRequest { @@ -64678,6 +65100,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionInstanceTemplateRequest. */ + interface IInsertRegionInstanceTemplateRequest { + + /** InsertRegionInstanceTemplateRequest instanceTemplateResource */ + instanceTemplateResource?: (google.cloud.compute.v1.IInstanceTemplate|null); + + /** InsertRegionInstanceTemplateRequest project */ + project?: (string|null); + + /** InsertRegionInstanceTemplateRequest region */ + region?: (string|null); + + /** InsertRegionInstanceTemplateRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionInstanceTemplateRequest. */ + class InsertRegionInstanceTemplateRequest implements IInsertRegionInstanceTemplateRequest { + + /** + * Constructs a new InsertRegionInstanceTemplateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest); + + /** InsertRegionInstanceTemplateRequest instanceTemplateResource. */ + public instanceTemplateResource?: (google.cloud.compute.v1.IInstanceTemplate|null); + + /** InsertRegionInstanceTemplateRequest project. */ + public project: string; + + /** InsertRegionInstanceTemplateRequest region. */ + public region: string; + + /** InsertRegionInstanceTemplateRequest requestId. */ + public requestId?: (string|null); + + /** InsertRegionInstanceTemplateRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new InsertRegionInstanceTemplateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionInstanceTemplateRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest): google.cloud.compute.v1.InsertRegionInstanceTemplateRequest; + + /** + * Encodes the specified InsertRegionInstanceTemplateRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstanceTemplateRequest.verify|verify} messages. + * @param message InsertRegionInstanceTemplateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionInstanceTemplateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstanceTemplateRequest.verify|verify} messages. + * @param message InsertRegionInstanceTemplateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionInstanceTemplateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InsertRegionInstanceTemplateRequest; + + /** + * Decodes an InsertRegionInstanceTemplateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InsertRegionInstanceTemplateRequest; + + /** + * Verifies an InsertRegionInstanceTemplateRequest message. + * @param message Plain 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 InsertRegionInstanceTemplateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionInstanceTemplateRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertRegionInstanceTemplateRequest; + + /** + * Creates a plain object from an InsertRegionInstanceTemplateRequest message. Also converts values to other types if specified. + * @param message InsertRegionInstanceTemplateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertRegionInstanceTemplateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionInstanceTemplateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionInstanceTemplateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionNetworkEndpointGroupRequest. */ interface IInsertRegionNetworkEndpointGroupRequest { @@ -74689,6 +75229,9 @@ export namespace google { /** InstanceTemplate properties */ properties?: (google.cloud.compute.v1.IInstanceProperties|null); + /** InstanceTemplate region */ + region?: (string|null); + /** InstanceTemplate selfLink */ selfLink?: (string|null); @@ -74726,6 +75269,9 @@ export namespace google { /** InstanceTemplate properties. */ public properties?: (google.cloud.compute.v1.IInstanceProperties|null); + /** InstanceTemplate region. */ + public region?: (string|null); + /** InstanceTemplate selfLink. */ public selfLink?: (string|null); @@ -74753,6 +75299,9 @@ export namespace google { /** InstanceTemplate _properties. */ public _properties?: "properties"; + /** InstanceTemplate _region. */ + public _region?: "region"; + /** InstanceTemplate _selfLink. */ public _selfLink?: "selfLink"; @@ -74840,6 +75389,148 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceTemplateAggregatedList. */ + interface IInstanceTemplateAggregatedList { + + /** InstanceTemplateAggregatedList id */ + id?: (string|null); + + /** InstanceTemplateAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.IInstanceTemplatesScopedList }|null); + + /** InstanceTemplateAggregatedList kind */ + kind?: (string|null); + + /** InstanceTemplateAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** InstanceTemplateAggregatedList selfLink */ + selfLink?: (string|null); + + /** InstanceTemplateAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents an InstanceTemplateAggregatedList. */ + class InstanceTemplateAggregatedList implements IInstanceTemplateAggregatedList { + + /** + * Constructs a new InstanceTemplateAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceTemplateAggregatedList); + + /** InstanceTemplateAggregatedList id. */ + public id?: (string|null); + + /** InstanceTemplateAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.IInstanceTemplatesScopedList }; + + /** InstanceTemplateAggregatedList kind. */ + public kind?: (string|null); + + /** InstanceTemplateAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** InstanceTemplateAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** InstanceTemplateAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** InstanceTemplateAggregatedList _id. */ + public _id?: "id"; + + /** InstanceTemplateAggregatedList _kind. */ + public _kind?: "kind"; + + /** InstanceTemplateAggregatedList _nextPageToken. */ + public _nextPageToken?: "nextPageToken"; + + /** InstanceTemplateAggregatedList _selfLink. */ + public _selfLink?: "selfLink"; + + /** InstanceTemplateAggregatedList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new InstanceTemplateAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceTemplateAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceTemplateAggregatedList): google.cloud.compute.v1.InstanceTemplateAggregatedList; + + /** + * Encodes the specified InstanceTemplateAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.InstanceTemplateAggregatedList.verify|verify} messages. + * @param message InstanceTemplateAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceTemplateAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceTemplateAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceTemplateAggregatedList.verify|verify} messages. + * @param message InstanceTemplateAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceTemplateAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceTemplateAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceTemplateAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InstanceTemplateAggregatedList; + + /** + * Decodes an InstanceTemplateAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceTemplateAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InstanceTemplateAggregatedList; + + /** + * Verifies an InstanceTemplateAggregatedList message. + * @param message Plain 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 InstanceTemplateAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceTemplateAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceTemplateAggregatedList; + + /** + * Creates a plain object from an InstanceTemplateAggregatedList message. Also converts values to other types if specified. + * @param message InstanceTemplateAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceTemplateAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceTemplateAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceTemplateAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceTemplateList. */ interface IInstanceTemplateList { @@ -74982,6 +75673,112 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceTemplatesScopedList. */ + interface IInstanceTemplatesScopedList { + + /** InstanceTemplatesScopedList instanceTemplates */ + instanceTemplates?: (google.cloud.compute.v1.IInstanceTemplate[]|null); + + /** InstanceTemplatesScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents an InstanceTemplatesScopedList. */ + class InstanceTemplatesScopedList implements IInstanceTemplatesScopedList { + + /** + * Constructs a new InstanceTemplatesScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceTemplatesScopedList); + + /** InstanceTemplatesScopedList instanceTemplates. */ + public instanceTemplates: google.cloud.compute.v1.IInstanceTemplate[]; + + /** InstanceTemplatesScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** InstanceTemplatesScopedList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new InstanceTemplatesScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceTemplatesScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceTemplatesScopedList): google.cloud.compute.v1.InstanceTemplatesScopedList; + + /** + * Encodes the specified InstanceTemplatesScopedList message. Does not implicitly {@link google.cloud.compute.v1.InstanceTemplatesScopedList.verify|verify} messages. + * @param message InstanceTemplatesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceTemplatesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceTemplatesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceTemplatesScopedList.verify|verify} messages. + * @param message InstanceTemplatesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceTemplatesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceTemplatesScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceTemplatesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InstanceTemplatesScopedList; + + /** + * Decodes an InstanceTemplatesScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceTemplatesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InstanceTemplatesScopedList; + + /** + * Verifies an InstanceTemplatesScopedList message. + * @param message Plain 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 InstanceTemplatesScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceTemplatesScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceTemplatesScopedList; + + /** + * Creates a plain object from an InstanceTemplatesScopedList message. Also converts values to other types if specified. + * @param message InstanceTemplatesScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceTemplatesScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceTemplatesScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceTemplatesScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceWithNamedPorts. */ interface IInstanceWithNamedPorts { @@ -76066,6 +76863,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstancesSetNameRequest. */ + interface IInstancesSetNameRequest { + + /** InstancesSetNameRequest currentName */ + currentName?: (string|null); + + /** InstancesSetNameRequest name */ + name?: (string|null); + } + + /** Represents an InstancesSetNameRequest. */ + class InstancesSetNameRequest implements IInstancesSetNameRequest { + + /** + * Constructs a new InstancesSetNameRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstancesSetNameRequest); + + /** InstancesSetNameRequest currentName. */ + public currentName?: (string|null); + + /** InstancesSetNameRequest name. */ + public name?: (string|null); + + /** InstancesSetNameRequest _currentName. */ + public _currentName?: "currentName"; + + /** InstancesSetNameRequest _name. */ + public _name?: "name"; + + /** + * Creates a new InstancesSetNameRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InstancesSetNameRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInstancesSetNameRequest): google.cloud.compute.v1.InstancesSetNameRequest; + + /** + * Encodes the specified InstancesSetNameRequest message. Does not implicitly {@link google.cloud.compute.v1.InstancesSetNameRequest.verify|verify} messages. + * @param message InstancesSetNameRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstancesSetNameRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstancesSetNameRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstancesSetNameRequest.verify|verify} messages. + * @param message InstancesSetNameRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstancesSetNameRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstancesSetNameRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstancesSetNameRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InstancesSetNameRequest; + + /** + * Decodes an InstancesSetNameRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstancesSetNameRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InstancesSetNameRequest; + + /** + * Verifies an InstancesSetNameRequest message. + * @param message Plain 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 InstancesSetNameRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstancesSetNameRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstancesSetNameRequest; + + /** + * Creates a plain object from an InstancesSetNameRequest message. Also converts values to other types if specified. + * @param message InstancesSetNameRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstancesSetNameRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstancesSetNameRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstancesSetNameRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstancesSetServiceAccountRequest. */ interface IInstancesSetServiceAccountRequest { @@ -90144,6 +91050,154 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionInstanceTemplatesRequest. */ + interface IListRegionInstanceTemplatesRequest { + + /** ListRegionInstanceTemplatesRequest filter */ + filter?: (string|null); + + /** ListRegionInstanceTemplatesRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionInstanceTemplatesRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionInstanceTemplatesRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionInstanceTemplatesRequest project */ + project?: (string|null); + + /** ListRegionInstanceTemplatesRequest region */ + region?: (string|null); + + /** ListRegionInstanceTemplatesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionInstanceTemplatesRequest. */ + class ListRegionInstanceTemplatesRequest implements IListRegionInstanceTemplatesRequest { + + /** + * Constructs a new ListRegionInstanceTemplatesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionInstanceTemplatesRequest); + + /** ListRegionInstanceTemplatesRequest filter. */ + public filter?: (string|null); + + /** ListRegionInstanceTemplatesRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionInstanceTemplatesRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionInstanceTemplatesRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionInstanceTemplatesRequest project. */ + public project: string; + + /** ListRegionInstanceTemplatesRequest region. */ + public region: string; + + /** ListRegionInstanceTemplatesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListRegionInstanceTemplatesRequest _filter. */ + public _filter?: "filter"; + + /** ListRegionInstanceTemplatesRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** ListRegionInstanceTemplatesRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** ListRegionInstanceTemplatesRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** ListRegionInstanceTemplatesRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionInstanceTemplatesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionInstanceTemplatesRequest): google.cloud.compute.v1.ListRegionInstanceTemplatesRequest; + + /** + * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. + * @param message ListRegionInstanceTemplatesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. + * @param message ListRegionInstanceTemplatesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionInstanceTemplatesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.ListRegionInstanceTemplatesRequest; + + /** + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionInstanceTemplatesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.ListRegionInstanceTemplatesRequest; + + /** + * Verifies a ListRegionInstanceTemplatesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionInstanceTemplatesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionInstanceTemplatesRequest; + + /** + * Creates a plain object from a ListRegionInstanceTemplatesRequest message. Also converts values to other types if specified. + * @param message ListRegionInstanceTemplatesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionInstanceTemplatesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionInstanceTemplatesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionInstanceTemplatesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionNetworkEndpointGroupsRequest. */ interface IListRegionNetworkEndpointGroupsRequest { @@ -118146,6 +119200,7 @@ export namespace google { N2D_CPUS = 351743370, N2_CPUS = 416465286, NETWORKS = 485481477, + NETWORK_ATTACHMENTS = 149028575, NETWORK_ENDPOINT_GROUPS = 102144909, NETWORK_FIREWALL_POLICIES = 101117374, NODE_GROUPS = 24624817, @@ -135100,6 +136155,9 @@ export namespace google { /** SecurityPolicyRule match */ match?: (google.cloud.compute.v1.ISecurityPolicyRuleMatcher|null); + /** SecurityPolicyRule preconfiguredWafConfig */ + preconfiguredWafConfig?: (google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig|null); + /** SecurityPolicyRule preview */ preview?: (boolean|null); @@ -135137,6 +136195,9 @@ export namespace google { /** SecurityPolicyRule match. */ public match?: (google.cloud.compute.v1.ISecurityPolicyRuleMatcher|null); + /** SecurityPolicyRule preconfiguredWafConfig. */ + public preconfiguredWafConfig?: (google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig|null); + /** SecurityPolicyRule preview. */ public preview?: (boolean|null); @@ -135164,6 +136225,9 @@ export namespace google { /** SecurityPolicyRule _match. */ public _match?: "match"; + /** SecurityPolicyRule _preconfiguredWafConfig. */ + public _preconfiguredWafConfig?: "preconfiguredWafConfig"; + /** SecurityPolicyRule _preview. */ public _preview?: "preview"; @@ -135684,6 +136748,355 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SecurityPolicyRulePreconfiguredWafConfig. */ + interface ISecurityPolicyRulePreconfiguredWafConfig { + + /** SecurityPolicyRulePreconfiguredWafConfig exclusions */ + exclusions?: (google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion[]|null); + } + + /** Represents a SecurityPolicyRulePreconfiguredWafConfig. */ + class SecurityPolicyRulePreconfiguredWafConfig implements ISecurityPolicyRulePreconfiguredWafConfig { + + /** + * Constructs a new SecurityPolicyRulePreconfiguredWafConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig); + + /** SecurityPolicyRulePreconfiguredWafConfig exclusions. */ + public exclusions: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion[]; + + /** + * Creates a new SecurityPolicyRulePreconfiguredWafConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRulePreconfiguredWafConfig instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfig message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.verify|verify} messages. + * @param message SecurityPolicyRulePreconfiguredWafConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.verify|verify} messages. + * @param message SecurityPolicyRulePreconfiguredWafConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRulePreconfiguredWafConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRulePreconfiguredWafConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig; + + /** + * Verifies a SecurityPolicyRulePreconfiguredWafConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SecurityPolicyRulePreconfiguredWafConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRulePreconfiguredWafConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig; + + /** + * Creates a plain object from a SecurityPolicyRulePreconfiguredWafConfig message. Also converts values to other types if specified. + * @param message SecurityPolicyRulePreconfiguredWafConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRulePreconfiguredWafConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityPolicyRulePreconfiguredWafConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SecurityPolicyRulePreconfiguredWafConfigExclusion. */ + interface ISecurityPolicyRulePreconfiguredWafConfigExclusion { + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion requestCookiesToExclude */ + requestCookiesToExclude?: (google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion requestHeadersToExclude */ + requestHeadersToExclude?: (google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion requestQueryParamsToExclude */ + requestQueryParamsToExclude?: (google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion requestUrisToExclude */ + requestUrisToExclude?: (google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion targetRuleIds */ + targetRuleIds?: (string[]|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion targetRuleSet */ + targetRuleSet?: (string|null); + } + + /** Represents a SecurityPolicyRulePreconfiguredWafConfigExclusion. */ + class SecurityPolicyRulePreconfiguredWafConfigExclusion implements ISecurityPolicyRulePreconfiguredWafConfigExclusion { + + /** + * Constructs a new SecurityPolicyRulePreconfiguredWafConfigExclusion. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion requestCookiesToExclude. */ + public requestCookiesToExclude: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]; + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion requestHeadersToExclude. */ + public requestHeadersToExclude: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]; + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion requestQueryParamsToExclude. */ + public requestQueryParamsToExclude: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]; + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion requestUrisToExclude. */ + public requestUrisToExclude: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]; + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion targetRuleIds. */ + public targetRuleIds: string[]; + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion targetRuleSet. */ + public targetRuleSet?: (string|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusion _targetRuleSet. */ + public _targetRuleSet?: "targetRuleSet"; + + /** + * Creates a new SecurityPolicyRulePreconfiguredWafConfigExclusion instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRulePreconfiguredWafConfigExclusion instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfigExclusion message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.verify|verify} messages. + * @param message SecurityPolicyRulePreconfiguredWafConfigExclusion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfigExclusion message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.verify|verify} messages. + * @param message SecurityPolicyRulePreconfiguredWafConfigExclusion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfigExclusion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRulePreconfiguredWafConfigExclusion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfigExclusion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRulePreconfiguredWafConfigExclusion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion; + + /** + * Verifies a SecurityPolicyRulePreconfiguredWafConfigExclusion message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SecurityPolicyRulePreconfiguredWafConfigExclusion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRulePreconfiguredWafConfigExclusion + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion; + + /** + * Creates a plain object from a SecurityPolicyRulePreconfiguredWafConfigExclusion message. Also converts values to other types if specified. + * @param message SecurityPolicyRulePreconfiguredWafConfigExclusion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRulePreconfiguredWafConfigExclusion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityPolicyRulePreconfiguredWafConfigExclusion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams. */ + interface ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { + + /** SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams op */ + op?: (string|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams val */ + val?: (string|null); + } + + /** Represents a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams. */ + class SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams implements ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { + + /** + * Constructs a new SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams op. */ + public op?: (string|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams val. */ + public val?: (string|null); + + /** SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams _op. */ + public _op?: "op"; + + /** SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams _val. */ + public _val?: "val"; + + /** + * Creates a new SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify|verify} messages. + * @param message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify|verify} messages. + * @param message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams; + + /** + * Verifies a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams; + + /** + * Creates a plain object from a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message. Also converts values to other types if specified. + * @param message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { + + /** Op enum. */ + enum Op { + UNDEFINED_OP = 0, + CONTAINS = 215180831, + ENDS_WITH = 490402221, + EQUALS = 442201023, + EQUALS_ANY = 337226060, + STARTS_WITH = 139505652 + } + } + /** Properties of a SecurityPolicyRuleRateLimitOptions. */ interface ISecurityPolicyRuleRateLimitOptions { @@ -143836,6 +145249,130 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetNameInstanceRequest. */ + interface ISetNameInstanceRequest { + + /** SetNameInstanceRequest instance */ + instance?: (string|null); + + /** SetNameInstanceRequest instancesSetNameRequestResource */ + instancesSetNameRequestResource?: (google.cloud.compute.v1.IInstancesSetNameRequest|null); + + /** SetNameInstanceRequest project */ + project?: (string|null); + + /** SetNameInstanceRequest requestId */ + requestId?: (string|null); + + /** SetNameInstanceRequest zone */ + zone?: (string|null); + } + + /** Represents a SetNameInstanceRequest. */ + class SetNameInstanceRequest implements ISetNameInstanceRequest { + + /** + * Constructs a new SetNameInstanceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetNameInstanceRequest); + + /** SetNameInstanceRequest instance. */ + public instance: string; + + /** SetNameInstanceRequest instancesSetNameRequestResource. */ + public instancesSetNameRequestResource?: (google.cloud.compute.v1.IInstancesSetNameRequest|null); + + /** SetNameInstanceRequest project. */ + public project: string; + + /** SetNameInstanceRequest requestId. */ + public requestId?: (string|null); + + /** SetNameInstanceRequest zone. */ + public zone: string; + + /** SetNameInstanceRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new SetNameInstanceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetNameInstanceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetNameInstanceRequest): google.cloud.compute.v1.SetNameInstanceRequest; + + /** + * Encodes the specified SetNameInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetNameInstanceRequest.verify|verify} messages. + * @param message SetNameInstanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetNameInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetNameInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetNameInstanceRequest.verify|verify} messages. + * @param message SetNameInstanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetNameInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetNameInstanceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetNameInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.SetNameInstanceRequest; + + /** + * Decodes a SetNameInstanceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetNameInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.SetNameInstanceRequest; + + /** + * Verifies a SetNameInstanceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetNameInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetNameInstanceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetNameInstanceRequest; + + /** + * Creates a plain object from a SetNameInstanceRequest message. Also converts values to other types if specified. + * @param message SetNameInstanceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetNameInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetNameInstanceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetNameInstanceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetNamedPortsInstanceGroupRequest. */ interface ISetNamedPortsInstanceGroupRequest { @@ -162302,6 +163839,148 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpdateDiskRequest. */ + interface IUpdateDiskRequest { + + /** UpdateDiskRequest disk */ + disk?: (string|null); + + /** UpdateDiskRequest diskResource */ + diskResource?: (google.cloud.compute.v1.IDisk|null); + + /** UpdateDiskRequest paths */ + paths?: (string|null); + + /** UpdateDiskRequest project */ + project?: (string|null); + + /** UpdateDiskRequest requestId */ + requestId?: (string|null); + + /** UpdateDiskRequest updateMask */ + updateMask?: (string|null); + + /** UpdateDiskRequest zone */ + zone?: (string|null); + } + + /** Represents an UpdateDiskRequest. */ + class UpdateDiskRequest implements IUpdateDiskRequest { + + /** + * Constructs a new UpdateDiskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateDiskRequest); + + /** UpdateDiskRequest disk. */ + public disk: string; + + /** UpdateDiskRequest diskResource. */ + public diskResource?: (google.cloud.compute.v1.IDisk|null); + + /** UpdateDiskRequest paths. */ + public paths?: (string|null); + + /** UpdateDiskRequest project. */ + public project: string; + + /** UpdateDiskRequest requestId. */ + public requestId?: (string|null); + + /** UpdateDiskRequest updateMask. */ + public updateMask?: (string|null); + + /** UpdateDiskRequest zone. */ + public zone: string; + + /** UpdateDiskRequest _paths. */ + public _paths?: "paths"; + + /** UpdateDiskRequest _requestId. */ + public _requestId?: "requestId"; + + /** UpdateDiskRequest _updateMask. */ + public _updateMask?: "updateMask"; + + /** + * Creates a new UpdateDiskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateDiskRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateDiskRequest): google.cloud.compute.v1.UpdateDiskRequest; + + /** + * Encodes the specified UpdateDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateDiskRequest.verify|verify} messages. + * @param message UpdateDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateDiskRequest.verify|verify} messages. + * @param message UpdateDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateDiskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.UpdateDiskRequest; + + /** + * Decodes an UpdateDiskRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.UpdateDiskRequest; + + /** + * Verifies an UpdateDiskRequest message. + * @param message Plain 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 UpdateDiskRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateDiskRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateDiskRequest; + + /** + * Creates a plain object from an UpdateDiskRequest message. Also converts values to other types if specified. + * @param message UpdateDiskRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateDiskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateDiskRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateDiskRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UpdateDisplayDeviceInstanceRequest. */ interface IUpdateDisplayDeviceInstanceRequest { @@ -163706,6 +165385,148 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpdateRegionDiskRequest. */ + interface IUpdateRegionDiskRequest { + + /** UpdateRegionDiskRequest disk */ + disk?: (string|null); + + /** UpdateRegionDiskRequest diskResource */ + diskResource?: (google.cloud.compute.v1.IDisk|null); + + /** UpdateRegionDiskRequest paths */ + paths?: (string|null); + + /** UpdateRegionDiskRequest project */ + project?: (string|null); + + /** UpdateRegionDiskRequest region */ + region?: (string|null); + + /** UpdateRegionDiskRequest requestId */ + requestId?: (string|null); + + /** UpdateRegionDiskRequest updateMask */ + updateMask?: (string|null); + } + + /** Represents an UpdateRegionDiskRequest. */ + class UpdateRegionDiskRequest implements IUpdateRegionDiskRequest { + + /** + * Constructs a new UpdateRegionDiskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateRegionDiskRequest); + + /** UpdateRegionDiskRequest disk. */ + public disk: string; + + /** UpdateRegionDiskRequest diskResource. */ + public diskResource?: (google.cloud.compute.v1.IDisk|null); + + /** UpdateRegionDiskRequest paths. */ + public paths?: (string|null); + + /** UpdateRegionDiskRequest project. */ + public project: string; + + /** UpdateRegionDiskRequest region. */ + public region: string; + + /** UpdateRegionDiskRequest requestId. */ + public requestId?: (string|null); + + /** UpdateRegionDiskRequest updateMask. */ + public updateMask?: (string|null); + + /** UpdateRegionDiskRequest _paths. */ + public _paths?: "paths"; + + /** UpdateRegionDiskRequest _requestId. */ + public _requestId?: "requestId"; + + /** UpdateRegionDiskRequest _updateMask. */ + public _updateMask?: "updateMask"; + + /** + * Creates a new UpdateRegionDiskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateRegionDiskRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateRegionDiskRequest): google.cloud.compute.v1.UpdateRegionDiskRequest; + + /** + * Encodes the specified UpdateRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateRegionDiskRequest.verify|verify} messages. + * @param message UpdateRegionDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateRegionDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateRegionDiskRequest.verify|verify} messages. + * @param message UpdateRegionDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateRegionDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateRegionDiskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateRegionDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.UpdateRegionDiskRequest; + + /** + * Decodes an UpdateRegionDiskRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateRegionDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.UpdateRegionDiskRequest; + + /** + * Verifies an UpdateRegionDiskRequest message. + * @param message Plain 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 UpdateRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateRegionDiskRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateRegionDiskRequest; + + /** + * Creates a plain object from an UpdateRegionDiskRequest message. Also converts values to other types if specified. + * @param message UpdateRegionDiskRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateRegionDiskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateRegionDiskRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateRegionDiskRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UpdateRegionHealthCheckRequest. */ interface IUpdateRegionHealthCheckRequest { @@ -169299,6 +171120,9 @@ export namespace google { /** WafExpressionSetExpression id */ id?: (string|null); + + /** WafExpressionSetExpression sensitivity */ + sensitivity?: (number|null); } /** Represents a WafExpressionSetExpression. */ @@ -169313,9 +171137,15 @@ export namespace google { /** WafExpressionSetExpression id. */ public id?: (string|null); + /** WafExpressionSetExpression sensitivity. */ + public sensitivity?: (number|null); + /** WafExpressionSetExpression _id. */ public _id?: "id"; + /** WafExpressionSetExpression _sensitivity. */ + public _sensitivity?: "sensitivity"; + /** * Creates a new WafExpressionSetExpression instance using the specified properties. * @param [properties] Properties to set @@ -172181,6 +174011,20 @@ export namespace google { * @returns Promise */ public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsDiskRequest): Promise; + + /** + * Calls Update. + * @param request UpdateDiskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public update(request: google.cloud.compute.v1.IUpdateDiskRequest, callback: google.cloud.compute.v1.Disks.UpdateCallback): void; + + /** + * Calls Update. + * @param request UpdateDiskRequest message or plain object + * @returns Promise + */ + public update(request: google.cloud.compute.v1.IUpdateDiskRequest): Promise; } namespace Disks { @@ -172275,6 +174119,13 @@ export namespace google { * @param [response] TestPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.Disks|update}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } /** Represents an ExternalVpnGateways */ @@ -175135,6 +176986,20 @@ export namespace google { */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): InstanceTemplates; + /** + * Calls AggregatedList. + * @param request AggregatedListInstanceTemplatesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstanceTemplateAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest, callback: google.cloud.compute.v1.InstanceTemplates.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListInstanceTemplatesRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest): Promise; + /** * Calls Delete. * @param request DeleteInstanceTemplateRequest message or plain object @@ -175236,6 +177101,13 @@ export namespace google { namespace InstanceTemplates { + /** + * Callback as used by {@link google.cloud.compute.v1.InstanceTemplates|aggregatedList}. + * @param error Error, if any + * @param [response] InstanceTemplateAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstanceTemplateAggregatedList) => void; + /** * Callback as used by {@link google.cloud.compute.v1.InstanceTemplates|delete_}. * @param error Error, if any @@ -175726,6 +177598,20 @@ export namespace google { */ public setMinCpuPlatform(request: google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest): Promise; + /** + * Calls SetName. + * @param request SetNameInstanceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setName(request: google.cloud.compute.v1.ISetNameInstanceRequest, callback: google.cloud.compute.v1.Instances.SetNameCallback): void; + + /** + * Calls SetName. + * @param request SetNameInstanceRequest message or plain object + * @returns Promise + */ + public setName(request: google.cloud.compute.v1.ISetNameInstanceRequest): Promise; + /** * Calls SetScheduling. * @param request SetSchedulingInstanceRequest message or plain object @@ -176149,6 +178035,13 @@ export namespace google { */ type SetMinCpuPlatformCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.Instances|setName}. + * @param error Error, if any + * @param [response] Operation + */ + type SetNameCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.Instances|setScheduling}. * @param error Error, if any @@ -180375,6 +182268,20 @@ export namespace google { * @returns Promise */ public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest): Promise; + + /** + * Calls Update. + * @param request UpdateRegionDiskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public update(request: google.cloud.compute.v1.IUpdateRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.UpdateCallback): void; + + /** + * Calls Update. + * @param request UpdateRegionDiskRequest message or plain object + * @returns Promise + */ + public update(request: google.cloud.compute.v1.IUpdateRegionDiskRequest): Promise; } namespace RegionDisks { @@ -180462,6 +182369,13 @@ export namespace google { * @param [response] TestPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionDisks|update}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } /** Represents a RegionHealthCheckServices */ @@ -181274,6 +183188,114 @@ export namespace google { type SetNamedPortsCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents a RegionInstanceTemplates */ + class RegionInstanceTemplates extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionInstanceTemplates 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 RegionInstanceTemplates 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): RegionInstanceTemplates; + + /** + * Calls Delete. + * @param request DeleteRegionInstanceTemplateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest, callback: google.cloud.compute.v1.RegionInstanceTemplates.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionInstanceTemplateRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionInstanceTemplateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstanceTemplate + */ + public get(request: google.cloud.compute.v1.IGetRegionInstanceTemplateRequest, callback: google.cloud.compute.v1.RegionInstanceTemplates.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionInstanceTemplateRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionInstanceTemplateRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionInstanceTemplateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest, callback: google.cloud.compute.v1.RegionInstanceTemplates.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionInstanceTemplateRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest): Promise; + + /** + * Calls List. + * @param request ListRegionInstanceTemplatesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstanceTemplateList + */ + public list(request: google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, callback: google.cloud.compute.v1.RegionInstanceTemplates.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionInstanceTemplatesRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionInstanceTemplatesRequest): Promise; + } + + namespace RegionInstanceTemplates { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceTemplates|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceTemplates|get}. + * @param error Error, if any + * @param [response] InstanceTemplate + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstanceTemplate) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceTemplates|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceTemplates|list}. + * @param error Error, if any + * @param [response] InstanceTemplateList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstanceTemplateList) => void; + } + /** Represents a RegionInstances */ class RegionInstances extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index c2a1845f43b..331e98e8865 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -16624,30 +16624,30 @@ return AggregatedListInstanceGroupsRequest; })(); - v1.AggregatedListInstancesRequest = (function() { + v1.AggregatedListInstanceTemplatesRequest = (function() { /** - * Properties of an AggregatedListInstancesRequest. + * Properties of an AggregatedListInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListInstancesRequest - * @property {string|null} [filter] AggregatedListInstancesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstancesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstancesRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstancesRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstancesRequest pageToken - * @property {string|null} [project] AggregatedListInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstancesRequest returnPartialSuccess + * @interface IAggregatedListInstanceTemplatesRequest + * @property {string|null} [filter] AggregatedListInstanceTemplatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstanceTemplatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstanceTemplatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstanceTemplatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstanceTemplatesRequest pageToken + * @property {string|null} [project] AggregatedListInstanceTemplatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceTemplatesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListInstancesRequest. + * Constructs a new AggregatedListInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListInstancesRequest. - * @implements IAggregatedListInstancesRequest + * @classdesc Represents an AggregatedListInstanceTemplatesRequest. + * @implements IAggregatedListInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set */ - function AggregatedListInstancesRequest(properties) { + function AggregatedListInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16655,152 +16655,152 @@ } /** - * AggregatedListInstancesRequest filter. + * AggregatedListInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.filter = null; + AggregatedListInstanceTemplatesRequest.prototype.filter = null; /** - * AggregatedListInstancesRequest includeAllScopes. + * AggregatedListInstanceTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.includeAllScopes = null; + AggregatedListInstanceTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstancesRequest maxResults. + * AggregatedListInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.maxResults = null; + AggregatedListInstanceTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListInstancesRequest orderBy. + * AggregatedListInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.orderBy = null; + AggregatedListInstanceTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListInstancesRequest pageToken. + * AggregatedListInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.pageToken = null; + AggregatedListInstanceTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListInstancesRequest project. + * AggregatedListInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.project = ""; + AggregatedListInstanceTemplatesRequest.prototype.project = ""; /** - * AggregatedListInstancesRequest returnPartialSuccess. + * AggregatedListInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceTemplatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListInstancesRequest _filter. + * AggregatedListInstanceTemplatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInstancesRequest _includeAllScopes. + * AggregatedListInstanceTemplatesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInstancesRequest _maxResults. + * AggregatedListInstanceTemplatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInstancesRequest _orderBy. + * AggregatedListInstanceTemplatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInstancesRequest _pageToken. + * AggregatedListInstanceTemplatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInstancesRequest _returnPartialSuccess. + * AggregatedListInstanceTemplatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstancesRequest instance using the specified properties. + * Creates a new AggregatedListInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest instance */ - AggregatedListInstancesRequest.create = function create(properties) { - return new AggregatedListInstancesRequest(properties); + AggregatedListInstanceTemplatesRequest.create = function create(properties) { + return new AggregatedListInstanceTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstancesRequest.encode = function encode(message, writer) { + AggregatedListInstanceTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -16821,33 +16821,33 @@ }; /** - * Encodes the specified AggregatedListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstancesRequest.decode = function decode(reader, length) { + AggregatedListInstanceTemplatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16888,30 +16888,30 @@ }; /** - * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstancesRequest message. + * Verifies an AggregatedListInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstancesRequest.verify = function verify(message) { + AggregatedListInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -16952,17 +16952,17 @@ }; /** - * Creates an AggregatedListInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest */ - AggregatedListInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstancesRequest) + AggregatedListInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListInstancesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -16981,15 +16981,15 @@ }; /** - * Creates a plain object from an AggregatedListInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstanceTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListInstancesRequest} message AggregatedListInstancesRequest + * @param {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstancesRequest.toObject = function toObject(message, options) { + AggregatedListInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -17031,58 +17031,58 @@ }; /** - * Converts this AggregatedListInstancesRequest to JSON. + * Converts this AggregatedListInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstancesRequest + * Gets the default type url for AggregatedListInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest"; }; - return AggregatedListInstancesRequest; + return AggregatedListInstanceTemplatesRequest; })(); - v1.AggregatedListInterconnectAttachmentsRequest = (function() { + v1.AggregatedListInstancesRequest = (function() { /** - * Properties of an AggregatedListInterconnectAttachmentsRequest. + * Properties of an AggregatedListInstancesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListInterconnectAttachmentsRequest - * @property {string|null} [filter] AggregatedListInterconnectAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInterconnectAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInterconnectAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListInterconnectAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListInterconnectAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListInterconnectAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInterconnectAttachmentsRequest returnPartialSuccess + * @interface IAggregatedListInstancesRequest + * @property {string|null} [filter] AggregatedListInstancesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstancesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstancesRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstancesRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstancesRequest pageToken + * @property {string|null} [project] AggregatedListInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstancesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListInterconnectAttachmentsRequest. + * Constructs a new AggregatedListInstancesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListInterconnectAttachmentsRequest. - * @implements IAggregatedListInterconnectAttachmentsRequest + * @classdesc Represents an AggregatedListInstancesRequest. + * @implements IAggregatedListInstancesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest=} [properties] Properties to set */ - function AggregatedListInterconnectAttachmentsRequest(properties) { + function AggregatedListInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17090,152 +17090,152 @@ } /** - * AggregatedListInterconnectAttachmentsRequest filter. + * AggregatedListInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.filter = null; + AggregatedListInstancesRequest.prototype.filter = null; /** - * AggregatedListInterconnectAttachmentsRequest includeAllScopes. + * AggregatedListInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInterconnectAttachmentsRequest maxResults. + * AggregatedListInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.maxResults = null; + AggregatedListInstancesRequest.prototype.maxResults = null; /** - * AggregatedListInterconnectAttachmentsRequest orderBy. + * AggregatedListInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.orderBy = null; + AggregatedListInstancesRequest.prototype.orderBy = null; /** - * AggregatedListInterconnectAttachmentsRequest pageToken. + * AggregatedListInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.pageToken = null; + AggregatedListInstancesRequest.prototype.pageToken = null; /** - * AggregatedListInterconnectAttachmentsRequest project. + * AggregatedListInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.project = ""; + AggregatedListInstancesRequest.prototype.project = ""; /** - * AggregatedListInterconnectAttachmentsRequest returnPartialSuccess. + * AggregatedListInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListInstancesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListInterconnectAttachmentsRequest _filter. + * AggregatedListInstancesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _includeAllScopes. + * AggregatedListInstancesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _maxResults. + * AggregatedListInstancesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _orderBy. + * AggregatedListInstancesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _pageToken. + * AggregatedListInstancesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _returnPartialSuccess. + * AggregatedListInstancesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInterconnectAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest instance */ - AggregatedListInterconnectAttachmentsRequest.create = function create(properties) { - return new AggregatedListInterconnectAttachmentsRequest(properties); + AggregatedListInstancesRequest.create = function create(properties) { + return new AggregatedListInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListInterconnectAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInterconnectAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListInstancesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -17256,33 +17256,33 @@ }; /** - * Encodes the specified AggregatedListInterconnectAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInterconnectAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInterconnectAttachmentsRequest.decode = function decode(reader, length) { + AggregatedListInstancesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17323,30 +17323,30 @@ }; /** - * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInterconnectAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInterconnectAttachmentsRequest message. + * Verifies an AggregatedListInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInterconnectAttachmentsRequest.verify = function verify(message) { + AggregatedListInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -17387,17 +17387,17 @@ }; /** - * Creates an AggregatedListInterconnectAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstancesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest */ - AggregatedListInterconnectAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest) + AggregatedListInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -17416,15 +17416,15 @@ }; /** - * Creates a plain object from an AggregatedListInterconnectAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstancesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListInstancesRequest} message AggregatedListInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInterconnectAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -17466,58 +17466,58 @@ }; /** - * Converts this AggregatedListInterconnectAttachmentsRequest to JSON. + * Converts this AggregatedListInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInterconnectAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInterconnectAttachmentsRequest + * Gets the default type url for AggregatedListInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInterconnectAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstancesRequest"; }; - return AggregatedListInterconnectAttachmentsRequest; + return AggregatedListInstancesRequest; })(); - v1.AggregatedListMachineTypesRequest = (function() { + v1.AggregatedListInterconnectAttachmentsRequest = (function() { /** - * Properties of an AggregatedListMachineTypesRequest. + * Properties of an AggregatedListInterconnectAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListMachineTypesRequest - * @property {string|null} [filter] AggregatedListMachineTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListMachineTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListMachineTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListMachineTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListMachineTypesRequest pageToken - * @property {string|null} [project] AggregatedListMachineTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListMachineTypesRequest returnPartialSuccess + * @interface IAggregatedListInterconnectAttachmentsRequest + * @property {string|null} [filter] AggregatedListInterconnectAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInterconnectAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInterconnectAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListInterconnectAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListInterconnectAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListInterconnectAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInterconnectAttachmentsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListMachineTypesRequest. + * Constructs a new AggregatedListInterconnectAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListMachineTypesRequest. - * @implements IAggregatedListMachineTypesRequest + * @classdesc Represents an AggregatedListInterconnectAttachmentsRequest. + * @implements IAggregatedListInterconnectAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListMachineTypesRequest(properties) { + function AggregatedListInterconnectAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17525,152 +17525,152 @@ } /** - * AggregatedListMachineTypesRequest filter. + * AggregatedListInterconnectAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.filter = null; + AggregatedListInterconnectAttachmentsRequest.prototype.filter = null; /** - * AggregatedListMachineTypesRequest includeAllScopes. + * AggregatedListInterconnectAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.includeAllScopes = null; + AggregatedListInterconnectAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListMachineTypesRequest maxResults. + * AggregatedListInterconnectAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.maxResults = null; + AggregatedListInterconnectAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListMachineTypesRequest orderBy. + * AggregatedListInterconnectAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.orderBy = null; + AggregatedListInterconnectAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListMachineTypesRequest pageToken. + * AggregatedListInterconnectAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.pageToken = null; + AggregatedListInterconnectAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListMachineTypesRequest project. + * AggregatedListInterconnectAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.project = ""; + AggregatedListInterconnectAttachmentsRequest.prototype.project = ""; /** - * AggregatedListMachineTypesRequest returnPartialSuccess. + * AggregatedListInterconnectAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListInterconnectAttachmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListMachineTypesRequest _filter. + * AggregatedListInterconnectAttachmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _includeAllScopes. + * AggregatedListInterconnectAttachmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _maxResults. + * AggregatedListInterconnectAttachmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _orderBy. + * AggregatedListInterconnectAttachmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _pageToken. + * AggregatedListInterconnectAttachmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _returnPartialSuccess. + * AggregatedListInterconnectAttachmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListMachineTypesRequest instance using the specified properties. + * Creates a new AggregatedListInterconnectAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest instance */ - AggregatedListMachineTypesRequest.create = function create(properties) { - return new AggregatedListMachineTypesRequest(properties); + AggregatedListInterconnectAttachmentsRequest.create = function create(properties) { + return new AggregatedListInterconnectAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListMachineTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInterconnectAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListMachineTypesRequest.encode = function encode(message, writer) { + AggregatedListInterconnectAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -17691,33 +17691,33 @@ }; /** - * Encodes the specified AggregatedListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListMachineTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInterconnectAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInterconnectAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListMachineTypesRequest.decode = function decode(reader, length) { + AggregatedListInterconnectAttachmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17758,30 +17758,30 @@ }; /** - * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListMachineTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInterconnectAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListMachineTypesRequest message. + * Verifies an AggregatedListInterconnectAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListMachineTypesRequest.verify = function verify(message) { + AggregatedListInterconnectAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -17822,17 +17822,17 @@ }; /** - * Creates an AggregatedListMachineTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInterconnectAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest */ - AggregatedListMachineTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest) + AggregatedListInterconnectAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -17851,15 +17851,15 @@ }; /** - * Creates a plain object from an AggregatedListMachineTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInterconnectAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest + * @param {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListMachineTypesRequest.toObject = function toObject(message, options) { + AggregatedListInterconnectAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -17901,58 +17901,58 @@ }; /** - * Converts this AggregatedListMachineTypesRequest to JSON. + * Converts this AggregatedListInterconnectAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListMachineTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListInterconnectAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListMachineTypesRequest + * Gets the default type url for AggregatedListInterconnectAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListMachineTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInterconnectAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListMachineTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest"; }; - return AggregatedListMachineTypesRequest; + return AggregatedListInterconnectAttachmentsRequest; })(); - v1.AggregatedListNetworkAttachmentsRequest = (function() { + v1.AggregatedListMachineTypesRequest = (function() { /** - * Properties of an AggregatedListNetworkAttachmentsRequest. + * Properties of an AggregatedListMachineTypesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNetworkAttachmentsRequest - * @property {string|null} [filter] AggregatedListNetworkAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListNetworkAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkAttachmentsRequest returnPartialSuccess + * @interface IAggregatedListMachineTypesRequest + * @property {string|null} [filter] AggregatedListMachineTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListMachineTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListMachineTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListMachineTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListMachineTypesRequest pageToken + * @property {string|null} [project] AggregatedListMachineTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListMachineTypesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNetworkAttachmentsRequest. + * Constructs a new AggregatedListMachineTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. - * @implements IAggregatedListNetworkAttachmentsRequest + * @classdesc Represents an AggregatedListMachineTypesRequest. + * @implements IAggregatedListMachineTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest=} [properties] Properties to set */ - function AggregatedListNetworkAttachmentsRequest(properties) { + function AggregatedListMachineTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17960,152 +17960,152 @@ } /** - * AggregatedListNetworkAttachmentsRequest filter. + * AggregatedListMachineTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.filter = null; + AggregatedListMachineTypesRequest.prototype.filter = null; /** - * AggregatedListNetworkAttachmentsRequest includeAllScopes. + * AggregatedListMachineTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListMachineTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkAttachmentsRequest maxResults. + * AggregatedListMachineTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; + AggregatedListMachineTypesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkAttachmentsRequest orderBy. + * AggregatedListMachineTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; + AggregatedListMachineTypesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkAttachmentsRequest pageToken. + * AggregatedListMachineTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; + AggregatedListMachineTypesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkAttachmentsRequest project. + * AggregatedListMachineTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.project = ""; + AggregatedListMachineTypesRequest.prototype.project = ""; /** - * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. + * AggregatedListMachineTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListMachineTypesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNetworkAttachmentsRequest _filter. + * AggregatedListMachineTypesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _includeAllScopes. + * AggregatedListMachineTypesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _maxResults. + * AggregatedListMachineTypesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _orderBy. + * AggregatedListMachineTypesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _pageToken. + * AggregatedListMachineTypesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _returnPartialSuccess. + * AggregatedListMachineTypesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListMachineTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest instance */ - AggregatedListNetworkAttachmentsRequest.create = function create(properties) { - return new AggregatedListNetworkAttachmentsRequest(properties); + AggregatedListMachineTypesRequest.create = function create(properties) { + return new AggregatedListMachineTypesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListMachineTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListMachineTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -18126,33 +18126,33 @@ }; /** - * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListMachineTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkAttachmentsRequest.decode = function decode(reader, length) { + AggregatedListMachineTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18193,30 +18193,30 @@ }; /** - * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListMachineTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkAttachmentsRequest message. + * Verifies an AggregatedListMachineTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkAttachmentsRequest.verify = function verify(message) { + AggregatedListMachineTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -18257,17 +18257,17 @@ }; /** - * Creates an AggregatedListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListMachineTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest */ - AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest) + AggregatedListMachineTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -18286,15 +18286,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListMachineTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListMachineTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -18336,58 +18336,58 @@ }; /** - * Converts this AggregatedListNetworkAttachmentsRequest to JSON. + * Converts this AggregatedListMachineTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListMachineTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkAttachmentsRequest + * Gets the default type url for AggregatedListMachineTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListMachineTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListMachineTypesRequest"; }; - return AggregatedListNetworkAttachmentsRequest; + return AggregatedListMachineTypesRequest; })(); - v1.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { + v1.AggregatedListNetworkAttachmentsRequest = (function() { /** - * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. + * Properties of an AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNetworkEdgeSecurityServicesRequest - * @property {string|null} [filter] AggregatedListNetworkEdgeSecurityServicesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkEdgeSecurityServicesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkEdgeSecurityServicesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkEdgeSecurityServicesRequest pageToken - * @property {string|null} [project] AggregatedListNetworkEdgeSecurityServicesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess + * @interface IAggregatedListNetworkAttachmentsRequest + * @property {string|null} [filter] AggregatedListNetworkAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkAttachmentsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. + * Constructs a new AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. - * @implements IAggregatedListNetworkEdgeSecurityServicesRequest + * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. + * @implements IAggregatedListNetworkAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { + function AggregatedListNetworkAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18395,152 +18395,152 @@ } /** - * AggregatedListNetworkEdgeSecurityServicesRequest filter. + * AggregatedListNetworkAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; + AggregatedListNetworkAttachmentsRequest.prototype.filter = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. + * AggregatedListNetworkAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; + AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. + * AggregatedListNetworkAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; + AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. + * AggregatedListNetworkAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; + AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. + * AggregatedListNetworkAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; + AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest project. + * AggregatedListNetworkAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; + AggregatedListNetworkAttachmentsRequest.prototype.project = ""; /** - * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. + * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNetworkEdgeSecurityServicesRequest _filter. + * AggregatedListNetworkAttachmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _includeAllScopes. + * AggregatedListNetworkAttachmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _maxResults. + * AggregatedListNetworkAttachmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _orderBy. + * AggregatedListNetworkAttachmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _pageToken. + * AggregatedListNetworkAttachmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _returnPartialSuccess. + * AggregatedListNetworkAttachmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. + * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { - return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); + AggregatedListNetworkAttachmentsRequest.create = function create(properties) { + return new AggregatedListNetworkAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encode = function encode(message, writer) { + AggregatedListNetworkAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -18561,33 +18561,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEdgeSecurityServicesRequest.decode = function decode(reader, length) { + AggregatedListNetworkAttachmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18628,30 +18628,30 @@ }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. + * Verifies an AggregatedListNetworkAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { + AggregatedListNetworkAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -18692,17 +18692,17 @@ }; /** - * Creates an AggregatedListNetworkEdgeSecurityServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest */ - AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest) + AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -18721,15 +18721,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { + AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -18771,58 +18771,58 @@ }; /** - * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. + * Converts this AggregatedListNetworkAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkEdgeSecurityServicesRequest + * Gets the default type url for AggregatedListNetworkAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest"; }; - return AggregatedListNetworkEdgeSecurityServicesRequest; + return AggregatedListNetworkAttachmentsRequest; })(); - v1.AggregatedListNetworkEndpointGroupsRequest = (function() { + v1.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { /** - * Properties of an AggregatedListNetworkEndpointGroupsRequest. + * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNetworkEndpointGroupsRequest - * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess + * @interface IAggregatedListNetworkEdgeSecurityServicesRequest + * @property {string|null} [filter] AggregatedListNetworkEdgeSecurityServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEdgeSecurityServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEdgeSecurityServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEdgeSecurityServicesRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEdgeSecurityServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNetworkEndpointGroupsRequest. + * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. - * @implements IAggregatedListNetworkEndpointGroupsRequest + * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. + * @implements IAggregatedListNetworkEdgeSecurityServicesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set */ - function AggregatedListNetworkEndpointGroupsRequest(properties) { + function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18830,152 +18830,152 @@ } /** - * AggregatedListNetworkEndpointGroupsRequest filter. + * AggregatedListNetworkEdgeSecurityServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; /** - * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. + * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEndpointGroupsRequest maxResults. + * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEndpointGroupsRequest orderBy. + * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEndpointGroupsRequest pageToken. + * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEndpointGroupsRequest project. + * AggregatedListNetworkEdgeSecurityServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; /** - * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. + * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNetworkEndpointGroupsRequest _filter. + * AggregatedListNetworkEdgeSecurityServicesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _includeAllScopes. + * AggregatedListNetworkEdgeSecurityServicesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _maxResults. + * AggregatedListNetworkEdgeSecurityServicesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _orderBy. + * AggregatedListNetworkEdgeSecurityServicesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _pageToken. + * AggregatedListNetworkEdgeSecurityServicesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _returnPartialSuccess. + * AggregatedListNetworkEdgeSecurityServicesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance */ - AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { - return new AggregatedListNetworkEndpointGroupsRequest(properties); + AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { + return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -18996,33 +18996,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEndpointGroupsRequest.decode = function decode(reader, length) { + AggregatedListNetworkEdgeSecurityServicesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19063,30 +19063,30 @@ }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEndpointGroupsRequest message. + * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { + AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -19127,17 +19127,17 @@ }; /** - * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEdgeSecurityServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest */ - AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest) + AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -19156,15 +19156,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19206,58 +19206,58 @@ }; /** - * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. + * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest + * Gets the default type url for AggregatedListNetworkEdgeSecurityServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest"; }; - return AggregatedListNetworkEndpointGroupsRequest; + return AggregatedListNetworkEdgeSecurityServicesRequest; })(); - v1.AggregatedListNodeGroupsRequest = (function() { + v1.AggregatedListNetworkEndpointGroupsRequest = (function() { /** - * Properties of an AggregatedListNodeGroupsRequest. + * Properties of an AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNodeGroupsRequest - * @property {string|null} [filter] AggregatedListNodeGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeGroupsRequest pageToken - * @property {string|null} [project] AggregatedListNodeGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeGroupsRequest returnPartialSuccess + * @interface IAggregatedListNetworkEndpointGroupsRequest + * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNodeGroupsRequest. + * Constructs a new AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeGroupsRequest. - * @implements IAggregatedListNodeGroupsRequest + * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. + * @implements IAggregatedListNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function AggregatedListNodeGroupsRequest(properties) { + function AggregatedListNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19265,152 +19265,152 @@ } /** - * AggregatedListNodeGroupsRequest filter. + * AggregatedListNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.filter = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; /** - * AggregatedListNodeGroupsRequest includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeGroupsRequest maxResults. + * AggregatedListNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNodeGroupsRequest orderBy. + * AggregatedListNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNodeGroupsRequest pageToken. + * AggregatedListNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNodeGroupsRequest project. + * AggregatedListNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.project = ""; + AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; /** - * AggregatedListNodeGroupsRequest returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNodeGroupsRequest _filter. + * AggregatedListNetworkEndpointGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _maxResults. + * AggregatedListNetworkEndpointGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _orderBy. + * AggregatedListNetworkEndpointGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _pageToken. + * AggregatedListNetworkEndpointGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance */ - AggregatedListNodeGroupsRequest.create = function create(properties) { - return new AggregatedListNodeGroupsRequest(properties); + AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { + return new AggregatedListNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -19431,33 +19431,33 @@ }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeGroupsRequest.decode = function decode(reader, length) { + AggregatedListNetworkEndpointGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19498,30 +19498,30 @@ }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeGroupsRequest message. + * Verifies an AggregatedListNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeGroupsRequest.verify = function verify(message) { + AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -19562,17 +19562,17 @@ }; /** - * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest */ - AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest) + AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -19591,15 +19591,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19641,58 +19641,58 @@ }; /** - * Converts this AggregatedListNodeGroupsRequest to JSON. + * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeGroupsRequest + * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest"; }; - return AggregatedListNodeGroupsRequest; + return AggregatedListNetworkEndpointGroupsRequest; })(); - v1.AggregatedListNodeTemplatesRequest = (function() { + v1.AggregatedListNodeGroupsRequest = (function() { /** - * Properties of an AggregatedListNodeTemplatesRequest. + * Properties of an AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNodeTemplatesRequest - * @property {string|null} [filter] AggregatedListNodeTemplatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeTemplatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeTemplatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeTemplatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeTemplatesRequest pageToken - * @property {string|null} [project] AggregatedListNodeTemplatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTemplatesRequest returnPartialSuccess + * @interface IAggregatedListNodeGroupsRequest + * @property {string|null} [filter] AggregatedListNodeGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNodeGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeGroupsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNodeTemplatesRequest. + * Constructs a new AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeTemplatesRequest. - * @implements IAggregatedListNodeTemplatesRequest + * @classdesc Represents an AggregatedListNodeGroupsRequest. + * @implements IAggregatedListNodeGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set */ - function AggregatedListNodeTemplatesRequest(properties) { + function AggregatedListNodeGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19700,152 +19700,152 @@ } /** - * AggregatedListNodeTemplatesRequest filter. + * AggregatedListNodeGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.filter = null; + AggregatedListNodeGroupsRequest.prototype.filter = null; /** - * AggregatedListNodeTemplatesRequest includeAllScopes. + * AggregatedListNodeGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; + AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTemplatesRequest maxResults. + * AggregatedListNodeGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.maxResults = null; + AggregatedListNodeGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNodeTemplatesRequest orderBy. + * AggregatedListNodeGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.orderBy = null; + AggregatedListNodeGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNodeTemplatesRequest pageToken. + * AggregatedListNodeGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.pageToken = null; + AggregatedListNodeGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNodeTemplatesRequest project. + * AggregatedListNodeGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.project = ""; + AggregatedListNodeGroupsRequest.prototype.project = ""; /** - * AggregatedListNodeTemplatesRequest returnPartialSuccess. + * AggregatedListNodeGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNodeTemplatesRequest _filter. + * AggregatedListNodeGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _includeAllScopes. + * AggregatedListNodeGroupsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _maxResults. + * AggregatedListNodeGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _orderBy. + * AggregatedListNodeGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _pageToken. + * AggregatedListNodeGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _returnPartialSuccess. + * AggregatedListNodeGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. + * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance */ - AggregatedListNodeTemplatesRequest.create = function create(properties) { - return new AggregatedListNodeTemplatesRequest(properties); + AggregatedListNodeGroupsRequest.create = function create(properties) { + return new AggregatedListNodeGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encode = function encode(message, writer) { + AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -19866,33 +19866,33 @@ }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTemplatesRequest.decode = function decode(reader, length) { + AggregatedListNodeGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19933,30 +19933,30 @@ }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTemplatesRequest message. + * Verifies an AggregatedListNodeGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeTemplatesRequest.verify = function verify(message) { + AggregatedListNodeGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -19997,17 +19997,17 @@ }; /** - * Creates an AggregatedListNodeTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest */ - AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest) + AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20026,15 +20026,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest + * @param {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { + AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20076,58 +20076,58 @@ }; /** - * Converts this AggregatedListNodeTemplatesRequest to JSON. + * Converts this AggregatedListNodeGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeTemplatesRequest + * Gets the default type url for AggregatedListNodeGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeGroupsRequest"; }; - return AggregatedListNodeTemplatesRequest; + return AggregatedListNodeGroupsRequest; })(); - v1.AggregatedListNodeTypesRequest = (function() { + v1.AggregatedListNodeTemplatesRequest = (function() { /** - * Properties of an AggregatedListNodeTypesRequest. + * Properties of an AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNodeTypesRequest - * @property {string|null} [filter] AggregatedListNodeTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeTypesRequest pageToken - * @property {string|null} [project] AggregatedListNodeTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTypesRequest returnPartialSuccess + * @interface IAggregatedListNodeTemplatesRequest + * @property {string|null} [filter] AggregatedListNodeTemplatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeTemplatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeTemplatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeTemplatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeTemplatesRequest pageToken + * @property {string|null} [project] AggregatedListNodeTemplatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTemplatesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNodeTypesRequest. + * Constructs a new AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeTypesRequest. - * @implements IAggregatedListNodeTypesRequest + * @classdesc Represents an AggregatedListNodeTemplatesRequest. + * @implements IAggregatedListNodeTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set */ - function AggregatedListNodeTypesRequest(properties) { + function AggregatedListNodeTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20135,152 +20135,152 @@ } /** - * AggregatedListNodeTypesRequest filter. + * AggregatedListNodeTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.filter = null; + AggregatedListNodeTemplatesRequest.prototype.filter = null; /** - * AggregatedListNodeTypesRequest includeAllScopes. + * AggregatedListNodeTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; + AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTypesRequest maxResults. + * AggregatedListNodeTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.maxResults = null; + AggregatedListNodeTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListNodeTypesRequest orderBy. + * AggregatedListNodeTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.orderBy = null; + AggregatedListNodeTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListNodeTypesRequest pageToken. + * AggregatedListNodeTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.pageToken = null; + AggregatedListNodeTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListNodeTypesRequest project. + * AggregatedListNodeTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.project = ""; + AggregatedListNodeTemplatesRequest.prototype.project = ""; /** - * AggregatedListNodeTypesRequest returnPartialSuccess. + * AggregatedListNodeTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNodeTypesRequest _filter. + * AggregatedListNodeTemplatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _includeAllScopes. + * AggregatedListNodeTemplatesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _maxResults. + * AggregatedListNodeTemplatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _orderBy. + * AggregatedListNodeTemplatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _pageToken. + * AggregatedListNodeTemplatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _returnPartialSuccess. + * AggregatedListNodeTemplatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. + * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance */ - AggregatedListNodeTypesRequest.create = function create(properties) { - return new AggregatedListNodeTypesRequest(properties); + AggregatedListNodeTemplatesRequest.create = function create(properties) { + return new AggregatedListNodeTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encode = function encode(message, writer) { + AggregatedListNodeTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -20301,33 +20301,33 @@ }; /** - * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTypesRequest.decode = function decode(reader, length) { + AggregatedListNodeTemplatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20368,30 +20368,30 @@ }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTypesRequest message. + * Verifies an AggregatedListNodeTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeTypesRequest.verify = function verify(message) { + AggregatedListNodeTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -20432,17 +20432,17 @@ }; /** - * Creates an AggregatedListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest */ - AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest) + AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20461,15 +20461,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest + * @param {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { + AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20511,58 +20511,58 @@ }; /** - * Converts this AggregatedListNodeTypesRequest to JSON. + * Converts this AggregatedListNodeTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeTypesRequest + * Gets the default type url for AggregatedListNodeTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTemplatesRequest"; }; - return AggregatedListNodeTypesRequest; + return AggregatedListNodeTemplatesRequest; })(); - v1.AggregatedListPacketMirroringsRequest = (function() { + v1.AggregatedListNodeTypesRequest = (function() { /** - * Properties of an AggregatedListPacketMirroringsRequest. + * Properties of an AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListPacketMirroringsRequest - * @property {string|null} [filter] AggregatedListPacketMirroringsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListPacketMirroringsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListPacketMirroringsRequest maxResults - * @property {string|null} [orderBy] AggregatedListPacketMirroringsRequest orderBy - * @property {string|null} [pageToken] AggregatedListPacketMirroringsRequest pageToken - * @property {string|null} [project] AggregatedListPacketMirroringsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListPacketMirroringsRequest returnPartialSuccess + * @interface IAggregatedListNodeTypesRequest + * @property {string|null} [filter] AggregatedListNodeTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeTypesRequest pageToken + * @property {string|null} [project] AggregatedListNodeTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTypesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListPacketMirroringsRequest. + * Constructs a new AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListPacketMirroringsRequest. - * @implements IAggregatedListPacketMirroringsRequest + * @classdesc Represents an AggregatedListNodeTypesRequest. + * @implements IAggregatedListNodeTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set */ - function AggregatedListPacketMirroringsRequest(properties) { + function AggregatedListNodeTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20570,152 +20570,152 @@ } /** - * AggregatedListPacketMirroringsRequest filter. + * AggregatedListNodeTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.filter = null; + AggregatedListNodeTypesRequest.prototype.filter = null; /** - * AggregatedListPacketMirroringsRequest includeAllScopes. + * AggregatedListNodeTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; + AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListPacketMirroringsRequest maxResults. + * AggregatedListNodeTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.maxResults = null; + AggregatedListNodeTypesRequest.prototype.maxResults = null; /** - * AggregatedListPacketMirroringsRequest orderBy. + * AggregatedListNodeTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.orderBy = null; + AggregatedListNodeTypesRequest.prototype.orderBy = null; /** - * AggregatedListPacketMirroringsRequest pageToken. + * AggregatedListNodeTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.pageToken = null; + AggregatedListNodeTypesRequest.prototype.pageToken = null; /** - * AggregatedListPacketMirroringsRequest project. + * AggregatedListNodeTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.project = ""; + AggregatedListNodeTypesRequest.prototype.project = ""; /** - * AggregatedListPacketMirroringsRequest returnPartialSuccess. + * AggregatedListNodeTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListPacketMirroringsRequest _filter. + * AggregatedListNodeTypesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _includeAllScopes. + * AggregatedListNodeTypesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _maxResults. + * AggregatedListNodeTypesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _orderBy. + * AggregatedListNodeTypesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _pageToken. + * AggregatedListNodeTypesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _returnPartialSuccess. + * AggregatedListNodeTypesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. + * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance */ - AggregatedListPacketMirroringsRequest.create = function create(properties) { - return new AggregatedListPacketMirroringsRequest(properties); + AggregatedListNodeTypesRequest.create = function create(properties) { + return new AggregatedListNodeTypesRequest(properties); }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encode = function encode(message, writer) { + AggregatedListNodeTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -20736,33 +20736,33 @@ }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPacketMirroringsRequest.decode = function decode(reader, length) { + AggregatedListNodeTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20803,30 +20803,30 @@ }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPacketMirroringsRequest message. + * Verifies an AggregatedListNodeTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListPacketMirroringsRequest.verify = function verify(message) { + AggregatedListNodeTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -20867,17 +20867,17 @@ }; /** - * Creates an AggregatedListPacketMirroringsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest */ - AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest) + AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20896,15 +20896,15 @@ }; /** - * Creates a plain object from an AggregatedListPacketMirroringsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest + * @param {google.cloud.compute.v1.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { + AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20946,58 +20946,58 @@ }; /** - * Converts this AggregatedListPacketMirroringsRequest to JSON. + * Converts this AggregatedListNodeTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListPacketMirroringsRequest + * Gets the default type url for AggregatedListNodeTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPacketMirroringsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTypesRequest"; }; - return AggregatedListPacketMirroringsRequest; + return AggregatedListNodeTypesRequest; })(); - v1.AggregatedListPublicDelegatedPrefixesRequest = (function() { + v1.AggregatedListPacketMirroringsRequest = (function() { /** - * Properties of an AggregatedListPublicDelegatedPrefixesRequest. + * Properties of an AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListPublicDelegatedPrefixesRequest - * @property {string|null} [filter] AggregatedListPublicDelegatedPrefixesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListPublicDelegatedPrefixesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListPublicDelegatedPrefixesRequest maxResults - * @property {string|null} [orderBy] AggregatedListPublicDelegatedPrefixesRequest orderBy - * @property {string|null} [pageToken] AggregatedListPublicDelegatedPrefixesRequest pageToken - * @property {string|null} [project] AggregatedListPublicDelegatedPrefixesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess + * @interface IAggregatedListPacketMirroringsRequest + * @property {string|null} [filter] AggregatedListPacketMirroringsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListPacketMirroringsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListPacketMirroringsRequest maxResults + * @property {string|null} [orderBy] AggregatedListPacketMirroringsRequest orderBy + * @property {string|null} [pageToken] AggregatedListPacketMirroringsRequest pageToken + * @property {string|null} [project] AggregatedListPacketMirroringsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListPacketMirroringsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. + * Constructs a new AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. - * @implements IAggregatedListPublicDelegatedPrefixesRequest + * @classdesc Represents an AggregatedListPacketMirroringsRequest. + * @implements IAggregatedListPacketMirroringsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set */ - function AggregatedListPublicDelegatedPrefixesRequest(properties) { + function AggregatedListPacketMirroringsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21005,152 +21005,152 @@ } /** - * AggregatedListPublicDelegatedPrefixesRequest filter. + * AggregatedListPacketMirroringsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; + AggregatedListPacketMirroringsRequest.prototype.filter = null; /** - * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. + * AggregatedListPacketMirroringsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; + AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; /** - * AggregatedListPublicDelegatedPrefixesRequest maxResults. + * AggregatedListPacketMirroringsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; + AggregatedListPacketMirroringsRequest.prototype.maxResults = null; /** - * AggregatedListPublicDelegatedPrefixesRequest orderBy. + * AggregatedListPacketMirroringsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; + AggregatedListPacketMirroringsRequest.prototype.orderBy = null; /** - * AggregatedListPublicDelegatedPrefixesRequest pageToken. + * AggregatedListPacketMirroringsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; + AggregatedListPacketMirroringsRequest.prototype.pageToken = null; /** - * AggregatedListPublicDelegatedPrefixesRequest project. + * AggregatedListPacketMirroringsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; + AggregatedListPacketMirroringsRequest.prototype.project = ""; /** - * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. + * AggregatedListPacketMirroringsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; + AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListPublicDelegatedPrefixesRequest _filter. + * AggregatedListPacketMirroringsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _includeAllScopes. + * AggregatedListPacketMirroringsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _maxResults. + * AggregatedListPacketMirroringsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _orderBy. + * AggregatedListPacketMirroringsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _pageToken. + * AggregatedListPacketMirroringsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _returnPartialSuccess. + * AggregatedListPacketMirroringsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. + * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance */ - AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { - return new AggregatedListPublicDelegatedPrefixesRequest(properties); + AggregatedListPacketMirroringsRequest.create = function create(properties) { + return new AggregatedListPacketMirroringsRequest(properties); }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { + AggregatedListPacketMirroringsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -21171,33 +21171,33 @@ }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPublicDelegatedPrefixesRequest.decode = function decode(reader, length) { + AggregatedListPacketMirroringsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21238,30 +21238,30 @@ }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. + * Verifies an AggregatedListPacketMirroringsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { + AggregatedListPacketMirroringsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -21302,17 +21302,17 @@ }; /** - * Creates an AggregatedListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListPacketMirroringsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest */ - AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest) + AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -21331,15 +21331,15 @@ }; /** - * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListPacketMirroringsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest + * @param {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21381,58 +21381,58 @@ }; /** - * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. + * Converts this AggregatedListPacketMirroringsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListPublicDelegatedPrefixesRequest + * Gets the default type url for AggregatedListPacketMirroringsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPacketMirroringsRequest"; }; - return AggregatedListPublicDelegatedPrefixesRequest; + return AggregatedListPacketMirroringsRequest; })(); - v1.AggregatedListRegionCommitmentsRequest = (function() { + v1.AggregatedListPublicDelegatedPrefixesRequest = (function() { /** - * Properties of an AggregatedListRegionCommitmentsRequest. + * Properties of an AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListRegionCommitmentsRequest - * @property {string|null} [filter] AggregatedListRegionCommitmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionCommitmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionCommitmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionCommitmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionCommitmentsRequest pageToken - * @property {string|null} [project] AggregatedListRegionCommitmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCommitmentsRequest returnPartialSuccess + * @interface IAggregatedListPublicDelegatedPrefixesRequest + * @property {string|null} [filter] AggregatedListPublicDelegatedPrefixesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListPublicDelegatedPrefixesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListPublicDelegatedPrefixesRequest maxResults + * @property {string|null} [orderBy] AggregatedListPublicDelegatedPrefixesRequest orderBy + * @property {string|null} [pageToken] AggregatedListPublicDelegatedPrefixesRequest pageToken + * @property {string|null} [project] AggregatedListPublicDelegatedPrefixesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListRegionCommitmentsRequest. + * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionCommitmentsRequest. - * @implements IAggregatedListRegionCommitmentsRequest + * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. + * @implements IAggregatedListPublicDelegatedPrefixesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set */ - function AggregatedListRegionCommitmentsRequest(properties) { + function AggregatedListPublicDelegatedPrefixesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21440,152 +21440,152 @@ } /** - * AggregatedListRegionCommitmentsRequest filter. + * AggregatedListPublicDelegatedPrefixesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.filter = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; /** - * AggregatedListRegionCommitmentsRequest includeAllScopes. + * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionCommitmentsRequest maxResults. + * AggregatedListPublicDelegatedPrefixesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; /** - * AggregatedListRegionCommitmentsRequest orderBy. + * AggregatedListPublicDelegatedPrefixesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; /** - * AggregatedListRegionCommitmentsRequest pageToken. + * AggregatedListPublicDelegatedPrefixesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; /** - * AggregatedListRegionCommitmentsRequest project. + * AggregatedListPublicDelegatedPrefixesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.project = ""; + AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; /** - * AggregatedListRegionCommitmentsRequest returnPartialSuccess. + * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListRegionCommitmentsRequest _filter. + * AggregatedListPublicDelegatedPrefixesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _includeAllScopes. + * AggregatedListPublicDelegatedPrefixesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _maxResults. + * AggregatedListPublicDelegatedPrefixesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _orderBy. + * AggregatedListPublicDelegatedPrefixesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _pageToken. + * AggregatedListPublicDelegatedPrefixesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _returnPartialSuccess. + * AggregatedListPublicDelegatedPrefixesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. + * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance */ - AggregatedListRegionCommitmentsRequest.create = function create(properties) { - return new AggregatedListRegionCommitmentsRequest(properties); + AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { + return new AggregatedListPublicDelegatedPrefixesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.encode = function encode(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -21606,33 +21606,33 @@ }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCommitmentsRequest.decode = function decode(reader, length) { + AggregatedListPublicDelegatedPrefixesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21673,30 +21673,30 @@ }; /** - * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionCommitmentsRequest message. + * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionCommitmentsRequest.verify = function verify(message) { + AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -21737,17 +21737,17 @@ }; /** - * Creates an AggregatedListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest */ - AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest) + AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -21766,15 +21766,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest + * @param {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { + AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21816,58 +21816,58 @@ }; /** - * Converts this AggregatedListRegionCommitmentsRequest to JSON. + * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionCommitmentsRequest + * Gets the default type url for AggregatedListPublicDelegatedPrefixesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest"; }; - return AggregatedListRegionCommitmentsRequest; + return AggregatedListPublicDelegatedPrefixesRequest; })(); - v1.AggregatedListReservationsRequest = (function() { + v1.AggregatedListRegionCommitmentsRequest = (function() { /** - * Properties of an AggregatedListReservationsRequest. + * Properties of an AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListReservationsRequest - * @property {string|null} [filter] AggregatedListReservationsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListReservationsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListReservationsRequest maxResults - * @property {string|null} [orderBy] AggregatedListReservationsRequest orderBy - * @property {string|null} [pageToken] AggregatedListReservationsRequest pageToken - * @property {string|null} [project] AggregatedListReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListReservationsRequest returnPartialSuccess + * @interface IAggregatedListRegionCommitmentsRequest + * @property {string|null} [filter] AggregatedListRegionCommitmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionCommitmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionCommitmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionCommitmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionCommitmentsRequest pageToken + * @property {string|null} [project] AggregatedListRegionCommitmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCommitmentsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListReservationsRequest. + * Constructs a new AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListReservationsRequest. - * @implements IAggregatedListReservationsRequest + * @classdesc Represents an AggregatedListRegionCommitmentsRequest. + * @implements IAggregatedListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set */ - function AggregatedListReservationsRequest(properties) { + function AggregatedListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21875,152 +21875,152 @@ } /** - * AggregatedListReservationsRequest filter. + * AggregatedListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.filter = null; + AggregatedListRegionCommitmentsRequest.prototype.filter = null; /** - * AggregatedListReservationsRequest includeAllScopes. + * AggregatedListRegionCommitmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.includeAllScopes = null; + AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListReservationsRequest maxResults. + * AggregatedListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.maxResults = null; + AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; /** - * AggregatedListReservationsRequest orderBy. + * AggregatedListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.orderBy = null; + AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; /** - * AggregatedListReservationsRequest pageToken. + * AggregatedListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.pageToken = null; + AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; /** - * AggregatedListReservationsRequest project. + * AggregatedListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.project = ""; + AggregatedListRegionCommitmentsRequest.prototype.project = ""; /** - * AggregatedListReservationsRequest returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListReservationsRequest _filter. + * AggregatedListRegionCommitmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _includeAllScopes. + * AggregatedListRegionCommitmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _maxResults. + * AggregatedListRegionCommitmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _orderBy. + * AggregatedListRegionCommitmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _pageToken. + * AggregatedListRegionCommitmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListReservationsRequest instance using the specified properties. + * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance */ - AggregatedListReservationsRequest.create = function create(properties) { - return new AggregatedListReservationsRequest(properties); + AggregatedListRegionCommitmentsRequest.create = function create(properties) { + return new AggregatedListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encode = function encode(message, writer) { + AggregatedListRegionCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -22041,33 +22041,33 @@ }; /** - * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListReservationsRequest.decode = function decode(reader, length) { + AggregatedListRegionCommitmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22108,30 +22108,30 @@ }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListReservationsRequest message. + * Verifies an AggregatedListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListReservationsRequest.verify = function verify(message) { + AggregatedListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -22172,17 +22172,17 @@ }; /** - * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest */ - AggregatedListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) + AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -22201,15 +22201,15 @@ }; /** - * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest + * @param {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListReservationsRequest.toObject = function toObject(message, options) { + AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -22251,58 +22251,58 @@ }; /** - * Converts this AggregatedListReservationsRequest to JSON. + * Converts this AggregatedListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListReservationsRequest + * Gets the default type url for AggregatedListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest"; }; - return AggregatedListReservationsRequest; + return AggregatedListRegionCommitmentsRequest; })(); - v1.AggregatedListResourcePoliciesRequest = (function() { + v1.AggregatedListReservationsRequest = (function() { /** - * Properties of an AggregatedListResourcePoliciesRequest. + * Properties of an AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListResourcePoliciesRequest - * @property {string|null} [filter] AggregatedListResourcePoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListResourcePoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListResourcePoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListResourcePoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListResourcePoliciesRequest pageToken - * @property {string|null} [project] AggregatedListResourcePoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListResourcePoliciesRequest returnPartialSuccess + * @interface IAggregatedListReservationsRequest + * @property {string|null} [filter] AggregatedListReservationsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListReservationsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListReservationsRequest maxResults + * @property {string|null} [orderBy] AggregatedListReservationsRequest orderBy + * @property {string|null} [pageToken] AggregatedListReservationsRequest pageToken + * @property {string|null} [project] AggregatedListReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListReservationsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListResourcePoliciesRequest. + * Constructs a new AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListResourcePoliciesRequest. - * @implements IAggregatedListResourcePoliciesRequest + * @classdesc Represents an AggregatedListReservationsRequest. + * @implements IAggregatedListReservationsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set */ - function AggregatedListResourcePoliciesRequest(properties) { + function AggregatedListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22310,152 +22310,152 @@ } /** - * AggregatedListResourcePoliciesRequest filter. + * AggregatedListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.filter = null; + AggregatedListReservationsRequest.prototype.filter = null; /** - * AggregatedListResourcePoliciesRequest includeAllScopes. + * AggregatedListReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; + AggregatedListReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListResourcePoliciesRequest maxResults. + * AggregatedListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.maxResults = null; + AggregatedListReservationsRequest.prototype.maxResults = null; /** - * AggregatedListResourcePoliciesRequest orderBy. + * AggregatedListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.orderBy = null; + AggregatedListReservationsRequest.prototype.orderBy = null; /** - * AggregatedListResourcePoliciesRequest pageToken. + * AggregatedListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.pageToken = null; + AggregatedListReservationsRequest.prototype.pageToken = null; /** - * AggregatedListResourcePoliciesRequest project. + * AggregatedListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.project = ""; + AggregatedListReservationsRequest.prototype.project = ""; /** - * AggregatedListResourcePoliciesRequest returnPartialSuccess. + * AggregatedListReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListResourcePoliciesRequest _filter. + * AggregatedListReservationsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _includeAllScopes. + * AggregatedListReservationsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _maxResults. + * AggregatedListReservationsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _orderBy. + * AggregatedListReservationsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _pageToken. + * AggregatedListReservationsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _returnPartialSuccess. + * AggregatedListReservationsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. + * Creates a new AggregatedListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance */ - AggregatedListResourcePoliciesRequest.create = function create(properties) { - return new AggregatedListResourcePoliciesRequest(properties); + AggregatedListReservationsRequest.create = function create(properties) { + return new AggregatedListReservationsRequest(properties); }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { + AggregatedListReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -22476,33 +22476,33 @@ }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListResourcePoliciesRequest.decode = function decode(reader, length) { + AggregatedListReservationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22543,30 +22543,30 @@ }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListResourcePoliciesRequest message. + * Verifies an AggregatedListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListResourcePoliciesRequest.verify = function verify(message) { + AggregatedListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -22607,17 +22607,17 @@ }; /** - * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest */ - AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) + AggregatedListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -22636,15 +22636,15 @@ }; /** - * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { + AggregatedListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -22686,58 +22686,58 @@ }; /** - * Converts this AggregatedListResourcePoliciesRequest to JSON. + * Converts this AggregatedListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListResourcePoliciesRequest + * Gets the default type url for AggregatedListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; }; - return AggregatedListResourcePoliciesRequest; + return AggregatedListReservationsRequest; })(); - v1.AggregatedListRoutersRequest = (function() { + v1.AggregatedListResourcePoliciesRequest = (function() { /** - * Properties of an AggregatedListRoutersRequest. + * Properties of an AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListRoutersRequest - * @property {string|null} [filter] AggregatedListRoutersRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRoutersRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRoutersRequest maxResults - * @property {string|null} [orderBy] AggregatedListRoutersRequest orderBy - * @property {string|null} [pageToken] AggregatedListRoutersRequest pageToken - * @property {string|null} [project] AggregatedListRoutersRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRoutersRequest returnPartialSuccess + * @interface IAggregatedListResourcePoliciesRequest + * @property {string|null} [filter] AggregatedListResourcePoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListResourcePoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListResourcePoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListResourcePoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListResourcePoliciesRequest pageToken + * @property {string|null} [project] AggregatedListResourcePoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListResourcePoliciesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListRoutersRequest. + * Constructs a new AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRoutersRequest. - * @implements IAggregatedListRoutersRequest + * @classdesc Represents an AggregatedListResourcePoliciesRequest. + * @implements IAggregatedListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set */ - function AggregatedListRoutersRequest(properties) { + function AggregatedListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22745,152 +22745,152 @@ } /** - * AggregatedListRoutersRequest filter. + * AggregatedListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.filter = null; + AggregatedListResourcePoliciesRequest.prototype.filter = null; /** - * AggregatedListRoutersRequest includeAllScopes. + * AggregatedListResourcePoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.includeAllScopes = null; + AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRoutersRequest maxResults. + * AggregatedListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.maxResults = null; + AggregatedListResourcePoliciesRequest.prototype.maxResults = null; /** - * AggregatedListRoutersRequest orderBy. + * AggregatedListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.orderBy = null; + AggregatedListResourcePoliciesRequest.prototype.orderBy = null; /** - * AggregatedListRoutersRequest pageToken. + * AggregatedListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.pageToken = null; + AggregatedListResourcePoliciesRequest.prototype.pageToken = null; /** - * AggregatedListRoutersRequest project. + * AggregatedListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.project = ""; + AggregatedListResourcePoliciesRequest.prototype.project = ""; /** - * AggregatedListRoutersRequest returnPartialSuccess. + * AggregatedListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; + AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListRoutersRequest _filter. + * AggregatedListResourcePoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _includeAllScopes. + * AggregatedListResourcePoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _maxResults. + * AggregatedListResourcePoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _orderBy. + * AggregatedListResourcePoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _pageToken. + * AggregatedListResourcePoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _returnPartialSuccess. + * AggregatedListResourcePoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRoutersRequest instance using the specified properties. + * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance */ - AggregatedListRoutersRequest.create = function create(properties) { - return new AggregatedListRoutersRequest(properties); + AggregatedListResourcePoliciesRequest.create = function create(properties) { + return new AggregatedListResourcePoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encode = function encode(message, writer) { + AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -22911,33 +22911,33 @@ }; /** - * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRoutersRequest.decode = function decode(reader, length) { + AggregatedListResourcePoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22978,30 +22978,30 @@ }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRoutersRequest message. + * Verifies an AggregatedListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRoutersRequest.verify = function verify(message) { + AggregatedListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -23042,17 +23042,17 @@ }; /** - * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest */ - AggregatedListRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) + AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -23071,15 +23071,15 @@ }; /** - * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest + * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRoutersRequest.toObject = function toObject(message, options) { + AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23121,58 +23121,58 @@ }; /** - * Converts this AggregatedListRoutersRequest to JSON. + * Converts this AggregatedListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { + AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRoutersRequest + * Gets the default type url for AggregatedListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; }; - return AggregatedListRoutersRequest; + return AggregatedListResourcePoliciesRequest; })(); - v1.AggregatedListSecurityPoliciesRequest = (function() { + v1.AggregatedListRoutersRequest = (function() { /** - * Properties of an AggregatedListSecurityPoliciesRequest. + * Properties of an AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSecurityPoliciesRequest - * @property {string|null} [filter] AggregatedListSecurityPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSecurityPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSecurityPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListSecurityPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSecurityPoliciesRequest returnPartialSuccess + * @interface IAggregatedListRoutersRequest + * @property {string|null} [filter] AggregatedListRoutersRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRoutersRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRoutersRequest maxResults + * @property {string|null} [orderBy] AggregatedListRoutersRequest orderBy + * @property {string|null} [pageToken] AggregatedListRoutersRequest pageToken + * @property {string|null} [project] AggregatedListRoutersRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRoutersRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListSecurityPoliciesRequest. + * Constructs a new AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSecurityPoliciesRequest. - * @implements IAggregatedListSecurityPoliciesRequest + * @classdesc Represents an AggregatedListRoutersRequest. + * @implements IAggregatedListRoutersRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set */ - function AggregatedListSecurityPoliciesRequest(properties) { + function AggregatedListRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23180,152 +23180,152 @@ } /** - * AggregatedListSecurityPoliciesRequest filter. + * AggregatedListRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.filter = null; + AggregatedListRoutersRequest.prototype.filter = null; /** - * AggregatedListSecurityPoliciesRequest includeAllScopes. + * AggregatedListRoutersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRoutersRequest.prototype.includeAllScopes = null; /** - * AggregatedListSecurityPoliciesRequest maxResults. + * AggregatedListRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; + AggregatedListRoutersRequest.prototype.maxResults = null; /** - * AggregatedListSecurityPoliciesRequest orderBy. + * AggregatedListRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; + AggregatedListRoutersRequest.prototype.orderBy = null; /** - * AggregatedListSecurityPoliciesRequest pageToken. + * AggregatedListRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; + AggregatedListRoutersRequest.prototype.pageToken = null; /** - * AggregatedListSecurityPoliciesRequest project. + * AggregatedListRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.project = ""; + AggregatedListRoutersRequest.prototype.project = ""; /** - * AggregatedListSecurityPoliciesRequest returnPartialSuccess. + * AggregatedListRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSecurityPoliciesRequest _filter. + * AggregatedListRoutersRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _includeAllScopes. + * AggregatedListRoutersRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _maxResults. + * AggregatedListRoutersRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _orderBy. + * AggregatedListRoutersRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _pageToken. + * AggregatedListRoutersRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _returnPartialSuccess. + * AggregatedListRoutersRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance */ - AggregatedListSecurityPoliciesRequest.create = function create(properties) { - return new AggregatedListSecurityPoliciesRequest(properties); + AggregatedListRoutersRequest.create = function create(properties) { + return new AggregatedListRoutersRequest(properties); }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRoutersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -23346,33 +23346,33 @@ }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSecurityPoliciesRequest.decode = function decode(reader, length) { + AggregatedListRoutersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23413,30 +23413,30 @@ }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSecurityPoliciesRequest message. + * Verifies an AggregatedListRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSecurityPoliciesRequest.verify = function verify(message) { + AggregatedListRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -23477,17 +23477,17 @@ }; /** - * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest */ - AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) + AggregatedListRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -23506,15 +23506,15 @@ }; /** - * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23556,58 +23556,58 @@ }; /** - * Converts this AggregatedListSecurityPoliciesRequest to JSON. + * Converts this AggregatedListRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSecurityPoliciesRequest + * Gets the default type url for AggregatedListRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; }; - return AggregatedListSecurityPoliciesRequest; + return AggregatedListRoutersRequest; })(); - v1.AggregatedListServiceAttachmentsRequest = (function() { + v1.AggregatedListSecurityPoliciesRequest = (function() { /** - * Properties of an AggregatedListServiceAttachmentsRequest. + * Properties of an AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListServiceAttachmentsRequest - * @property {string|null} [filter] AggregatedListServiceAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListServiceAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListServiceAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListServiceAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListServiceAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListServiceAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListServiceAttachmentsRequest returnPartialSuccess + * @interface IAggregatedListSecurityPoliciesRequest + * @property {string|null} [filter] AggregatedListSecurityPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSecurityPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSecurityPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListSecurityPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSecurityPoliciesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListServiceAttachmentsRequest. + * Constructs a new AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListServiceAttachmentsRequest. - * @implements IAggregatedListServiceAttachmentsRequest + * @classdesc Represents an AggregatedListSecurityPoliciesRequest. + * @implements IAggregatedListSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set */ - function AggregatedListServiceAttachmentsRequest(properties) { + function AggregatedListSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23615,152 +23615,152 @@ } /** - * AggregatedListServiceAttachmentsRequest filter. + * AggregatedListSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.filter = null; + AggregatedListSecurityPoliciesRequest.prototype.filter = null; /** - * AggregatedListServiceAttachmentsRequest includeAllScopes. + * AggregatedListSecurityPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListServiceAttachmentsRequest maxResults. + * AggregatedListSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; + AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListServiceAttachmentsRequest orderBy. + * AggregatedListSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; + AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListServiceAttachmentsRequest pageToken. + * AggregatedListSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; + AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListServiceAttachmentsRequest project. + * AggregatedListSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.project = ""; + AggregatedListSecurityPoliciesRequest.prototype.project = ""; /** - * AggregatedListServiceAttachmentsRequest returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListServiceAttachmentsRequest _filter. + * AggregatedListSecurityPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _includeAllScopes. + * AggregatedListSecurityPoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _maxResults. + * AggregatedListSecurityPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _orderBy. + * AggregatedListSecurityPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _pageToken. + * AggregatedListSecurityPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance */ - AggregatedListServiceAttachmentsRequest.create = function create(properties) { - return new AggregatedListServiceAttachmentsRequest(properties); + AggregatedListSecurityPoliciesRequest.create = function create(properties) { + return new AggregatedListSecurityPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -23781,33 +23781,33 @@ }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListServiceAttachmentsRequest.decode = function decode(reader, length) { + AggregatedListSecurityPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23848,30 +23848,30 @@ }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListServiceAttachmentsRequest message. + * Verifies an AggregatedListSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListServiceAttachmentsRequest.verify = function verify(message) { + AggregatedListSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -23912,17 +23912,17 @@ }; /** - * Creates an AggregatedListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest */ - AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) + AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -23941,15 +23941,15 @@ }; /** - * Creates a plain object from an AggregatedListServiceAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23991,58 +23991,58 @@ }; /** - * Converts this AggregatedListServiceAttachmentsRequest to JSON. + * Converts this AggregatedListSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListServiceAttachmentsRequest + * Gets the default type url for AggregatedListSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; }; - return AggregatedListServiceAttachmentsRequest; + return AggregatedListSecurityPoliciesRequest; })(); - v1.AggregatedListSslCertificatesRequest = (function() { + v1.AggregatedListServiceAttachmentsRequest = (function() { /** - * Properties of an AggregatedListSslCertificatesRequest. + * Properties of an AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSslCertificatesRequest - * @property {string|null} [filter] AggregatedListSslCertificatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSslCertificatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSslCertificatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSslCertificatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSslCertificatesRequest pageToken - * @property {string|null} [project] AggregatedListSslCertificatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSslCertificatesRequest returnPartialSuccess + * @interface IAggregatedListServiceAttachmentsRequest + * @property {string|null} [filter] AggregatedListServiceAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListServiceAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListServiceAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListServiceAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListServiceAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListServiceAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListServiceAttachmentsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListSslCertificatesRequest. + * Constructs a new AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslCertificatesRequest. - * @implements IAggregatedListSslCertificatesRequest + * @classdesc Represents an AggregatedListServiceAttachmentsRequest. + * @implements IAggregatedListServiceAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListSslCertificatesRequest(properties) { + function AggregatedListServiceAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24050,152 +24050,152 @@ } /** - * AggregatedListSslCertificatesRequest filter. + * AggregatedListServiceAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.filter = null; + AggregatedListServiceAttachmentsRequest.prototype.filter = null; /** - * AggregatedListSslCertificatesRequest includeAllScopes. + * AggregatedListServiceAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; + AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslCertificatesRequest maxResults. + * AggregatedListServiceAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.maxResults = null; + AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListSslCertificatesRequest orderBy. + * AggregatedListServiceAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.orderBy = null; + AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListSslCertificatesRequest pageToken. + * AggregatedListServiceAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.pageToken = null; + AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListSslCertificatesRequest project. + * AggregatedListServiceAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.project = ""; + AggregatedListServiceAttachmentsRequest.prototype.project = ""; /** - * AggregatedListSslCertificatesRequest returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; + AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSslCertificatesRequest _filter. + * AggregatedListServiceAttachmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _includeAllScopes. + * AggregatedListServiceAttachmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _maxResults. + * AggregatedListServiceAttachmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _orderBy. + * AggregatedListServiceAttachmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _pageToken. + * AggregatedListServiceAttachmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. + * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance */ - AggregatedListSslCertificatesRequest.create = function create(properties) { - return new AggregatedListSslCertificatesRequest(properties); + AggregatedListServiceAttachmentsRequest.create = function create(properties) { + return new AggregatedListServiceAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encode = function encode(message, writer) { + AggregatedListServiceAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -24216,33 +24216,33 @@ }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslCertificatesRequest.decode = function decode(reader, length) { + AggregatedListServiceAttachmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24283,30 +24283,30 @@ }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslCertificatesRequest message. + * Verifies an AggregatedListServiceAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSslCertificatesRequest.verify = function verify(message) { + AggregatedListServiceAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -24347,17 +24347,17 @@ }; /** - * Creates an AggregatedListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest */ - AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) + AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -24376,15 +24376,15 @@ }; /** - * Creates a plain object from an AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListServiceAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest + * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { + AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24426,58 +24426,58 @@ }; /** - * Converts this AggregatedListSslCertificatesRequest to JSON. + * Converts this AggregatedListServiceAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { + AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSslCertificatesRequest + * Gets the default type url for AggregatedListServiceAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; }; - return AggregatedListSslCertificatesRequest; + return AggregatedListServiceAttachmentsRequest; })(); - v1.AggregatedListSslPoliciesRequest = (function() { + v1.AggregatedListSslCertificatesRequest = (function() { /** - * Properties of an AggregatedListSslPoliciesRequest. + * Properties of an AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSslPoliciesRequest - * @property {string|null} [filter] AggregatedListSslPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSslPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSslPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSslPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSslPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListSslPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSslPoliciesRequest returnPartialSuccess + * @interface IAggregatedListSslCertificatesRequest + * @property {string|null} [filter] AggregatedListSslCertificatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSslCertificatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSslCertificatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSslCertificatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSslCertificatesRequest pageToken + * @property {string|null} [project] AggregatedListSslCertificatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSslCertificatesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListSslPoliciesRequest. + * Constructs a new AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslPoliciesRequest. - * @implements IAggregatedListSslPoliciesRequest + * @classdesc Represents an AggregatedListSslCertificatesRequest. + * @implements IAggregatedListSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set */ - function AggregatedListSslPoliciesRequest(properties) { + function AggregatedListSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24485,152 +24485,152 @@ } /** - * AggregatedListSslPoliciesRequest filter. + * AggregatedListSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.filter = null; + AggregatedListSslCertificatesRequest.prototype.filter = null; /** - * AggregatedListSslPoliciesRequest includeAllScopes. + * AggregatedListSslCertificatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslPoliciesRequest maxResults. + * AggregatedListSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.maxResults = null; + AggregatedListSslCertificatesRequest.prototype.maxResults = null; /** - * AggregatedListSslPoliciesRequest orderBy. + * AggregatedListSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.orderBy = null; + AggregatedListSslCertificatesRequest.prototype.orderBy = null; /** - * AggregatedListSslPoliciesRequest pageToken. + * AggregatedListSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.pageToken = null; + AggregatedListSslCertificatesRequest.prototype.pageToken = null; /** - * AggregatedListSslPoliciesRequest project. + * AggregatedListSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.project = ""; + AggregatedListSslCertificatesRequest.prototype.project = ""; /** - * AggregatedListSslPoliciesRequest returnPartialSuccess. + * AggregatedListSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSslPoliciesRequest _filter. + * AggregatedListSslCertificatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _includeAllScopes. + * AggregatedListSslCertificatesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _maxResults. + * AggregatedListSslCertificatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _orderBy. + * AggregatedListSslCertificatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _pageToken. + * AggregatedListSslCertificatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _returnPartialSuccess. + * AggregatedListSslCertificatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance */ - AggregatedListSslPoliciesRequest.create = function create(properties) { - return new AggregatedListSslPoliciesRequest(properties); + AggregatedListSslCertificatesRequest.create = function create(properties) { + return new AggregatedListSslCertificatesRequest(properties); }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encode = function encode(message, writer) { + AggregatedListSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -24651,33 +24651,33 @@ }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslPoliciesRequest.decode = function decode(reader, length) { + AggregatedListSslCertificatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24718,30 +24718,30 @@ }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslPoliciesRequest message. + * Verifies an AggregatedListSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSslPoliciesRequest.verify = function verify(message) { + AggregatedListSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -24782,17 +24782,17 @@ }; /** - * Creates an AggregatedListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest */ - AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) + AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -24811,15 +24811,15 @@ }; /** - * Creates a plain object from an AggregatedListSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24861,58 +24861,58 @@ }; /** - * Converts this AggregatedListSslPoliciesRequest to JSON. + * Converts this AggregatedListSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSslPoliciesRequest + * Gets the default type url for AggregatedListSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; }; - return AggregatedListSslPoliciesRequest; + return AggregatedListSslCertificatesRequest; })(); - v1.AggregatedListSubnetworksRequest = (function() { + v1.AggregatedListSslPoliciesRequest = (function() { /** - * Properties of an AggregatedListSubnetworksRequest. + * Properties of an AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSubnetworksRequest - * @property {string|null} [filter] AggregatedListSubnetworksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSubnetworksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSubnetworksRequest maxResults - * @property {string|null} [orderBy] AggregatedListSubnetworksRequest orderBy - * @property {string|null} [pageToken] AggregatedListSubnetworksRequest pageToken - * @property {string|null} [project] AggregatedListSubnetworksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSubnetworksRequest returnPartialSuccess + * @interface IAggregatedListSslPoliciesRequest + * @property {string|null} [filter] AggregatedListSslPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSslPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSslPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSslPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSslPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListSslPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSslPoliciesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListSubnetworksRequest. + * Constructs a new AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSubnetworksRequest. - * @implements IAggregatedListSubnetworksRequest + * @classdesc Represents an AggregatedListSslPoliciesRequest. + * @implements IAggregatedListSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set */ - function AggregatedListSubnetworksRequest(properties) { + function AggregatedListSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24920,152 +24920,152 @@ } /** - * AggregatedListSubnetworksRequest filter. + * AggregatedListSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.filter = null; + AggregatedListSslPoliciesRequest.prototype.filter = null; /** - * AggregatedListSubnetworksRequest includeAllScopes. + * AggregatedListSslPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; + AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSubnetworksRequest maxResults. + * AggregatedListSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.maxResults = null; + AggregatedListSslPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListSubnetworksRequest orderBy. + * AggregatedListSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.orderBy = null; + AggregatedListSslPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListSubnetworksRequest pageToken. + * AggregatedListSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.pageToken = null; + AggregatedListSslPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListSubnetworksRequest project. + * AggregatedListSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.project = ""; + AggregatedListSslPoliciesRequest.prototype.project = ""; /** - * AggregatedListSubnetworksRequest returnPartialSuccess. + * AggregatedListSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; + AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSubnetworksRequest _filter. + * AggregatedListSslPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _includeAllScopes. + * AggregatedListSslPoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _maxResults. + * AggregatedListSslPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _orderBy. + * AggregatedListSslPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _pageToken. + * AggregatedListSslPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _returnPartialSuccess. + * AggregatedListSslPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. + * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance */ - AggregatedListSubnetworksRequest.create = function create(properties) { - return new AggregatedListSubnetworksRequest(properties); + AggregatedListSslPoliciesRequest.create = function create(properties) { + return new AggregatedListSslPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encode = function encode(message, writer) { + AggregatedListSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -25086,33 +25086,33 @@ }; /** - * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSubnetworksRequest.decode = function decode(reader, length) { + AggregatedListSslPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25153,30 +25153,30 @@ }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSubnetworksRequest message. + * Verifies an AggregatedListSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSubnetworksRequest.verify = function verify(message) { + AggregatedListSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -25217,17 +25217,17 @@ }; /** - * Creates an AggregatedListSubnetworksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest */ - AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) + AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -25246,15 +25246,15 @@ }; /** - * Creates a plain object from an AggregatedListSubnetworksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest + * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { + AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -25296,58 +25296,58 @@ }; /** - * Converts this AggregatedListSubnetworksRequest to JSON. + * Converts this AggregatedListSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { + AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSubnetworksRequest + * Gets the default type url for AggregatedListSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; }; - return AggregatedListSubnetworksRequest; + return AggregatedListSslPoliciesRequest; })(); - v1.AggregatedListTargetHttpProxiesRequest = (function() { + v1.AggregatedListSubnetworksRequest = (function() { /** - * Properties of an AggregatedListTargetHttpProxiesRequest. + * Properties of an AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetHttpProxiesRequest - * @property {string|null} [filter] AggregatedListTargetHttpProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetHttpProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetHttpProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpProxiesRequest returnPartialSuccess + * @interface IAggregatedListSubnetworksRequest + * @property {string|null} [filter] AggregatedListSubnetworksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSubnetworksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSubnetworksRequest maxResults + * @property {string|null} [orderBy] AggregatedListSubnetworksRequest orderBy + * @property {string|null} [pageToken] AggregatedListSubnetworksRequest pageToken + * @property {string|null} [project] AggregatedListSubnetworksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSubnetworksRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetHttpProxiesRequest. + * Constructs a new AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. - * @implements IAggregatedListTargetHttpProxiesRequest + * @classdesc Represents an AggregatedListSubnetworksRequest. + * @implements IAggregatedListSubnetworksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpProxiesRequest(properties) { + function AggregatedListSubnetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25355,152 +25355,152 @@ } /** - * AggregatedListTargetHttpProxiesRequest filter. + * AggregatedListSubnetworksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.filter = null; + AggregatedListSubnetworksRequest.prototype.filter = null; /** - * AggregatedListTargetHttpProxiesRequest includeAllScopes. + * AggregatedListSubnetworksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpProxiesRequest maxResults. + * AggregatedListSubnetworksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; + AggregatedListSubnetworksRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpProxiesRequest orderBy. + * AggregatedListSubnetworksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; + AggregatedListSubnetworksRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpProxiesRequest pageToken. + * AggregatedListSubnetworksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; + AggregatedListSubnetworksRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpProxiesRequest project. + * AggregatedListSubnetworksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.project = ""; + AggregatedListSubnetworksRequest.prototype.project = ""; /** - * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. + * AggregatedListSubnetworksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetHttpProxiesRequest _filter. + * AggregatedListSubnetworksRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _includeAllScopes. + * AggregatedListSubnetworksRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _maxResults. + * AggregatedListSubnetworksRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _orderBy. + * AggregatedListSubnetworksRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _pageToken. + * AggregatedListSubnetworksRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _returnPartialSuccess. + * AggregatedListSubnetworksRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance */ - AggregatedListTargetHttpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpProxiesRequest(properties); + AggregatedListSubnetworksRequest.create = function create(properties) { + return new AggregatedListSubnetworksRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encode = function encode(message, writer) { + AggregatedListSubnetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -25521,33 +25521,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpProxiesRequest.decode = function decode(reader, length) { + AggregatedListSubnetworksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25588,30 +25588,30 @@ }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpProxiesRequest message. + * Verifies an AggregatedListSubnetworksRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { + AggregatedListSubnetworksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -25652,17 +25652,17 @@ }; /** - * Creates an AggregatedListTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSubnetworksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest */ - AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) + AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -25681,15 +25681,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSubnetworksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -25731,58 +25731,58 @@ }; /** - * Converts this AggregatedListTargetHttpProxiesRequest to JSON. + * Converts this AggregatedListSubnetworksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetHttpProxiesRequest + * Gets the default type url for AggregatedListSubnetworksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; }; - return AggregatedListTargetHttpProxiesRequest; + return AggregatedListSubnetworksRequest; })(); - v1.AggregatedListTargetHttpsProxiesRequest = (function() { + v1.AggregatedListTargetHttpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetHttpsProxiesRequest. + * Properties of an AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetHttpsProxiesRequest - * @property {string|null} [filter] AggregatedListTargetHttpsProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpsProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetHttpsProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpsProxiesRequest returnPartialSuccess + * @interface IAggregatedListTargetHttpProxiesRequest + * @property {string|null} [filter] AggregatedListTargetHttpProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetHttpProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetHttpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpProxiesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetHttpsProxiesRequest. + * Constructs a new AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. - * @implements IAggregatedListTargetHttpsProxiesRequest + * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. + * @implements IAggregatedListTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpsProxiesRequest(properties) { + function AggregatedListTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25790,152 +25790,152 @@ } /** - * AggregatedListTargetHttpsProxiesRequest filter. + * AggregatedListTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; + AggregatedListTargetHttpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetHttpsProxiesRequest includeAllScopes. + * AggregatedListTargetHttpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpsProxiesRequest maxResults. + * AggregatedListTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; + AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpsProxiesRequest orderBy. + * AggregatedListTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; + AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpsProxiesRequest pageToken. + * AggregatedListTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; + AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpsProxiesRequest project. + * AggregatedListTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; + AggregatedListTargetHttpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetHttpsProxiesRequest _filter. + * AggregatedListTargetHttpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _includeAllScopes. + * AggregatedListTargetHttpProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _maxResults. + * AggregatedListTargetHttpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _orderBy. + * AggregatedListTargetHttpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _pageToken. + * AggregatedListTargetHttpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance */ - AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpsProxiesRequest(properties); + AggregatedListTargetHttpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encode = function encode(message, writer) { + AggregatedListTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -25956,33 +25956,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpsProxiesRequest.decode = function decode(reader, length) { + AggregatedListTargetHttpProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26023,30 +26023,30 @@ }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpsProxiesRequest message. + * Verifies an AggregatedListTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { + AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26087,17 +26087,17 @@ }; /** - * Creates an AggregatedListTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest */ - AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) + AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26116,15 +26116,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26166,58 +26166,58 @@ }; /** - * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. + * Converts this AggregatedListTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetHttpsProxiesRequest + * Gets the default type url for AggregatedListTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; }; - return AggregatedListTargetHttpsProxiesRequest; + return AggregatedListTargetHttpProxiesRequest; })(); - v1.AggregatedListTargetInstancesRequest = (function() { + v1.AggregatedListTargetHttpsProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetInstancesRequest. + * Properties of an AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetInstancesRequest - * @property {string|null} [filter] AggregatedListTargetInstancesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetInstancesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetInstancesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetInstancesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetInstancesRequest pageToken - * @property {string|null} [project] AggregatedListTargetInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetInstancesRequest returnPartialSuccess + * @interface IAggregatedListTargetHttpsProxiesRequest + * @property {string|null} [filter] AggregatedListTargetHttpsProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpsProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetHttpsProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpsProxiesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetInstancesRequest. + * Constructs a new AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetInstancesRequest. - * @implements IAggregatedListTargetInstancesRequest + * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. + * @implements IAggregatedListTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetInstancesRequest(properties) { + function AggregatedListTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26225,152 +26225,152 @@ } /** - * AggregatedListTargetInstancesRequest filter. + * AggregatedListTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.filter = null; + AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetInstancesRequest includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetInstancesRequest maxResults. + * AggregatedListTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.maxResults = null; + AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetInstancesRequest orderBy. + * AggregatedListTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.orderBy = null; + AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetInstancesRequest pageToken. + * AggregatedListTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.pageToken = null; + AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetInstancesRequest project. + * AggregatedListTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.project = ""; + AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetInstancesRequest returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetInstancesRequest _filter. + * AggregatedListTargetHttpsProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _maxResults. + * AggregatedListTargetHttpsProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _orderBy. + * AggregatedListTargetHttpsProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _pageToken. + * AggregatedListTargetHttpsProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance */ - AggregatedListTargetInstancesRequest.create = function create(properties) { - return new AggregatedListTargetInstancesRequest(properties); + AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encode = function encode(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -26391,33 +26391,33 @@ }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetInstancesRequest.decode = function decode(reader, length) { + AggregatedListTargetHttpsProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26458,30 +26458,30 @@ }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetInstancesRequest message. + * Verifies an AggregatedListTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetInstancesRequest.verify = function verify(message) { + AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26522,17 +26522,17 @@ }; /** - * Creates an AggregatedListTargetInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest */ - AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) + AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26551,15 +26551,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26601,58 +26601,58 @@ }; /** - * Converts this AggregatedListTargetInstancesRequest to JSON. + * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetInstancesRequest + * Gets the default type url for AggregatedListTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; }; - return AggregatedListTargetInstancesRequest; + return AggregatedListTargetHttpsProxiesRequest; })(); - v1.AggregatedListTargetPoolsRequest = (function() { + v1.AggregatedListTargetInstancesRequest = (function() { /** - * Properties of an AggregatedListTargetPoolsRequest. + * Properties of an AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetPoolsRequest - * @property {string|null} [filter] AggregatedListTargetPoolsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetPoolsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetPoolsRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetPoolsRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetPoolsRequest pageToken - * @property {string|null} [project] AggregatedListTargetPoolsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetPoolsRequest returnPartialSuccess + * @interface IAggregatedListTargetInstancesRequest + * @property {string|null} [filter] AggregatedListTargetInstancesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetInstancesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetInstancesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetInstancesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetInstancesRequest pageToken + * @property {string|null} [project] AggregatedListTargetInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetInstancesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetPoolsRequest. + * Constructs a new AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetPoolsRequest. - * @implements IAggregatedListTargetPoolsRequest + * @classdesc Represents an AggregatedListTargetInstancesRequest. + * @implements IAggregatedListTargetInstancesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set */ - function AggregatedListTargetPoolsRequest(properties) { + function AggregatedListTargetInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26660,152 +26660,152 @@ } /** - * AggregatedListTargetPoolsRequest filter. + * AggregatedListTargetInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.filter = null; + AggregatedListTargetInstancesRequest.prototype.filter = null; /** - * AggregatedListTargetPoolsRequest includeAllScopes. + * AggregatedListTargetInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; + AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetPoolsRequest maxResults. + * AggregatedListTargetInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.maxResults = null; + AggregatedListTargetInstancesRequest.prototype.maxResults = null; /** - * AggregatedListTargetPoolsRequest orderBy. + * AggregatedListTargetInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.orderBy = null; + AggregatedListTargetInstancesRequest.prototype.orderBy = null; /** - * AggregatedListTargetPoolsRequest pageToken. + * AggregatedListTargetInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.pageToken = null; + AggregatedListTargetInstancesRequest.prototype.pageToken = null; /** - * AggregatedListTargetPoolsRequest project. + * AggregatedListTargetInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.project = ""; + AggregatedListTargetInstancesRequest.prototype.project = ""; /** - * AggregatedListTargetPoolsRequest returnPartialSuccess. + * AggregatedListTargetInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetPoolsRequest _filter. + * AggregatedListTargetInstancesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _includeAllScopes. + * AggregatedListTargetInstancesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _maxResults. + * AggregatedListTargetInstancesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _orderBy. + * AggregatedListTargetInstancesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _pageToken. + * AggregatedListTargetInstancesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _returnPartialSuccess. + * AggregatedListTargetInstancesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. + * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance */ - AggregatedListTargetPoolsRequest.create = function create(properties) { - return new AggregatedListTargetPoolsRequest(properties); + AggregatedListTargetInstancesRequest.create = function create(properties) { + return new AggregatedListTargetInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encode = function encode(message, writer) { + AggregatedListTargetInstancesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -26826,33 +26826,33 @@ }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetPoolsRequest.decode = function decode(reader, length) { + AggregatedListTargetInstancesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26893,30 +26893,30 @@ }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetPoolsRequest message. + * Verifies an AggregatedListTargetInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetPoolsRequest.verify = function verify(message) { + AggregatedListTargetInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26957,17 +26957,17 @@ }; /** - * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetInstancesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest */ - AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) + AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26986,15 +26986,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetInstancesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { + AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27036,58 +27036,58 @@ }; /** - * Converts this AggregatedListTargetPoolsRequest to JSON. + * Converts this AggregatedListTargetInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetPoolsRequest + * Gets the default type url for AggregatedListTargetInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; }; - return AggregatedListTargetPoolsRequest; + return AggregatedListTargetInstancesRequest; })(); - v1.AggregatedListTargetTcpProxiesRequest = (function() { + v1.AggregatedListTargetPoolsRequest = (function() { /** - * Properties of an AggregatedListTargetTcpProxiesRequest. + * Properties of an AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetTcpProxiesRequest - * @property {string|null} [filter] AggregatedListTargetTcpProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetTcpProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetTcpProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetTcpProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetTcpProxiesRequest returnPartialSuccess + * @interface IAggregatedListTargetPoolsRequest + * @property {string|null} [filter] AggregatedListTargetPoolsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetPoolsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetPoolsRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetPoolsRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetPoolsRequest pageToken + * @property {string|null} [project] AggregatedListTargetPoolsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetPoolsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetTcpProxiesRequest. + * Constructs a new AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. - * @implements IAggregatedListTargetTcpProxiesRequest + * @classdesc Represents an AggregatedListTargetPoolsRequest. + * @implements IAggregatedListTargetPoolsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set */ - function AggregatedListTargetTcpProxiesRequest(properties) { + function AggregatedListTargetPoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27095,152 +27095,152 @@ } /** - * AggregatedListTargetTcpProxiesRequest filter. + * AggregatedListTargetPoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.filter = null; + AggregatedListTargetPoolsRequest.prototype.filter = null; /** - * AggregatedListTargetTcpProxiesRequest includeAllScopes. + * AggregatedListTargetPoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetTcpProxiesRequest maxResults. + * AggregatedListTargetPoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; + AggregatedListTargetPoolsRequest.prototype.maxResults = null; /** - * AggregatedListTargetTcpProxiesRequest orderBy. + * AggregatedListTargetPoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; + AggregatedListTargetPoolsRequest.prototype.orderBy = null; /** - * AggregatedListTargetTcpProxiesRequest pageToken. + * AggregatedListTargetPoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; + AggregatedListTargetPoolsRequest.prototype.pageToken = null; /** - * AggregatedListTargetTcpProxiesRequest project. + * AggregatedListTargetPoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.project = ""; + AggregatedListTargetPoolsRequest.prototype.project = ""; /** - * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. + * AggregatedListTargetPoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetTcpProxiesRequest _filter. + * AggregatedListTargetPoolsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _includeAllScopes. + * AggregatedListTargetPoolsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _maxResults. + * AggregatedListTargetPoolsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _orderBy. + * AggregatedListTargetPoolsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _pageToken. + * AggregatedListTargetPoolsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _returnPartialSuccess. + * AggregatedListTargetPoolsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance */ - AggregatedListTargetTcpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetTcpProxiesRequest(properties); + AggregatedListTargetPoolsRequest.create = function create(properties) { + return new AggregatedListTargetPoolsRequest(properties); }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { + AggregatedListTargetPoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -27261,33 +27261,33 @@ }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetTcpProxiesRequest.decode = function decode(reader, length) { + AggregatedListTargetPoolsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27328,30 +27328,30 @@ }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetTcpProxiesRequest message. + * Verifies an AggregatedListTargetPoolsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { + AggregatedListTargetPoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27392,17 +27392,17 @@ }; /** - * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest */ - AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) + AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27421,15 +27421,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27471,58 +27471,58 @@ }; /** - * Converts this AggregatedListTargetTcpProxiesRequest to JSON. + * Converts this AggregatedListTargetPoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetTcpProxiesRequest + * Gets the default type url for AggregatedListTargetPoolsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; }; - return AggregatedListTargetTcpProxiesRequest; + return AggregatedListTargetPoolsRequest; })(); - v1.AggregatedListTargetVpnGatewaysRequest = (function() { + v1.AggregatedListTargetTcpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetVpnGatewaysRequest. + * Properties of an AggregatedListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetVpnGatewaysRequest - * @property {string|null} [filter] AggregatedListTargetVpnGatewaysRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetVpnGatewaysRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetVpnGatewaysRequest pageToken - * @property {string|null} [project] AggregatedListTargetVpnGatewaysRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetVpnGatewaysRequest returnPartialSuccess + * @interface IAggregatedListTargetTcpProxiesRequest + * @property {string|null} [filter] AggregatedListTargetTcpProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetTcpProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetTcpProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetTcpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetTcpProxiesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetVpnGatewaysRequest. + * Constructs a new AggregatedListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. - * @implements IAggregatedListTargetVpnGatewaysRequest + * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. + * @implements IAggregatedListTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetVpnGatewaysRequest(properties) { + function AggregatedListTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27530,152 +27530,152 @@ } /** - * AggregatedListTargetVpnGatewaysRequest filter. + * AggregatedListTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; + AggregatedListTargetTcpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetVpnGatewaysRequest includeAllScopes. + * AggregatedListTargetTcpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetVpnGatewaysRequest maxResults. + * AggregatedListTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetVpnGatewaysRequest orderBy. + * AggregatedListTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetVpnGatewaysRequest pageToken. + * AggregatedListTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetVpnGatewaysRequest project. + * AggregatedListTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; + AggregatedListTargetTcpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. + * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetVpnGatewaysRequest _filter. + * AggregatedListTargetTcpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _includeAllScopes. + * AggregatedListTargetTcpProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _maxResults. + * AggregatedListTargetTcpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _orderBy. + * AggregatedListTargetTcpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _pageToken. + * AggregatedListTargetTcpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _returnPartialSuccess. + * AggregatedListTargetTcpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance */ - AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListTargetVpnGatewaysRequest(properties); + AggregatedListTargetTcpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -27696,33 +27696,33 @@ }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetVpnGatewaysRequest.decode = function decode(reader, length) { + AggregatedListTargetTcpProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27763,30 +27763,30 @@ }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetVpnGatewaysRequest message. + * Verifies an AggregatedListTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { + AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27827,17 +27827,17 @@ }; /** - * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest */ - AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) + AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27856,15 +27856,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest + * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { + AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27906,58 +27906,58 @@ }; /** - * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. + * Converts this AggregatedListTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetVpnGatewaysRequest + * Gets the default type url for AggregatedListTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; }; - return AggregatedListTargetVpnGatewaysRequest; + return AggregatedListTargetTcpProxiesRequest; })(); - v1.AggregatedListUrlMapsRequest = (function() { + v1.AggregatedListTargetVpnGatewaysRequest = (function() { /** - * Properties of an AggregatedListUrlMapsRequest. + * Properties of an AggregatedListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListUrlMapsRequest - * @property {string|null} [filter] AggregatedListUrlMapsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListUrlMapsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListUrlMapsRequest maxResults - * @property {string|null} [orderBy] AggregatedListUrlMapsRequest orderBy - * @property {string|null} [pageToken] AggregatedListUrlMapsRequest pageToken - * @property {string|null} [project] AggregatedListUrlMapsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListUrlMapsRequest returnPartialSuccess + * @interface IAggregatedListTargetVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListTargetVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListTargetVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetVpnGatewaysRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListUrlMapsRequest. + * Constructs a new AggregatedListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListUrlMapsRequest. - * @implements IAggregatedListUrlMapsRequest + * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. + * @implements IAggregatedListTargetVpnGatewaysRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set */ - function AggregatedListUrlMapsRequest(properties) { + function AggregatedListTargetVpnGatewaysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27965,152 +27965,152 @@ } /** - * AggregatedListUrlMapsRequest filter. + * AggregatedListTargetVpnGatewaysRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.filter = null; + AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; /** - * AggregatedListUrlMapsRequest includeAllScopes. + * AggregatedListTargetVpnGatewaysRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; + AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; /** - * AggregatedListUrlMapsRequest maxResults. + * AggregatedListTargetVpnGatewaysRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.maxResults = null; + AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; /** - * AggregatedListUrlMapsRequest orderBy. + * AggregatedListTargetVpnGatewaysRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.orderBy = null; + AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; /** - * AggregatedListUrlMapsRequest pageToken. + * AggregatedListTargetVpnGatewaysRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.pageToken = null; + AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; /** - * AggregatedListUrlMapsRequest project. + * AggregatedListTargetVpnGatewaysRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.project = ""; + AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; /** - * AggregatedListUrlMapsRequest returnPartialSuccess. + * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListUrlMapsRequest _filter. + * AggregatedListTargetVpnGatewaysRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _includeAllScopes. + * AggregatedListTargetVpnGatewaysRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _maxResults. + * AggregatedListTargetVpnGatewaysRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _orderBy. + * AggregatedListTargetVpnGatewaysRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _pageToken. + * AggregatedListTargetVpnGatewaysRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _returnPartialSuccess. + * AggregatedListTargetVpnGatewaysRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. + * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance */ - AggregatedListUrlMapsRequest.create = function create(properties) { - return new AggregatedListUrlMapsRequest(properties); + AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListTargetVpnGatewaysRequest(properties); }; /** - * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encode = function encode(message, writer) { + AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -28131,33 +28131,33 @@ }; /** - * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListUrlMapsRequest.decode = function decode(reader, length) { + AggregatedListTargetVpnGatewaysRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -28198,30 +28198,30 @@ }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListUrlMapsRequest message. + * Verifies an AggregatedListTargetVpnGatewaysRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListUrlMapsRequest.verify = function verify(message) { + AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -28262,17 +28262,17 @@ }; /** - * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest */ - AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -28291,15 +28291,15 @@ }; /** - * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28341,58 +28341,58 @@ }; /** - * Converts this AggregatedListUrlMapsRequest to JSON. + * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance * @returns {Object.} JSON object */ - AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListUrlMapsRequest + * Gets the default type url for AggregatedListTargetVpnGatewaysRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; }; - return AggregatedListUrlMapsRequest; + return AggregatedListTargetVpnGatewaysRequest; })(); - v1.AggregatedListVpnGatewaysRequest = (function() { + v1.AggregatedListUrlMapsRequest = (function() { /** - * Properties of an AggregatedListVpnGatewaysRequest. + * Properties of an AggregatedListUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListVpnGatewaysRequest - * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken - * @property {string|null} [project] AggregatedListVpnGatewaysRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess + * @interface IAggregatedListUrlMapsRequest + * @property {string|null} [filter] AggregatedListUrlMapsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListUrlMapsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListUrlMapsRequest maxResults + * @property {string|null} [orderBy] AggregatedListUrlMapsRequest orderBy + * @property {string|null} [pageToken] AggregatedListUrlMapsRequest pageToken + * @property {string|null} [project] AggregatedListUrlMapsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListUrlMapsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListVpnGatewaysRequest. + * Constructs a new AggregatedListUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListVpnGatewaysRequest. - * @implements IAggregatedListVpnGatewaysRequest + * @classdesc Represents an AggregatedListUrlMapsRequest. + * @implements IAggregatedListUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set */ - function AggregatedListVpnGatewaysRequest(properties) { + function AggregatedListUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28400,152 +28400,152 @@ } /** - * AggregatedListVpnGatewaysRequest filter. + * AggregatedListUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.filter = null; + AggregatedListUrlMapsRequest.prototype.filter = null; /** - * AggregatedListVpnGatewaysRequest includeAllScopes. + * AggregatedListUrlMapsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; /** - * AggregatedListVpnGatewaysRequest maxResults. + * AggregatedListUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListUrlMapsRequest.prototype.maxResults = null; /** - * AggregatedListVpnGatewaysRequest orderBy. + * AggregatedListUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListUrlMapsRequest.prototype.orderBy = null; /** - * AggregatedListVpnGatewaysRequest pageToken. + * AggregatedListUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListUrlMapsRequest.prototype.pageToken = null; /** - * AggregatedListVpnGatewaysRequest project. + * AggregatedListUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.project = ""; + AggregatedListUrlMapsRequest.prototype.project = ""; /** - * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * AggregatedListUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListVpnGatewaysRequest _filter. + * AggregatedListUrlMapsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _includeAllScopes. + * AggregatedListUrlMapsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _maxResults. + * AggregatedListUrlMapsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _orderBy. + * AggregatedListUrlMapsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _pageToken. + * AggregatedListUrlMapsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _returnPartialSuccess. + * AggregatedListUrlMapsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance */ - AggregatedListVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListVpnGatewaysRequest(properties); + AggregatedListUrlMapsRequest.create = function create(properties) { + return new AggregatedListUrlMapsRequest(properties); }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListUrlMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -28566,33 +28566,468 @@ }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListVpnGatewaysRequest.decode = function decode(reader, length) { + AggregatedListUrlMapsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 391327988: { + message.includeAllScopes = reader.bool(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListUrlMapsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListUrlMapsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + properties._includeAllScopes = 1; + if (typeof message.includeAllScopes !== "boolean") + return "includeAllScopes: boolean expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + */ + AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + return object; + var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.includeAllScopes != null) + message.includeAllScopes = Boolean(object.includeAllScopes); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + object.includeAllScopes = message.includeAllScopes; + if (options.oneofs) + object._includeAllScopes = "includeAllScopes"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this AggregatedListUrlMapsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListUrlMapsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; + }; + + return AggregatedListUrlMapsRequest; + })(); + + v1.AggregatedListVpnGatewaysRequest = (function() { + + /** + * Properties of an AggregatedListVpnGatewaysRequest. + * @memberof google.cloud.compute.v1 + * @interface IAggregatedListVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess + */ + + /** + * Constructs a new AggregatedListVpnGatewaysRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AggregatedListVpnGatewaysRequest. + * @implements IAggregatedListVpnGatewaysRequest + * @constructor + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + */ + function AggregatedListVpnGatewaysRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListVpnGatewaysRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.filter = null; + + /** + * AggregatedListVpnGatewaysRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListVpnGatewaysRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + + /** + * AggregatedListVpnGatewaysRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + + /** + * AggregatedListVpnGatewaysRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + + /** + * AggregatedListVpnGatewaysRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.project = ""; + + /** + * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AggregatedListVpnGatewaysRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _includeAllScopes. + * @member {"includeAllScopes"|undefined} _includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + */ + AggregatedListVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListVpnGatewaysRequest(properties); + }; + + /** + * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.includeAllScopes != null && Object.hasOwnProperty.call(message, "includeAllScopes")) + writer.uint32(/* id 391327988, wireType 0 =*/3130623904).bool(message.includeAllScopes); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListVpnGatewaysRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -44921,6 +45356,7 @@ * @property {number} RANDOM=262527171 RANDOM value * @property {number} RING_HASH=432795069 RING_HASH value * @property {number} ROUND_ROBIN=153895801 ROUND_ROBIN value + * @property {number} WEIGHTED_MAGLEV=254930962 WEIGHTED_MAGLEV value */ BackendService.LocalityLbPolicy = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -44932,6 +45368,7 @@ values[valuesById[262527171] = "RANDOM"] = 262527171; values[valuesById[432795069] = "RING_HASH"] = 432795069; values[valuesById[153895801] = "ROUND_ROBIN"] = 153895801; + values[valuesById[254930962] = "WEIGHTED_MAGLEV"] = 254930962; return values; })(); @@ -49161,6 +49598,7 @@ * @property {number} RANDOM=262527171 RANDOM value * @property {number} RING_HASH=432795069 RING_HASH value * @property {number} ROUND_ROBIN=153895801 ROUND_ROBIN value + * @property {number} WEIGHTED_MAGLEV=254930962 WEIGHTED_MAGLEV value */ BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Name = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -49172,6 +49610,7 @@ values[valuesById[262527171] = "RANDOM"] = 262527171; values[valuesById[432795069] = "RING_HASH"] = 432795069; values[valuesById[153895801] = "ROUND_ROBIN"] = 153895801; + values[valuesById[254930962] = "WEIGHTED_MAGLEV"] = 254930962; return values; })(); @@ -49185,6 +49624,8 @@ * @memberof google.cloud.compute.v1 * @interface IBackendServiceLogConfig * @property {boolean|null} [enable] BackendServiceLogConfig enable + * @property {Array.|null} [optionalFields] BackendServiceLogConfig optionalFields + * @property {string|null} [optionalMode] BackendServiceLogConfig optionalMode * @property {number|null} [sampleRate] BackendServiceLogConfig sampleRate */ @@ -49197,6 +49638,7 @@ * @param {google.cloud.compute.v1.IBackendServiceLogConfig=} [properties] Properties to set */ function BackendServiceLogConfig(properties) { + this.optionalFields = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49211,6 +49653,22 @@ */ BackendServiceLogConfig.prototype.enable = null; + /** + * BackendServiceLogConfig optionalFields. + * @member {Array.} optionalFields + * @memberof google.cloud.compute.v1.BackendServiceLogConfig + * @instance + */ + BackendServiceLogConfig.prototype.optionalFields = $util.emptyArray; + + /** + * BackendServiceLogConfig optionalMode. + * @member {string|null|undefined} optionalMode + * @memberof google.cloud.compute.v1.BackendServiceLogConfig + * @instance + */ + BackendServiceLogConfig.prototype.optionalMode = null; + /** * BackendServiceLogConfig sampleRate. * @member {number|null|undefined} sampleRate @@ -49233,6 +49691,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * BackendServiceLogConfig _optionalMode. + * @member {"optionalMode"|undefined} _optionalMode + * @memberof google.cloud.compute.v1.BackendServiceLogConfig + * @instance + */ + Object.defineProperty(BackendServiceLogConfig.prototype, "_optionalMode", { + get: $util.oneOfGetter($oneOfFields = ["optionalMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * BackendServiceLogConfig _sampleRate. * @member {"sampleRate"|undefined} _sampleRate @@ -49268,10 +49737,15 @@ BackendServiceLogConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.optionalMode != null && Object.hasOwnProperty.call(message, "optionalMode")) + writer.uint32(/* id 128697122, wireType 2 =*/1029576978).string(message.optionalMode); if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) writer.uint32(/* id 153193045, wireType 5 =*/1225544365).float(message.sampleRate); if (message.enable != null && Object.hasOwnProperty.call(message, "enable")) writer.uint32(/* id 311764355, wireType 0 =*/2494114840).bool(message.enable); + if (message.optionalFields != null && message.optionalFields.length) + for (var i = 0; i < message.optionalFields.length; ++i) + writer.uint32(/* id 528589944, wireType 2 =*/4228719554).string(message.optionalFields[i]); return writer; }; @@ -49310,6 +49784,16 @@ message.enable = reader.bool(); break; } + case 528589944: { + if (!(message.optionalFields && message.optionalFields.length)) + message.optionalFields = []; + message.optionalFields.push(reader.string()); + break; + } + case 128697122: { + message.optionalMode = reader.string(); + break; + } case 153193045: { message.sampleRate = reader.float(); break; @@ -49355,6 +49839,18 @@ if (typeof message.enable !== "boolean") return "enable: boolean expected"; } + if (message.optionalFields != null && message.hasOwnProperty("optionalFields")) { + if (!Array.isArray(message.optionalFields)) + return "optionalFields: array expected"; + for (var i = 0; i < message.optionalFields.length; ++i) + if (!$util.isString(message.optionalFields[i])) + return "optionalFields: string[] expected"; + } + if (message.optionalMode != null && message.hasOwnProperty("optionalMode")) { + properties._optionalMode = 1; + if (!$util.isString(message.optionalMode)) + return "optionalMode: string expected"; + } if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) { properties._sampleRate = 1; if (typeof message.sampleRate !== "number") @@ -49377,6 +49873,15 @@ var message = new $root.google.cloud.compute.v1.BackendServiceLogConfig(); if (object.enable != null) message.enable = Boolean(object.enable); + if (object.optionalFields) { + if (!Array.isArray(object.optionalFields)) + throw TypeError(".google.cloud.compute.v1.BackendServiceLogConfig.optionalFields: array expected"); + message.optionalFields = []; + for (var i = 0; i < object.optionalFields.length; ++i) + message.optionalFields[i] = String(object.optionalFields[i]); + } + if (object.optionalMode != null) + message.optionalMode = String(object.optionalMode); if (object.sampleRate != null) message.sampleRate = Number(object.sampleRate); return message; @@ -49395,6 +49900,13 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.optionalFields = []; + if (message.optionalMode != null && message.hasOwnProperty("optionalMode")) { + object.optionalMode = message.optionalMode; + if (options.oneofs) + object._optionalMode = "optionalMode"; + } if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) { object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; if (options.oneofs) @@ -49405,6 +49917,11 @@ if (options.oneofs) object._enable = "enable"; } + if (message.optionalFields && message.optionalFields.length) { + object.optionalFields = []; + for (var j = 0; j < message.optionalFields.length; ++j) + object.optionalFields[j] = message.optionalFields[j]; + } return object; }; @@ -49434,6 +49951,24 @@ return typeUrlPrefix + "/google.cloud.compute.v1.BackendServiceLogConfig"; }; + /** + * OptionalMode enum. + * @name google.cloud.compute.v1.BackendServiceLogConfig.OptionalMode + * @enum {number} + * @property {number} UNDEFINED_OPTIONAL_MODE=0 UNDEFINED_OPTIONAL_MODE value + * @property {number} CUSTOM=388595569 CUSTOM value + * @property {number} EXCLUDE_ALL_OPTIONAL=168636099 EXCLUDE_ALL_OPTIONAL value + * @property {number} INCLUDE_ALL_OPTIONAL=535606965 INCLUDE_ALL_OPTIONAL value + */ + BackendServiceLogConfig.OptionalMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_OPTIONAL_MODE"] = 0; + values[valuesById[388595569] = "CUSTOM"] = 388595569; + values[valuesById[168636099] = "EXCLUDE_ALL_OPTIONAL"] = 168636099; + values[valuesById[535606965] = "INCLUDE_ALL_OPTIONAL"] = 535606965; + return values; + })(); + return BackendServiceLogConfig; })(); @@ -56501,6 +57036,7 @@ * @property {number} ACCELERATOR_OPTIMIZED=280848403 ACCELERATOR_OPTIMIZED value * @property {number} COMPUTE_OPTIMIZED=158349023 COMPUTE_OPTIMIZED value * @property {number} COMPUTE_OPTIMIZED_C2D=383246453 COMPUTE_OPTIMIZED_C2D value + * @property {number} COMPUTE_OPTIMIZED_C3=428004784 COMPUTE_OPTIMIZED_C3 value * @property {number} GENERAL_PURPOSE=299793543 GENERAL_PURPOSE value * @property {number} GENERAL_PURPOSE_E2=301911877 GENERAL_PURPOSE_E2 value * @property {number} GENERAL_PURPOSE_N2=301912156 GENERAL_PURPOSE_N2 value @@ -56516,6 +57052,7 @@ values[valuesById[280848403] = "ACCELERATOR_OPTIMIZED"] = 280848403; values[valuesById[158349023] = "COMPUTE_OPTIMIZED"] = 158349023; values[valuesById[383246453] = "COMPUTE_OPTIMIZED_C2D"] = 383246453; + values[valuesById[428004784] = "COMPUTE_OPTIMIZED_C3"] = 428004784; values[valuesById[299793543] = "GENERAL_PURPOSE"] = 299793543; values[valuesById[301911877] = "GENERAL_PURPOSE_E2"] = 301911877; values[valuesById[301912156] = "GENERAL_PURPOSE_N2"] = 301912156; @@ -75549,6 +76086,298 @@ return DeleteRegionInstanceGroupManagerRequest; })(); + v1.DeleteRegionInstanceTemplateRequest = (function() { + + /** + * Properties of a DeleteRegionInstanceTemplateRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionInstanceTemplateRequest + * @property {string|null} [instanceTemplate] DeleteRegionInstanceTemplateRequest instanceTemplate + * @property {string|null} [project] DeleteRegionInstanceTemplateRequest project + * @property {string|null} [region] DeleteRegionInstanceTemplateRequest region + * @property {string|null} [requestId] DeleteRegionInstanceTemplateRequest requestId + */ + + /** + * Constructs a new DeleteRegionInstanceTemplateRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteRegionInstanceTemplateRequest. + * @implements IDeleteRegionInstanceTemplateRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest=} [properties] Properties to set + */ + function DeleteRegionInstanceTemplateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteRegionInstanceTemplateRequest instanceTemplate. + * @member {string} instanceTemplate + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @instance + */ + DeleteRegionInstanceTemplateRequest.prototype.instanceTemplate = ""; + + /** + * DeleteRegionInstanceTemplateRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @instance + */ + DeleteRegionInstanceTemplateRequest.prototype.project = ""; + + /** + * DeleteRegionInstanceTemplateRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @instance + */ + DeleteRegionInstanceTemplateRequest.prototype.region = ""; + + /** + * DeleteRegionInstanceTemplateRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @instance + */ + DeleteRegionInstanceTemplateRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteRegionInstanceTemplateRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @instance + */ + Object.defineProperty(DeleteRegionInstanceTemplateRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionInstanceTemplateRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest} DeleteRegionInstanceTemplateRequest instance + */ + DeleteRegionInstanceTemplateRequest.create = function create(properties) { + return new DeleteRegionInstanceTemplateRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionInstanceTemplateRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest} message DeleteRegionInstanceTemplateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstanceTemplateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instanceTemplate != null && Object.hasOwnProperty.call(message, "instanceTemplate")) + writer.uint32(/* id 309248228, wireType 2 =*/2473985826).string(message.instanceTemplate); + return writer; + }; + + /** + * Encodes the specified DeleteRegionInstanceTemplateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest} message DeleteRegionInstanceTemplateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstanceTemplateRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionInstanceTemplateRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest} DeleteRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstanceTemplateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 309248228: { + message.instanceTemplate = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRegionInstanceTemplateRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest} DeleteRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstanceTemplateRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionInstanceTemplateRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionInstanceTemplateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) + if (!$util.isString(message.instanceTemplate)) + return "instanceTemplate: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a DeleteRegionInstanceTemplateRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest} DeleteRegionInstanceTemplateRequest + */ + DeleteRegionInstanceTemplateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest(); + if (object.instanceTemplate != null) + message.instanceTemplate = String(object.instanceTemplate); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteRegionInstanceTemplateRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest} message DeleteRegionInstanceTemplateRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionInstanceTemplateRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.instanceTemplate = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) + object.instanceTemplate = message.instanceTemplate; + return object; + }; + + /** + * Converts this DeleteRegionInstanceTemplateRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionInstanceTemplateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionInstanceTemplateRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionInstanceTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest"; + }; + + return DeleteRegionInstanceTemplateRequest; + })(); + v1.DeleteRegionNetworkEndpointGroupRequest = (function() { /** @@ -105685,6 +106514,7 @@ * @property {boolean|null} [allPorts] ForwardingRule allPorts * @property {boolean|null} [allowGlobalAccess] ForwardingRule allowGlobalAccess * @property {string|null} [backendService] ForwardingRule backendService + * @property {string|null} [baseForwardingRule] ForwardingRule baseForwardingRule * @property {string|null} [creationTimestamp] ForwardingRule creationTimestamp * @property {string|null} [description] ForwardingRule description * @property {string|null} [fingerprint] ForwardingRule fingerprint @@ -105709,6 +106539,7 @@ * @property {Array.|null} [serviceDirectoryRegistrations] ForwardingRule serviceDirectoryRegistrations * @property {string|null} [serviceLabel] ForwardingRule serviceLabel * @property {string|null} [serviceName] ForwardingRule serviceName + * @property {Array.|null} [sourceIpRanges] ForwardingRule sourceIpRanges * @property {string|null} [subnetwork] ForwardingRule subnetwork * @property {string|null} [target] ForwardingRule target */ @@ -105726,6 +106557,7 @@ this.metadataFilters = []; this.ports = []; this.serviceDirectoryRegistrations = []; + this.sourceIpRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105772,6 +106604,14 @@ */ ForwardingRule.prototype.backendService = null; + /** + * ForwardingRule baseForwardingRule. + * @member {string|null|undefined} baseForwardingRule + * @memberof google.cloud.compute.v1.ForwardingRule + * @instance + */ + ForwardingRule.prototype.baseForwardingRule = null; + /** * ForwardingRule creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -105964,6 +106804,14 @@ */ ForwardingRule.prototype.serviceName = null; + /** + * ForwardingRule sourceIpRanges. + * @member {Array.} sourceIpRanges + * @memberof google.cloud.compute.v1.ForwardingRule + * @instance + */ + ForwardingRule.prototype.sourceIpRanges = $util.emptyArray; + /** * ForwardingRule subnetwork. * @member {string|null|undefined} subnetwork @@ -106038,6 +106886,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ForwardingRule _baseForwardingRule. + * @member {"baseForwardingRule"|undefined} _baseForwardingRule + * @memberof google.cloud.compute.v1.ForwardingRule + * @instance + */ + Object.defineProperty(ForwardingRule.prototype, "_baseForwardingRule", { + get: $util.oneOfGetter($oneOfFields = ["baseForwardingRule"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * ForwardingRule _creationTimestamp. * @member {"creationTimestamp"|undefined} _creationTimestamp @@ -106319,6 +107178,9 @@ if (message.ports != null && message.ports.length) for (var i = 0; i < message.ports.length; ++i) writer.uint32(/* id 106854418, wireType 2 =*/854835346).string(message.ports[i]); + if (message.sourceIpRanges != null && message.sourceIpRanges.length) + for (var i = 0; i < message.sourceIpRanges.length; ++i) + writer.uint32(/* id 111563210, wireType 2 =*/892505682).string(message.sourceIpRanges[i]); if (message.isMirroringCollector != null && Object.hasOwnProperty.call(message, "isMirroringCollector")) writer.uint32(/* id 119255164, wireType 0 =*/954041312).bool(message.isMirroringCollector); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -106370,6 +107232,8 @@ writer.uint32(/* id 500195327, wireType 2 =*/4001562618).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); if (message.networkTier != null && Object.hasOwnProperty.call(message, "networkTier")) writer.uint32(/* id 517397843, wireType 2 =*/4139182746).string(message.networkTier); + if (message.baseForwardingRule != null && Object.hasOwnProperty.call(message, "baseForwardingRule")) + writer.uint32(/* id 524873104, wireType 2 =*/4198984834).string(message.baseForwardingRule); return writer; }; @@ -106424,6 +107288,10 @@ message.backendService = reader.string(); break; } + case 524873104: { + message.baseForwardingRule = reader.string(); + break; + } case 30525366: { message.creationTimestamp = reader.string(); break; @@ -106545,6 +107413,12 @@ message.serviceName = reader.string(); break; } + case 111563210: { + if (!(message.sourceIpRanges && message.sourceIpRanges.length)) + message.sourceIpRanges = []; + message.sourceIpRanges.push(reader.string()); + break; + } case 307827694: { message.subnetwork = reader.string(); break; @@ -106614,6 +107488,11 @@ if (!$util.isString(message.backendService)) return "backendService: string expected"; } + if (message.baseForwardingRule != null && message.hasOwnProperty("baseForwardingRule")) { + properties._baseForwardingRule = 1; + if (!$util.isString(message.baseForwardingRule)) + return "baseForwardingRule: string expected"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -106747,6 +107626,13 @@ if (!$util.isString(message.serviceName)) return "serviceName: string expected"; } + if (message.sourceIpRanges != null && message.hasOwnProperty("sourceIpRanges")) { + if (!Array.isArray(message.sourceIpRanges)) + return "sourceIpRanges: array expected"; + for (var i = 0; i < message.sourceIpRanges.length; ++i) + if (!$util.isString(message.sourceIpRanges[i])) + return "sourceIpRanges: string[] expected"; + } if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) { properties._subnetwork = 1; if (!$util.isString(message.subnetwork)) @@ -106782,6 +107668,8 @@ message.allowGlobalAccess = Boolean(object.allowGlobalAccess); if (object.backendService != null) message.backendService = String(object.backendService); + if (object.baseForwardingRule != null) + message.baseForwardingRule = String(object.baseForwardingRule); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.description != null) @@ -106870,6 +107758,13 @@ message.serviceLabel = String(object.serviceLabel); if (object.serviceName != null) message.serviceName = String(object.serviceName); + if (object.sourceIpRanges) { + if (!Array.isArray(object.sourceIpRanges)) + throw TypeError(".google.cloud.compute.v1.ForwardingRule.sourceIpRanges: array expected"); + message.sourceIpRanges = []; + for (var i = 0; i < object.sourceIpRanges.length; ++i) + message.sourceIpRanges[i] = String(object.sourceIpRanges[i]); + } if (object.subnetwork != null) message.subnetwork = String(object.subnetwork); if (object.target != null) @@ -106892,6 +107787,7 @@ var object = {}; if (options.arrays || options.defaults) { object.ports = []; + object.sourceIpRanges = []; object.serviceDirectoryRegistrations = []; object.metadataFilters = []; } @@ -106935,6 +107831,11 @@ for (var j = 0; j < message.ports.length; ++j) object.ports[j] = message.ports[j]; } + if (message.sourceIpRanges && message.sourceIpRanges.length) { + object.sourceIpRanges = []; + for (var j = 0; j < message.sourceIpRanges.length; ++j) + object.sourceIpRanges[j] = message.sourceIpRanges[j]; + } if (message.isMirroringCollector != null && message.hasOwnProperty("isMirroringCollector")) { object.isMirroringCollector = message.isMirroringCollector; if (options.oneofs) @@ -107059,6 +107960,11 @@ if (options.oneofs) object._networkTier = "networkTier"; } + if (message.baseForwardingRule != null && message.hasOwnProperty("baseForwardingRule")) { + object.baseForwardingRule = message.baseForwardingRule; + if (options.oneofs) + object._baseForwardingRule = "baseForwardingRule"; + } return object; }; @@ -130923,6 +131829,256 @@ return GetRegionInstanceGroupRequest; })(); + v1.GetRegionInstanceTemplateRequest = (function() { + + /** + * Properties of a GetRegionInstanceTemplateRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionInstanceTemplateRequest + * @property {string|null} [instanceTemplate] GetRegionInstanceTemplateRequest instanceTemplate + * @property {string|null} [project] GetRegionInstanceTemplateRequest project + * @property {string|null} [region] GetRegionInstanceTemplateRequest region + */ + + /** + * Constructs a new GetRegionInstanceTemplateRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionInstanceTemplateRequest. + * @implements IGetRegionInstanceTemplateRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionInstanceTemplateRequest=} [properties] Properties to set + */ + function GetRegionInstanceTemplateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRegionInstanceTemplateRequest instanceTemplate. + * @member {string} instanceTemplate + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @instance + */ + GetRegionInstanceTemplateRequest.prototype.instanceTemplate = ""; + + /** + * GetRegionInstanceTemplateRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @instance + */ + GetRegionInstanceTemplateRequest.prototype.project = ""; + + /** + * GetRegionInstanceTemplateRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @instance + */ + GetRegionInstanceTemplateRequest.prototype.region = ""; + + /** + * Creates a new GetRegionInstanceTemplateRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstanceTemplateRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionInstanceTemplateRequest} GetRegionInstanceTemplateRequest instance + */ + GetRegionInstanceTemplateRequest.create = function create(properties) { + return new GetRegionInstanceTemplateRequest(properties); + }; + + /** + * Encodes the specified GetRegionInstanceTemplateRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstanceTemplateRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstanceTemplateRequest} message GetRegionInstanceTemplateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstanceTemplateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instanceTemplate != null && Object.hasOwnProperty.call(message, "instanceTemplate")) + writer.uint32(/* id 309248228, wireType 2 =*/2473985826).string(message.instanceTemplate); + return writer; + }; + + /** + * Encodes the specified GetRegionInstanceTemplateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstanceTemplateRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstanceTemplateRequest} message GetRegionInstanceTemplateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstanceTemplateRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionInstanceTemplateRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetRegionInstanceTemplateRequest} GetRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstanceTemplateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetRegionInstanceTemplateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 309248228: { + message.instanceTemplate = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionInstanceTemplateRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionInstanceTemplateRequest} GetRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstanceTemplateRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionInstanceTemplateRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionInstanceTemplateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) + if (!$util.isString(message.instanceTemplate)) + return "instanceTemplate: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + return null; + }; + + /** + * Creates a GetRegionInstanceTemplateRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionInstanceTemplateRequest} GetRegionInstanceTemplateRequest + */ + GetRegionInstanceTemplateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionInstanceTemplateRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionInstanceTemplateRequest(); + if (object.instanceTemplate != null) + message.instanceTemplate = String(object.instanceTemplate); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + return message; + }; + + /** + * Creates a plain object from a GetRegionInstanceTemplateRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.GetRegionInstanceTemplateRequest} message GetRegionInstanceTemplateRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionInstanceTemplateRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.instanceTemplate = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) + object.instanceTemplate = message.instanceTemplate; + return object; + }; + + /** + * Converts this GetRegionInstanceTemplateRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionInstanceTemplateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionInstanceTemplateRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionInstanceTemplateRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionInstanceTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionInstanceTemplateRequest"; + }; + + return GetRegionInstanceTemplateRequest; + })(); + v1.GetRegionNetworkEndpointGroupRequest = (function() { /** @@ -170939,27 +172095,27 @@ return InsertRegionInstanceGroupManagerRequest; })(); - v1.InsertRegionNetworkEndpointGroupRequest = (function() { + v1.InsertRegionInstanceTemplateRequest = (function() { /** - * Properties of an InsertRegionNetworkEndpointGroupRequest. + * Properties of an InsertRegionInstanceTemplateRequest. * @memberof google.cloud.compute.v1 - * @interface IInsertRegionNetworkEndpointGroupRequest - * @property {google.cloud.compute.v1.INetworkEndpointGroup|null} [networkEndpointGroupResource] InsertRegionNetworkEndpointGroupRequest networkEndpointGroupResource - * @property {string|null} [project] InsertRegionNetworkEndpointGroupRequest project - * @property {string|null} [region] InsertRegionNetworkEndpointGroupRequest region - * @property {string|null} [requestId] InsertRegionNetworkEndpointGroupRequest requestId + * @interface IInsertRegionInstanceTemplateRequest + * @property {google.cloud.compute.v1.IInstanceTemplate|null} [instanceTemplateResource] InsertRegionInstanceTemplateRequest instanceTemplateResource + * @property {string|null} [project] InsertRegionInstanceTemplateRequest project + * @property {string|null} [region] InsertRegionInstanceTemplateRequest region + * @property {string|null} [requestId] InsertRegionInstanceTemplateRequest requestId */ /** - * Constructs a new InsertRegionNetworkEndpointGroupRequest. + * Constructs a new InsertRegionInstanceTemplateRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an InsertRegionNetworkEndpointGroupRequest. - * @implements IInsertRegionNetworkEndpointGroupRequest + * @classdesc Represents an InsertRegionInstanceTemplateRequest. + * @implements IInsertRegionInstanceTemplateRequest * @constructor - * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest=} [properties] Properties to set */ - function InsertRegionNetworkEndpointGroupRequest(properties) { + function InsertRegionInstanceTemplateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170967,119 +172123,416 @@ } /** - * InsertRegionNetworkEndpointGroupRequest networkEndpointGroupResource. - * @member {google.cloud.compute.v1.INetworkEndpointGroup|null|undefined} networkEndpointGroupResource - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * InsertRegionInstanceTemplateRequest instanceTemplateResource. + * @member {google.cloud.compute.v1.IInstanceTemplate|null|undefined} instanceTemplateResource + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @instance */ - InsertRegionNetworkEndpointGroupRequest.prototype.networkEndpointGroupResource = null; + InsertRegionInstanceTemplateRequest.prototype.instanceTemplateResource = null; /** - * InsertRegionNetworkEndpointGroupRequest project. + * InsertRegionInstanceTemplateRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @instance */ - InsertRegionNetworkEndpointGroupRequest.prototype.project = ""; + InsertRegionInstanceTemplateRequest.prototype.project = ""; /** - * InsertRegionNetworkEndpointGroupRequest region. + * InsertRegionInstanceTemplateRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @instance */ - InsertRegionNetworkEndpointGroupRequest.prototype.region = ""; + InsertRegionInstanceTemplateRequest.prototype.region = ""; /** - * InsertRegionNetworkEndpointGroupRequest requestId. + * InsertRegionInstanceTemplateRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @instance */ - InsertRegionNetworkEndpointGroupRequest.prototype.requestId = null; + InsertRegionInstanceTemplateRequest.prototype.requestId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * InsertRegionNetworkEndpointGroupRequest _requestId. + * InsertRegionInstanceTemplateRequest _requestId. * @member {"requestId"|undefined} _requestId - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @instance */ - Object.defineProperty(InsertRegionNetworkEndpointGroupRequest.prototype, "_requestId", { + Object.defineProperty(InsertRegionInstanceTemplateRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new InsertRegionNetworkEndpointGroupRequest instance using the specified properties. + * Creates a new InsertRegionInstanceTemplateRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @static - * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest} InsertRegionNetworkEndpointGroupRequest instance + * @param {google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionInstanceTemplateRequest} InsertRegionInstanceTemplateRequest instance */ - InsertRegionNetworkEndpointGroupRequest.create = function create(properties) { - return new InsertRegionNetworkEndpointGroupRequest(properties); + InsertRegionInstanceTemplateRequest.create = function create(properties) { + return new InsertRegionInstanceTemplateRequest(properties); }; /** - * Encodes the specified InsertRegionNetworkEndpointGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest.verify|verify} messages. + * Encodes the specified InsertRegionInstanceTemplateRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstanceTemplateRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @static - * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest} message InsertRegionNetworkEndpointGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest} message InsertRegionInstanceTemplateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionNetworkEndpointGroupRequest.encode = function encode(message, writer) { + InsertRegionInstanceTemplateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.instanceTemplateResource != null && Object.hasOwnProperty.call(message, "instanceTemplateResource")) + $root.google.cloud.compute.v1.InstanceTemplate.encode(message.instanceTemplateResource, writer.uint32(/* id 10679561, wireType 2 =*/85436490).fork()).ldelim(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.networkEndpointGroupResource != null && Object.hasOwnProperty.call(message, "networkEndpointGroupResource")) - $root.google.cloud.compute.v1.NetworkEndpointGroup.encode(message.networkEndpointGroupResource, writer.uint32(/* id 525788839, wireType 2 =*/4206310714).fork()).ldelim(); return writer; }; /** - * Encodes the specified InsertRegionNetworkEndpointGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest.verify|verify} messages. + * Encodes the specified InsertRegionInstanceTemplateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstanceTemplateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @static - * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest} message InsertRegionNetworkEndpointGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest} message InsertRegionInstanceTemplateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionNetworkEndpointGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + InsertRegionInstanceTemplateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InsertRegionNetworkEndpointGroupRequest message from the specified reader or buffer. + * Decodes an InsertRegionInstanceTemplateRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest} InsertRegionNetworkEndpointGroupRequest + * @returns {google.cloud.compute.v1.InsertRegionInstanceTemplateRequest} InsertRegionInstanceTemplateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionNetworkEndpointGroupRequest.decode = function decode(reader, length) { + InsertRegionInstanceTemplateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 525788839: { - message.networkEndpointGroupResource = $root.google.cloud.compute.v1.NetworkEndpointGroup.decode(reader, reader.uint32()); + case 10679561: { + message.instanceTemplateResource = $root.google.cloud.compute.v1.InstanceTemplate.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertRegionInstanceTemplateRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertRegionInstanceTemplateRequest} InsertRegionInstanceTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionInstanceTemplateRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionInstanceTemplateRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionInstanceTemplateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instanceTemplateResource != null && message.hasOwnProperty("instanceTemplateResource")) { + var error = $root.google.cloud.compute.v1.InstanceTemplate.verify(message.instanceTemplateResource); + if (error) + return "instanceTemplateResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an InsertRegionInstanceTemplateRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionInstanceTemplateRequest} InsertRegionInstanceTemplateRequest + */ + InsertRegionInstanceTemplateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest(); + if (object.instanceTemplateResource != null) { + if (typeof object.instanceTemplateResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionInstanceTemplateRequest.instanceTemplateResource: object expected"); + message.instanceTemplateResource = $root.google.cloud.compute.v1.InstanceTemplate.fromObject(object.instanceTemplateResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an InsertRegionInstanceTemplateRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest + * @static + * @param {google.cloud.compute.v1.InsertRegionInstanceTemplateRequest} message InsertRegionInstanceTemplateRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionInstanceTemplateRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.instanceTemplateResource = null; + object.region = ""; + object.project = ""; + } + if (message.instanceTemplateResource != null && message.hasOwnProperty("instanceTemplateResource")) + object.instanceTemplateResource = $root.google.cloud.compute.v1.InstanceTemplate.toObject(message.instanceTemplateResource, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this InsertRegionInstanceTemplateRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionInstanceTemplateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionInstanceTemplateRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertRegionInstanceTemplateRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionInstanceTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertRegionInstanceTemplateRequest"; + }; + + return InsertRegionInstanceTemplateRequest; + })(); + + v1.InsertRegionNetworkEndpointGroupRequest = (function() { + + /** + * Properties of an InsertRegionNetworkEndpointGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionNetworkEndpointGroupRequest + * @property {google.cloud.compute.v1.INetworkEndpointGroup|null} [networkEndpointGroupResource] InsertRegionNetworkEndpointGroupRequest networkEndpointGroupResource + * @property {string|null} [project] InsertRegionNetworkEndpointGroupRequest project + * @property {string|null} [region] InsertRegionNetworkEndpointGroupRequest region + * @property {string|null} [requestId] InsertRegionNetworkEndpointGroupRequest requestId + */ + + /** + * Constructs a new InsertRegionNetworkEndpointGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertRegionNetworkEndpointGroupRequest. + * @implements IInsertRegionNetworkEndpointGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest=} [properties] Properties to set + */ + function InsertRegionNetworkEndpointGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertRegionNetworkEndpointGroupRequest networkEndpointGroupResource. + * @member {google.cloud.compute.v1.INetworkEndpointGroup|null|undefined} networkEndpointGroupResource + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + InsertRegionNetworkEndpointGroupRequest.prototype.networkEndpointGroupResource = null; + + /** + * InsertRegionNetworkEndpointGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + InsertRegionNetworkEndpointGroupRequest.prototype.project = ""; + + /** + * InsertRegionNetworkEndpointGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + InsertRegionNetworkEndpointGroupRequest.prototype.region = ""; + + /** + * InsertRegionNetworkEndpointGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + InsertRegionNetworkEndpointGroupRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InsertRegionNetworkEndpointGroupRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + Object.defineProperty(InsertRegionNetworkEndpointGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionNetworkEndpointGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest} InsertRegionNetworkEndpointGroupRequest instance + */ + InsertRegionNetworkEndpointGroupRequest.create = function create(properties) { + return new InsertRegionNetworkEndpointGroupRequest(properties); + }; + + /** + * Encodes the specified InsertRegionNetworkEndpointGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest} message InsertRegionNetworkEndpointGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionNetworkEndpointGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.networkEndpointGroupResource != null && Object.hasOwnProperty.call(message, "networkEndpointGroupResource")) + $root.google.cloud.compute.v1.NetworkEndpointGroup.encode(message.networkEndpointGroupResource, writer.uint32(/* id 525788839, wireType 2 =*/4206310714).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionNetworkEndpointGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest} message InsertRegionNetworkEndpointGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionNetworkEndpointGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionNetworkEndpointGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest} InsertRegionNetworkEndpointGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionNetworkEndpointGroupRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 525788839: { + message.networkEndpointGroupResource = $root.google.cloud.compute.v1.NetworkEndpointGroup.decode(reader, reader.uint32()); break; } case 227560217: { @@ -198393,6 +199846,7 @@ * @property {string|null} [kind] InstanceTemplate kind * @property {string|null} [name] InstanceTemplate name * @property {google.cloud.compute.v1.IInstanceProperties|null} [properties] InstanceTemplate properties + * @property {string|null} [region] InstanceTemplate region * @property {string|null} [selfLink] InstanceTemplate selfLink * @property {string|null} [sourceInstance] InstanceTemplate sourceInstance * @property {google.cloud.compute.v1.ISourceInstanceParams|null} [sourceInstanceParams] InstanceTemplate sourceInstanceParams @@ -198461,6 +199915,14 @@ */ InstanceTemplate.prototype.properties = null; + /** + * InstanceTemplate region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.InstanceTemplate + * @instance + */ + InstanceTemplate.prototype.region = null; + /** * InstanceTemplate selfLink. * @member {string|null|undefined} selfLink @@ -198554,6 +200016,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstanceTemplate _region. + * @member {"region"|undefined} _region + * @memberof google.cloud.compute.v1.InstanceTemplate + * @instance + */ + Object.defineProperty(InstanceTemplate.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceTemplate _selfLink. * @member {"selfLink"|undefined} _selfLink @@ -198621,6 +200094,8 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.sourceInstanceParams != null && Object.hasOwnProperty.call(message, "sourceInstanceParams")) $root.google.cloud.compute.v1.SourceInstanceParams.encode(message.sourceInstanceParams, writer.uint32(/* id 135342156, wireType 2 =*/1082737250).fork()).ldelim(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.properties != null && Object.hasOwnProperty.call(message, "properties")) $root.google.cloud.compute.v1.InstanceProperties.encode(message.properties, writer.uint32(/* id 147688755, wireType 2 =*/1181510042).fork()).ldelim(); if (message.sourceInstance != null && Object.hasOwnProperty.call(message, "sourceInstance")) @@ -198687,6 +200162,10 @@ message.properties = $root.google.cloud.compute.v1.InstanceProperties.decode(reader, reader.uint32()); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 456214797: { message.selfLink = reader.string(); break; @@ -198768,6 +200247,11 @@ return "properties." + error; } } + if (message.region != null && message.hasOwnProperty("region")) { + properties._region = 1; + if (!$util.isString(message.region)) + return "region: string expected"; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { properties._selfLink = 1; if (!$util.isString(message.selfLink)) @@ -198823,6 +200307,8 @@ throw TypeError(".google.cloud.compute.v1.InstanceTemplate.properties: object expected"); message.properties = $root.google.cloud.compute.v1.InstanceProperties.fromObject(object.properties); } + if (object.region != null) + message.region = String(object.region); if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.sourceInstance != null) @@ -198876,6 +200362,11 @@ if (options.oneofs) object._sourceInstanceParams = "sourceInstanceParams"; } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } if (message.properties != null && message.hasOwnProperty("properties")) { object.properties = $root.google.cloud.compute.v1.InstanceProperties.toObject(message.properties, options); if (options.oneofs) @@ -198928,6 +200419,451 @@ return InstanceTemplate; })(); + v1.InstanceTemplateAggregatedList = (function() { + + /** + * Properties of an InstanceTemplateAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface IInstanceTemplateAggregatedList + * @property {string|null} [id] InstanceTemplateAggregatedList id + * @property {Object.|null} [items] InstanceTemplateAggregatedList items + * @property {string|null} [kind] InstanceTemplateAggregatedList kind + * @property {string|null} [nextPageToken] InstanceTemplateAggregatedList nextPageToken + * @property {string|null} [selfLink] InstanceTemplateAggregatedList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] InstanceTemplateAggregatedList warning + */ + + /** + * Constructs a new InstanceTemplateAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceTemplateAggregatedList. + * @implements IInstanceTemplateAggregatedList + * @constructor + * @param {google.cloud.compute.v1.IInstanceTemplateAggregatedList=} [properties] Properties to set + */ + function InstanceTemplateAggregatedList(properties) { + this.items = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceTemplateAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + InstanceTemplateAggregatedList.prototype.id = null; + + /** + * InstanceTemplateAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + InstanceTemplateAggregatedList.prototype.items = $util.emptyObject; + + /** + * InstanceTemplateAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + InstanceTemplateAggregatedList.prototype.kind = null; + + /** + * InstanceTemplateAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + InstanceTemplateAggregatedList.prototype.nextPageToken = null; + + /** + * InstanceTemplateAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + InstanceTemplateAggregatedList.prototype.selfLink = null; + + /** + * InstanceTemplateAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + InstanceTemplateAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstanceTemplateAggregatedList _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + Object.defineProperty(InstanceTemplateAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceTemplateAggregatedList _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + Object.defineProperty(InstanceTemplateAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceTemplateAggregatedList _nextPageToken. + * @member {"nextPageToken"|undefined} _nextPageToken + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + Object.defineProperty(InstanceTemplateAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceTemplateAggregatedList _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + Object.defineProperty(InstanceTemplateAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceTemplateAggregatedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + */ + Object.defineProperty(InstanceTemplateAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceTemplateAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {google.cloud.compute.v1.IInstanceTemplateAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceTemplateAggregatedList} InstanceTemplateAggregatedList instance + */ + InstanceTemplateAggregatedList.create = function create(properties) { + return new InstanceTemplateAggregatedList(properties); + }; + + /** + * Encodes the specified InstanceTemplateAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.InstanceTemplateAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {google.cloud.compute.v1.IInstanceTemplateAggregatedList} message InstanceTemplateAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceTemplateAggregatedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1.InstanceTemplatesScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified InstanceTemplateAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceTemplateAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {google.cloud.compute.v1.IInstanceTemplateAggregatedList} message InstanceTemplateAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceTemplateAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceTemplateAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstanceTemplateAggregatedList} InstanceTemplateAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceTemplateAggregatedList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstanceTemplateAggregatedList(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (message.items === $util.emptyObject) + message.items = {}; + 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.compute.v1.InstanceTemplatesScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceTemplateAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceTemplateAggregatedList} InstanceTemplateAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceTemplateAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceTemplateAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceTemplateAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.InstanceTemplatesScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates an InstanceTemplateAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceTemplateAggregatedList} InstanceTemplateAggregatedList + */ + InstanceTemplateAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceTemplateAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.InstanceTemplateAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceTemplateAggregatedList.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { + if (typeof object.items[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceTemplateAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.InstanceTemplatesScopedList.fromObject(object.items[keys[i]]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceTemplateAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from an InstanceTemplateAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {google.cloud.compute.v1.InstanceTemplateAggregatedList} message InstanceTemplateAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceTemplateAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.items = {}; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1.InstanceTemplatesScopedList.toObject(message.items[keys2[j]], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this InstanceTemplateAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @instance + * @returns {Object.} JSON object + */ + InstanceTemplateAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceTemplateAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceTemplateAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceTemplateAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceTemplateAggregatedList"; + }; + + return InstanceTemplateAggregatedList; + })(); + v1.InstanceTemplateList = (function() { /** @@ -199352,6 +201288,278 @@ return InstanceTemplateList; })(); + v1.InstanceTemplatesScopedList = (function() { + + /** + * Properties of an InstanceTemplatesScopedList. + * @memberof google.cloud.compute.v1 + * @interface IInstanceTemplatesScopedList + * @property {Array.|null} [instanceTemplates] InstanceTemplatesScopedList instanceTemplates + * @property {google.cloud.compute.v1.IWarning|null} [warning] InstanceTemplatesScopedList warning + */ + + /** + * Constructs a new InstanceTemplatesScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceTemplatesScopedList. + * @implements IInstanceTemplatesScopedList + * @constructor + * @param {google.cloud.compute.v1.IInstanceTemplatesScopedList=} [properties] Properties to set + */ + function InstanceTemplatesScopedList(properties) { + this.instanceTemplates = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceTemplatesScopedList instanceTemplates. + * @member {Array.} instanceTemplates + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @instance + */ + InstanceTemplatesScopedList.prototype.instanceTemplates = $util.emptyArray; + + /** + * InstanceTemplatesScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @instance + */ + InstanceTemplatesScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstanceTemplatesScopedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @instance + */ + Object.defineProperty(InstanceTemplatesScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceTemplatesScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {google.cloud.compute.v1.IInstanceTemplatesScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceTemplatesScopedList} InstanceTemplatesScopedList instance + */ + InstanceTemplatesScopedList.create = function create(properties) { + return new InstanceTemplatesScopedList(properties); + }; + + /** + * Encodes the specified InstanceTemplatesScopedList message. Does not implicitly {@link google.cloud.compute.v1.InstanceTemplatesScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {google.cloud.compute.v1.IInstanceTemplatesScopedList} message InstanceTemplatesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceTemplatesScopedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.instanceTemplates != null && message.instanceTemplates.length) + for (var i = 0; i < message.instanceTemplates.length; ++i) + $root.google.cloud.compute.v1.InstanceTemplate.encode(message.instanceTemplates[i], writer.uint32(/* id 459889679, wireType 2 =*/3679117434).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstanceTemplatesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceTemplatesScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {google.cloud.compute.v1.IInstanceTemplatesScopedList} message InstanceTemplatesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceTemplatesScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceTemplatesScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstanceTemplatesScopedList} InstanceTemplatesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceTemplatesScopedList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstanceTemplatesScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 459889679: { + if (!(message.instanceTemplates && message.instanceTemplates.length)) + message.instanceTemplates = []; + message.instanceTemplates.push($root.google.cloud.compute.v1.InstanceTemplate.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceTemplatesScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceTemplatesScopedList} InstanceTemplatesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceTemplatesScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceTemplatesScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceTemplatesScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instanceTemplates != null && message.hasOwnProperty("instanceTemplates")) { + if (!Array.isArray(message.instanceTemplates)) + return "instanceTemplates: array expected"; + for (var i = 0; i < message.instanceTemplates.length; ++i) { + var error = $root.google.cloud.compute.v1.InstanceTemplate.verify(message.instanceTemplates[i]); + if (error) + return "instanceTemplates." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates an InstanceTemplatesScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceTemplatesScopedList} InstanceTemplatesScopedList + */ + InstanceTemplatesScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceTemplatesScopedList) + return object; + var message = new $root.google.cloud.compute.v1.InstanceTemplatesScopedList(); + if (object.instanceTemplates) { + if (!Array.isArray(object.instanceTemplates)) + throw TypeError(".google.cloud.compute.v1.InstanceTemplatesScopedList.instanceTemplates: array expected"); + message.instanceTemplates = []; + for (var i = 0; i < object.instanceTemplates.length; ++i) { + if (typeof object.instanceTemplates[i] !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceTemplatesScopedList.instanceTemplates: object expected"); + message.instanceTemplates[i] = $root.google.cloud.compute.v1.InstanceTemplate.fromObject(object.instanceTemplates[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceTemplatesScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from an InstanceTemplatesScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {google.cloud.compute.v1.InstanceTemplatesScopedList} message InstanceTemplatesScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceTemplatesScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instanceTemplates = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.instanceTemplates && message.instanceTemplates.length) { + object.instanceTemplates = []; + for (var j = 0; j < message.instanceTemplates.length; ++j) + object.instanceTemplates[j] = $root.google.cloud.compute.v1.InstanceTemplate.toObject(message.instanceTemplates[j], options); + } + return object; + }; + + /** + * Converts this InstanceTemplatesScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @instance + * @returns {Object.} JSON object + */ + InstanceTemplatesScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceTemplatesScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceTemplatesScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceTemplatesScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceTemplatesScopedList"; + }; + + return InstanceTemplatesScopedList; + })(); + v1.InstanceWithNamedPorts = (function() { /** @@ -202013,6 +204221,265 @@ return InstancesSetMinCpuPlatformRequest; })(); + v1.InstancesSetNameRequest = (function() { + + /** + * Properties of an InstancesSetNameRequest. + * @memberof google.cloud.compute.v1 + * @interface IInstancesSetNameRequest + * @property {string|null} [currentName] InstancesSetNameRequest currentName + * @property {string|null} [name] InstancesSetNameRequest name + */ + + /** + * Constructs a new InstancesSetNameRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstancesSetNameRequest. + * @implements IInstancesSetNameRequest + * @constructor + * @param {google.cloud.compute.v1.IInstancesSetNameRequest=} [properties] Properties to set + */ + function InstancesSetNameRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstancesSetNameRequest currentName. + * @member {string|null|undefined} currentName + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @instance + */ + InstancesSetNameRequest.prototype.currentName = null; + + /** + * InstancesSetNameRequest name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @instance + */ + InstancesSetNameRequest.prototype.name = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstancesSetNameRequest _currentName. + * @member {"currentName"|undefined} _currentName + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @instance + */ + Object.defineProperty(InstancesSetNameRequest.prototype, "_currentName", { + get: $util.oneOfGetter($oneOfFields = ["currentName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstancesSetNameRequest _name. + * @member {"name"|undefined} _name + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @instance + */ + Object.defineProperty(InstancesSetNameRequest.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstancesSetNameRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {google.cloud.compute.v1.IInstancesSetNameRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstancesSetNameRequest} InstancesSetNameRequest instance + */ + InstancesSetNameRequest.create = function create(properties) { + return new InstancesSetNameRequest(properties); + }; + + /** + * Encodes the specified InstancesSetNameRequest message. Does not implicitly {@link google.cloud.compute.v1.InstancesSetNameRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {google.cloud.compute.v1.IInstancesSetNameRequest} message InstancesSetNameRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancesSetNameRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.currentName != null && Object.hasOwnProperty.call(message, "currentName")) + writer.uint32(/* id 394983825, wireType 2 =*/3159870602).string(message.currentName); + return writer; + }; + + /** + * Encodes the specified InstancesSetNameRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstancesSetNameRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {google.cloud.compute.v1.IInstancesSetNameRequest} message InstancesSetNameRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancesSetNameRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstancesSetNameRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstancesSetNameRequest} InstancesSetNameRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancesSetNameRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstancesSetNameRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 394983825: { + message.currentName = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstancesSetNameRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstancesSetNameRequest} InstancesSetNameRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancesSetNameRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstancesSetNameRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstancesSetNameRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.currentName != null && message.hasOwnProperty("currentName")) { + properties._currentName = 1; + if (!$util.isString(message.currentName)) + return "currentName: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + return null; + }; + + /** + * Creates an InstancesSetNameRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstancesSetNameRequest} InstancesSetNameRequest + */ + InstancesSetNameRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstancesSetNameRequest) + return object; + var message = new $root.google.cloud.compute.v1.InstancesSetNameRequest(); + if (object.currentName != null) + message.currentName = String(object.currentName); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an InstancesSetNameRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {google.cloud.compute.v1.InstancesSetNameRequest} message InstancesSetNameRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstancesSetNameRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.currentName != null && message.hasOwnProperty("currentName")) { + object.currentName = message.currentName; + if (options.oneofs) + object._currentName = "currentName"; + } + return object; + }; + + /** + * Converts this InstancesSetNameRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @instance + * @returns {Object.} JSON object + */ + InstancesSetNameRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstancesSetNameRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstancesSetNameRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstancesSetNameRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstancesSetNameRequest"; + }; + + return InstancesSetNameRequest; + })(); + v1.InstancesSetServiceAccountRequest = (function() { /** @@ -242232,30 +244699,30 @@ return ListRegionInstanceGroupsRequest; })(); - v1.ListRegionNetworkEndpointGroupsRequest = (function() { + v1.ListRegionInstanceTemplatesRequest = (function() { /** - * Properties of a ListRegionNetworkEndpointGroupsRequest. + * Properties of a ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNetworkEndpointGroupsRequest - * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter - * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project - * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess + * @interface IListRegionInstanceTemplatesRequest + * @property {string|null} [filter] ListRegionInstanceTemplatesRequest filter + * @property {number|null} [maxResults] ListRegionInstanceTemplatesRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceTemplatesRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceTemplatesRequest pageToken + * @property {string|null} [project] ListRegionInstanceTemplatesRequest project + * @property {string|null} [region] ListRegionInstanceTemplatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceTemplatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkEndpointGroupsRequest. + * Constructs a new ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. - * @implements IListRegionNetworkEndpointGroupsRequest + * @classdesc Represents a ListRegionInstanceTemplatesRequest. + * @implements IListRegionInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set */ - function ListRegionNetworkEndpointGroupsRequest(properties) { + function ListRegionInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242263,141 +244730,141 @@ } /** - * ListRegionNetworkEndpointGroupsRequest filter. + * ListRegionInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; + ListRegionInstanceTemplatesRequest.prototype.filter = null; /** - * ListRegionNetworkEndpointGroupsRequest maxResults. + * ListRegionInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; + ListRegionInstanceTemplatesRequest.prototype.maxResults = null; /** - * ListRegionNetworkEndpointGroupsRequest orderBy. + * ListRegionInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; + ListRegionInstanceTemplatesRequest.prototype.orderBy = null; /** - * ListRegionNetworkEndpointGroupsRequest pageToken. + * ListRegionInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; + ListRegionInstanceTemplatesRequest.prototype.pageToken = null; /** - * ListRegionNetworkEndpointGroupsRequest project. + * ListRegionInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; + ListRegionInstanceTemplatesRequest.prototype.project = ""; /** - * ListRegionNetworkEndpointGroupsRequest region. + * ListRegionInstanceTemplatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; + ListRegionInstanceTemplatesRequest.prototype.region = ""; /** - * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. + * ListRegionInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionNetworkEndpointGroupsRequest _filter. + * ListRegionInstanceTemplatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkEndpointGroupsRequest _maxResults. + * ListRegionInstanceTemplatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkEndpointGroupsRequest _orderBy. + * ListRegionInstanceTemplatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkEndpointGroupsRequest _pageToken. + * ListRegionInstanceTemplatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkEndpointGroupsRequest _returnPartialSuccess. + * ListRegionInstanceTemplatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance */ - ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { - return new ListRegionNetworkEndpointGroupsRequest(properties); + ListRegionInstanceTemplatesRequest.create = function create(properties) { + return new ListRegionInstanceTemplatesRequest(properties); }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + ListRegionInstanceTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -242418,33 +244885,33 @@ }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length) { + ListRegionInstanceTemplatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -242485,30 +244952,30 @@ }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkEndpointGroupsRequest message. + * Verifies a ListRegionInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { + ListRegionInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -242547,17 +245014,17 @@ }; /** - * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest */ - ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest) + ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -242576,15 +245043,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -242625,58 +245092,58 @@ }; /** - * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. + * Converts this ListRegionInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkEndpointGroupsRequest + * Gets the default type url for ListRegionInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; }; - return ListRegionNetworkEndpointGroupsRequest; + return ListRegionInstanceTemplatesRequest; })(); - v1.ListRegionNetworkFirewallPoliciesRequest = (function() { + v1.ListRegionNetworkEndpointGroupsRequest = (function() { /** - * Properties of a ListRegionNetworkFirewallPoliciesRequest. + * Properties of a ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNetworkFirewallPoliciesRequest - * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken - * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project - * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess + * @interface IListRegionNetworkEndpointGroupsRequest + * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter + * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project + * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkFirewallPoliciesRequest. + * Constructs a new ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. - * @implements IListRegionNetworkFirewallPoliciesRequest + * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. + * @implements IListRegionNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function ListRegionNetworkFirewallPoliciesRequest(properties) { + function ListRegionNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242684,141 +245151,141 @@ } /** - * ListRegionNetworkFirewallPoliciesRequest filter. + * ListRegionNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; + ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; /** - * ListRegionNetworkFirewallPoliciesRequest maxResults. + * ListRegionNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; + ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * ListRegionNetworkFirewallPoliciesRequest orderBy. + * ListRegionNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; + ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * ListRegionNetworkFirewallPoliciesRequest pageToken. + * ListRegionNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; + ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * ListRegionNetworkFirewallPoliciesRequest project. + * ListRegionNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; /** - * ListRegionNetworkFirewallPoliciesRequest region. + * ListRegionNetworkEndpointGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; /** - * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. + * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionNetworkFirewallPoliciesRequest _filter. + * ListRegionNetworkEndpointGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkFirewallPoliciesRequest _maxResults. + * ListRegionNetworkEndpointGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkFirewallPoliciesRequest _orderBy. + * ListRegionNetworkEndpointGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkFirewallPoliciesRequest _pageToken. + * ListRegionNetworkEndpointGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkFirewallPoliciesRequest _returnPartialSuccess. + * ListRegionNetworkEndpointGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. + * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance */ - ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { - return new ListRegionNetworkFirewallPoliciesRequest(properties); + ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { + return new ListRegionNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -242839,33 +245306,33 @@ }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length) { + ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -242906,30 +245373,30 @@ }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkFirewallPoliciesRequest message. + * Verifies a ListRegionNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { + ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -242968,17 +245435,17 @@ }; /** - * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest */ - ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest) + ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -242997,15 +245464,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { + ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -243046,58 +245513,58 @@ }; /** - * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. + * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest + * Gets the default type url for ListRegionNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest"; }; - return ListRegionNetworkFirewallPoliciesRequest; + return ListRegionNetworkEndpointGroupsRequest; })(); - v1.ListRegionNotificationEndpointsRequest = (function() { + v1.ListRegionNetworkFirewallPoliciesRequest = (function() { /** - * Properties of a ListRegionNotificationEndpointsRequest. + * Properties of a ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNotificationEndpointsRequest - * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter - * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults - * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy - * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken - * @property {string|null} [project] ListRegionNotificationEndpointsRequest project - * @property {string|null} [region] ListRegionNotificationEndpointsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess + * @interface IListRegionNetworkFirewallPoliciesRequest + * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken + * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project + * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNotificationEndpointsRequest. + * Constructs a new ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNotificationEndpointsRequest. - * @implements IListRegionNotificationEndpointsRequest + * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. + * @implements IListRegionNetworkFirewallPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set */ - function ListRegionNotificationEndpointsRequest(properties) { + function ListRegionNetworkFirewallPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243105,141 +245572,141 @@ } /** - * ListRegionNotificationEndpointsRequest filter. + * ListRegionNetworkFirewallPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.filter = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; /** - * ListRegionNotificationEndpointsRequest maxResults. + * ListRegionNetworkFirewallPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.maxResults = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; /** - * ListRegionNotificationEndpointsRequest orderBy. + * ListRegionNetworkFirewallPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.orderBy = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; /** - * ListRegionNotificationEndpointsRequest pageToken. + * ListRegionNetworkFirewallPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.pageToken = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; /** - * ListRegionNotificationEndpointsRequest project. + * ListRegionNetworkFirewallPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.project = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; /** - * ListRegionNotificationEndpointsRequest region. + * ListRegionNetworkFirewallPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.region = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; /** - * ListRegionNotificationEndpointsRequest returnPartialSuccess. + * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionNotificationEndpointsRequest _filter. + * ListRegionNetworkFirewallPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNotificationEndpointsRequest _maxResults. + * ListRegionNetworkFirewallPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNotificationEndpointsRequest _orderBy. + * ListRegionNetworkFirewallPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNotificationEndpointsRequest _pageToken. + * ListRegionNetworkFirewallPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNotificationEndpointsRequest _returnPartialSuccess. + * ListRegionNetworkFirewallPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. + * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance */ - ListRegionNotificationEndpointsRequest.create = function create(properties) { - return new ListRegionNotificationEndpointsRequest(properties); + ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { + return new ListRegionNetworkFirewallPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -243260,33 +245727,33 @@ }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decode = function decode(reader, length) { + ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -243327,30 +245794,30 @@ }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNotificationEndpointsRequest message. + * Verifies a ListRegionNetworkFirewallPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNotificationEndpointsRequest.verify = function verify(message) { + ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -243389,17 +245856,17 @@ }; /** - * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest */ - ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest) + ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -243418,15 +245885,15 @@ }; /** - * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest + * @param {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { + ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -243467,58 +245934,58 @@ }; /** - * Converts this ListRegionNotificationEndpointsRequest to JSON. + * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNotificationEndpointsRequest + * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNotificationEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest"; }; - return ListRegionNotificationEndpointsRequest; + return ListRegionNetworkFirewallPoliciesRequest; })(); - v1.ListRegionOperationsRequest = (function() { + v1.ListRegionNotificationEndpointsRequest = (function() { /** - * Properties of a ListRegionOperationsRequest. + * Properties of a ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionOperationsRequest - * @property {string|null} [filter] ListRegionOperationsRequest filter - * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults - * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy - * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken - * @property {string|null} [project] ListRegionOperationsRequest project - * @property {string|null} [region] ListRegionOperationsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess + * @interface IListRegionNotificationEndpointsRequest + * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter + * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults + * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy + * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken + * @property {string|null} [project] ListRegionNotificationEndpointsRequest project + * @property {string|null} [region] ListRegionNotificationEndpointsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionOperationsRequest. + * Constructs a new ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionOperationsRequest. - * @implements IListRegionOperationsRequest + * @classdesc Represents a ListRegionNotificationEndpointsRequest. + * @implements IListRegionNotificationEndpointsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set */ - function ListRegionOperationsRequest(properties) { + function ListRegionNotificationEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243526,141 +245993,141 @@ } /** - * ListRegionOperationsRequest filter. + * ListRegionNotificationEndpointsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.filter = null; + ListRegionNotificationEndpointsRequest.prototype.filter = null; /** - * ListRegionOperationsRequest maxResults. + * ListRegionNotificationEndpointsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.maxResults = null; + ListRegionNotificationEndpointsRequest.prototype.maxResults = null; /** - * ListRegionOperationsRequest orderBy. + * ListRegionNotificationEndpointsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.orderBy = null; + ListRegionNotificationEndpointsRequest.prototype.orderBy = null; /** - * ListRegionOperationsRequest pageToken. + * ListRegionNotificationEndpointsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.pageToken = null; + ListRegionNotificationEndpointsRequest.prototype.pageToken = null; /** - * ListRegionOperationsRequest project. + * ListRegionNotificationEndpointsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.project = ""; + ListRegionNotificationEndpointsRequest.prototype.project = ""; /** - * ListRegionOperationsRequest region. + * ListRegionNotificationEndpointsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.region = ""; + ListRegionNotificationEndpointsRequest.prototype.region = ""; /** - * ListRegionOperationsRequest returnPartialSuccess. + * ListRegionNotificationEndpointsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.returnPartialSuccess = null; + ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionOperationsRequest _filter. + * ListRegionNotificationEndpointsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionOperationsRequest _maxResults. + * ListRegionNotificationEndpointsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionOperationsRequest _orderBy. + * ListRegionNotificationEndpointsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionOperationsRequest _pageToken. + * ListRegionNotificationEndpointsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionOperationsRequest _returnPartialSuccess. + * ListRegionNotificationEndpointsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionOperationsRequest instance using the specified properties. + * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest instance + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance */ - ListRegionOperationsRequest.create = function create(properties) { - return new ListRegionOperationsRequest(properties); + ListRegionNotificationEndpointsRequest.create = function create(properties) { + return new ListRegionNotificationEndpointsRequest(properties); }; /** - * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encode = function encode(message, writer) { + ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -243681,33 +246148,33 @@ }; /** - * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decode = function decode(reader, length) { + ListRegionNotificationEndpointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -243748,30 +246215,30 @@ }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionOperationsRequest message. + * Verifies a ListRegionNotificationEndpointsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionOperationsRequest.verify = function verify(message) { + ListRegionNotificationEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -243810,17 +246277,17 @@ }; /** - * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest */ - ListRegionOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionOperationsRequest) + ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -243839,15 +246306,15 @@ }; /** - * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.ListRegionOperationsRequest} message ListRegionOperationsRequest + * @param {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionOperationsRequest.toObject = function toObject(message, options) { + ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -243888,58 +246355,58 @@ }; /** - * Converts this ListRegionOperationsRequest to JSON. + * Converts this ListRegionNotificationEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance * @returns {Object.} JSON object */ - ListRegionOperationsRequest.prototype.toJSON = function toJSON() { + ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionOperationsRequest + * Gets the default type url for ListRegionNotificationEndpointsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionOperationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNotificationEndpointsRequest"; }; - return ListRegionOperationsRequest; + return ListRegionNotificationEndpointsRequest; })(); - v1.ListRegionSecurityPoliciesRequest = (function() { + v1.ListRegionOperationsRequest = (function() { /** - * Properties of a ListRegionSecurityPoliciesRequest. + * Properties of a ListRegionOperationsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSecurityPoliciesRequest - * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSecurityPoliciesRequest project - * @property {string|null} [region] ListRegionSecurityPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess + * @interface IListRegionOperationsRequest + * @property {string|null} [filter] ListRegionOperationsRequest filter + * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults + * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy + * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken + * @property {string|null} [project] ListRegionOperationsRequest project + * @property {string|null} [region] ListRegionOperationsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSecurityPoliciesRequest. + * Constructs a new ListRegionOperationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSecurityPoliciesRequest. - * @implements IListRegionSecurityPoliciesRequest + * @classdesc Represents a ListRegionOperationsRequest. + * @implements IListRegionOperationsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set */ - function ListRegionSecurityPoliciesRequest(properties) { + function ListRegionOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243947,141 +246414,141 @@ } /** - * ListRegionSecurityPoliciesRequest filter. + * ListRegionOperationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.filter = null; + ListRegionOperationsRequest.prototype.filter = null; /** - * ListRegionSecurityPoliciesRequest maxResults. + * ListRegionOperationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.maxResults = null; + ListRegionOperationsRequest.prototype.maxResults = null; /** - * ListRegionSecurityPoliciesRequest orderBy. + * ListRegionOperationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.orderBy = null; + ListRegionOperationsRequest.prototype.orderBy = null; /** - * ListRegionSecurityPoliciesRequest pageToken. + * ListRegionOperationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.pageToken = null; + ListRegionOperationsRequest.prototype.pageToken = null; /** - * ListRegionSecurityPoliciesRequest project. + * ListRegionOperationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.project = ""; + ListRegionOperationsRequest.prototype.project = ""; /** - * ListRegionSecurityPoliciesRequest region. + * ListRegionOperationsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.region = ""; + ListRegionOperationsRequest.prototype.region = ""; /** - * ListRegionSecurityPoliciesRequest returnPartialSuccess. + * ListRegionOperationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionOperationsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionSecurityPoliciesRequest _filter. + * ListRegionOperationsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSecurityPoliciesRequest _maxResults. + * ListRegionOperationsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSecurityPoliciesRequest _orderBy. + * ListRegionOperationsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSecurityPoliciesRequest _pageToken. + * ListRegionOperationsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSecurityPoliciesRequest _returnPartialSuccess. + * ListRegionOperationsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. + * Creates a new ListRegionOperationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest instance */ - ListRegionSecurityPoliciesRequest.create = function create(properties) { - return new ListRegionSecurityPoliciesRequest(properties); + ListRegionOperationsRequest.create = function create(properties) { + return new ListRegionOperationsRequest(properties); }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { + ListRegionOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -244102,33 +246569,33 @@ }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decode = function decode(reader, length) { + ListRegionOperationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -244169,30 +246636,30 @@ }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSecurityPoliciesRequest message. + * Verifies a ListRegionOperationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSecurityPoliciesRequest.verify = function verify(message) { + ListRegionOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -244231,17 +246698,17 @@ }; /** - * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest */ - ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest) + ListRegionOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionOperationsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -244260,15 +246727,15 @@ }; /** - * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionOperationsRequest} message ListRegionOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { + ListRegionOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -244309,58 +246776,58 @@ }; /** - * Converts this ListRegionSecurityPoliciesRequest to JSON. + * Converts this ListRegionOperationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance * @returns {Object.} JSON object */ - ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSecurityPoliciesRequest + * Gets the default type url for ListRegionOperationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionOperationsRequest"; }; - return ListRegionSecurityPoliciesRequest; + return ListRegionOperationsRequest; })(); - v1.ListRegionSslCertificatesRequest = (function() { + v1.ListRegionSecurityPoliciesRequest = (function() { /** - * Properties of a ListRegionSslCertificatesRequest. + * Properties of a ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSslCertificatesRequest - * @property {string|null} [filter] ListRegionSslCertificatesRequest filter - * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken - * @property {string|null} [project] ListRegionSslCertificatesRequest project - * @property {string|null} [region] ListRegionSslCertificatesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess + * @interface IListRegionSecurityPoliciesRequest + * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSecurityPoliciesRequest project + * @property {string|null} [region] ListRegionSecurityPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslCertificatesRequest. + * Constructs a new ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSslCertificatesRequest. - * @implements IListRegionSslCertificatesRequest + * @classdesc Represents a ListRegionSecurityPoliciesRequest. + * @implements IListRegionSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set */ - function ListRegionSslCertificatesRequest(properties) { + function ListRegionSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244368,141 +246835,141 @@ } /** - * ListRegionSslCertificatesRequest filter. + * ListRegionSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.filter = null; + ListRegionSecurityPoliciesRequest.prototype.filter = null; /** - * ListRegionSslCertificatesRequest maxResults. + * ListRegionSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.maxResults = null; + ListRegionSecurityPoliciesRequest.prototype.maxResults = null; /** - * ListRegionSslCertificatesRequest orderBy. + * ListRegionSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.orderBy = null; + ListRegionSecurityPoliciesRequest.prototype.orderBy = null; /** - * ListRegionSslCertificatesRequest pageToken. + * ListRegionSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.pageToken = null; + ListRegionSecurityPoliciesRequest.prototype.pageToken = null; /** - * ListRegionSslCertificatesRequest project. + * ListRegionSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.project = ""; + ListRegionSecurityPoliciesRequest.prototype.project = ""; /** - * ListRegionSslCertificatesRequest region. + * ListRegionSecurityPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.region = ""; + ListRegionSecurityPoliciesRequest.prototype.region = ""; /** - * ListRegionSslCertificatesRequest returnPartialSuccess. + * ListRegionSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; + ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionSslCertificatesRequest _filter. + * ListRegionSecurityPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslCertificatesRequest _maxResults. + * ListRegionSecurityPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslCertificatesRequest _orderBy. + * ListRegionSecurityPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslCertificatesRequest _pageToken. + * ListRegionSecurityPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslCertificatesRequest _returnPartialSuccess. + * ListRegionSecurityPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. + * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance */ - ListRegionSslCertificatesRequest.create = function create(properties) { - return new ListRegionSslCertificatesRequest(properties); + ListRegionSecurityPoliciesRequest.create = function create(properties) { + return new ListRegionSecurityPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encode = function encode(message, writer) { + ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -244523,33 +246990,33 @@ }; /** - * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decode = function decode(reader, length) { + ListRegionSecurityPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -244590,30 +247057,30 @@ }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslCertificatesRequest message. + * Verifies a ListRegionSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslCertificatesRequest.verify = function verify(message) { + ListRegionSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -244652,17 +247119,17 @@ }; /** - * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest */ - ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest) + ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -244681,15 +247148,15 @@ }; /** - * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest + * @param {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { + ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -244730,58 +247197,58 @@ }; /** - * Converts this ListRegionSslCertificatesRequest to JSON. + * Converts this ListRegionSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { + ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslCertificatesRequest + * Gets the default type url for ListRegionSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSecurityPoliciesRequest"; }; - return ListRegionSslCertificatesRequest; + return ListRegionSecurityPoliciesRequest; })(); - v1.ListRegionSslPoliciesRequest = (function() { + v1.ListRegionSslCertificatesRequest = (function() { /** - * Properties of a ListRegionSslPoliciesRequest. + * Properties of a ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSslPoliciesRequest - * @property {string|null} [filter] ListRegionSslPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSslPoliciesRequest project - * @property {string|null} [region] ListRegionSslPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess + * @interface IListRegionSslCertificatesRequest + * @property {string|null} [filter] ListRegionSslCertificatesRequest filter + * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken + * @property {string|null} [project] ListRegionSslCertificatesRequest project + * @property {string|null} [region] ListRegionSslCertificatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslPoliciesRequest. + * Constructs a new ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSslPoliciesRequest. - * @implements IListRegionSslPoliciesRequest + * @classdesc Represents a ListRegionSslCertificatesRequest. + * @implements IListRegionSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set */ - function ListRegionSslPoliciesRequest(properties) { + function ListRegionSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244789,141 +247256,141 @@ } /** - * ListRegionSslPoliciesRequest filter. + * ListRegionSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.filter = null; + ListRegionSslCertificatesRequest.prototype.filter = null; /** - * ListRegionSslPoliciesRequest maxResults. + * ListRegionSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.maxResults = null; + ListRegionSslCertificatesRequest.prototype.maxResults = null; /** - * ListRegionSslPoliciesRequest orderBy. + * ListRegionSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.orderBy = null; + ListRegionSslCertificatesRequest.prototype.orderBy = null; /** - * ListRegionSslPoliciesRequest pageToken. + * ListRegionSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.pageToken = null; + ListRegionSslCertificatesRequest.prototype.pageToken = null; /** - * ListRegionSslPoliciesRequest project. + * ListRegionSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.project = ""; + ListRegionSslCertificatesRequest.prototype.project = ""; /** - * ListRegionSslPoliciesRequest region. + * ListRegionSslCertificatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.region = ""; + ListRegionSslCertificatesRequest.prototype.region = ""; /** - * ListRegionSslPoliciesRequest returnPartialSuccess. + * ListRegionSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionSslPoliciesRequest _filter. + * ListRegionSslCertificatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslPoliciesRequest _maxResults. + * ListRegionSslCertificatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslPoliciesRequest _orderBy. + * ListRegionSslCertificatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslPoliciesRequest _pageToken. + * ListRegionSslCertificatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslPoliciesRequest _returnPartialSuccess. + * ListRegionSslCertificatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. + * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance */ - ListRegionSslPoliciesRequest.create = function create(properties) { - return new ListRegionSslPoliciesRequest(properties); + ListRegionSslCertificatesRequest.create = function create(properties) { + return new ListRegionSslCertificatesRequest(properties); }; /** - * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encode = function encode(message, writer) { + ListRegionSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -244944,33 +247411,33 @@ }; /** - * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decode = function decode(reader, length) { + ListRegionSslCertificatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -245011,30 +247478,30 @@ }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslPoliciesRequest message. + * Verifies a ListRegionSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslPoliciesRequest.verify = function verify(message) { + ListRegionSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -245073,17 +247540,17 @@ }; /** - * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest */ - ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest) + ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -245102,15 +247569,15 @@ }; /** - * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { + ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -245151,58 +247618,58 @@ }; /** - * Converts this ListRegionSslPoliciesRequest to JSON. + * Converts this ListRegionSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslPoliciesRequest + * Gets the default type url for ListRegionSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslCertificatesRequest"; }; - return ListRegionSslPoliciesRequest; + return ListRegionSslCertificatesRequest; })(); - v1.ListRegionTargetHttpProxiesRequest = (function() { + v1.ListRegionSslPoliciesRequest = (function() { /** - * Properties of a ListRegionTargetHttpProxiesRequest. + * Properties of a ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetHttpProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess + * @interface IListRegionSslPoliciesRequest + * @property {string|null} [filter] ListRegionSslPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSslPoliciesRequest project + * @property {string|null} [region] ListRegionSslPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpProxiesRequest. + * Constructs a new ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetHttpProxiesRequest. - * @implements IListRegionTargetHttpProxiesRequest + * @classdesc Represents a ListRegionSslPoliciesRequest. + * @implements IListRegionSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpProxiesRequest(properties) { + function ListRegionSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245210,141 +247677,141 @@ } /** - * ListRegionTargetHttpProxiesRequest filter. + * ListRegionSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.filter = null; + ListRegionSslPoliciesRequest.prototype.filter = null; /** - * ListRegionTargetHttpProxiesRequest maxResults. + * ListRegionSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; + ListRegionSslPoliciesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpProxiesRequest orderBy. + * ListRegionSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; + ListRegionSslPoliciesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpProxiesRequest pageToken. + * ListRegionSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; + ListRegionSslPoliciesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpProxiesRequest project. + * ListRegionSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.project = ""; + ListRegionSslPoliciesRequest.prototype.project = ""; /** - * ListRegionTargetHttpProxiesRequest region. + * ListRegionSslPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.region = ""; + ListRegionSslPoliciesRequest.prototype.region = ""; /** - * ListRegionTargetHttpProxiesRequest returnPartialSuccess. + * ListRegionSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionTargetHttpProxiesRequest _filter. + * ListRegionSslPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpProxiesRequest _maxResults. + * ListRegionSslPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpProxiesRequest _orderBy. + * ListRegionSslPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpProxiesRequest _pageToken. + * ListRegionSslPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpProxiesRequest _returnPartialSuccess. + * ListRegionSslPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. + * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance */ - ListRegionTargetHttpProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpProxiesRequest(properties); + ListRegionSslPoliciesRequest.create = function create(properties) { + return new ListRegionSslPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { + ListRegionSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -245365,33 +247832,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length) { + ListRegionSslPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -245432,30 +247899,30 @@ }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpProxiesRequest message. + * Verifies a ListRegionSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpProxiesRequest.verify = function verify(message) { + ListRegionSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -245494,17 +247961,17 @@ }; /** - * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest */ - ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest) + ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -245523,15 +247990,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { + ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -245572,58 +248039,58 @@ }; /** - * Converts this ListRegionTargetHttpProxiesRequest to JSON. + * Converts this ListRegionSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpProxiesRequest + * Gets the default type url for ListRegionSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslPoliciesRequest"; }; - return ListRegionTargetHttpProxiesRequest; + return ListRegionSslPoliciesRequest; })(); - v1.ListRegionTargetHttpsProxiesRequest = (function() { + v1.ListRegionTargetHttpProxiesRequest = (function() { /** - * Properties of a ListRegionTargetHttpsProxiesRequest. + * Properties of a ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetHttpsProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess + * @interface IListRegionTargetHttpProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpsProxiesRequest. + * Constructs a new ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. - * @implements IListRegionTargetHttpsProxiesRequest + * @classdesc Represents a ListRegionTargetHttpProxiesRequest. + * @implements IListRegionTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpsProxiesRequest(properties) { + function ListRegionTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245631,141 +248098,141 @@ } /** - * ListRegionTargetHttpsProxiesRequest filter. + * ListRegionTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.filter = null; + ListRegionTargetHttpProxiesRequest.prototype.filter = null; /** - * ListRegionTargetHttpsProxiesRequest maxResults. + * ListRegionTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; + ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpsProxiesRequest orderBy. + * ListRegionTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; + ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpsProxiesRequest pageToken. + * ListRegionTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; + ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpsProxiesRequest project. + * ListRegionTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.project = ""; + ListRegionTargetHttpProxiesRequest.prototype.project = ""; /** - * ListRegionTargetHttpsProxiesRequest region. + * ListRegionTargetHttpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.region = ""; + ListRegionTargetHttpProxiesRequest.prototype.region = ""; /** - * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. + * ListRegionTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionTargetHttpsProxiesRequest _filter. + * ListRegionTargetHttpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpsProxiesRequest _maxResults. + * ListRegionTargetHttpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpsProxiesRequest _orderBy. + * ListRegionTargetHttpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpsProxiesRequest _pageToken. + * ListRegionTargetHttpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpsProxiesRequest _returnPartialSuccess. + * ListRegionTargetHttpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance */ - ListRegionTargetHttpsProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpsProxiesRequest(properties); + ListRegionTargetHttpProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -245786,33 +248253,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length) { + ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -245853,30 +248320,30 @@ }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpsProxiesRequest message. + * Verifies a ListRegionTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { + ListRegionTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -245915,17 +248382,17 @@ }; /** - * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest */ - ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest) + ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -245944,15 +248411,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -245993,58 +248460,58 @@ }; /** - * Converts this ListRegionTargetHttpsProxiesRequest to JSON. + * Converts this ListRegionTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpsProxiesRequest + * Gets the default type url for ListRegionTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest"; }; - return ListRegionTargetHttpsProxiesRequest; + return ListRegionTargetHttpProxiesRequest; })(); - v1.ListRegionTargetTcpProxiesRequest = (function() { + v1.ListRegionTargetHttpsProxiesRequest = (function() { /** - * Properties of a ListRegionTargetTcpProxiesRequest. + * Properties of a ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetTcpProxiesRequest - * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project - * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess + * @interface IListRegionTargetHttpsProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetTcpProxiesRequest. + * Constructs a new ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetTcpProxiesRequest. - * @implements IListRegionTargetTcpProxiesRequest + * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. + * @implements IListRegionTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set */ - function ListRegionTargetTcpProxiesRequest(properties) { + function ListRegionTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246052,141 +248519,141 @@ } /** - * ListRegionTargetTcpProxiesRequest filter. + * ListRegionTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.filter = null; + ListRegionTargetHttpsProxiesRequest.prototype.filter = null; /** - * ListRegionTargetTcpProxiesRequest maxResults. + * ListRegionTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; + ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * ListRegionTargetTcpProxiesRequest orderBy. + * ListRegionTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; + ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * ListRegionTargetTcpProxiesRequest pageToken. + * ListRegionTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; + ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * ListRegionTargetTcpProxiesRequest project. + * ListRegionTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.project = ""; + ListRegionTargetHttpsProxiesRequest.prototype.project = ""; /** - * ListRegionTargetTcpProxiesRequest region. + * ListRegionTargetHttpsProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.region = ""; + ListRegionTargetHttpsProxiesRequest.prototype.region = ""; /** - * ListRegionTargetTcpProxiesRequest returnPartialSuccess. + * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionTargetTcpProxiesRequest _filter. + * ListRegionTargetHttpsProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetTcpProxiesRequest _maxResults. + * ListRegionTargetHttpsProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetTcpProxiesRequest _orderBy. + * ListRegionTargetHttpsProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetTcpProxiesRequest _pageToken. + * ListRegionTargetHttpsProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetTcpProxiesRequest _returnPartialSuccess. + * ListRegionTargetHttpsProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance */ - ListRegionTargetTcpProxiesRequest.create = function create(properties) { - return new ListRegionTargetTcpProxiesRequest(properties); + ListRegionTargetHttpsProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -246207,33 +248674,33 @@ }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length) { + ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -246274,30 +248741,30 @@ }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetTcpProxiesRequest message. + * Verifies a ListRegionTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetTcpProxiesRequest.verify = function verify(message) { + ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -246336,17 +248803,17 @@ }; /** - * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest */ - ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest) + ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -246365,15 +248832,15 @@ }; /** - * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -246414,58 +248881,58 @@ }; /** - * Converts this ListRegionTargetTcpProxiesRequest to JSON. + * Converts this ListRegionTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetTcpProxiesRequest + * Gets the default type url for ListRegionTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest"; }; - return ListRegionTargetTcpProxiesRequest; + return ListRegionTargetHttpsProxiesRequest; })(); - v1.ListRegionUrlMapsRequest = (function() { + v1.ListRegionTargetTcpProxiesRequest = (function() { /** - * Properties of a ListRegionUrlMapsRequest. + * Properties of a ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionUrlMapsRequest - * @property {string|null} [filter] ListRegionUrlMapsRequest filter - * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults - * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy - * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken - * @property {string|null} [project] ListRegionUrlMapsRequest project - * @property {string|null} [region] ListRegionUrlMapsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess + * @interface IListRegionTargetTcpProxiesRequest + * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project + * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionUrlMapsRequest. + * Constructs a new ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionUrlMapsRequest. - * @implements IListRegionUrlMapsRequest + * @classdesc Represents a ListRegionTargetTcpProxiesRequest. + * @implements IListRegionTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set */ - function ListRegionUrlMapsRequest(properties) { + function ListRegionTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246473,141 +248940,141 @@ } /** - * ListRegionUrlMapsRequest filter. + * ListRegionTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.filter = null; + ListRegionTargetTcpProxiesRequest.prototype.filter = null; /** - * ListRegionUrlMapsRequest maxResults. + * ListRegionTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.maxResults = null; + ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; /** - * ListRegionUrlMapsRequest orderBy. + * ListRegionTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.orderBy = null; + ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; /** - * ListRegionUrlMapsRequest pageToken. + * ListRegionTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.pageToken = null; + ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; /** - * ListRegionUrlMapsRequest project. + * ListRegionTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.project = ""; + ListRegionTargetTcpProxiesRequest.prototype.project = ""; /** - * ListRegionUrlMapsRequest region. + * ListRegionTargetTcpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.region = ""; + ListRegionTargetTcpProxiesRequest.prototype.region = ""; /** - * ListRegionUrlMapsRequest returnPartialSuccess. + * ListRegionTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; + ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionUrlMapsRequest _filter. + * ListRegionTargetTcpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionUrlMapsRequest _maxResults. + * ListRegionTargetTcpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionUrlMapsRequest _orderBy. + * ListRegionTargetTcpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionUrlMapsRequest _pageToken. + * ListRegionTargetTcpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionUrlMapsRequest _returnPartialSuccess. + * ListRegionTargetTcpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionUrlMapsRequest instance using the specified properties. + * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance */ - ListRegionUrlMapsRequest.create = function create(properties) { - return new ListRegionUrlMapsRequest(properties); + ListRegionTargetTcpProxiesRequest.create = function create(properties) { + return new ListRegionTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encode = function encode(message, writer) { + ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -246628,33 +249095,33 @@ }; /** - * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decode = function decode(reader, length) { + ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -246695,30 +249162,30 @@ }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionUrlMapsRequest message. + * Verifies a ListRegionTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionUrlMapsRequest.verify = function verify(message) { + ListRegionTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -246757,17 +249224,17 @@ }; /** - * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest */ - ListRegionUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionUrlMapsRequest) + ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -246786,15 +249253,15 @@ }; /** - * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest + * @param {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionUrlMapsRequest.toObject = function toObject(message, options) { + ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -246835,57 +249302,58 @@ }; /** - * Converts this ListRegionUrlMapsRequest to JSON. + * Converts this ListRegionTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { + ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionUrlMapsRequest + * Gets the default type url for ListRegionTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest"; }; - return ListRegionUrlMapsRequest; + return ListRegionTargetTcpProxiesRequest; })(); - v1.ListRegionsRequest = (function() { + v1.ListRegionUrlMapsRequest = (function() { /** - * Properties of a ListRegionsRequest. + * Properties of a ListRegionUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionsRequest - * @property {string|null} [filter] ListRegionsRequest filter - * @property {number|null} [maxResults] ListRegionsRequest maxResults - * @property {string|null} [orderBy] ListRegionsRequest orderBy - * @property {string|null} [pageToken] ListRegionsRequest pageToken - * @property {string|null} [project] ListRegionsRequest project - * @property {boolean|null} [returnPartialSuccess] ListRegionsRequest returnPartialSuccess + * @interface IListRegionUrlMapsRequest + * @property {string|null} [filter] ListRegionUrlMapsRequest filter + * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults + * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy + * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken + * @property {string|null} [project] ListRegionUrlMapsRequest project + * @property {string|null} [region] ListRegionUrlMapsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionsRequest. + * Constructs a new ListRegionUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionsRequest. - * @implements IListRegionsRequest + * @classdesc Represents a ListRegionUrlMapsRequest. + * @implements IListRegionUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set */ - function ListRegionsRequest(properties) { + function ListRegionUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246893,139 +249361,149 @@ } /** - * ListRegionsRequest filter. + * ListRegionUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionsRequest.prototype.filter = null; + ListRegionUrlMapsRequest.prototype.filter = null; /** - * ListRegionsRequest maxResults. + * ListRegionUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionsRequest.prototype.maxResults = null; + ListRegionUrlMapsRequest.prototype.maxResults = null; /** - * ListRegionsRequest orderBy. + * ListRegionUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionsRequest.prototype.orderBy = null; + ListRegionUrlMapsRequest.prototype.orderBy = null; /** - * ListRegionsRequest pageToken. + * ListRegionUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionsRequest.prototype.pageToken = null; + ListRegionUrlMapsRequest.prototype.pageToken = null; /** - * ListRegionsRequest project. + * ListRegionUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionsRequest.prototype.project = ""; + ListRegionUrlMapsRequest.prototype.project = ""; /** - * ListRegionsRequest returnPartialSuccess. + * ListRegionUrlMapsRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + */ + ListRegionUrlMapsRequest.prototype.region = ""; + + /** + * ListRegionUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionsRequest.prototype.returnPartialSuccess = null; + ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionsRequest _filter. + * ListRegionUrlMapsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionsRequest _maxResults. + * ListRegionUrlMapsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionsRequest _orderBy. + * ListRegionUrlMapsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionsRequest _pageToken. + * ListRegionUrlMapsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionsRequest _returnPartialSuccess. + * ListRegionUrlMapsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionsRequest instance using the specified properties. + * Creates a new ListRegionUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest instance + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance */ - ListRegionsRequest.create = function create(properties) { - return new ListRegionsRequest(properties); + ListRegionUrlMapsRequest.create = function create(properties) { + return new ListRegionUrlMapsRequest(properties); }; /** - * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. + * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionsRequest.encode = function encode(message, writer) { + ListRegionUrlMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -247038,33 +249516,33 @@ }; /** - * Encodes the specified ListRegionsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. + * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionsRequest message from the specified reader or buffer. + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionsRequest.decode = function decode(reader, length) { + ListRegionUrlMapsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -247088,6 +249566,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -247101,30 +249583,30 @@ }; /** - * Decodes a ListRegionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionsRequest message. + * Verifies a ListRegionUrlMapsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionsRequest.verify = function verify(message) { + ListRegionUrlMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -247151,6 +249633,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -247160,17 +249645,17 @@ }; /** - * Creates a ListRegionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest */ - ListRegionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionsRequest) + ListRegionUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionUrlMapsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -247181,26 +249666,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListRegionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.ListRegionsRequest} message ListRegionsRequest + * @param {google.cloud.compute.v1.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionsRequest.toObject = function toObject(message, options) { + ListRegionUrlMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -247211,6 +249700,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -247232,58 +249723,57 @@ }; /** - * Converts this ListRegionsRequest to JSON. + * Converts this ListRegionUrlMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance * @returns {Object.} JSON object */ - ListRegionsRequest.prototype.toJSON = function toJSON() { + ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionsRequest + * Gets the default type url for ListRegionUrlMapsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionUrlMapsRequest"; }; - return ListRegionsRequest; + return ListRegionUrlMapsRequest; })(); - v1.ListReservationsRequest = (function() { + v1.ListRegionsRequest = (function() { /** - * Properties of a ListReservationsRequest. + * Properties of a ListRegionsRequest. * @memberof google.cloud.compute.v1 - * @interface IListReservationsRequest - * @property {string|null} [filter] ListReservationsRequest filter - * @property {number|null} [maxResults] ListReservationsRequest maxResults - * @property {string|null} [orderBy] ListReservationsRequest orderBy - * @property {string|null} [pageToken] ListReservationsRequest pageToken - * @property {string|null} [project] ListReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] ListReservationsRequest returnPartialSuccess - * @property {string|null} [zone] ListReservationsRequest zone + * @interface IListRegionsRequest + * @property {string|null} [filter] ListRegionsRequest filter + * @property {number|null} [maxResults] ListRegionsRequest maxResults + * @property {string|null} [orderBy] ListRegionsRequest orderBy + * @property {string|null} [pageToken] ListRegionsRequest pageToken + * @property {string|null} [project] ListRegionsRequest project + * @property {boolean|null} [returnPartialSuccess] ListRegionsRequest returnPartialSuccess */ /** - * Constructs a new ListReservationsRequest. + * Constructs a new ListRegionsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListReservationsRequest. - * @implements IListReservationsRequest + * @classdesc Represents a ListRegionsRequest. + * @implements IListRegionsRequest * @constructor - * @param {google.cloud.compute.v1.IListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set */ - function ListReservationsRequest(properties) { + function ListRegionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247291,145 +249781,135 @@ } /** - * ListReservationsRequest filter. + * ListRegionsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationsRequest.prototype.filter = null; + ListRegionsRequest.prototype.filter = null; /** - * ListReservationsRequest maxResults. + * ListRegionsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationsRequest.prototype.maxResults = null; + ListRegionsRequest.prototype.maxResults = null; /** - * ListReservationsRequest orderBy. + * ListRegionsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationsRequest.prototype.orderBy = null; + ListRegionsRequest.prototype.orderBy = null; /** - * ListReservationsRequest pageToken. + * ListRegionsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationsRequest.prototype.pageToken = null; + ListRegionsRequest.prototype.pageToken = null; /** - * ListReservationsRequest project. + * ListRegionsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationsRequest.prototype.project = ""; + ListRegionsRequest.prototype.project = ""; /** - * ListReservationsRequest returnPartialSuccess. + * ListRegionsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListReservationsRequest - * @instance - */ - ListReservationsRequest.prototype.returnPartialSuccess = null; - - /** - * ListReservationsRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationsRequest.prototype.zone = ""; + ListRegionsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListReservationsRequest _filter. + * ListRegionsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - Object.defineProperty(ListReservationsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListReservationsRequest _maxResults. + * ListRegionsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - Object.defineProperty(ListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListReservationsRequest _orderBy. + * ListRegionsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - Object.defineProperty(ListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListReservationsRequest _pageToken. + * ListRegionsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - Object.defineProperty(ListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListReservationsRequest _returnPartialSuccess. + * ListRegionsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - Object.defineProperty(ListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReservationsRequest instance using the specified properties. + * Creates a new ListRegionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static - * @param {google.cloud.compute.v1.IListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest instance + * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest instance */ - ListReservationsRequest.create = function create(properties) { - return new ListReservationsRequest(properties); + ListRegionsRequest.create = function create(properties) { + return new ListRegionsRequest(properties); }; /** - * Encodes the specified ListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationsRequest.verify|verify} messages. + * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static - * @param {google.cloud.compute.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationsRequest.encode = function encode(message, writer) { + ListRegionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) @@ -247446,33 +249926,33 @@ }; /** - * Encodes the specified ListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationsRequest.verify|verify} messages. + * Encodes the specified ListRegionsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static - * @param {google.cloud.compute.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReservationsRequest message from the specified reader or buffer. + * Decodes a ListRegionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationsRequest.decode = function decode(reader, length) { + ListRegionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -247500,10 +249980,6 @@ message.returnPartialSuccess = reader.bool(); break; } - case 3744684: { - message.zone = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -247513,30 +249989,30 @@ }; /** - * Decodes a ListReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReservationsRequest message. + * Verifies a ListRegionsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReservationsRequest.verify = function verify(message) { + ListRegionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -247568,24 +250044,21 @@ if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; return null; }; /** - * Creates a ListReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest */ - ListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListReservationsRequest) + ListRegionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListReservationsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -247598,30 +250071,24 @@ message.project = String(object.project); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); - if (object.zone != null) - message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static - * @param {google.cloud.compute.v1.ListReservationsRequest} message ListReservationsRequest + * @param {google.cloud.compute.v1.ListRegionsRequest} message ListRegionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReservationsRequest.toObject = function toObject(message, options) { + ListRegionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.zone = ""; + if (options.defaults) object.project = ""; - } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -247653,58 +250120,58 @@ }; /** - * Converts this ListReservationsRequest to JSON. + * Converts this ListRegionsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance * @returns {Object.} JSON object */ - ListReservationsRequest.prototype.toJSON = function toJSON() { + ListRegionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReservationsRequest + * Gets the default type url for ListRegionsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionsRequest"; }; - return ListReservationsRequest; + return ListRegionsRequest; })(); - v1.ListResourcePoliciesRequest = (function() { + v1.ListReservationsRequest = (function() { /** - * Properties of a ListResourcePoliciesRequest. + * Properties of a ListReservationsRequest. * @memberof google.cloud.compute.v1 - * @interface IListResourcePoliciesRequest - * @property {string|null} [filter] ListResourcePoliciesRequest filter - * @property {number|null} [maxResults] ListResourcePoliciesRequest maxResults - * @property {string|null} [orderBy] ListResourcePoliciesRequest orderBy - * @property {string|null} [pageToken] ListResourcePoliciesRequest pageToken - * @property {string|null} [project] ListResourcePoliciesRequest project - * @property {string|null} [region] ListResourcePoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListResourcePoliciesRequest returnPartialSuccess + * @interface IListReservationsRequest + * @property {string|null} [filter] ListReservationsRequest filter + * @property {number|null} [maxResults] ListReservationsRequest maxResults + * @property {string|null} [orderBy] ListReservationsRequest orderBy + * @property {string|null} [pageToken] ListReservationsRequest pageToken + * @property {string|null} [project] ListReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] ListReservationsRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationsRequest zone */ /** - * Constructs a new ListResourcePoliciesRequest. + * Constructs a new ListReservationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListResourcePoliciesRequest. - * @implements IListResourcePoliciesRequest + * @classdesc Represents a ListReservationsRequest. + * @implements IListReservationsRequest * @constructor - * @param {google.cloud.compute.v1.IListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListReservationsRequest=} [properties] Properties to set */ - function ListResourcePoliciesRequest(properties) { + function ListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247712,149 +250179,149 @@ } /** - * ListResourcePoliciesRequest filter. + * ListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListResourcePoliciesRequest.prototype.filter = null; + ListReservationsRequest.prototype.filter = null; /** - * ListResourcePoliciesRequest maxResults. + * ListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListResourcePoliciesRequest.prototype.maxResults = null; + ListReservationsRequest.prototype.maxResults = null; /** - * ListResourcePoliciesRequest orderBy. + * ListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListResourcePoliciesRequest.prototype.orderBy = null; + ListReservationsRequest.prototype.orderBy = null; /** - * ListResourcePoliciesRequest pageToken. + * ListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListResourcePoliciesRequest.prototype.pageToken = null; + ListReservationsRequest.prototype.pageToken = null; /** - * ListResourcePoliciesRequest project. + * ListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListResourcePoliciesRequest.prototype.project = ""; + ListReservationsRequest.prototype.project = ""; /** - * ListResourcePoliciesRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * ListReservationsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListResourcePoliciesRequest.prototype.region = ""; + ListReservationsRequest.prototype.returnPartialSuccess = null; /** - * ListResourcePoliciesRequest returnPartialSuccess. - * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * ListReservationsRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + ListReservationsRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListResourcePoliciesRequest _filter. + * ListReservationsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListResourcePoliciesRequest _maxResults. + * ListReservationsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListResourcePoliciesRequest _orderBy. + * ListReservationsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListResourcePoliciesRequest _pageToken. + * ListReservationsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListResourcePoliciesRequest _returnPartialSuccess. + * ListReservationsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListResourcePoliciesRequest instance using the specified properties. + * Creates a new ListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static - * @param {google.cloud.compute.v1.IListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1.IListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest instance */ - ListResourcePoliciesRequest.create = function create(properties) { - return new ListResourcePoliciesRequest(properties); + ListReservationsRequest.create = function create(properties) { + return new ListReservationsRequest(properties); }; /** - * Encodes the specified ListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified ListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static - * @param {google.cloud.compute.v1.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListResourcePoliciesRequest.encode = function encode(message, writer) { + ListReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -247867,33 +250334,33 @@ }; /** - * Encodes the specified ListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified ListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static - * @param {google.cloud.compute.v1.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes a ListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListResourcePoliciesRequest.decode = function decode(reader, length) { + ListReservationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListResourcePoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -247917,14 +250384,14 @@ message.project = reader.string(); break; } - case 138946292: { - message.region = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } + case 3744684: { + message.zone = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -247934,30 +250401,30 @@ }; /** - * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListResourcePoliciesRequest message. + * Verifies a ListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListResourcePoliciesRequest.verify = function verify(message) { + ListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -247984,29 +250451,29 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a ListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest */ - ListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListResourcePoliciesRequest) + ListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -248017,30 +250484,32 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); - if (object.region != null) - message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListResourcePoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static - * @param {google.cloud.compute.v1.ListResourcePoliciesRequest} message ListResourcePoliciesRequest + * @param {google.cloud.compute.v1.ListReservationsRequest} message ListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListResourcePoliciesRequest.toObject = function toObject(message, options) { + ListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.region = ""; + object.zone = ""; object.project = ""; } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -248051,8 +250520,6 @@ if (options.oneofs) object._maxResults = "maxResults"; } - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -248074,58 +250541,58 @@ }; /** - * Converts this ListResourcePoliciesRequest to JSON. + * Converts this ListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance * @returns {Object.} JSON object */ - ListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + ListReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListResourcePoliciesRequest + * Gets the default type url for ListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationsRequest"; }; - return ListResourcePoliciesRequest; + return ListReservationsRequest; })(); - v1.ListRoutersRequest = (function() { + v1.ListResourcePoliciesRequest = (function() { /** - * Properties of a ListRoutersRequest. + * Properties of a ListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRoutersRequest - * @property {string|null} [filter] ListRoutersRequest filter - * @property {number|null} [maxResults] ListRoutersRequest maxResults - * @property {string|null} [orderBy] ListRoutersRequest orderBy - * @property {string|null} [pageToken] ListRoutersRequest pageToken - * @property {string|null} [project] ListRoutersRequest project - * @property {string|null} [region] ListRoutersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRoutersRequest returnPartialSuccess + * @interface IListResourcePoliciesRequest + * @property {string|null} [filter] ListResourcePoliciesRequest filter + * @property {number|null} [maxResults] ListResourcePoliciesRequest maxResults + * @property {string|null} [orderBy] ListResourcePoliciesRequest orderBy + * @property {string|null} [pageToken] ListResourcePoliciesRequest pageToken + * @property {string|null} [project] ListResourcePoliciesRequest project + * @property {string|null} [region] ListResourcePoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListResourcePoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRoutersRequest. + * Constructs a new ListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRoutersRequest. - * @implements IListRoutersRequest + * @classdesc Represents a ListResourcePoliciesRequest. + * @implements IListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListResourcePoliciesRequest=} [properties] Properties to set */ - function ListRoutersRequest(properties) { + function ListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248133,141 +250600,141 @@ } /** - * ListRoutersRequest filter. + * ListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.filter = null; + ListResourcePoliciesRequest.prototype.filter = null; /** - * ListRoutersRequest maxResults. + * ListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.maxResults = null; + ListResourcePoliciesRequest.prototype.maxResults = null; /** - * ListRoutersRequest orderBy. + * ListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.orderBy = null; + ListResourcePoliciesRequest.prototype.orderBy = null; /** - * ListRoutersRequest pageToken. + * ListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.pageToken = null; + ListResourcePoliciesRequest.prototype.pageToken = null; /** - * ListRoutersRequest project. + * ListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.project = ""; + ListResourcePoliciesRequest.prototype.project = ""; /** - * ListRoutersRequest region. + * ListResourcePoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.region = ""; + ListResourcePoliciesRequest.prototype.region = ""; /** - * ListRoutersRequest returnPartialSuccess. + * ListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.returnPartialSuccess = null; + ListResourcePoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRoutersRequest _filter. + * ListResourcePoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - Object.defineProperty(ListRoutersRequest.prototype, "_filter", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRoutersRequest _maxResults. + * ListResourcePoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - Object.defineProperty(ListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRoutersRequest _orderBy. + * ListResourcePoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - Object.defineProperty(ListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRoutersRequest _pageToken. + * ListResourcePoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - Object.defineProperty(ListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRoutersRequest _returnPartialSuccess. + * ListResourcePoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - Object.defineProperty(ListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRoutersRequest instance using the specified properties. + * Creates a new ListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest instance + * @param {google.cloud.compute.v1.IListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest instance */ - ListRoutersRequest.create = function create(properties) { - return new ListRoutersRequest(properties); + ListResourcePoliciesRequest.create = function create(properties) { + return new ListResourcePoliciesRequest(properties); }; /** - * Encodes the specified ListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutersRequest.verify|verify} messages. + * Encodes the specified ListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListResourcePoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRoutersRequest} message ListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutersRequest.encode = function encode(message, writer) { + ListResourcePoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -248288,33 +250755,33 @@ }; /** - * Encodes the specified ListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutersRequest.verify|verify} messages. + * Encodes the specified ListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListResourcePoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRoutersRequest} message ListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRoutersRequest message from the specified reader or buffer. + * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest + * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutersRequest.decode = function decode(reader, length) { + ListResourcePoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListResourcePoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -248355,30 +250822,30 @@ }; /** - * Decodes a ListRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest + * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + ListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRoutersRequest message. + * Verifies a ListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRoutersRequest.verify = function verify(message) { + ListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -248417,17 +250884,17 @@ }; /** - * Creates a ListRoutersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest + * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest */ - ListRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRoutersRequest) + ListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRoutersRequest(); + var message = new $root.google.cloud.compute.v1.ListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -248446,15 +250913,15 @@ }; /** - * Creates a plain object from a ListRoutersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListResourcePoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRoutersRequest} message ListRoutersRequest + * @param {google.cloud.compute.v1.ListResourcePoliciesRequest} message ListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRoutersRequest.toObject = function toObject(message, options) { + ListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -248495,57 +250962,58 @@ }; /** - * Converts this ListRoutersRequest to JSON. + * Converts this ListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRoutersRequest.prototype.toJSON = function toJSON() { + ListResourcePoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRoutersRequest + * Gets the default type url for ListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListResourcePoliciesRequest"; }; - return ListRoutersRequest; + return ListResourcePoliciesRequest; })(); - v1.ListRoutesRequest = (function() { + v1.ListRoutersRequest = (function() { /** - * Properties of a ListRoutesRequest. + * Properties of a ListRoutersRequest. * @memberof google.cloud.compute.v1 - * @interface IListRoutesRequest - * @property {string|null} [filter] ListRoutesRequest filter - * @property {number|null} [maxResults] ListRoutesRequest maxResults - * @property {string|null} [orderBy] ListRoutesRequest orderBy - * @property {string|null} [pageToken] ListRoutesRequest pageToken - * @property {string|null} [project] ListRoutesRequest project - * @property {boolean|null} [returnPartialSuccess] ListRoutesRequest returnPartialSuccess + * @interface IListRoutersRequest + * @property {string|null} [filter] ListRoutersRequest filter + * @property {number|null} [maxResults] ListRoutersRequest maxResults + * @property {string|null} [orderBy] ListRoutersRequest orderBy + * @property {string|null} [pageToken] ListRoutersRequest pageToken + * @property {string|null} [project] ListRoutersRequest project + * @property {string|null} [region] ListRoutersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRoutersRequest returnPartialSuccess */ /** - * Constructs a new ListRoutesRequest. + * Constructs a new ListRoutersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRoutesRequest. - * @implements IListRoutesRequest + * @classdesc Represents a ListRoutersRequest. + * @implements IListRoutersRequest * @constructor - * @param {google.cloud.compute.v1.IListRoutesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRoutersRequest=} [properties] Properties to set */ - function ListRoutesRequest(properties) { + function ListRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248553,139 +251021,149 @@ } /** - * ListRoutesRequest filter. + * ListRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListRoutesRequest.prototype.filter = null; + ListRoutersRequest.prototype.filter = null; /** - * ListRoutesRequest maxResults. + * ListRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListRoutesRequest.prototype.maxResults = null; + ListRoutersRequest.prototype.maxResults = null; /** - * ListRoutesRequest orderBy. + * ListRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListRoutesRequest.prototype.orderBy = null; + ListRoutersRequest.prototype.orderBy = null; /** - * ListRoutesRequest pageToken. + * ListRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListRoutesRequest.prototype.pageToken = null; + ListRoutersRequest.prototype.pageToken = null; /** - * ListRoutesRequest project. + * ListRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListRoutesRequest.prototype.project = ""; + ListRoutersRequest.prototype.project = ""; /** - * ListRoutesRequest returnPartialSuccess. + * ListRoutersRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRoutersRequest + * @instance + */ + ListRoutersRequest.prototype.region = ""; + + /** + * ListRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListRoutesRequest.prototype.returnPartialSuccess = null; + ListRoutersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRoutesRequest _filter. + * ListRoutersRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - Object.defineProperty(ListRoutesRequest.prototype, "_filter", { + Object.defineProperty(ListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRoutesRequest _maxResults. + * ListRoutersRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - Object.defineProperty(ListRoutesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRoutesRequest _orderBy. + * ListRoutersRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - Object.defineProperty(ListRoutesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRoutesRequest _pageToken. + * ListRoutersRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - Object.defineProperty(ListRoutesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRoutesRequest _returnPartialSuccess. + * ListRoutersRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - Object.defineProperty(ListRoutesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRoutesRequest instance using the specified properties. + * Creates a new ListRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static - * @param {google.cloud.compute.v1.IListRoutesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest instance + * @param {google.cloud.compute.v1.IListRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest instance */ - ListRoutesRequest.create = function create(properties) { - return new ListRoutesRequest(properties); + ListRoutersRequest.create = function create(properties) { + return new ListRoutersRequest(properties); }; /** - * Encodes the specified ListRoutesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutesRequest.verify|verify} messages. + * Encodes the specified ListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static - * @param {google.cloud.compute.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutersRequest} message ListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutesRequest.encode = function encode(message, writer) { + ListRoutersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -248698,33 +251176,33 @@ }; /** - * Encodes the specified ListRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutesRequest.verify|verify} messages. + * Encodes the specified ListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static - * @param {google.cloud.compute.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutersRequest} message ListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRoutesRequest message from the specified reader or buffer. + * Decodes a ListRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutesRequest.decode = function decode(reader, length) { + ListRoutersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -248748,6 +251226,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -248761,30 +251243,30 @@ }; /** - * Decodes a ListRoutesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRoutersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRoutesRequest message. + * Verifies a ListRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRoutesRequest.verify = function verify(message) { + ListRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -248811,6 +251293,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -248820,17 +251305,17 @@ }; /** - * Creates a ListRoutesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRoutersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest */ - ListRoutesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRoutesRequest) + ListRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRoutesRequest(); + var message = new $root.google.cloud.compute.v1.ListRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -248841,26 +251326,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListRoutesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRoutersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static - * @param {google.cloud.compute.v1.ListRoutesRequest} message ListRoutesRequest + * @param {google.cloud.compute.v1.ListRoutersRequest} message ListRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRoutesRequest.toObject = function toObject(message, options) { + ListRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -248871,6 +251360,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -248892,57 +251383,57 @@ }; /** - * Converts this ListRoutesRequest to JSON. + * Converts this ListRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance * @returns {Object.} JSON object */ - ListRoutesRequest.prototype.toJSON = function toJSON() { + ListRoutersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRoutesRequest + * Gets the default type url for ListRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutersRequest"; }; - return ListRoutesRequest; + return ListRoutersRequest; })(); - v1.ListSecurityPoliciesRequest = (function() { + v1.ListRoutesRequest = (function() { /** - * Properties of a ListSecurityPoliciesRequest. + * Properties of a ListRoutesRequest. * @memberof google.cloud.compute.v1 - * @interface IListSecurityPoliciesRequest - * @property {string|null} [filter] ListSecurityPoliciesRequest filter - * @property {number|null} [maxResults] ListSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] ListSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] ListSecurityPoliciesRequest pageToken - * @property {string|null} [project] ListSecurityPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] ListSecurityPoliciesRequest returnPartialSuccess + * @interface IListRoutesRequest + * @property {string|null} [filter] ListRoutesRequest filter + * @property {number|null} [maxResults] ListRoutesRequest maxResults + * @property {string|null} [orderBy] ListRoutesRequest orderBy + * @property {string|null} [pageToken] ListRoutesRequest pageToken + * @property {string|null} [project] ListRoutesRequest project + * @property {boolean|null} [returnPartialSuccess] ListRoutesRequest returnPartialSuccess */ /** - * Constructs a new ListSecurityPoliciesRequest. + * Constructs a new ListRoutesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListSecurityPoliciesRequest. - * @implements IListSecurityPoliciesRequest + * @classdesc Represents a ListRoutesRequest. + * @implements IListRoutesRequest * @constructor - * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRoutesRequest=} [properties] Properties to set */ - function ListSecurityPoliciesRequest(properties) { + function ListRoutesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248950,133 +251441,133 @@ } /** - * ListSecurityPoliciesRequest filter. + * ListRoutesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListSecurityPoliciesRequest.prototype.filter = null; + ListRoutesRequest.prototype.filter = null; /** - * ListSecurityPoliciesRequest maxResults. + * ListRoutesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListSecurityPoliciesRequest.prototype.maxResults = null; + ListRoutesRequest.prototype.maxResults = null; /** - * ListSecurityPoliciesRequest orderBy. + * ListRoutesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListSecurityPoliciesRequest.prototype.orderBy = null; + ListRoutesRequest.prototype.orderBy = null; /** - * ListSecurityPoliciesRequest pageToken. + * ListRoutesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListSecurityPoliciesRequest.prototype.pageToken = null; + ListRoutesRequest.prototype.pageToken = null; /** - * ListSecurityPoliciesRequest project. + * ListRoutesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListSecurityPoliciesRequest.prototype.project = ""; + ListRoutesRequest.prototype.project = ""; /** - * ListSecurityPoliciesRequest returnPartialSuccess. + * ListRoutesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + ListRoutesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListSecurityPoliciesRequest _filter. + * ListRoutesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRoutesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListSecurityPoliciesRequest _maxResults. + * ListRoutesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRoutesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListSecurityPoliciesRequest _orderBy. + * ListRoutesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRoutesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListSecurityPoliciesRequest _pageToken. + * ListRoutesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRoutesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListSecurityPoliciesRequest _returnPartialSuccess. + * ListRoutesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRoutesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListSecurityPoliciesRequest instance using the specified properties. + * Creates a new ListRoutesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static - * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRoutesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest instance */ - ListSecurityPoliciesRequest.create = function create(properties) { - return new ListSecurityPoliciesRequest(properties); + ListRoutesRequest.create = function create(properties) { + return new ListRoutesRequest(properties); }; /** - * Encodes the specified ListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRoutesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static - * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest} message ListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecurityPoliciesRequest.encode = function encode(message, writer) { + ListRoutesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -249095,33 +251586,33 @@ }; /** - * Encodes the specified ListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static - * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest} message ListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRoutesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecurityPoliciesRequest.decode = function decode(reader, length) { + ListRoutesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -249158,30 +251649,30 @@ }; /** - * Decodes a ListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRoutesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRoutesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecurityPoliciesRequest message. + * Verifies a ListRoutesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSecurityPoliciesRequest.verify = function verify(message) { + ListRoutesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -249217,17 +251708,17 @@ }; /** - * Creates a ListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRoutesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest */ - ListSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListSecurityPoliciesRequest) + ListRoutesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRoutesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRoutesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -249244,15 +251735,412 @@ }; /** - * Creates a plain object from a ListSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRoutesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static - * @param {google.cloud.compute.v1.ListSecurityPoliciesRequest} message ListSecurityPoliciesRequest + * @param {google.cloud.compute.v1.ListRoutesRequest} message ListRoutesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecurityPoliciesRequest.toObject = function toObject(message, options) { + ListRoutesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListRoutesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListRoutesRequest + * @instance + * @returns {Object.} JSON object + */ + ListRoutesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRoutesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListRoutesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutesRequest"; + }; + + return ListRoutesRequest; + })(); + + v1.ListSecurityPoliciesRequest = (function() { + + /** + * Properties of a ListSecurityPoliciesRequest. + * @memberof google.cloud.compute.v1 + * @interface IListSecurityPoliciesRequest + * @property {string|null} [filter] ListSecurityPoliciesRequest filter + * @property {number|null} [maxResults] ListSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] ListSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] ListSecurityPoliciesRequest pageToken + * @property {string|null} [project] ListSecurityPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] ListSecurityPoliciesRequest returnPartialSuccess + */ + + /** + * Constructs a new ListSecurityPoliciesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListSecurityPoliciesRequest. + * @implements IListSecurityPoliciesRequest + * @constructor + * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest=} [properties] Properties to set + */ + function ListSecurityPoliciesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListSecurityPoliciesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + ListSecurityPoliciesRequest.prototype.filter = null; + + /** + * ListSecurityPoliciesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + ListSecurityPoliciesRequest.prototype.maxResults = null; + + /** + * ListSecurityPoliciesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + ListSecurityPoliciesRequest.prototype.orderBy = null; + + /** + * ListSecurityPoliciesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + ListSecurityPoliciesRequest.prototype.pageToken = null; + + /** + * ListSecurityPoliciesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + ListSecurityPoliciesRequest.prototype.project = ""; + + /** + * ListSecurityPoliciesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + ListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ListSecurityPoliciesRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListSecurityPoliciesRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListSecurityPoliciesRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListSecurityPoliciesRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListSecurityPoliciesRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @instance + */ + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListSecurityPoliciesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @static + * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest instance + */ + ListSecurityPoliciesRequest.create = function create(properties) { + return new ListSecurityPoliciesRequest(properties); + }; + + /** + * Encodes the specified ListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSecurityPoliciesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @static + * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest} message ListSecurityPoliciesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSecurityPoliciesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSecurityPoliciesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @static + * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest} message ListSecurityPoliciesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListSecurityPoliciesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSecurityPoliciesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSecurityPoliciesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSecurityPoliciesRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSecurityPoliciesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + */ + ListSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListSecurityPoliciesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListSecurityPoliciesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListSecurityPoliciesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @static + * @param {google.cloud.compute.v1.ListSecurityPoliciesRequest} message ListSecurityPoliciesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -320725,6 +323613,7 @@ * @property {number} N2D_CPUS=351743370 N2D_CPUS value * @property {number} N2_CPUS=416465286 N2_CPUS value * @property {number} NETWORKS=485481477 NETWORKS value + * @property {number} NETWORK_ATTACHMENTS=149028575 NETWORK_ATTACHMENTS value * @property {number} NETWORK_ENDPOINT_GROUPS=102144909 NETWORK_ENDPOINT_GROUPS value * @property {number} NETWORK_FIREWALL_POLICIES=101117374 NETWORK_FIREWALL_POLICIES value * @property {number} NODE_GROUPS=24624817 NODE_GROUPS value @@ -320870,6 +323759,7 @@ values[valuesById[351743370] = "N2D_CPUS"] = 351743370; values[valuesById[416465286] = "N2_CPUS"] = 416465286; values[valuesById[485481477] = "NETWORKS"] = 485481477; + values[valuesById[149028575] = "NETWORK_ATTACHMENTS"] = 149028575; values[valuesById[102144909] = "NETWORK_ENDPOINT_GROUPS"] = 102144909; values[valuesById[101117374] = "NETWORK_FIREWALL_POLICIES"] = 101117374; values[valuesById[24624817] = "NODE_GROUPS"] = 24624817; @@ -366998,6 +369888,7 @@ * @property {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction|null} [headerAction] SecurityPolicyRule headerAction * @property {string|null} [kind] SecurityPolicyRule kind * @property {google.cloud.compute.v1.ISecurityPolicyRuleMatcher|null} [match] SecurityPolicyRule match + * @property {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig|null} [preconfiguredWafConfig] SecurityPolicyRule preconfiguredWafConfig * @property {boolean|null} [preview] SecurityPolicyRule preview * @property {number|null} [priority] SecurityPolicyRule priority * @property {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions|null} [rateLimitOptions] SecurityPolicyRule rateLimitOptions @@ -367059,6 +369950,14 @@ */ SecurityPolicyRule.prototype.match = null; + /** + * SecurityPolicyRule preconfiguredWafConfig. + * @member {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig|null|undefined} preconfiguredWafConfig + * @memberof google.cloud.compute.v1.SecurityPolicyRule + * @instance + */ + SecurityPolicyRule.prototype.preconfiguredWafConfig = null; + /** * SecurityPolicyRule preview. * @member {boolean|null|undefined} preview @@ -367149,6 +370048,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SecurityPolicyRule _preconfiguredWafConfig. + * @member {"preconfiguredWafConfig"|undefined} _preconfiguredWafConfig + * @memberof google.cloud.compute.v1.SecurityPolicyRule + * @instance + */ + Object.defineProperty(SecurityPolicyRule.prototype, "_preconfiguredWafConfig", { + get: $util.oneOfGetter($oneOfFields = ["preconfiguredWafConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * SecurityPolicyRule _preview. * @member {"preview"|undefined} _preview @@ -367223,6 +370133,8 @@ $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.encode(message.rateLimitOptions, writer.uint32(/* id 67544315, wireType 2 =*/540354522).fork()).ldelim(); if (message.match != null && Object.hasOwnProperty.call(message, "match")) $root.google.cloud.compute.v1.SecurityPolicyRuleMatcher.encode(message.match, writer.uint32(/* id 103668165, wireType 2 =*/829345322).fork()).ldelim(); + if (message.preconfiguredWafConfig != null && Object.hasOwnProperty.call(message, "preconfiguredWafConfig")) + $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.encode(message.preconfiguredWafConfig, writer.uint32(/* id 117805027, wireType 2 =*/942440218).fork()).ldelim(); if (message.redirectOptions != null && Object.hasOwnProperty.call(message, "redirectOptions")) $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.encode(message.redirectOptions, writer.uint32(/* id 163285307, wireType 2 =*/1306282458).fork()).ldelim(); if (message.action != null && Object.hasOwnProperty.call(message, "action")) @@ -367289,6 +370201,10 @@ message.match = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcher.decode(reader, reader.uint32()); break; } + case 117805027: { + message.preconfiguredWafConfig = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.decode(reader, reader.uint32()); + break; + } case 218686408: { message.preview = reader.bool(); break; @@ -367372,6 +370288,14 @@ return "match." + error; } } + if (message.preconfiguredWafConfig != null && message.hasOwnProperty("preconfiguredWafConfig")) { + properties._preconfiguredWafConfig = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.verify(message.preconfiguredWafConfig); + if (error) + return "preconfiguredWafConfig." + error; + } + } if (message.preview != null && message.hasOwnProperty("preview")) { properties._preview = 1; if (typeof message.preview !== "boolean") @@ -367429,6 +370353,11 @@ throw TypeError(".google.cloud.compute.v1.SecurityPolicyRule.match: object expected"); message.match = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcher.fromObject(object.match); } + if (object.preconfiguredWafConfig != null) { + if (typeof object.preconfiguredWafConfig !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRule.preconfiguredWafConfig: object expected"); + message.preconfiguredWafConfig = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.fromObject(object.preconfiguredWafConfig); + } if (object.preview != null) message.preview = Boolean(object.preview); if (object.priority != null) @@ -367474,6 +370403,11 @@ if (options.oneofs) object._match = "match"; } + if (message.preconfiguredWafConfig != null && message.hasOwnProperty("preconfiguredWafConfig")) { + object.preconfiguredWafConfig = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.toObject(message.preconfiguredWafConfig, options); + if (options.oneofs) + object._preconfiguredWafConfig = "preconfiguredWafConfig"; + } if (message.redirectOptions != null && message.hasOwnProperty("redirectOptions")) { object.redirectOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.toObject(message.redirectOptions, options); if (options.oneofs) @@ -368561,6 +371495,949 @@ return SecurityPolicyRuleMatcherConfig; })(); + v1.SecurityPolicyRulePreconfiguredWafConfig = (function() { + + /** + * Properties of a SecurityPolicyRulePreconfiguredWafConfig. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRulePreconfiguredWafConfig + * @property {Array.|null} [exclusions] SecurityPolicyRulePreconfiguredWafConfig exclusions + */ + + /** + * Constructs a new SecurityPolicyRulePreconfiguredWafConfig. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRulePreconfiguredWafConfig. + * @implements ISecurityPolicyRulePreconfiguredWafConfig + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig=} [properties] Properties to set + */ + function SecurityPolicyRulePreconfiguredWafConfig(properties) { + this.exclusions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityPolicyRulePreconfiguredWafConfig exclusions. + * @member {Array.} exclusions + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfig.prototype.exclusions = $util.emptyArray; + + /** + * Creates a new SecurityPolicyRulePreconfiguredWafConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig} SecurityPolicyRulePreconfiguredWafConfig instance + */ + SecurityPolicyRulePreconfiguredWafConfig.create = function create(properties) { + return new SecurityPolicyRulePreconfiguredWafConfig(properties); + }; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfig message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig} message SecurityPolicyRulePreconfiguredWafConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRulePreconfiguredWafConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exclusions != null && message.exclusions.length) + for (var i = 0; i < message.exclusions.length; ++i) + $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.encode(message.exclusions[i], writer.uint32(/* id 208665701, wireType 2 =*/1669325610).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfig} message SecurityPolicyRulePreconfiguredWafConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRulePreconfiguredWafConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig} SecurityPolicyRulePreconfiguredWafConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRulePreconfiguredWafConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 208665701: { + if (!(message.exclusions && message.exclusions.length)) + message.exclusions = []; + message.exclusions.push($root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig} SecurityPolicyRulePreconfiguredWafConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRulePreconfiguredWafConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRulePreconfiguredWafConfig message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRulePreconfiguredWafConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exclusions != null && message.hasOwnProperty("exclusions")) { + if (!Array.isArray(message.exclusions)) + return "exclusions: array expected"; + for (var i = 0; i < message.exclusions.length; ++i) { + var error = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.verify(message.exclusions[i]); + if (error) + return "exclusions." + error; + } + } + return null; + }; + + /** + * Creates a SecurityPolicyRulePreconfiguredWafConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig} SecurityPolicyRulePreconfiguredWafConfig + */ + SecurityPolicyRulePreconfiguredWafConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig(); + if (object.exclusions) { + if (!Array.isArray(object.exclusions)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.exclusions: array expected"); + message.exclusions = []; + for (var i = 0; i < object.exclusions.length; ++i) { + if (typeof object.exclusions[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig.exclusions: object expected"); + message.exclusions[i] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.fromObject(object.exclusions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRulePreconfiguredWafConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig} message SecurityPolicyRulePreconfiguredWafConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRulePreconfiguredWafConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exclusions = []; + if (message.exclusions && message.exclusions.length) { + object.exclusions = []; + for (var j = 0; j < message.exclusions.length; ++j) + object.exclusions[j] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.toObject(message.exclusions[j], options); + } + return object; + }; + + /** + * Converts this SecurityPolicyRulePreconfiguredWafConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRulePreconfiguredWafConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityPolicyRulePreconfiguredWafConfig + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityPolicyRulePreconfiguredWafConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig"; + }; + + return SecurityPolicyRulePreconfiguredWafConfig; + })(); + + v1.SecurityPolicyRulePreconfiguredWafConfigExclusion = (function() { + + /** + * Properties of a SecurityPolicyRulePreconfiguredWafConfigExclusion. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRulePreconfiguredWafConfigExclusion + * @property {Array.|null} [requestCookiesToExclude] SecurityPolicyRulePreconfiguredWafConfigExclusion requestCookiesToExclude + * @property {Array.|null} [requestHeadersToExclude] SecurityPolicyRulePreconfiguredWafConfigExclusion requestHeadersToExclude + * @property {Array.|null} [requestQueryParamsToExclude] SecurityPolicyRulePreconfiguredWafConfigExclusion requestQueryParamsToExclude + * @property {Array.|null} [requestUrisToExclude] SecurityPolicyRulePreconfiguredWafConfigExclusion requestUrisToExclude + * @property {Array.|null} [targetRuleIds] SecurityPolicyRulePreconfiguredWafConfigExclusion targetRuleIds + * @property {string|null} [targetRuleSet] SecurityPolicyRulePreconfiguredWafConfigExclusion targetRuleSet + */ + + /** + * Constructs a new SecurityPolicyRulePreconfiguredWafConfigExclusion. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRulePreconfiguredWafConfigExclusion. + * @implements ISecurityPolicyRulePreconfiguredWafConfigExclusion + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion=} [properties] Properties to set + */ + function SecurityPolicyRulePreconfiguredWafConfigExclusion(properties) { + this.requestCookiesToExclude = []; + this.requestHeadersToExclude = []; + this.requestQueryParamsToExclude = []; + this.requestUrisToExclude = []; + this.targetRuleIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusion requestCookiesToExclude. + * @member {Array.} requestCookiesToExclude + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.prototype.requestCookiesToExclude = $util.emptyArray; + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusion requestHeadersToExclude. + * @member {Array.} requestHeadersToExclude + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.prototype.requestHeadersToExclude = $util.emptyArray; + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusion requestQueryParamsToExclude. + * @member {Array.} requestQueryParamsToExclude + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.prototype.requestQueryParamsToExclude = $util.emptyArray; + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusion requestUrisToExclude. + * @member {Array.} requestUrisToExclude + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.prototype.requestUrisToExclude = $util.emptyArray; + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusion targetRuleIds. + * @member {Array.} targetRuleIds + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.prototype.targetRuleIds = $util.emptyArray; + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusion targetRuleSet. + * @member {string|null|undefined} targetRuleSet + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.prototype.targetRuleSet = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusion _targetRuleSet. + * @member {"targetRuleSet"|undefined} _targetRuleSet + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @instance + */ + Object.defineProperty(SecurityPolicyRulePreconfiguredWafConfigExclusion.prototype, "_targetRuleSet", { + get: $util.oneOfGetter($oneOfFields = ["targetRuleSet"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyRulePreconfiguredWafConfigExclusion instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion} SecurityPolicyRulePreconfiguredWafConfigExclusion instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.create = function create(properties) { + return new SecurityPolicyRulePreconfiguredWafConfigExclusion(properties); + }; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfigExclusion message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion} message SecurityPolicyRulePreconfiguredWafConfigExclusion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestHeadersToExclude != null && message.requestHeadersToExclude.length) + for (var i = 0; i < message.requestHeadersToExclude.length; ++i) + $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.encode(message.requestHeadersToExclude[i], writer.uint32(/* id 63230495, wireType 2 =*/505843962).fork()).ldelim(); + if (message.requestUrisToExclude != null && message.requestUrisToExclude.length) + for (var i = 0; i < message.requestUrisToExclude.length; ++i) + $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.encode(message.requestUrisToExclude[i], writer.uint32(/* id 90690846, wireType 2 =*/725526770).fork()).ldelim(); + if (message.requestCookiesToExclude != null && message.requestCookiesToExclude.length) + for (var i = 0; i < message.requestCookiesToExclude.length; ++i) + $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.encode(message.requestCookiesToExclude[i], writer.uint32(/* id 156757878, wireType 2 =*/1254063026).fork()).ldelim(); + if (message.requestQueryParamsToExclude != null && message.requestQueryParamsToExclude.length) + for (var i = 0; i < message.requestQueryParamsToExclude.length; ++i) + $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.encode(message.requestQueryParamsToExclude[i], writer.uint32(/* id 340692744, wireType 2 =*/2725541954).fork()).ldelim(); + if (message.targetRuleIds != null && message.targetRuleIds.length) + for (var i = 0; i < message.targetRuleIds.length; ++i) + writer.uint32(/* id 498430435, wireType 2 =*/3987443482).string(message.targetRuleIds[i]); + if (message.targetRuleSet != null && Object.hasOwnProperty.call(message, "targetRuleSet")) + writer.uint32(/* id 498440077, wireType 2 =*/3987520618).string(message.targetRuleSet); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfigExclusion message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusion} message SecurityPolicyRulePreconfiguredWafConfigExclusion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfigExclusion message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion} SecurityPolicyRulePreconfiguredWafConfigExclusion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 156757878: { + if (!(message.requestCookiesToExclude && message.requestCookiesToExclude.length)) + message.requestCookiesToExclude = []; + message.requestCookiesToExclude.push($root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.decode(reader, reader.uint32())); + break; + } + case 63230495: { + if (!(message.requestHeadersToExclude && message.requestHeadersToExclude.length)) + message.requestHeadersToExclude = []; + message.requestHeadersToExclude.push($root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.decode(reader, reader.uint32())); + break; + } + case 340692744: { + if (!(message.requestQueryParamsToExclude && message.requestQueryParamsToExclude.length)) + message.requestQueryParamsToExclude = []; + message.requestQueryParamsToExclude.push($root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.decode(reader, reader.uint32())); + break; + } + case 90690846: { + if (!(message.requestUrisToExclude && message.requestUrisToExclude.length)) + message.requestUrisToExclude = []; + message.requestUrisToExclude.push($root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.decode(reader, reader.uint32())); + break; + } + case 498430435: { + if (!(message.targetRuleIds && message.targetRuleIds.length)) + message.targetRuleIds = []; + message.targetRuleIds.push(reader.string()); + break; + } + case 498440077: { + message.targetRuleSet = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfigExclusion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion} SecurityPolicyRulePreconfiguredWafConfigExclusion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRulePreconfiguredWafConfigExclusion message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.requestCookiesToExclude != null && message.hasOwnProperty("requestCookiesToExclude")) { + if (!Array.isArray(message.requestCookiesToExclude)) + return "requestCookiesToExclude: array expected"; + for (var i = 0; i < message.requestCookiesToExclude.length; ++i) { + var error = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify(message.requestCookiesToExclude[i]); + if (error) + return "requestCookiesToExclude." + error; + } + } + if (message.requestHeadersToExclude != null && message.hasOwnProperty("requestHeadersToExclude")) { + if (!Array.isArray(message.requestHeadersToExclude)) + return "requestHeadersToExclude: array expected"; + for (var i = 0; i < message.requestHeadersToExclude.length; ++i) { + var error = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify(message.requestHeadersToExclude[i]); + if (error) + return "requestHeadersToExclude." + error; + } + } + if (message.requestQueryParamsToExclude != null && message.hasOwnProperty("requestQueryParamsToExclude")) { + if (!Array.isArray(message.requestQueryParamsToExclude)) + return "requestQueryParamsToExclude: array expected"; + for (var i = 0; i < message.requestQueryParamsToExclude.length; ++i) { + var error = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify(message.requestQueryParamsToExclude[i]); + if (error) + return "requestQueryParamsToExclude." + error; + } + } + if (message.requestUrisToExclude != null && message.hasOwnProperty("requestUrisToExclude")) { + if (!Array.isArray(message.requestUrisToExclude)) + return "requestUrisToExclude: array expected"; + for (var i = 0; i < message.requestUrisToExclude.length; ++i) { + var error = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify(message.requestUrisToExclude[i]); + if (error) + return "requestUrisToExclude." + error; + } + } + if (message.targetRuleIds != null && message.hasOwnProperty("targetRuleIds")) { + if (!Array.isArray(message.targetRuleIds)) + return "targetRuleIds: array expected"; + for (var i = 0; i < message.targetRuleIds.length; ++i) + if (!$util.isString(message.targetRuleIds[i])) + return "targetRuleIds: string[] expected"; + } + if (message.targetRuleSet != null && message.hasOwnProperty("targetRuleSet")) { + properties._targetRuleSet = 1; + if (!$util.isString(message.targetRuleSet)) + return "targetRuleSet: string expected"; + } + return null; + }; + + /** + * Creates a SecurityPolicyRulePreconfiguredWafConfigExclusion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion} SecurityPolicyRulePreconfiguredWafConfigExclusion + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion(); + if (object.requestCookiesToExclude) { + if (!Array.isArray(object.requestCookiesToExclude)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.requestCookiesToExclude: array expected"); + message.requestCookiesToExclude = []; + for (var i = 0; i < object.requestCookiesToExclude.length; ++i) { + if (typeof object.requestCookiesToExclude[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.requestCookiesToExclude: object expected"); + message.requestCookiesToExclude[i] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.fromObject(object.requestCookiesToExclude[i]); + } + } + if (object.requestHeadersToExclude) { + if (!Array.isArray(object.requestHeadersToExclude)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.requestHeadersToExclude: array expected"); + message.requestHeadersToExclude = []; + for (var i = 0; i < object.requestHeadersToExclude.length; ++i) { + if (typeof object.requestHeadersToExclude[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.requestHeadersToExclude: object expected"); + message.requestHeadersToExclude[i] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.fromObject(object.requestHeadersToExclude[i]); + } + } + if (object.requestQueryParamsToExclude) { + if (!Array.isArray(object.requestQueryParamsToExclude)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.requestQueryParamsToExclude: array expected"); + message.requestQueryParamsToExclude = []; + for (var i = 0; i < object.requestQueryParamsToExclude.length; ++i) { + if (typeof object.requestQueryParamsToExclude[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.requestQueryParamsToExclude: object expected"); + message.requestQueryParamsToExclude[i] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.fromObject(object.requestQueryParamsToExclude[i]); + } + } + if (object.requestUrisToExclude) { + if (!Array.isArray(object.requestUrisToExclude)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.requestUrisToExclude: array expected"); + message.requestUrisToExclude = []; + for (var i = 0; i < object.requestUrisToExclude.length; ++i) { + if (typeof object.requestUrisToExclude[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.requestUrisToExclude: object expected"); + message.requestUrisToExclude[i] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.fromObject(object.requestUrisToExclude[i]); + } + } + if (object.targetRuleIds) { + if (!Array.isArray(object.targetRuleIds)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.targetRuleIds: array expected"); + message.targetRuleIds = []; + for (var i = 0; i < object.targetRuleIds.length; ++i) + message.targetRuleIds[i] = String(object.targetRuleIds[i]); + } + if (object.targetRuleSet != null) + message.targetRuleSet = String(object.targetRuleSet); + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRulePreconfiguredWafConfigExclusion message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion} message SecurityPolicyRulePreconfiguredWafConfigExclusion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.requestHeadersToExclude = []; + object.requestUrisToExclude = []; + object.requestCookiesToExclude = []; + object.requestQueryParamsToExclude = []; + object.targetRuleIds = []; + } + if (message.requestHeadersToExclude && message.requestHeadersToExclude.length) { + object.requestHeadersToExclude = []; + for (var j = 0; j < message.requestHeadersToExclude.length; ++j) + object.requestHeadersToExclude[j] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.toObject(message.requestHeadersToExclude[j], options); + } + if (message.requestUrisToExclude && message.requestUrisToExclude.length) { + object.requestUrisToExclude = []; + for (var j = 0; j < message.requestUrisToExclude.length; ++j) + object.requestUrisToExclude[j] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.toObject(message.requestUrisToExclude[j], options); + } + if (message.requestCookiesToExclude && message.requestCookiesToExclude.length) { + object.requestCookiesToExclude = []; + for (var j = 0; j < message.requestCookiesToExclude.length; ++j) + object.requestCookiesToExclude[j] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.toObject(message.requestCookiesToExclude[j], options); + } + if (message.requestQueryParamsToExclude && message.requestQueryParamsToExclude.length) { + object.requestQueryParamsToExclude = []; + for (var j = 0; j < message.requestQueryParamsToExclude.length; ++j) + object.requestQueryParamsToExclude[j] = $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.toObject(message.requestQueryParamsToExclude[j], options); + } + if (message.targetRuleIds && message.targetRuleIds.length) { + object.targetRuleIds = []; + for (var j = 0; j < message.targetRuleIds.length; ++j) + object.targetRuleIds[j] = message.targetRuleIds[j]; + } + if (message.targetRuleSet != null && message.hasOwnProperty("targetRuleSet")) { + object.targetRuleSet = message.targetRuleSet; + if (options.oneofs) + object._targetRuleSet = "targetRuleSet"; + } + return object; + }; + + /** + * Converts this SecurityPolicyRulePreconfiguredWafConfigExclusion to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityPolicyRulePreconfiguredWafConfigExclusion + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityPolicyRulePreconfiguredWafConfigExclusion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion"; + }; + + return SecurityPolicyRulePreconfiguredWafConfigExclusion; + })(); + + v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams = (function() { + + /** + * Properties of a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @property {string|null} [op] SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams op + * @property {string|null} [val] SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams val + */ + + /** + * Constructs a new SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams. + * @implements ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams=} [properties] Properties to set + */ + function SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams op. + * @member {string|null|undefined} op + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.prototype.op = null; + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams val. + * @member {string|null|undefined} val + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.prototype.val = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams _op. + * @member {"op"|undefined} _op + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @instance + */ + Object.defineProperty(SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.prototype, "_op", { + get: $util.oneOfGetter($oneOfFields = ["op"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams _val. + * @member {"val"|undefined} _val + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @instance + */ + Object.defineProperty(SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.prototype, "_val", { + get: $util.oneOfGetter($oneOfFields = ["val"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams} SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams instance + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.create = function create(properties) { + return new SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(properties); + }; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams} message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.op != null && Object.hasOwnProperty.call(message, "op")) + writer.uint32(/* id 3553, wireType 2 =*/28426).string(message.op); + if (message.val != null && Object.hasOwnProperty.call(message, "val")) + writer.uint32(/* id 116513, wireType 2 =*/932106).string(message.val); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams} message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams} SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3553: { + message.op = reader.string(); + break; + } + case 116513: { + message.val = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams} SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.op != null && message.hasOwnProperty("op")) { + properties._op = 1; + if (!$util.isString(message.op)) + return "op: string expected"; + } + if (message.val != null && message.hasOwnProperty("val")) { + properties._val = 1; + if (!$util.isString(message.val)) + return "val: string expected"; + } + return null; + }; + + /** + * Creates a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams} SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(); + if (object.op != null) + message.op = String(object.op); + if (object.val != null) + message.val = String(object.val); + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams} message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.op != null && message.hasOwnProperty("op")) { + object.op = message.op; + if (options.oneofs) + object._op = "op"; + } + if (message.val != null && message.hasOwnProperty("val")) { + object.val = message.val; + if (options.oneofs) + object._val = "val"; + } + return object; + }; + + /** + * Converts this SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams"; + }; + + /** + * Op enum. + * @name google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.Op + * @enum {number} + * @property {number} UNDEFINED_OP=0 UNDEFINED_OP value + * @property {number} CONTAINS=215180831 CONTAINS value + * @property {number} ENDS_WITH=490402221 ENDS_WITH value + * @property {number} EQUALS=442201023 EQUALS value + * @property {number} EQUALS_ANY=337226060 EQUALS_ANY value + * @property {number} STARTS_WITH=139505652 STARTS_WITH value + */ + SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.Op = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_OP"] = 0; + values[valuesById[215180831] = "CONTAINS"] = 215180831; + values[valuesById[490402221] = "ENDS_WITH"] = 490402221; + values[valuesById[442201023] = "EQUALS"] = 442201023; + values[valuesById[337226060] = "EQUALS_ANY"] = 337226060; + values[valuesById[139505652] = "STARTS_WITH"] = 139505652; + return values; + })(); + + return SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams; + })(); + v1.SecurityPolicyRuleRateLimitOptions = (function() { /** @@ -388447,40 +392324,360 @@ }; /** - * Decodes a SetMachineTypeInstanceRequest message from the specified reader or buffer, length delimited. + * Decodes a SetMachineTypeInstanceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetMachineTypeInstanceRequest} SetMachineTypeInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetMachineTypeInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetMachineTypeInstanceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetMachineTypeInstanceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instance != null && message.hasOwnProperty("instance")) + if (!$util.isString(message.instance)) + return "instance: string expected"; + if (message.instancesSetMachineTypeRequestResource != null && message.hasOwnProperty("instancesSetMachineTypeRequestResource")) { + var error = $root.google.cloud.compute.v1.InstancesSetMachineTypeRequest.verify(message.instancesSetMachineTypeRequestResource); + if (error) + return "instancesSetMachineTypeRequestResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a SetMachineTypeInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetMachineTypeInstanceRequest} SetMachineTypeInstanceRequest + */ + SetMachineTypeInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetMachineTypeInstanceRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetMachineTypeInstanceRequest(); + if (object.instance != null) + message.instance = String(object.instance); + if (object.instancesSetMachineTypeRequestResource != null) { + if (typeof object.instancesSetMachineTypeRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetMachineTypeInstanceRequest.instancesSetMachineTypeRequestResource: object expected"); + message.instancesSetMachineTypeRequestResource = $root.google.cloud.compute.v1.InstancesSetMachineTypeRequest.fromObject(object.instancesSetMachineTypeRequestResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a SetMachineTypeInstanceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @static + * @param {google.cloud.compute.v1.SetMachineTypeInstanceRequest} message SetMachineTypeInstanceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetMachineTypeInstanceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instance = ""; + object.project = ""; + object.instancesSetMachineTypeRequestResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = message.instance; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instancesSetMachineTypeRequestResource != null && message.hasOwnProperty("instancesSetMachineTypeRequestResource")) + object.instancesSetMachineTypeRequestResource = $root.google.cloud.compute.v1.InstancesSetMachineTypeRequest.toObject(message.instancesSetMachineTypeRequestResource, options); + return object; + }; + + /** + * Converts this SetMachineTypeInstanceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @instance + * @returns {Object.} JSON object + */ + SetMachineTypeInstanceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetMachineTypeInstanceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetMachineTypeInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetMachineTypeInstanceRequest"; + }; + + return SetMachineTypeInstanceRequest; + })(); + + v1.SetMetadataInstanceRequest = (function() { + + /** + * Properties of a SetMetadataInstanceRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetMetadataInstanceRequest + * @property {string|null} [instance] SetMetadataInstanceRequest instance + * @property {google.cloud.compute.v1.IMetadata|null} [metadataResource] SetMetadataInstanceRequest metadataResource + * @property {string|null} [project] SetMetadataInstanceRequest project + * @property {string|null} [requestId] SetMetadataInstanceRequest requestId + * @property {string|null} [zone] SetMetadataInstanceRequest zone + */ + + /** + * Constructs a new SetMetadataInstanceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetMetadataInstanceRequest. + * @implements ISetMetadataInstanceRequest + * @constructor + * @param {google.cloud.compute.v1.ISetMetadataInstanceRequest=} [properties] Properties to set + */ + function SetMetadataInstanceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SetMetadataInstanceRequest instance. + * @member {string} instance + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @instance + */ + SetMetadataInstanceRequest.prototype.instance = ""; + + /** + * SetMetadataInstanceRequest metadataResource. + * @member {google.cloud.compute.v1.IMetadata|null|undefined} metadataResource + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @instance + */ + SetMetadataInstanceRequest.prototype.metadataResource = null; + + /** + * SetMetadataInstanceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @instance + */ + SetMetadataInstanceRequest.prototype.project = ""; + + /** + * SetMetadataInstanceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @instance + */ + SetMetadataInstanceRequest.prototype.requestId = null; + + /** + * SetMetadataInstanceRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @instance + */ + SetMetadataInstanceRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SetMetadataInstanceRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @instance + */ + Object.defineProperty(SetMetadataInstanceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SetMetadataInstanceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @static + * @param {google.cloud.compute.v1.ISetMetadataInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetMetadataInstanceRequest} SetMetadataInstanceRequest instance + */ + SetMetadataInstanceRequest.create = function create(properties) { + return new SetMetadataInstanceRequest(properties); + }; + + /** + * Encodes the specified SetMetadataInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetMetadataInstanceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @static + * @param {google.cloud.compute.v1.ISetMetadataInstanceRequest} message SetMetadataInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetMetadataInstanceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.metadataResource != null && Object.hasOwnProperty.call(message, "metadataResource")) + $root.google.cloud.compute.v1.Metadata.encode(message.metadataResource, writer.uint32(/* id 291086110, wireType 2 =*/2328688882).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetMetadataInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetMetadataInstanceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @static + * @param {google.cloud.compute.v1.ISetMetadataInstanceRequest} message SetMetadataInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetMetadataInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetMetadataInstanceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SetMetadataInstanceRequest} SetMetadataInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetMetadataInstanceRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetMetadataInstanceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 18257045: { + message.instance = reader.string(); + break; + } + case 291086110: { + message.metadataResource = $root.google.cloud.compute.v1.Metadata.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetMetadataInstanceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.SetMachineTypeInstanceRequest} SetMachineTypeInstanceRequest + * @returns {google.cloud.compute.v1.SetMetadataInstanceRequest} SetMetadataInstanceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMachineTypeInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + SetMetadataInstanceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetMachineTypeInstanceRequest message. + * Verifies a SetMetadataInstanceRequest message. * @function verify - * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetMachineTypeInstanceRequest.verify = function verify(message) { + SetMetadataInstanceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; if (message.instance != null && message.hasOwnProperty("instance")) if (!$util.isString(message.instance)) return "instance: string expected"; - if (message.instancesSetMachineTypeRequestResource != null && message.hasOwnProperty("instancesSetMachineTypeRequestResource")) { - var error = $root.google.cloud.compute.v1.InstancesSetMachineTypeRequest.verify(message.instancesSetMachineTypeRequestResource); + if (message.metadataResource != null && message.hasOwnProperty("metadataResource")) { + var error = $root.google.cloud.compute.v1.Metadata.verify(message.metadataResource); if (error) - return "instancesSetMachineTypeRequestResource." + error; + return "metadataResource." + error; } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) @@ -388497,23 +392694,23 @@ }; /** - * Creates a SetMachineTypeInstanceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetMetadataInstanceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.SetMachineTypeInstanceRequest} SetMachineTypeInstanceRequest + * @returns {google.cloud.compute.v1.SetMetadataInstanceRequest} SetMetadataInstanceRequest */ - SetMachineTypeInstanceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.SetMachineTypeInstanceRequest) + SetMetadataInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetMetadataInstanceRequest) return object; - var message = new $root.google.cloud.compute.v1.SetMachineTypeInstanceRequest(); + var message = new $root.google.cloud.compute.v1.SetMetadataInstanceRequest(); if (object.instance != null) message.instance = String(object.instance); - if (object.instancesSetMachineTypeRequestResource != null) { - if (typeof object.instancesSetMachineTypeRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.SetMachineTypeInstanceRequest.instancesSetMachineTypeRequestResource: object expected"); - message.instancesSetMachineTypeRequestResource = $root.google.cloud.compute.v1.InstancesSetMachineTypeRequest.fromObject(object.instancesSetMachineTypeRequestResource); + if (object.metadataResource != null) { + if (typeof object.metadataResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetMetadataInstanceRequest.metadataResource: object expected"); + message.metadataResource = $root.google.cloud.compute.v1.Metadata.fromObject(object.metadataResource); } if (object.project != null) message.project = String(object.project); @@ -388525,15 +392722,15 @@ }; /** - * Creates a plain object from a SetMachineTypeInstanceRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetMetadataInstanceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest * @static - * @param {google.cloud.compute.v1.SetMachineTypeInstanceRequest} message SetMachineTypeInstanceRequest + * @param {google.cloud.compute.v1.SetMetadataInstanceRequest} message SetMetadataInstanceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMachineTypeInstanceRequest.toObject = function toObject(message, options) { + SetMetadataInstanceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -388541,7 +392738,7 @@ object.zone = ""; object.instance = ""; object.project = ""; - object.instancesSetMachineTypeRequestResource = null; + object.metadataResource = null; } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; @@ -388554,62 +392751,62 @@ } if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.instancesSetMachineTypeRequestResource != null && message.hasOwnProperty("instancesSetMachineTypeRequestResource")) - object.instancesSetMachineTypeRequestResource = $root.google.cloud.compute.v1.InstancesSetMachineTypeRequest.toObject(message.instancesSetMachineTypeRequestResource, options); + if (message.metadataResource != null && message.hasOwnProperty("metadataResource")) + object.metadataResource = $root.google.cloud.compute.v1.Metadata.toObject(message.metadataResource, options); return object; }; /** - * Converts this SetMachineTypeInstanceRequest to JSON. + * Converts this SetMetadataInstanceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest * @instance * @returns {Object.} JSON object */ - SetMachineTypeInstanceRequest.prototype.toJSON = function toJSON() { + SetMetadataInstanceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetMachineTypeInstanceRequest + * Gets the default type url for SetMetadataInstanceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.SetMachineTypeInstanceRequest + * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetMachineTypeInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetMetadataInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.SetMachineTypeInstanceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.SetMetadataInstanceRequest"; }; - return SetMachineTypeInstanceRequest; + return SetMetadataInstanceRequest; })(); - v1.SetMetadataInstanceRequest = (function() { + v1.SetMinCpuPlatformInstanceRequest = (function() { /** - * Properties of a SetMetadataInstanceRequest. + * Properties of a SetMinCpuPlatformInstanceRequest. * @memberof google.cloud.compute.v1 - * @interface ISetMetadataInstanceRequest - * @property {string|null} [instance] SetMetadataInstanceRequest instance - * @property {google.cloud.compute.v1.IMetadata|null} [metadataResource] SetMetadataInstanceRequest metadataResource - * @property {string|null} [project] SetMetadataInstanceRequest project - * @property {string|null} [requestId] SetMetadataInstanceRequest requestId - * @property {string|null} [zone] SetMetadataInstanceRequest zone + * @interface ISetMinCpuPlatformInstanceRequest + * @property {string|null} [instance] SetMinCpuPlatformInstanceRequest instance + * @property {google.cloud.compute.v1.IInstancesSetMinCpuPlatformRequest|null} [instancesSetMinCpuPlatformRequestResource] SetMinCpuPlatformInstanceRequest instancesSetMinCpuPlatformRequestResource + * @property {string|null} [project] SetMinCpuPlatformInstanceRequest project + * @property {string|null} [requestId] SetMinCpuPlatformInstanceRequest requestId + * @property {string|null} [zone] SetMinCpuPlatformInstanceRequest zone */ /** - * Constructs a new SetMetadataInstanceRequest. + * Constructs a new SetMinCpuPlatformInstanceRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a SetMetadataInstanceRequest. - * @implements ISetMetadataInstanceRequest + * @classdesc Represents a SetMinCpuPlatformInstanceRequest. + * @implements ISetMinCpuPlatformInstanceRequest * @constructor - * @param {google.cloud.compute.v1.ISetMetadataInstanceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest=} [properties] Properties to set */ - function SetMetadataInstanceRequest(properties) { + function SetMinCpuPlatformInstanceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -388617,81 +392814,81 @@ } /** - * SetMetadataInstanceRequest instance. + * SetMinCpuPlatformInstanceRequest instance. * @member {string} instance - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @instance */ - SetMetadataInstanceRequest.prototype.instance = ""; + SetMinCpuPlatformInstanceRequest.prototype.instance = ""; /** - * SetMetadataInstanceRequest metadataResource. - * @member {google.cloud.compute.v1.IMetadata|null|undefined} metadataResource - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * SetMinCpuPlatformInstanceRequest instancesSetMinCpuPlatformRequestResource. + * @member {google.cloud.compute.v1.IInstancesSetMinCpuPlatformRequest|null|undefined} instancesSetMinCpuPlatformRequestResource + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @instance */ - SetMetadataInstanceRequest.prototype.metadataResource = null; + SetMinCpuPlatformInstanceRequest.prototype.instancesSetMinCpuPlatformRequestResource = null; /** - * SetMetadataInstanceRequest project. + * SetMinCpuPlatformInstanceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @instance */ - SetMetadataInstanceRequest.prototype.project = ""; + SetMinCpuPlatformInstanceRequest.prototype.project = ""; /** - * SetMetadataInstanceRequest requestId. + * SetMinCpuPlatformInstanceRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @instance */ - SetMetadataInstanceRequest.prototype.requestId = null; + SetMinCpuPlatformInstanceRequest.prototype.requestId = null; /** - * SetMetadataInstanceRequest zone. + * SetMinCpuPlatformInstanceRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @instance */ - SetMetadataInstanceRequest.prototype.zone = ""; + SetMinCpuPlatformInstanceRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SetMetadataInstanceRequest _requestId. + * SetMinCpuPlatformInstanceRequest _requestId. * @member {"requestId"|undefined} _requestId - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @instance */ - Object.defineProperty(SetMetadataInstanceRequest.prototype, "_requestId", { + Object.defineProperty(SetMinCpuPlatformInstanceRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SetMetadataInstanceRequest instance using the specified properties. + * Creates a new SetMinCpuPlatformInstanceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static - * @param {google.cloud.compute.v1.ISetMetadataInstanceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.SetMetadataInstanceRequest} SetMetadataInstanceRequest instance + * @param {google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} SetMinCpuPlatformInstanceRequest instance */ - SetMetadataInstanceRequest.create = function create(properties) { - return new SetMetadataInstanceRequest(properties); + SetMinCpuPlatformInstanceRequest.create = function create(properties) { + return new SetMinCpuPlatformInstanceRequest(properties); }; /** - * Encodes the specified SetMetadataInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetMetadataInstanceRequest.verify|verify} messages. + * Encodes the specified SetMinCpuPlatformInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static - * @param {google.cloud.compute.v1.ISetMetadataInstanceRequest} message SetMetadataInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest} message SetMinCpuPlatformInstanceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMetadataInstanceRequest.encode = function encode(message, writer) { + SetMinCpuPlatformInstanceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) @@ -388700,41 +392897,41 @@ writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.instancesSetMinCpuPlatformRequestResource != null && Object.hasOwnProperty.call(message, "instancesSetMinCpuPlatformRequestResource")) + $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.encode(message.instancesSetMinCpuPlatformRequestResource, writer.uint32(/* id 148459368, wireType 2 =*/1187674946).fork()).ldelim(); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.metadataResource != null && Object.hasOwnProperty.call(message, "metadataResource")) - $root.google.cloud.compute.v1.Metadata.encode(message.metadataResource, writer.uint32(/* id 291086110, wireType 2 =*/2328688882).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetMetadataInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetMetadataInstanceRequest.verify|verify} messages. + * Encodes the specified SetMinCpuPlatformInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static - * @param {google.cloud.compute.v1.ISetMetadataInstanceRequest} message SetMetadataInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest} message SetMinCpuPlatformInstanceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMetadataInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetMinCpuPlatformInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMetadataInstanceRequest message from the specified reader or buffer. + * Decodes a SetMinCpuPlatformInstanceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.SetMetadataInstanceRequest} SetMetadataInstanceRequest + * @returns {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} SetMinCpuPlatformInstanceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMetadataInstanceRequest.decode = function decode(reader, length) { + SetMinCpuPlatformInstanceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetMetadataInstanceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -388742,8 +392939,8 @@ message.instance = reader.string(); break; } - case 291086110: { - message.metadataResource = $root.google.cloud.compute.v1.Metadata.decode(reader, reader.uint32()); + case 148459368: { + message.instancesSetMinCpuPlatformRequestResource = $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.decode(reader, reader.uint32()); break; } case 227560217: { @@ -388767,40 +392964,40 @@ }; /** - * Decodes a SetMetadataInstanceRequest message from the specified reader or buffer, length delimited. + * Decodes a SetMinCpuPlatformInstanceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.SetMetadataInstanceRequest} SetMetadataInstanceRequest + * @returns {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} SetMinCpuPlatformInstanceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMetadataInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + SetMinCpuPlatformInstanceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetMetadataInstanceRequest message. + * Verifies a SetMinCpuPlatformInstanceRequest message. * @function verify - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetMetadataInstanceRequest.verify = function verify(message) { + SetMinCpuPlatformInstanceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; if (message.instance != null && message.hasOwnProperty("instance")) if (!$util.isString(message.instance)) return "instance: string expected"; - if (message.metadataResource != null && message.hasOwnProperty("metadataResource")) { - var error = $root.google.cloud.compute.v1.Metadata.verify(message.metadataResource); + if (message.instancesSetMinCpuPlatformRequestResource != null && message.hasOwnProperty("instancesSetMinCpuPlatformRequestResource")) { + var error = $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.verify(message.instancesSetMinCpuPlatformRequestResource); if (error) - return "metadataResource." + error; + return "instancesSetMinCpuPlatformRequestResource." + error; } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) @@ -388817,23 +393014,23 @@ }; /** - * Creates a SetMetadataInstanceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetMinCpuPlatformInstanceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.SetMetadataInstanceRequest} SetMetadataInstanceRequest + * @returns {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} SetMinCpuPlatformInstanceRequest */ - SetMetadataInstanceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.SetMetadataInstanceRequest) + SetMinCpuPlatformInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest) return object; - var message = new $root.google.cloud.compute.v1.SetMetadataInstanceRequest(); + var message = new $root.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest(); if (object.instance != null) message.instance = String(object.instance); - if (object.metadataResource != null) { - if (typeof object.metadataResource !== "object") - throw TypeError(".google.cloud.compute.v1.SetMetadataInstanceRequest.metadataResource: object expected"); - message.metadataResource = $root.google.cloud.compute.v1.Metadata.fromObject(object.metadataResource); + if (object.instancesSetMinCpuPlatformRequestResource != null) { + if (typeof object.instancesSetMinCpuPlatformRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest.instancesSetMinCpuPlatformRequestResource: object expected"); + message.instancesSetMinCpuPlatformRequestResource = $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.fromObject(object.instancesSetMinCpuPlatformRequestResource); } if (object.project != null) message.project = String(object.project); @@ -388845,23 +393042,23 @@ }; /** - * Creates a plain object from a SetMetadataInstanceRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetMinCpuPlatformInstanceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static - * @param {google.cloud.compute.v1.SetMetadataInstanceRequest} message SetMetadataInstanceRequest + * @param {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} message SetMinCpuPlatformInstanceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMetadataInstanceRequest.toObject = function toObject(message, options) { + SetMinCpuPlatformInstanceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.zone = ""; object.instance = ""; + object.instancesSetMinCpuPlatformRequestResource = null; object.project = ""; - object.metadataResource = null; } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; @@ -388872,64 +393069,64 @@ if (options.oneofs) object._requestId = "requestId"; } + if (message.instancesSetMinCpuPlatformRequestResource != null && message.hasOwnProperty("instancesSetMinCpuPlatformRequestResource")) + object.instancesSetMinCpuPlatformRequestResource = $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.toObject(message.instancesSetMinCpuPlatformRequestResource, options); if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.metadataResource != null && message.hasOwnProperty("metadataResource")) - object.metadataResource = $root.google.cloud.compute.v1.Metadata.toObject(message.metadataResource, options); return object; }; /** - * Converts this SetMetadataInstanceRequest to JSON. + * Converts this SetMinCpuPlatformInstanceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @instance * @returns {Object.} JSON object */ - SetMetadataInstanceRequest.prototype.toJSON = function toJSON() { + SetMinCpuPlatformInstanceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetMetadataInstanceRequest + * Gets the default type url for SetMinCpuPlatformInstanceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.SetMetadataInstanceRequest + * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetMetadataInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetMinCpuPlatformInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.SetMetadataInstanceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest"; }; - return SetMetadataInstanceRequest; + return SetMinCpuPlatformInstanceRequest; })(); - v1.SetMinCpuPlatformInstanceRequest = (function() { + v1.SetNameInstanceRequest = (function() { /** - * Properties of a SetMinCpuPlatformInstanceRequest. + * Properties of a SetNameInstanceRequest. * @memberof google.cloud.compute.v1 - * @interface ISetMinCpuPlatformInstanceRequest - * @property {string|null} [instance] SetMinCpuPlatformInstanceRequest instance - * @property {google.cloud.compute.v1.IInstancesSetMinCpuPlatformRequest|null} [instancesSetMinCpuPlatformRequestResource] SetMinCpuPlatformInstanceRequest instancesSetMinCpuPlatformRequestResource - * @property {string|null} [project] SetMinCpuPlatformInstanceRequest project - * @property {string|null} [requestId] SetMinCpuPlatformInstanceRequest requestId - * @property {string|null} [zone] SetMinCpuPlatformInstanceRequest zone + * @interface ISetNameInstanceRequest + * @property {string|null} [instance] SetNameInstanceRequest instance + * @property {google.cloud.compute.v1.IInstancesSetNameRequest|null} [instancesSetNameRequestResource] SetNameInstanceRequest instancesSetNameRequestResource + * @property {string|null} [project] SetNameInstanceRequest project + * @property {string|null} [requestId] SetNameInstanceRequest requestId + * @property {string|null} [zone] SetNameInstanceRequest zone */ /** - * Constructs a new SetMinCpuPlatformInstanceRequest. + * Constructs a new SetNameInstanceRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a SetMinCpuPlatformInstanceRequest. - * @implements ISetMinCpuPlatformInstanceRequest + * @classdesc Represents a SetNameInstanceRequest. + * @implements ISetNameInstanceRequest * @constructor - * @param {google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ISetNameInstanceRequest=} [properties] Properties to set */ - function SetMinCpuPlatformInstanceRequest(properties) { + function SetNameInstanceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -388937,81 +393134,81 @@ } /** - * SetMinCpuPlatformInstanceRequest instance. + * SetNameInstanceRequest instance. * @member {string} instance - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @instance */ - SetMinCpuPlatformInstanceRequest.prototype.instance = ""; + SetNameInstanceRequest.prototype.instance = ""; /** - * SetMinCpuPlatformInstanceRequest instancesSetMinCpuPlatformRequestResource. - * @member {google.cloud.compute.v1.IInstancesSetMinCpuPlatformRequest|null|undefined} instancesSetMinCpuPlatformRequestResource - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * SetNameInstanceRequest instancesSetNameRequestResource. + * @member {google.cloud.compute.v1.IInstancesSetNameRequest|null|undefined} instancesSetNameRequestResource + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @instance */ - SetMinCpuPlatformInstanceRequest.prototype.instancesSetMinCpuPlatformRequestResource = null; + SetNameInstanceRequest.prototype.instancesSetNameRequestResource = null; /** - * SetMinCpuPlatformInstanceRequest project. + * SetNameInstanceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @instance */ - SetMinCpuPlatformInstanceRequest.prototype.project = ""; + SetNameInstanceRequest.prototype.project = ""; /** - * SetMinCpuPlatformInstanceRequest requestId. + * SetNameInstanceRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @instance */ - SetMinCpuPlatformInstanceRequest.prototype.requestId = null; + SetNameInstanceRequest.prototype.requestId = null; /** - * SetMinCpuPlatformInstanceRequest zone. + * SetNameInstanceRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @instance */ - SetMinCpuPlatformInstanceRequest.prototype.zone = ""; + SetNameInstanceRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SetMinCpuPlatformInstanceRequest _requestId. + * SetNameInstanceRequest _requestId. * @member {"requestId"|undefined} _requestId - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @instance */ - Object.defineProperty(SetMinCpuPlatformInstanceRequest.prototype, "_requestId", { + Object.defineProperty(SetNameInstanceRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SetMinCpuPlatformInstanceRequest instance using the specified properties. + * Creates a new SetNameInstanceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static - * @param {google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} SetMinCpuPlatformInstanceRequest instance + * @param {google.cloud.compute.v1.ISetNameInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetNameInstanceRequest} SetNameInstanceRequest instance */ - SetMinCpuPlatformInstanceRequest.create = function create(properties) { - return new SetMinCpuPlatformInstanceRequest(properties); + SetNameInstanceRequest.create = function create(properties) { + return new SetNameInstanceRequest(properties); }; /** - * Encodes the specified SetMinCpuPlatformInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest.verify|verify} messages. + * Encodes the specified SetNameInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetNameInstanceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static - * @param {google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest} message SetMinCpuPlatformInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetNameInstanceRequest} message SetNameInstanceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMinCpuPlatformInstanceRequest.encode = function encode(message, writer) { + SetNameInstanceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) @@ -389020,41 +393217,41 @@ writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); - if (message.instancesSetMinCpuPlatformRequestResource != null && Object.hasOwnProperty.call(message, "instancesSetMinCpuPlatformRequestResource")) - $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.encode(message.instancesSetMinCpuPlatformRequestResource, writer.uint32(/* id 148459368, wireType 2 =*/1187674946).fork()).ldelim(); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instancesSetNameRequestResource != null && Object.hasOwnProperty.call(message, "instancesSetNameRequestResource")) + $root.google.cloud.compute.v1.InstancesSetNameRequest.encode(message.instancesSetNameRequestResource, writer.uint32(/* id 272080980, wireType 2 =*/2176647842).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetMinCpuPlatformInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest.verify|verify} messages. + * Encodes the specified SetNameInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetNameInstanceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static - * @param {google.cloud.compute.v1.ISetMinCpuPlatformInstanceRequest} message SetMinCpuPlatformInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetNameInstanceRequest} message SetNameInstanceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMinCpuPlatformInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetNameInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMinCpuPlatformInstanceRequest message from the specified reader or buffer. + * Decodes a SetNameInstanceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} SetMinCpuPlatformInstanceRequest + * @returns {google.cloud.compute.v1.SetNameInstanceRequest} SetNameInstanceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMinCpuPlatformInstanceRequest.decode = function decode(reader, length) { + SetNameInstanceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetNameInstanceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -389062,8 +393259,8 @@ message.instance = reader.string(); break; } - case 148459368: { - message.instancesSetMinCpuPlatformRequestResource = $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.decode(reader, reader.uint32()); + case 272080980: { + message.instancesSetNameRequestResource = $root.google.cloud.compute.v1.InstancesSetNameRequest.decode(reader, reader.uint32()); break; } case 227560217: { @@ -389087,40 +393284,40 @@ }; /** - * Decodes a SetMinCpuPlatformInstanceRequest message from the specified reader or buffer, length delimited. + * Decodes a SetNameInstanceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} SetMinCpuPlatformInstanceRequest + * @returns {google.cloud.compute.v1.SetNameInstanceRequest} SetNameInstanceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMinCpuPlatformInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + SetNameInstanceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetMinCpuPlatformInstanceRequest message. + * Verifies a SetNameInstanceRequest message. * @function verify - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetMinCpuPlatformInstanceRequest.verify = function verify(message) { + SetNameInstanceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; if (message.instance != null && message.hasOwnProperty("instance")) if (!$util.isString(message.instance)) return "instance: string expected"; - if (message.instancesSetMinCpuPlatformRequestResource != null && message.hasOwnProperty("instancesSetMinCpuPlatformRequestResource")) { - var error = $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.verify(message.instancesSetMinCpuPlatformRequestResource); + if (message.instancesSetNameRequestResource != null && message.hasOwnProperty("instancesSetNameRequestResource")) { + var error = $root.google.cloud.compute.v1.InstancesSetNameRequest.verify(message.instancesSetNameRequestResource); if (error) - return "instancesSetMinCpuPlatformRequestResource." + error; + return "instancesSetNameRequestResource." + error; } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) @@ -389137,23 +393334,23 @@ }; /** - * Creates a SetMinCpuPlatformInstanceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetNameInstanceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} SetMinCpuPlatformInstanceRequest + * @returns {google.cloud.compute.v1.SetNameInstanceRequest} SetNameInstanceRequest */ - SetMinCpuPlatformInstanceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest) + SetNameInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetNameInstanceRequest) return object; - var message = new $root.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest(); + var message = new $root.google.cloud.compute.v1.SetNameInstanceRequest(); if (object.instance != null) message.instance = String(object.instance); - if (object.instancesSetMinCpuPlatformRequestResource != null) { - if (typeof object.instancesSetMinCpuPlatformRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest.instancesSetMinCpuPlatformRequestResource: object expected"); - message.instancesSetMinCpuPlatformRequestResource = $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.fromObject(object.instancesSetMinCpuPlatformRequestResource); + if (object.instancesSetNameRequestResource != null) { + if (typeof object.instancesSetNameRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetNameInstanceRequest.instancesSetNameRequestResource: object expected"); + message.instancesSetNameRequestResource = $root.google.cloud.compute.v1.InstancesSetNameRequest.fromObject(object.instancesSetNameRequestResource); } if (object.project != null) message.project = String(object.project); @@ -389165,23 +393362,23 @@ }; /** - * Creates a plain object from a SetMinCpuPlatformInstanceRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetNameInstanceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static - * @param {google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest} message SetMinCpuPlatformInstanceRequest + * @param {google.cloud.compute.v1.SetNameInstanceRequest} message SetNameInstanceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMinCpuPlatformInstanceRequest.toObject = function toObject(message, options) { + SetNameInstanceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.zone = ""; object.instance = ""; - object.instancesSetMinCpuPlatformRequestResource = null; object.project = ""; + object.instancesSetNameRequestResource = null; } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; @@ -389192,40 +393389,40 @@ if (options.oneofs) object._requestId = "requestId"; } - if (message.instancesSetMinCpuPlatformRequestResource != null && message.hasOwnProperty("instancesSetMinCpuPlatformRequestResource")) - object.instancesSetMinCpuPlatformRequestResource = $root.google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest.toObject(message.instancesSetMinCpuPlatformRequestResource, options); if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; + if (message.instancesSetNameRequestResource != null && message.hasOwnProperty("instancesSetNameRequestResource")) + object.instancesSetNameRequestResource = $root.google.cloud.compute.v1.InstancesSetNameRequest.toObject(message.instancesSetNameRequestResource, options); return object; }; /** - * Converts this SetMinCpuPlatformInstanceRequest to JSON. + * Converts this SetNameInstanceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @instance * @returns {Object.} JSON object */ - SetMinCpuPlatformInstanceRequest.prototype.toJSON = function toJSON() { + SetNameInstanceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetMinCpuPlatformInstanceRequest + * Gets the default type url for SetNameInstanceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest + * @memberof google.cloud.compute.v1.SetNameInstanceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetMinCpuPlatformInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetNameInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.SetNameInstanceRequest"; }; - return SetMinCpuPlatformInstanceRequest; + return SetNameInstanceRequest; })(); v1.SetNamedPortsInstanceGroupRequest = (function() { @@ -439318,6 +443515,402 @@ return UpdateBackendServiceRequest; })(); + v1.UpdateDiskRequest = (function() { + + /** + * Properties of an UpdateDiskRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateDiskRequest + * @property {string|null} [disk] UpdateDiskRequest disk + * @property {google.cloud.compute.v1.IDisk|null} [diskResource] UpdateDiskRequest diskResource + * @property {string|null} [paths] UpdateDiskRequest paths + * @property {string|null} [project] UpdateDiskRequest project + * @property {string|null} [requestId] UpdateDiskRequest requestId + * @property {string|null} [updateMask] UpdateDiskRequest updateMask + * @property {string|null} [zone] UpdateDiskRequest zone + */ + + /** + * Constructs a new UpdateDiskRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateDiskRequest. + * @implements IUpdateDiskRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateDiskRequest=} [properties] Properties to set + */ + function UpdateDiskRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateDiskRequest disk. + * @member {string} disk + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + UpdateDiskRequest.prototype.disk = ""; + + /** + * UpdateDiskRequest diskResource. + * @member {google.cloud.compute.v1.IDisk|null|undefined} diskResource + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + UpdateDiskRequest.prototype.diskResource = null; + + /** + * UpdateDiskRequest paths. + * @member {string|null|undefined} paths + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + UpdateDiskRequest.prototype.paths = null; + + /** + * UpdateDiskRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + UpdateDiskRequest.prototype.project = ""; + + /** + * UpdateDiskRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + UpdateDiskRequest.prototype.requestId = null; + + /** + * UpdateDiskRequest updateMask. + * @member {string|null|undefined} updateMask + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + UpdateDiskRequest.prototype.updateMask = null; + + /** + * UpdateDiskRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + UpdateDiskRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * UpdateDiskRequest _paths. + * @member {"paths"|undefined} _paths + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + Object.defineProperty(UpdateDiskRequest.prototype, "_paths", { + get: $util.oneOfGetter($oneOfFields = ["paths"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateDiskRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + Object.defineProperty(UpdateDiskRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateDiskRequest _updateMask. + * @member {"updateMask"|undefined} _updateMask + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + */ + Object.defineProperty(UpdateDiskRequest.prototype, "_updateMask", { + get: $util.oneOfGetter($oneOfFields = ["updateMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateDiskRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateDiskRequest} UpdateDiskRequest instance + */ + UpdateDiskRequest.create = function create(properties) { + return new UpdateDiskRequest(properties); + }; + + /** + * Encodes the specified UpdateDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateDiskRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateDiskRequest} message UpdateDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDiskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disk != null && Object.hasOwnProperty.call(message, "disk")) + writer.uint32(/* id 3083677, wireType 2 =*/24669418).string(message.disk); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.diskResource != null && Object.hasOwnProperty.call(message, "diskResource")) + $root.google.cloud.compute.v1.Disk.encode(message.diskResource, writer.uint32(/* id 25880688, wireType 2 =*/207045506).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.paths != null && Object.hasOwnProperty.call(message, "paths")) + writer.uint32(/* id 106438894, wireType 2 =*/851511154).string(message.paths); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + writer.uint32(/* id 500079778, wireType 2 =*/4000638226).string(message.updateMask); + return writer; + }; + + /** + * Encodes the specified UpdateDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateDiskRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateDiskRequest} message UpdateDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateDiskRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.UpdateDiskRequest} UpdateDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDiskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.UpdateDiskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3083677: { + message.disk = reader.string(); + break; + } + case 25880688: { + message.diskResource = $root.google.cloud.compute.v1.Disk.decode(reader, reader.uint32()); + break; + } + case 106438894: { + message.paths = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 500079778: { + message.updateMask = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateDiskRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateDiskRequest} UpdateDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDiskRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateDiskRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateDiskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.disk != null && message.hasOwnProperty("disk")) + if (!$util.isString(message.disk)) + return "disk: string expected"; + if (message.diskResource != null && message.hasOwnProperty("diskResource")) { + var error = $root.google.cloud.compute.v1.Disk.verify(message.diskResource); + if (error) + return "diskResource." + error; + } + if (message.paths != null && message.hasOwnProperty("paths")) { + properties._paths = 1; + if (!$util.isString(message.paths)) + return "paths: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + properties._updateMask = 1; + if (!$util.isString(message.updateMask)) + return "updateMask: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an UpdateDiskRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateDiskRequest} UpdateDiskRequest + */ + UpdateDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateDiskRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateDiskRequest(); + if (object.disk != null) + message.disk = String(object.disk); + if (object.diskResource != null) { + if (typeof object.diskResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateDiskRequest.diskResource: object expected"); + message.diskResource = $root.google.cloud.compute.v1.Disk.fromObject(object.diskResource); + } + if (object.paths != null) + message.paths = String(object.paths); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.updateMask != null) + message.updateMask = String(object.updateMask); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an UpdateDiskRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {google.cloud.compute.v1.UpdateDiskRequest} message UpdateDiskRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateDiskRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.disk = ""; + object.zone = ""; + object.diskResource = null; + object.project = ""; + } + if (message.disk != null && message.hasOwnProperty("disk")) + object.disk = message.disk; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.diskResource != null && message.hasOwnProperty("diskResource")) + object.diskResource = $root.google.cloud.compute.v1.Disk.toObject(message.diskResource, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.paths != null && message.hasOwnProperty("paths")) { + object.paths = message.paths; + if (options.oneofs) + object._paths = "paths"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + object.updateMask = message.updateMask; + if (options.oneofs) + object._updateMask = "updateMask"; + } + return object; + }; + + /** + * Converts this UpdateDiskRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateDiskRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateDiskRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.UpdateDiskRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.UpdateDiskRequest"; + }; + + return UpdateDiskRequest; + })(); + v1.UpdateDisplayDeviceInstanceRequest = (function() { /** @@ -442878,23 +447471,419 @@ }; /** - * Creates an UpdateRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateRegionCommitmentRequest} UpdateRegionCommitmentRequest + */ + UpdateRegionCommitmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateRegionCommitmentRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateRegionCommitmentRequest(); + if (object.commitment != null) + message.commitment = String(object.commitment); + if (object.commitmentResource != null) { + if (typeof object.commitmentResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateRegionCommitmentRequest.commitmentResource: object expected"); + message.commitmentResource = $root.google.cloud.compute.v1.Commitment.fromObject(object.commitmentResource); + } + if (object.paths != null) + message.paths = String(object.paths); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.updateMask != null) + message.updateMask = String(object.updateMask); + return message; + }; + + /** + * Creates a plain object from an UpdateRegionCommitmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1.UpdateRegionCommitmentRequest} message UpdateRegionCommitmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateRegionCommitmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.commitmentResource = null; + object.commitment = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.paths != null && message.hasOwnProperty("paths")) { + object.paths = message.paths; + if (options.oneofs) + object._paths = "paths"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.commitmentResource != null && message.hasOwnProperty("commitmentResource")) + object.commitmentResource = $root.google.cloud.compute.v1.Commitment.toObject(message.commitmentResource, options); + if (message.commitment != null && message.hasOwnProperty("commitment")) + object.commitment = message.commitment; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + object.updateMask = message.updateMask; + if (options.oneofs) + object._updateMask = "updateMask"; + } + return object; + }; + + /** + * Converts this UpdateRegionCommitmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateRegionCommitmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateRegionCommitmentRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateRegionCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.UpdateRegionCommitmentRequest"; + }; + + return UpdateRegionCommitmentRequest; + })(); + + v1.UpdateRegionDiskRequest = (function() { + + /** + * Properties of an UpdateRegionDiskRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateRegionDiskRequest + * @property {string|null} [disk] UpdateRegionDiskRequest disk + * @property {google.cloud.compute.v1.IDisk|null} [diskResource] UpdateRegionDiskRequest diskResource + * @property {string|null} [paths] UpdateRegionDiskRequest paths + * @property {string|null} [project] UpdateRegionDiskRequest project + * @property {string|null} [region] UpdateRegionDiskRequest region + * @property {string|null} [requestId] UpdateRegionDiskRequest requestId + * @property {string|null} [updateMask] UpdateRegionDiskRequest updateMask + */ + + /** + * Constructs a new UpdateRegionDiskRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateRegionDiskRequest. + * @implements IUpdateRegionDiskRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateRegionDiskRequest=} [properties] Properties to set + */ + function UpdateRegionDiskRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateRegionDiskRequest disk. + * @member {string} disk + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + UpdateRegionDiskRequest.prototype.disk = ""; + + /** + * UpdateRegionDiskRequest diskResource. + * @member {google.cloud.compute.v1.IDisk|null|undefined} diskResource + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + UpdateRegionDiskRequest.prototype.diskResource = null; + + /** + * UpdateRegionDiskRequest paths. + * @member {string|null|undefined} paths + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + UpdateRegionDiskRequest.prototype.paths = null; + + /** + * UpdateRegionDiskRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + UpdateRegionDiskRequest.prototype.project = ""; + + /** + * UpdateRegionDiskRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + UpdateRegionDiskRequest.prototype.region = ""; + + /** + * UpdateRegionDiskRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + UpdateRegionDiskRequest.prototype.requestId = null; + + /** + * UpdateRegionDiskRequest updateMask. + * @member {string|null|undefined} updateMask + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + UpdateRegionDiskRequest.prototype.updateMask = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * UpdateRegionDiskRequest _paths. + * @member {"paths"|undefined} _paths + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + Object.defineProperty(UpdateRegionDiskRequest.prototype, "_paths", { + get: $util.oneOfGetter($oneOfFields = ["paths"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateRegionDiskRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + Object.defineProperty(UpdateRegionDiskRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateRegionDiskRequest _updateMask. + * @member {"updateMask"|undefined} _updateMask + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @instance + */ + Object.defineProperty(UpdateRegionDiskRequest.prototype, "_updateMask", { + get: $util.oneOfGetter($oneOfFields = ["updateMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateRegionDiskRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateRegionDiskRequest} UpdateRegionDiskRequest instance + */ + UpdateRegionDiskRequest.create = function create(properties) { + return new UpdateRegionDiskRequest(properties); + }; + + /** + * Encodes the specified UpdateRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateRegionDiskRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateRegionDiskRequest} message UpdateRegionDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateRegionDiskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disk != null && Object.hasOwnProperty.call(message, "disk")) + writer.uint32(/* id 3083677, wireType 2 =*/24669418).string(message.disk); + if (message.diskResource != null && Object.hasOwnProperty.call(message, "diskResource")) + $root.google.cloud.compute.v1.Disk.encode(message.diskResource, writer.uint32(/* id 25880688, wireType 2 =*/207045506).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.paths != null && Object.hasOwnProperty.call(message, "paths")) + writer.uint32(/* id 106438894, wireType 2 =*/851511154).string(message.paths); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + writer.uint32(/* id 500079778, wireType 2 =*/4000638226).string(message.updateMask); + return writer; + }; + + /** + * Encodes the specified UpdateRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateRegionDiskRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateRegionDiskRequest} message UpdateRegionDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateRegionDiskRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.UpdateRegionDiskRequest} UpdateRegionDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateRegionDiskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.UpdateRegionDiskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3083677: { + message.disk = reader.string(); + break; + } + case 25880688: { + message.diskResource = $root.google.cloud.compute.v1.Disk.decode(reader, reader.uint32()); + break; + } + case 106438894: { + message.paths = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 500079778: { + message.updateMask = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateRegionDiskRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateRegionDiskRequest} UpdateRegionDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateRegionDiskRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateRegionDiskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.disk != null && message.hasOwnProperty("disk")) + if (!$util.isString(message.disk)) + return "disk: string expected"; + if (message.diskResource != null && message.hasOwnProperty("diskResource")) { + var error = $root.google.cloud.compute.v1.Disk.verify(message.diskResource); + if (error) + return "diskResource." + error; + } + if (message.paths != null && message.hasOwnProperty("paths")) { + properties._paths = 1; + if (!$util.isString(message.paths)) + return "paths: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + properties._updateMask = 1; + if (!$util.isString(message.updateMask)) + return "updateMask: string expected"; + } + return null; + }; + + /** + * Creates an UpdateRegionDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.UpdateRegionCommitmentRequest} UpdateRegionCommitmentRequest + * @returns {google.cloud.compute.v1.UpdateRegionDiskRequest} UpdateRegionDiskRequest */ - UpdateRegionCommitmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.UpdateRegionCommitmentRequest) + UpdateRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1.UpdateRegionCommitmentRequest(); - if (object.commitment != null) - message.commitment = String(object.commitment); - if (object.commitmentResource != null) { - if (typeof object.commitmentResource !== "object") - throw TypeError(".google.cloud.compute.v1.UpdateRegionCommitmentRequest.commitmentResource: object expected"); - message.commitmentResource = $root.google.cloud.compute.v1.Commitment.fromObject(object.commitmentResource); + var message = new $root.google.cloud.compute.v1.UpdateRegionDiskRequest(); + if (object.disk != null) + message.disk = String(object.disk); + if (object.diskResource != null) { + if (typeof object.diskResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateRegionDiskRequest.diskResource: object expected"); + message.diskResource = $root.google.cloud.compute.v1.Disk.fromObject(object.diskResource); } if (object.paths != null) message.paths = String(object.paths); @@ -442910,24 +447899,28 @@ }; /** - * Creates a plain object from an UpdateRegionCommitmentRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateRegionDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest * @static - * @param {google.cloud.compute.v1.UpdateRegionCommitmentRequest} message UpdateRegionCommitmentRequest + * @param {google.cloud.compute.v1.UpdateRegionDiskRequest} message UpdateRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateRegionCommitmentRequest.toObject = function toObject(message, options) { + UpdateRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.disk = ""; + object.diskResource = null; object.region = ""; object.project = ""; - object.commitmentResource = null; - object.commitment = ""; } + if (message.disk != null && message.hasOwnProperty("disk")) + object.disk = message.disk; + if (message.diskResource != null && message.hasOwnProperty("diskResource")) + object.diskResource = $root.google.cloud.compute.v1.Disk.toObject(message.diskResource, options); if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; if (options.oneofs) @@ -442942,10 +447935,6 @@ object.region = message.region; if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.commitmentResource != null && message.hasOwnProperty("commitmentResource")) - object.commitmentResource = $root.google.cloud.compute.v1.Commitment.toObject(message.commitmentResource, options); - if (message.commitment != null && message.hasOwnProperty("commitment")) - object.commitment = message.commitment; if (message.updateMask != null && message.hasOwnProperty("updateMask")) { object.updateMask = message.updateMask; if (options.oneofs) @@ -442955,32 +447944,32 @@ }; /** - * Converts this UpdateRegionCommitmentRequest to JSON. + * Converts this UpdateRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest * @instance * @returns {Object.} JSON object */ - UpdateRegionCommitmentRequest.prototype.toJSON = function toJSON() { + UpdateRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateRegionCommitmentRequest + * Gets the default type url for UpdateRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @memberof google.cloud.compute.v1.UpdateRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateRegionCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.UpdateRegionCommitmentRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.UpdateRegionDiskRequest"; }; - return UpdateRegionCommitmentRequest; + return UpdateRegionDiskRequest; })(); v1.UpdateRegionHealthCheckRequest = (function() { @@ -458751,6 +463740,7 @@ * @memberof google.cloud.compute.v1 * @interface IWafExpressionSetExpression * @property {string|null} [id] WafExpressionSetExpression id + * @property {number|null} [sensitivity] WafExpressionSetExpression sensitivity */ /** @@ -458776,6 +463766,14 @@ */ WafExpressionSetExpression.prototype.id = null; + /** + * WafExpressionSetExpression sensitivity. + * @member {number|null|undefined} sensitivity + * @memberof google.cloud.compute.v1.WafExpressionSetExpression + * @instance + */ + WafExpressionSetExpression.prototype.sensitivity = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -458790,6 +463788,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * WafExpressionSetExpression _sensitivity. + * @member {"sensitivity"|undefined} _sensitivity + * @memberof google.cloud.compute.v1.WafExpressionSetExpression + * @instance + */ + Object.defineProperty(WafExpressionSetExpression.prototype, "_sensitivity", { + get: $util.oneOfGetter($oneOfFields = ["sensitivity"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new WafExpressionSetExpression instance using the specified properties. * @function create @@ -458816,6 +463825,8 @@ writer = $Writer.create(); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.sensitivity != null && Object.hasOwnProperty.call(message, "sensitivity")) + writer.uint32(/* id 27532959, wireType 0 =*/220263672).int32(message.sensitivity); return writer; }; @@ -458854,6 +463865,10 @@ message.id = reader.string(); break; } + case 27532959: { + message.sensitivity = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -458895,6 +463910,11 @@ if (!$util.isString(message.id)) return "id: string expected"; } + if (message.sensitivity != null && message.hasOwnProperty("sensitivity")) { + properties._sensitivity = 1; + if (!$util.isInteger(message.sensitivity)) + return "sensitivity: integer expected"; + } return null; }; @@ -458912,6 +463932,8 @@ var message = new $root.google.cloud.compute.v1.WafExpressionSetExpression(); if (object.id != null) message.id = String(object.id); + if (object.sensitivity != null) + message.sensitivity = object.sensitivity | 0; return message; }; @@ -458933,6 +463955,11 @@ if (options.oneofs) object._id = "id"; } + if (message.sensitivity != null && message.hasOwnProperty("sensitivity")) { + object.sensitivity = message.sensitivity; + if (options.oneofs) + object._sensitivity = "sensitivity"; + } return object; }; @@ -465140,6 +470167,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Disks|update}. + * @memberof google.cloud.compute.v1.Disks + * @typedef UpdateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.Disks + * @instance + * @param {google.cloud.compute.v1.IUpdateDiskRequest} request UpdateDiskRequest message or plain object + * @param {google.cloud.compute.v1.Disks.UpdateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Disks.prototype.update = function update(request, callback) { + return this.rpcCall(update, $root.google.cloud.compute.v1.UpdateDiskRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Update" }); + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.Disks + * @instance + * @param {google.cloud.compute.v1.IUpdateDiskRequest} request UpdateDiskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Disks; })(); @@ -469594,6 +474654,39 @@ return new this(rpcImpl, requestDelimited, responseDelimited); }; + /** + * Callback as used by {@link google.cloud.compute.v1.InstanceTemplates|aggregatedList}. + * @memberof google.cloud.compute.v1.InstanceTemplates + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstanceTemplateAggregatedList} [response] InstanceTemplateAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.InstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest} request AggregatedListInstanceTemplatesRequest message or plain object + * @param {google.cloud.compute.v1.InstanceTemplates.AggregatedListCallback} callback Node-style callback called with the error, if any, and InstanceTemplateAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstanceTemplates.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest, $root.google.cloud.compute.v1.InstanceTemplateAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.InstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest} request AggregatedListInstanceTemplatesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.InstanceTemplates|delete_}. * @memberof google.cloud.compute.v1.InstanceTemplates @@ -470850,6 +475943,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Instances|setName}. + * @memberof google.cloud.compute.v1.Instances + * @typedef SetNameCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls SetName. + * @function setName + * @memberof google.cloud.compute.v1.Instances + * @instance + * @param {google.cloud.compute.v1.ISetNameInstanceRequest} request SetNameInstanceRequest message or plain object + * @param {google.cloud.compute.v1.Instances.SetNameCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Instances.prototype.setName = function setName(request, callback) { + return this.rpcCall(setName, $root.google.cloud.compute.v1.SetNameInstanceRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "SetName" }); + + /** + * Calls SetName. + * @function setName + * @memberof google.cloud.compute.v1.Instances + * @instance + * @param {google.cloud.compute.v1.ISetNameInstanceRequest} request SetNameInstanceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.Instances|setScheduling}. * @memberof google.cloud.compute.v1.Instances @@ -477894,6 +483020,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.RegionDisks|update}. + * @memberof google.cloud.compute.v1.RegionDisks + * @typedef UpdateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.RegionDisks + * @instance + * @param {google.cloud.compute.v1.IUpdateRegionDiskRequest} request UpdateRegionDiskRequest message or plain object + * @param {google.cloud.compute.v1.RegionDisks.UpdateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionDisks.prototype.update = function update(request, callback) { + return this.rpcCall(update, $root.google.cloud.compute.v1.UpdateRegionDiskRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Update" }); + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.RegionDisks + * @instance + * @param {google.cloud.compute.v1.IUpdateRegionDiskRequest} request UpdateRegionDiskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return RegionDisks; })(); @@ -479159,6 +484318,173 @@ return RegionInstanceGroups; })(); + v1.RegionInstanceTemplates = (function() { + + /** + * Constructs a new RegionInstanceTemplates service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionInstanceTemplates + * @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 RegionInstanceTemplates(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionInstanceTemplates.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionInstanceTemplates; + + /** + * Creates new RegionInstanceTemplates service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @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 {RegionInstanceTemplates} RPC service. Useful where requests and/or responses are streamed. + */ + RegionInstanceTemplates.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceTemplates|delete_}. + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest} request DeleteRegionInstanceTemplateRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceTemplates.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceTemplates.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest} request DeleteRegionInstanceTemplateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceTemplates|get}. + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstanceTemplate} [response] InstanceTemplate + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IGetRegionInstanceTemplateRequest} request GetRegionInstanceTemplateRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceTemplates.GetCallback} callback Node-style callback called with the error, if any, and InstanceTemplate + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceTemplates.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionInstanceTemplateRequest, $root.google.cloud.compute.v1.InstanceTemplate, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IGetRegionInstanceTemplateRequest} request GetRegionInstanceTemplateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceTemplates|insert}. + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest} request InsertRegionInstanceTemplateRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceTemplates.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceTemplates.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest} request InsertRegionInstanceTemplateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceTemplates|list}. + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstanceTemplateList} [response] InstanceTemplateList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} request ListRegionInstanceTemplatesRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceTemplates.ListCallback} callback Node-style callback called with the error, if any, and InstanceTemplateList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceTemplates.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest, $root.google.cloud.compute.v1.InstanceTemplateList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionInstanceTemplates + * @instance + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} request ListRegionInstanceTemplatesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionInstanceTemplates; + })(); + v1.RegionInstances = (function() { /** diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index c344b97ef31..f343fb12307 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -2892,6 +2892,91 @@ } } }, + "AggregatedListInstanceTemplatesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "includeAllScopes": { + "type": "bool", + "id": 391327988, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, "AggregatedListInstancesRequest": { "oneofs": { "_filter": { @@ -8120,7 +8205,8 @@ "ORIGINAL_DESTINATION": 166297216, "RANDOM": 262527171, "RING_HASH": 432795069, - "ROUND_ROBIN": 153895801 + "ROUND_ROBIN": 153895801, + "WEIGHTED_MAGLEV": 254930962 } }, "Protocol": { @@ -8769,7 +8855,8 @@ "ORIGINAL_DESTINATION": 166297216, "RANDOM": 262527171, "RING_HASH": 432795069, - "ROUND_ROBIN": 153895801 + "ROUND_ROBIN": 153895801, + "WEIGHTED_MAGLEV": 254930962 } } } @@ -8781,6 +8868,11 @@ "enable" ] }, + "_optionalMode": { + "oneof": [ + "optionalMode" + ] + }, "_sampleRate": { "oneof": [ "sampleRate" @@ -8795,6 +8887,18 @@ "proto3_optional": true } }, + "optionalFields": { + "rule": "repeated", + "type": "string", + "id": 528589944 + }, + "optionalMode": { + "type": "string", + "id": 128697122, + "options": { + "proto3_optional": true + } + }, "sampleRate": { "type": "float", "id": 153193045, @@ -8802,6 +8906,16 @@ "proto3_optional": true } } + }, + "nested": { + "OptionalMode": { + "values": { + "UNDEFINED_OPTIONAL_MODE": 0, + "CUSTOM": 388595569, + "EXCLUDE_ALL_OPTIONAL": 168636099, + "INCLUDE_ALL_OPTIONAL": 535606965 + } + } } }, "BackendServiceReference": { @@ -10058,6 +10172,7 @@ "ACCELERATOR_OPTIMIZED": 280848403, "COMPUTE_OPTIMIZED": 158349023, "COMPUTE_OPTIMIZED_C2D": 383246453, + "COMPUTE_OPTIMIZED_C3": 428004784, "GENERAL_PURPOSE": 299793543, "GENERAL_PURPOSE_E2": 301911877, "GENERAL_PURPOSE_N2": 301912156, @@ -12613,6 +12728,47 @@ } } }, + "DeleteRegionInstanceTemplateRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instanceTemplate": { + "type": "string", + "id": 309248228, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, "DeleteRegionNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { @@ -17070,6 +17226,11 @@ "backendService" ] }, + "_baseForwardingRule": { + "oneof": [ + "baseForwardingRule" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -17217,6 +17378,13 @@ "proto3_optional": true } }, + "baseForwardingRule": { + "type": "string", + "id": 524873104, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -17377,6 +17545,11 @@ "proto3_optional": true } }, + "sourceIpRanges": { + "rule": "repeated", + "type": "string", + "id": 111563210 + }, "subnetwork": { "type": "string", "id": 307827694, @@ -20025,6 +20198,31 @@ } } }, + "GetRegionInstanceTemplateRequest": { + "fields": { + "instanceTemplate": { + "type": "string", + "id": 309248228, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetRegionNetworkEndpointGroupRequest": { "fields": { "networkEndpointGroup": { @@ -25511,6 +25709,47 @@ } } }, + "InsertRegionInstanceTemplateRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instanceTemplateResource": { + "type": "InstanceTemplate", + "id": 10679561, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, "InsertRegionNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { @@ -29624,6 +29863,11 @@ "properties" ] }, + "_region": { + "oneof": [ + "region" + ] + }, "_selfLink": { "oneof": [ "selfLink" @@ -29683,6 +29927,13 @@ "proto3_optional": true } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, "selfLink": { "type": "string", "id": 456214797, @@ -29706,6 +29957,77 @@ } } }, + "InstanceTemplateAggregatedList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "keyType": "string", + "type": "InstanceTemplatesScopedList", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceTemplateList": { "oneofs": { "_id": { @@ -29777,6 +30099,29 @@ } } }, + "InstanceTemplatesScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "instanceTemplates": { + "rule": "repeated", + "type": "InstanceTemplate", + "id": 459889679 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceWithNamedPorts": { "oneofs": { "_instance": { @@ -30022,6 +30367,36 @@ } } }, + "InstancesSetNameRequest": { + "oneofs": { + "_currentName": { + "oneof": [ + "currentName" + ] + }, + "_name": { + "oneof": [ + "name" + ] + } + }, + "fields": { + "currentName": { + "type": "string", + "id": 394983825, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + } + } + }, "InstancesSetServiceAccountRequest": { "oneofs": { "_email": { @@ -37561,6 +37936,86 @@ } } }, + "ListRegionInstanceTemplatesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, "ListRegionNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { @@ -50674,6 +51129,7 @@ "N2D_CPUS": 351743370, "N2_CPUS": 416465286, "NETWORKS": 485481477, + "NETWORK_ATTACHMENTS": 149028575, "NETWORK_ENDPOINT_GROUPS": 102144909, "NETWORK_FIREWALL_POLICIES": 101117374, "NODE_GROUPS": 24624817, @@ -57718,6 +58174,11 @@ "match" ] }, + "_preconfiguredWafConfig": { + "oneof": [ + "preconfiguredWafConfig" + ] + }, "_preview": { "oneof": [ "preview" @@ -57775,6 +58236,13 @@ "proto3_optional": true } }, + "preconfiguredWafConfig": { + "type": "SecurityPolicyRulePreconfiguredWafConfig", + "id": 117805027, + "options": { + "proto3_optional": true + } + }, "preview": { "type": "bool", "id": 218686408, @@ -57903,6 +58371,100 @@ } } }, + "SecurityPolicyRulePreconfiguredWafConfig": { + "fields": { + "exclusions": { + "rule": "repeated", + "type": "SecurityPolicyRulePreconfiguredWafConfigExclusion", + "id": 208665701 + } + } + }, + "SecurityPolicyRulePreconfiguredWafConfigExclusion": { + "oneofs": { + "_targetRuleSet": { + "oneof": [ + "targetRuleSet" + ] + } + }, + "fields": { + "requestCookiesToExclude": { + "rule": "repeated", + "type": "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", + "id": 156757878 + }, + "requestHeadersToExclude": { + "rule": "repeated", + "type": "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", + "id": 63230495 + }, + "requestQueryParamsToExclude": { + "rule": "repeated", + "type": "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", + "id": 340692744 + }, + "requestUrisToExclude": { + "rule": "repeated", + "type": "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams", + "id": 90690846 + }, + "targetRuleIds": { + "rule": "repeated", + "type": "string", + "id": 498430435 + }, + "targetRuleSet": { + "type": "string", + "id": 498440077, + "options": { + "proto3_optional": true + } + } + } + }, + "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams": { + "oneofs": { + "_op": { + "oneof": [ + "op" + ] + }, + "_val": { + "oneof": [ + "val" + ] + } + }, + "fields": { + "op": { + "type": "string", + "id": 3553, + "options": { + "proto3_optional": true + } + }, + "val": { + "type": "string", + "id": 116513, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Op": { + "values": { + "UNDEFINED_OP": 0, + "CONTAINS": 215180831, + "ENDS_WITH": 490402221, + "EQUALS": 442201023, + "EQUALS_ANY": 337226060, + "STARTS_WITH": 139505652 + } + } + } + }, "SecurityPolicyRuleRateLimitOptions": { "oneofs": { "_banDurationSec": { @@ -60674,6 +61236,54 @@ } } }, + "SetNameInstanceRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instance": { + "type": "string", + "id": 18257045, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instancesSetNameRequestResource": { + "type": "InstancesSetNameRequest", + "id": 272080980, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "SetNamedPortsInstanceGroupRequest": { "oneofs": { "_requestId": { @@ -68074,29 +68684,86 @@ } } }, - "UpdateBackendServiceRequest": { + "UpdateBackendServiceRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "backendService": { + "type": "string", + "id": 306946058, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "backendServiceResource": { + "type": "BackendService", + "id": 347586723, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "UpdateDiskRequest": { "oneofs": { + "_paths": { + "oneof": [ + "paths" + ] + }, "_requestId": { "oneof": [ "requestId" ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] } }, "fields": { - "backendService": { + "disk": { "type": "string", - "id": 306946058, + "id": 3083677, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "backendServiceResource": { - "type": "BackendService", - "id": 347586723, + "diskResource": { + "type": "Disk", + "id": 25880688, "options": { "(google.api.field_behavior)": "REQUIRED" } }, + "paths": { + "type": "string", + "id": 106438894, + "options": { + "proto3_optional": true + } + }, "project": { "type": "string", "id": 227560217, @@ -68111,6 +68778,21 @@ "options": { "proto3_optional": true } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } } } }, @@ -68690,6 +69372,78 @@ } } }, + "UpdateRegionDiskRequest": { + "oneofs": { + "_paths": { + "oneof": [ + "paths" + ] + }, + "_requestId": { + "oneof": [ + "requestId" + ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] + } + }, + "fields": { + "disk": { + "type": "string", + "id": 3083677, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "diskResource": { + "type": "Disk", + "id": 25880688, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "paths": { + "type": "string", + "id": 106438894, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + } + } + }, "UpdateRegionHealthCheckRequest": { "oneofs": { "_requestId": { @@ -71134,6 +71888,11 @@ "oneof": [ "id" ] + }, + "_sensitivity": { + "oneof": [ + "sensitivity" + ] } }, "fields": { @@ -71143,6 +71902,13 @@ "options": { "proto3_optional": true } + }, + "sensitivity": { + "type": "int32", + "id": 27532959, + "options": { + "proto3_optional": true + } } } }, @@ -72984,6 +73750,30 @@ "(google.api.method_signature)": "project,zone,resource,test_permissions_request_resource" } ] + }, + "Update": { + "requestType": "UpdateDiskRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "disk_resource", + "(google.api.http).patch": "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}", + "(google.api.method_signature)": "project,zone,disk,disk_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "disk_resource", + "patch": "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}" + } + }, + { + "(google.api.method_signature)": "project,zone,disk,disk_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] } } }, @@ -75613,6 +76403,24 @@ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" }, "methods": { + "AggregatedList": { + "requestType": "AggregatedListInstanceTemplatesRequest", + "responseType": "InstanceTemplateAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/instanceTemplates", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/instanceTemplates" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Delete": { "requestType": "DeleteInstanceTemplateRequest", "responseType": "Operation", @@ -76397,6 +77205,30 @@ } ] }, + "SetName": { + "requestType": "SetNameInstanceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instances_set_name_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setName", + "(google.api.method_signature)": "project,zone,instance,instances_set_name_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instances_set_name_request_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setName" + } + }, + { + "(google.api.method_signature)": "project,zone,instance,instances_set_name_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "SetScheduling": { "requestType": "SetSchedulingInstanceRequest", "responseType": "Operation", @@ -80526,6 +81358,30 @@ "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" } ] + }, + "Update": { + "requestType": "UpdateRegionDiskRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "disk_resource", + "(google.api.http).patch": "/compute/v1/projects/{project}/regions/{region}/disks/{disk}", + "(google.api.method_signature)": "project,region,disk,disk_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "disk_resource", + "patch": "/compute/v1/projects/{project}/regions/{region}/disks/{disk}" + } + }, + { + "(google.api.method_signature)": "project,region,disk,disk_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] } } }, @@ -81299,6 +82155,96 @@ } } }, + "RegionInstanceTemplates": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Delete": { + "requestType": "DeleteRegionInstanceTemplateRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}", + "(google.api.method_signature)": "project,region,instance_template", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}" + } + }, + { + "(google.api.method_signature)": "project,region,instance_template" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionInstanceTemplateRequest", + "responseType": "InstanceTemplate", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}", + "(google.api.method_signature)": "project,region,instance_template" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{instance_template}" + } + }, + { + "(google.api.method_signature)": "project,region,instance_template" + } + ] + }, + "Insert": { + "requestType": "InsertRegionInstanceTemplateRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instance_template_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates", + "(google.api.method_signature)": "project,region,instance_template_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instance_template_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates" + } + }, + { + "(google.api.method_signature)": "project,region,instance_template_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionInstanceTemplatesRequest", + "responseType": "InstanceTemplateList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instanceTemplates" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + } + } + }, "RegionInstances": { "options": { "(google.api.default_host)": "compute.googleapis.com", diff --git a/packages/google-cloud-compute/samples/README.md b/packages/google-cloud-compute/samples/README.md index 2b00ae92f07..95879f43a2d 100644 --- a/packages/google-cloud-compute/samples/README.md +++ b/packages/google-cloud-compute/samples/README.md @@ -67,6 +67,7 @@ * [Disks.set_iam_policy](#disks.set_iam_policy) * [Disks.set_labels](#disks.set_labels) * [Disks.test_iam_permissions](#disks.test_iam_permissions) + * [Disks.update](#disks.update) * [External_vpn_gateways.delete](#external_vpn_gateways.delete) * [External_vpn_gateways.get](#external_vpn_gateways.get) * [External_vpn_gateways.insert](#external_vpn_gateways.insert) @@ -185,6 +186,7 @@ * [Instance_groups.list_instances](#instance_groups.list_instances) * [Instance_groups.remove_instances](#instance_groups.remove_instances) * [Instance_groups.set_named_ports](#instance_groups.set_named_ports) + * [Instance_templates.aggregated_list](#instance_templates.aggregated_list) * [Instance_templates.delete](#instance_templates.delete) * [Instance_templates.get](#instance_templates.get) * [Instance_templates.get_iam_policy](#instance_templates.get_iam_policy) @@ -222,6 +224,7 @@ * [Instances.set_machine_type](#instances.set_machine_type) * [Instances.set_metadata](#instances.set_metadata) * [Instances.set_min_cpu_platform](#instances.set_min_cpu_platform) + * [Instances.set_name](#instances.set_name) * [Instances.set_scheduling](#instances.set_scheduling) * [Instances.set_service_account](#instances.set_service_account) * [Instances.set_shielded_instance_integrity_policy](#instances.set_shielded_instance_integrity_policy) @@ -410,6 +413,7 @@ * [Region_disks.set_iam_policy](#region_disks.set_iam_policy) * [Region_disks.set_labels](#region_disks.set_labels) * [Region_disks.test_iam_permissions](#region_disks.test_iam_permissions) + * [Region_disks.update](#region_disks.update) * [Region_health_check_services.delete](#region_health_check_services.delete) * [Region_health_check_services.get](#region_health_check_services.get) * [Region_health_check_services.insert](#region_health_check_services.insert) @@ -444,6 +448,10 @@ * [Region_instance_groups.list](#region_instance_groups.list) * [Region_instance_groups.list_instances](#region_instance_groups.list_instances) * [Region_instance_groups.set_named_ports](#region_instance_groups.set_named_ports) + * [Region_instance_templates.delete](#region_instance_templates.delete) + * [Region_instance_templates.get](#region_instance_templates.get) + * [Region_instance_templates.insert](#region_instance_templates.insert) + * [Region_instance_templates.list](#region_instance_templates.list) * [Region_instances.bulk_insert](#region_instances.bulk_insert) * [Region_network_endpoint_groups.delete](#region_network_endpoint_groups.delete) * [Region_network_endpoint_groups.get](#region_network_endpoint_groups.get) @@ -1648,6 +1656,23 @@ __Usage:__ +### Disks.update + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/disks.update.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-compute/samples/generated/v1/disks.update.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/disks.update.js` + + +----- + + + + ### External_vpn_gateways.delete View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.delete.js). @@ -3654,6 +3679,23 @@ __Usage:__ +### Instance_templates.aggregated_list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.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-compute/samples/generated/v1/instance_templates.aggregated_list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js` + + +----- + + + + ### Instance_templates.delete View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_templates.delete.js). @@ -4283,6 +4325,23 @@ __Usage:__ +### Instances.set_name + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_name.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-compute/samples/generated/v1/instances.set_name.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instances.set_name.js` + + +----- + + + + ### Instances.set_scheduling View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_scheduling.js). @@ -7479,6 +7538,23 @@ __Usage:__ +### Region_disks.update + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.update.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-compute/samples/generated/v1/region_disks.update.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_disks.update.js` + + +----- + + + + ### Region_health_check_services.delete View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.delete.js). @@ -8057,6 +8133,74 @@ __Usage:__ +### Region_instance_templates.delete + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.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-compute/samples/generated/v1/region_instance_templates.delete.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.js` + + +----- + + + + +### Region_instance_templates.get + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.get.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-compute/samples/generated/v1/region_instance_templates.get.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instance_templates.get.js` + + +----- + + + + +### Region_instance_templates.insert + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.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-compute/samples/generated/v1/region_instance_templates.insert.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.js` + + +----- + + + + +### Region_instance_templates.list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.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-compute/samples/generated/v1/region_instance_templates.list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js` + + +----- + + + + ### Region_instances.bulk_insert View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instances.bulk_insert.js). diff --git a/packages/google-cloud-compute/samples/generated/v1/disks.update.js b/packages/google-cloud-compute/samples/generated/v1/disks.update.js new file mode 100644 index 00000000000..6803fdc582a --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/disks.update.js @@ -0,0 +1,87 @@ +// 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 +// +// 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(disk, diskResource, project, zone) { + // [START compute_v1_generated_Disks_Update_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 disk name for this request. + */ + // const disk = 'abc123' + /** + * The body resource for this request + */ + // const diskResource = {} + /** + */ + // const paths = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * update_mask indicates fields to be updated as part of this request. + */ + // const updateMask = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {DisksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new DisksClient(); + + async function callUpdate() { + // Construct request + const request = { + disk, + diskResource, + project, + zone, + }; + + // Run request + const response = await computeClient.update(request); + console.log(response); + } + + callUpdate(); + // [END compute_v1_generated_Disks_Update_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js index 47d69b2ad9a..761c937e2e5 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js @@ -45,7 +45,7 @@ function main() { */ // const pageToken = 'abc123' /** - * Parent ID for this request. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. */ // const parentId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.move.js b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.move.js index 5ea2a28a19a..79be3151011 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.move.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.move.js @@ -33,7 +33,7 @@ function main(firewallPolicy, parentId) { */ // const firewallPolicy = 'abc123' /** - * The new parent of the firewall policy. + * The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. */ // const parentId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/images.get_from_family.js b/packages/google-cloud-compute/samples/generated/v1/images.get_from_family.js index a8441707dbb..64d53f3885a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/images.get_from_family.js +++ b/packages/google-cloud-compute/samples/generated/v1/images.get_from_family.js @@ -33,7 +33,7 @@ function main(family, project) { */ // const family = 'abc123' /** - * Project ID for this request. + * The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project. */ // const project = 'my-project' diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js new file mode 100644 index 00000000000..d10b9139652 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js @@ -0,0 +1,87 @@ +// 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 +// +// 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(project) { + // [START compute_v1_generated_InstanceTemplates_AggregatedList_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. + */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + */ + // const filter = 'abc123' + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + */ + // const includeAllScopes = true + /** + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + */ + // const pageToken = 'abc123' + /** + * Name of the project scoping this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {InstanceTemplatesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstanceTemplatesClient(); + + async function callAggregatedList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = await computeClient.aggregatedListAsync(request); + for await (const [key, value] of iterable) { + console.log(response); + } + } + + callAggregatedList(); + // [END compute_v1_generated_InstanceTemplates_AggregatedList_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.set_name.js b/packages/google-cloud-compute/samples/generated/v1/instances.set_name.js new file mode 100644 index 00000000000..17ddc1db9cd --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instances.set_name.js @@ -0,0 +1,80 @@ +// 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 +// +// 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(instance, instancesSetNameRequestResource, project, zone) { + // [START compute_v1_generated_Instances_SetName_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 instance name for this request. + */ + // const instance = 'abc123' + /** + * The body resource for this request + */ + // const instancesSetNameRequestResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstancesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstancesClient(); + + async function callSetName() { + // Construct request + const request = { + instance, + instancesSetNameRequestResource, + project, + zone, + }; + + // Run request + const response = await computeClient.setName(request); + console.log(response); + } + + callSetName(); + // [END compute_v1_generated_Instances_SetName_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_disks.update.js b/packages/google-cloud-compute/samples/generated/v1/region_disks.update.js new file mode 100644 index 00000000000..e2eb95347b9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_disks.update.js @@ -0,0 +1,87 @@ +// 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 +// +// 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(disk, diskResource, project, region) { + // [START compute_v1_generated_RegionDisks_Update_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 disk name for this request. + */ + // const disk = 'abc123' + /** + * The body resource for this request + */ + // const diskResource = {} + /** + */ + // const paths = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * update_mask indicates fields to be updated as part of this request. + */ + // const updateMask = 'abc123' + + // Imports the Compute library + const {RegionDisksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionDisksClient(); + + async function callUpdate() { + // Construct request + const request = { + disk, + diskResource, + project, + region, + }; + + // Run request + const response = await computeClient.update(request); + console.log(response); + } + + callUpdate(); + // [END compute_v1_generated_RegionDisks_Update_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.js new file mode 100644 index 00000000000..414a3798511 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.js @@ -0,0 +1,75 @@ +// 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 +// +// 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(instanceTemplate, project, region) { + // [START compute_v1_generated_RegionInstanceTemplates_Delete_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 instance template to delete. + */ + // const instanceTemplate = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionInstanceTemplatesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceTemplatesClient(); + + async function callDelete() { + // Construct request + const request = { + instanceTemplate, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_RegionInstanceTemplates_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.get.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.get.js new file mode 100644 index 00000000000..4d256724dc5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.get.js @@ -0,0 +1,71 @@ +// 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 +// +// 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(instanceTemplate, project, region) { + // [START compute_v1_generated_RegionInstanceTemplates_Get_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 instance template. + */ + // const instanceTemplate = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionInstanceTemplatesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceTemplatesClient(); + + async function callGet() { + // Construct request + const request = { + instanceTemplate, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionInstanceTemplates_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.js new file mode 100644 index 00000000000..4cbaa287115 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.js @@ -0,0 +1,75 @@ +// 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 +// +// 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(instanceTemplateResource, project, region) { + // [START compute_v1_generated_RegionInstanceTemplates_Insert_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 body resource for this request + */ + // const instanceTemplateResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionInstanceTemplatesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceTemplatesClient(); + + async function callInsert() { + // Construct request + const request = { + instanceTemplateResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_RegionInstanceTemplates_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js new file mode 100644 index 00000000000..ad4c7a0441b --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js @@ -0,0 +1,88 @@ +// 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 +// +// 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(project, region) { + // [START compute_v1_generated_RegionInstanceTemplates_List_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. + */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the regions for this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionInstanceTemplatesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceTemplatesClient(); + + async function callList() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = await computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1_generated_RegionInstanceTemplates_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json index 9d48280d166..7612088df4e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json +++ b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-compute", - "version": "3.8.0", + "version": "3.8.1", "language": "TYPESCRIPT", "apis": [ { @@ -643,7 +643,7 @@ "regionTag": "compute_v1_generated_Autoscalers_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request.", + "description": " Returns the specified autoscaler resource.", "canonical": true, "file": "autoscalers.get.js", "language": "JAVASCRIPT", @@ -1071,7 +1071,7 @@ "regionTag": "compute_v1_generated_BackendBuckets_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified BackendBucket resource. Gets a list of available backend buckets by making a list() request.", + "description": " Returns the specified BackendBucket resource.", "canonical": true, "file": "backend_buckets.get.js", "language": "JAVASCRIPT", @@ -1595,7 +1595,7 @@ "regionTag": "compute_v1_generated_BackendServices_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified BackendService resource. Gets a list of available backend services.", + "description": " Returns the specified BackendService resource.", "canonical": true, "file": "backend_services.get.js", "language": "JAVASCRIPT", @@ -2331,7 +2331,7 @@ "regionTag": "compute_v1_generated_Disks_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.", + "description": " Returns the specified persistent disk.", "canonical": true, "file": "disks.get.js", "language": "JAVASCRIPT", @@ -2819,6 +2819,70 @@ } } }, + { + "regionTag": "compute_v1_generated_Disks_Update_async", + "title": "AcceleratorTypes update Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + "canonical": true, + "file": "disks.update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 79, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.Disks.Update", + "async": true, + "parameters": [ + { + "name": "disk", + "type": "TYPE_STRING" + }, + { + "name": "disk_resource", + "type": ".google.cloud.compute.v1.Disk" + }, + { + "name": "paths", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "update_mask", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "DisksClient", + "fullName": "google.cloud.compute.v1.DisksClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.Disks.Update", + "service": { + "shortName": "Disks", + "fullName": "google.cloud.compute.v1.Disks" + } + } + } + }, { "regionTag": "compute_v1_generated_DiskTypes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", @@ -2887,7 +2951,7 @@ "regionTag": "compute_v1_generated_DiskTypes_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified disk type. Gets a list of available disk types by making a list() request.", + "description": " Returns the specified disk type.", "canonical": true, "file": "disk_types.get.js", "language": "JAVASCRIPT", @@ -4939,7 +5003,7 @@ "regionTag": "compute_v1_generated_GlobalAddresses_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified address resource. Gets a list of available addresses by making a list() request.", + "description": " Returns the specified address resource.", "canonical": true, "file": "global_addresses.get.js", "language": "JAVASCRIPT", @@ -5643,7 +5707,7 @@ "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request.", + "description": " Returns the specified network endpoint group.", "canonical": true, "file": "global_network_endpoint_groups.get.js", "language": "JAVASCRIPT", @@ -6627,7 +6691,7 @@ "regionTag": "compute_v1_generated_HealthChecks_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.", + "description": " Returns the specified HealthCheck resource.", "canonical": true, "file": "health_checks.get.js", "language": "JAVASCRIPT", @@ -7031,7 +7095,7 @@ "regionTag": "compute_v1_generated_Images_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified image. Gets a list of available images by making a list() request.", + "description": " Returns the specified image.", "canonical": true, "file": "images.get.js", "language": "JAVASCRIPT", @@ -7075,7 +7139,7 @@ "regionTag": "compute_v1_generated_Images_GetFromFamily_async", "title": "AcceleratorTypes getFromFamily Sample", "origin": "API_DEFINITION", - "description": " Returns the latest image that is part of an image family and is not deprecated.", + "description": " Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation.", "canonical": true, "file": "images.get_from_family.js", "language": "JAVASCRIPT", @@ -7863,7 +7927,7 @@ "regionTag": "compute_v1_generated_InstanceGroupManagers_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified managed instance group. Gets a list of available managed instance groups by making a list() request.", + "description": " Returns all of the details about the specified managed instance group.", "canonical": true, "file": "instance_group_managers.get.js", "language": "JAVASCRIPT", @@ -9603,7 +9667,7 @@ "regionTag": "compute_v1_generated_Instances_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified Instance resource. Gets a list of available instances by making a list() request.", + "description": " Returns the specified Instance resource.", "canonical": true, "file": "instances.get.js", "language": "JAVASCRIPT", @@ -10807,6 +10871,62 @@ } } }, + { + "regionTag": "compute_v1_generated_Instances_SetName_async", + "title": "AcceleratorTypes setName Sample", + "origin": "API_DEFINITION", + "description": " Sets name of an instance.", + "canonical": true, + "file": "instances.set_name.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetName", + "fullName": "google.cloud.compute.v1.Instances.SetName", + "async": true, + "parameters": [ + { + "name": "instance", + "type": "TYPE_STRING" + }, + { + "name": "instances_set_name_request_resource", + "type": ".google.cloud.compute.v1.InstancesSetNameRequest" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "InstancesClient", + "fullName": "google.cloud.compute.v1.InstancesClient" + }, + "method": { + "shortName": "SetName", + "fullName": "google.cloud.compute.v1.Instances.SetName", + "service": { + "shortName": "Instances", + "fullName": "google.cloud.compute.v1.Instances" + } + } + } + }, { "regionTag": "compute_v1_generated_Instances_SetScheduling_async", "title": "AcceleratorTypes setScheduling Sample", @@ -11647,6 +11767,70 @@ } } }, + { + "regionTag": "compute_v1_generated_InstanceTemplates_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project.", + "canonical": true, + "file": "instance_templates.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 79, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.InstanceTemplates.AggregatedList", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1.InstanceTemplateAggregatedList", + "client": { + "shortName": "InstanceTemplatesClient", + "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.InstanceTemplates.AggregatedList", + "service": { + "shortName": "InstanceTemplates", + "fullName": "google.cloud.compute.v1.InstanceTemplates" + } + } + } + }, { "regionTag": "compute_v1_generated_InstanceTemplates_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -11699,7 +11883,7 @@ "regionTag": "compute_v1_generated_InstanceTemplates_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified instance template. Gets a list of available instance templates by making a list() request.", + "description": " Returns the specified instance template.", "canonical": true, "file": "instance_templates.get.js", "language": "JAVASCRIPT", @@ -13323,7 +13507,7 @@ "regionTag": "compute_v1_generated_MachineImages_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified machine image. Gets a list of available machine images by making a list() request.", + "description": " Returns the specified machine image.", "canonical": true, "file": "machine_images.get.js", "language": "JAVASCRIPT", @@ -13687,7 +13871,7 @@ "regionTag": "compute_v1_generated_MachineTypes_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified machine type. Gets a list of available machine types by making a list() request.", + "description": " Returns the specified machine type.", "canonical": true, "file": "machine_types.get.js", "language": "JAVASCRIPT", @@ -14747,7 +14931,7 @@ "regionTag": "compute_v1_generated_NetworkEndpointGroups_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request.", + "description": " Returns the specified network endpoint group.", "canonical": true, "file": "network_endpoint_groups.get.js", "language": "JAVASCRIPT", @@ -15955,7 +16139,7 @@ "regionTag": "compute_v1_generated_Networks_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified network. Gets a list of available networks by making a list() request.", + "description": " Returns the specified network.", "canonical": true, "file": "networks.get.js", "language": "JAVASCRIPT", @@ -17279,7 +17463,7 @@ "regionTag": "compute_v1_generated_NodeTemplates_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified node template. Gets a list of available node templates by making a list() request.", + "description": " Returns the specified node template.", "canonical": true, "file": "node_templates.get.js", "language": "JAVASCRIPT", @@ -17663,7 +17847,7 @@ "regionTag": "compute_v1_generated_NodeTypes_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified node type. Gets a list of available node types by making a list() request.", + "description": " Returns the specified node type.", "canonical": true, "file": "node_types.get.js", "language": "JAVASCRIPT", @@ -20255,7 +20439,7 @@ "regionTag": "compute_v1_generated_RegionCommitments_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified commitment resource. Gets a list of available commitments by making a list() request.", + "description": " Returns the specified commitment resource.", "canonical": true, "file": "region_commitments.get.js", "language": "JAVASCRIPT", @@ -21135,11 +21319,75 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionDisks_Update_async", + "title": "AcceleratorTypes update Sample", + "origin": "API_DEFINITION", + "description": " Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + "canonical": true, + "file": "region_disks.update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 79, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionDisks.Update", + "async": true, + "parameters": [ + { + "name": "disk", + "type": "TYPE_STRING" + }, + { + "name": "disk_resource", + "type": ".google.cloud.compute.v1.Disk" + }, + { + "name": "paths", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "update_mask", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionDisks.Update", + "service": { + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionDiskTypes_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified regional disk type. Gets a list of available disk types by making a list() request.", + "description": " Returns the specified regional disk type.", "canonical": true, "file": "region_disk_types.get.js", "language": "JAVASCRIPT", @@ -21303,7 +21551,7 @@ "regionTag": "compute_v1_generated_RegionHealthChecks_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.", + "description": " Returns the specified HealthCheck resource.", "canonical": true, "file": "region_health_checks.get.js", "language": "JAVASCRIPT", @@ -23223,6 +23471,222 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionInstanceTemplates_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.", + "canonical": true, + "file": "region_instance_templates.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Delete", + "async": true, + "parameters": [ + { + "name": "instance_template", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionInstanceTemplatesClient", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Delete", + "service": { + "shortName": "RegionInstanceTemplates", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstanceTemplates_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified instance template.", + "canonical": true, + "file": "region_instance_templates.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Get", + "async": true, + "parameters": [ + { + "name": "instance_template", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.InstanceTemplate", + "client": { + "shortName": "RegionInstanceTemplatesClient", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Get", + "service": { + "shortName": "RegionInstanceTemplates", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstanceTemplates_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.", + "canonical": true, + "file": "region_instance_templates.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Insert", + "async": true, + "parameters": [ + { + "name": "instance_template_resource", + "type": ".google.cloud.compute.v1.InstanceTemplate" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionInstanceTemplatesClient", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Insert", + "service": { + "shortName": "RegionInstanceTemplates", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstanceTemplates_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of instance templates that are contained within the specified project and region.", + "canonical": true, + "file": "region_instance_templates.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1.InstanceTemplateList", + "client": { + "shortName": "RegionInstanceTemplatesClient", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.List", + "service": { + "shortName": "RegionInstanceTemplates", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -23279,7 +23743,7 @@ "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request.", + "description": " Returns the specified network endpoint group.", "canonical": true, "file": "region_network_endpoint_groups.get.js", "language": "JAVASCRIPT", @@ -24799,7 +25263,7 @@ "regionTag": "compute_v1_generated_Regions_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified Region resource. Gets a list of available regions by making a list() request. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.", + "description": " Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.", "canonical": true, "file": "regions.get.js", "language": "JAVASCRIPT", @@ -25783,7 +26247,7 @@ "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpProxy resource in the specified region. Gets a list of available target HTTP proxies by making a list() request.", + "description": " Returns the specified TargetHttpProxy resource in the specified region.", "canonical": true, "file": "region_target_http_proxies.get.js", "language": "JAVASCRIPT", @@ -26055,7 +26519,7 @@ "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpsProxy resource in the specified region. Gets a list of available target HTTP proxies by making a list() request.", + "description": " Returns the specified TargetHttpsProxy resource in the specified region.", "canonical": true, "file": "region_target_https_proxies.get.js", "language": "JAVASCRIPT", @@ -26655,7 +27119,7 @@ "regionTag": "compute_v1_generated_RegionUrlMaps_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request.", + "description": " Returns the specified UrlMap resource.", "canonical": true, "file": "region_url_maps.get.js", "language": "JAVASCRIPT", @@ -28091,7 +28555,7 @@ "regionTag": "compute_v1_generated_Routers_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified Router resource. Gets a list of available routers by making a list() request.", + "description": " Returns the specified Router resource.", "canonical": true, "file": "routers.get.js", "language": "JAVASCRIPT", @@ -28583,7 +29047,7 @@ "regionTag": "compute_v1_generated_Routes_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified Route resource. Gets a list of available routes by making a list() request.", + "description": " Returns the specified Route resource.", "canonical": true, "file": "routes.get.js", "language": "JAVASCRIPT", @@ -29907,7 +30371,7 @@ "regionTag": "compute_v1_generated_Snapshots_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified Snapshot resource. Gets a list of available snapshots by making a list() request.", + "description": " Returns the specified Snapshot resource.", "canonical": true, "file": "snapshots.get.js", "language": "JAVASCRIPT", @@ -30363,7 +30827,7 @@ "regionTag": "compute_v1_generated_SslCertificates_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified SslCertificate resource. Gets a list of available SSL certificates by making a list() request.", + "description": " Returns the specified SslCertificate resource.", "canonical": true, "file": "ssl_certificates.get.js", "language": "JAVASCRIPT", @@ -30671,7 +31135,7 @@ "regionTag": "compute_v1_generated_SslPolicies_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Returns the specified SSL policy resource. Gets a list of available SSL policies by making a list() request.", + "description": " Returns the specified SSL policy resource.", "canonical": true, "file": "ssl_policies.insert.js", "language": "JAVASCRIPT", @@ -31063,7 +31527,7 @@ "regionTag": "compute_v1_generated_Subnetworks_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified subnetwork. Gets a list of available subnetworks list() request.", + "description": " Returns the specified subnetwork.", "canonical": true, "file": "subnetworks.get.js", "language": "JAVASCRIPT", @@ -31923,7 +32387,7 @@ "regionTag": "compute_v1_generated_TargetHttpProxies_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpProxy resource. Gets a list of available target HTTP proxies by making a list() request.", + "description": " Returns the specified TargetHttpProxy resource.", "canonical": true, "file": "target_http_proxies.get.js", "language": "JAVASCRIPT", @@ -32291,7 +32755,7 @@ "regionTag": "compute_v1_generated_TargetHttpsProxies_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpsProxy resource. Gets a list of available target HTTPS proxies by making a list() request.", + "description": " Returns the specified TargetHttpsProxy resource.", "canonical": true, "file": "target_https_proxies.get.js", "language": "JAVASCRIPT", @@ -32871,7 +33335,7 @@ "regionTag": "compute_v1_generated_TargetInstances_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.", + "description": " Returns the specified TargetInstance resource.", "canonical": true, "file": "target_instances.get.js", "language": "JAVASCRIPT", @@ -33263,7 +33727,7 @@ "regionTag": "compute_v1_generated_TargetPools_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified target pool. Gets a list of available target pools by making a list() request.", + "description": " Returns the specified target pool.", "canonical": true, "file": "target_pools.get.js", "language": "JAVASCRIPT", @@ -33699,7 +34163,7 @@ "regionTag": "compute_v1_generated_TargetSslProxies_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified TargetSslProxy resource. Gets a list of available target SSL proxies by making a list() request.", + "description": " Returns the specified TargetSslProxy resource.", "canonical": true, "file": "target_ssl_proxies.get.js", "language": "JAVASCRIPT", @@ -34223,7 +34687,7 @@ "regionTag": "compute_v1_generated_TargetTcpProxies_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.", + "description": " Returns the specified TargetTcpProxy resource.", "canonical": true, "file": "target_tcp_proxies.get.js", "language": "JAVASCRIPT", @@ -34595,7 +35059,7 @@ "regionTag": "compute_v1_generated_TargetVpnGateways_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified target VPN gateway. Gets a list of available target VPN gateways by making a list() request.", + "description": " Returns the specified target VPN gateway.", "canonical": true, "file": "target_vpn_gateways.get.js", "language": "JAVASCRIPT", @@ -34927,7 +35391,7 @@ "regionTag": "compute_v1_generated_UrlMaps_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request.", + "description": " Returns the specified UrlMap resource.", "canonical": true, "file": "url_maps.get.js", "language": "JAVASCRIPT", @@ -35399,7 +35863,7 @@ "regionTag": "compute_v1_generated_VpnGateways_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified VPN gateway. Gets a list of available VPN gateways by making a list() request.", + "description": " Returns the specified VPN gateway.", "canonical": true, "file": "vpn_gateways.get.js", "language": "JAVASCRIPT", @@ -35835,7 +36299,7 @@ "regionTag": "compute_v1_generated_VpnTunnels_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request.", + "description": " Returns the specified VpnTunnel resource.", "canonical": true, "file": "vpn_tunnels.get.js", "language": "JAVASCRIPT", @@ -36263,7 +36727,7 @@ "regionTag": "compute_v1_generated_Zones_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified Zone resource. Gets a list of available zones by making a list() request.", + "description": " Returns the specified Zone resource.", "canonical": true, "file": "zones.get.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-compute/samples/generated/v1small/snippet_metadata.google.cloud.compute.v1small.json b/packages/google-cloud-compute/samples/generated/v1small/snippet_metadata.google.cloud.compute.v1small.json index bb48a9d160a..ddc85416075 100644 --- a/packages/google-cloud-compute/samples/generated/v1small/snippet_metadata.google.cloud.compute.v1small.json +++ b/packages/google-cloud-compute/samples/generated/v1small/snippet_metadata.google.cloud.compute.v1small.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-compute", - "version": "3.8.0", + "version": "3.8.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index b136b3bff51..b72a62e145e 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -128,6 +128,8 @@ const RegionInstanceGroupsClient = v1.RegionInstanceGroupsClient; type RegionInstanceGroupsClient = v1.RegionInstanceGroupsClient; const RegionInstancesClient = v1.RegionInstancesClient; type RegionInstancesClient = v1.RegionInstancesClient; +const RegionInstanceTemplatesClient = v1.RegionInstanceTemplatesClient; +type RegionInstanceTemplatesClient = v1.RegionInstanceTemplatesClient; const RegionNetworkEndpointGroupsClient = v1.RegionNetworkEndpointGroupsClient; type RegionNetworkEndpointGroupsClient = v1.RegionNetworkEndpointGroupsClient; const RegionNetworkFirewallPoliciesClient = @@ -257,6 +259,7 @@ export { RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, + RegionInstanceTemplatesClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, @@ -349,6 +352,7 @@ export default { RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, + RegionInstanceTemplatesClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, diff --git a/packages/google-cloud-compute/src/v1/autoscalers_client.ts b/packages/google-cloud-compute/src/v1/autoscalers_client.ts index 4036cb1be9f..747512fa850 100644 --- a/packages/google-cloud-compute/src/v1/autoscalers_client.ts +++ b/packages/google-cloud-compute/src/v1/autoscalers_client.ts @@ -458,7 +458,7 @@ export class AutoscalersClient { ); } /** - * Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request. + * Returns the specified autoscaler resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts index e3c1dafc8b6..5c192d6d56e 100644 --- a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts @@ -698,7 +698,7 @@ export class BackendBucketsClient { ); } /** - * Returns the specified BackendBucket resource. Gets a list of available backend buckets by making a list() request. + * Returns the specified BackendBucket resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/backend_services_client.ts b/packages/google-cloud-compute/src/v1/backend_services_client.ts index 20851837251..7ebaedd7ba7 100644 --- a/packages/google-cloud-compute/src/v1/backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_services_client.ts @@ -708,7 +708,7 @@ export class BackendServicesClient { ); } /** - * Returns the specified BackendService resource. Gets a list of available backend services. + * Returns the specified BackendService resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/disk_types_client.ts b/packages/google-cloud-compute/src/v1/disk_types_client.ts index 34c7ceef63b..7cfc5aad4e0 100644 --- a/packages/google-cloud-compute/src/v1/disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1/disk_types_client.ts @@ -326,7 +326,7 @@ export class DiskTypesClient { // -- Service calls -- // ------------------- /** - * Returns the specified disk type. Gets a list of available disk types by making a list() request. + * Returns the specified disk type. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/disks_client.ts b/packages/google-cloud-compute/src/v1/disks_client.ts index ad9710d0c2a..c413975e66f 100644 --- a/packages/google-cloud-compute/src/v1/disks_client.ts +++ b/packages/google-cloud-compute/src/v1/disks_client.ts @@ -253,6 +253,7 @@ export class DisksClient { 'setIamPolicy', 'setLabels', 'testIamPermissions', + 'update', ]; for (const methodName of disksStubMethods) { const callPromise = this.disksStub.then( @@ -710,7 +711,7 @@ export class DisksClient { ); } /** - * Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request. + * Returns the specified persistent disk. * * @param {Object} request * The request object that will be sent. @@ -1576,6 +1577,127 @@ export class DisksClient { this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); } + /** + * Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.disk + * The disk name for this request. + * @param {google.cloud.compute.v1.Disk} request.diskResource + * The body resource for this request + * @param {string} request.paths + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * @param {string} request.updateMask + * update_mask indicates fields to be updated as part of this request. + * @param {string} request.zone + * The name of the zone for this 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. + * The first element of the array is an object representing + * a long running operation. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/disks.update.js + * region_tag:compute_v1_generated_Disks_Update_async + */ + update( + request?: protos.google.cloud.compute.v1.IUpdateDiskRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + update( + request: protos.google.cloud.compute.v1.IUpdateDiskRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateDiskRequest | null | undefined, + {} | null | undefined + > + ): void; + update( + request: protos.google.cloud.compute.v1.IUpdateDiskRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateDiskRequest | null | undefined, + {} | null | undefined + > + ): void; + update( + request?: protos.google.cloud.compute.v1.IUpdateDiskRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateDiskRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateDiskRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.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({ + project: request.project ?? '', + zone: request.zone ?? '', + disk: request.disk ?? '', + }); + this.initialize(); + return this.innerApiCalls + .update(request, options, callback) + .then( + ([response, operation, rawResponse]: [ + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation + ]) => { + return [ + { + latestResponse: response, + done: false, + name: response.id, + metadata: null, + result: {}, + }, + operation, + rawResponse, + ]; + } + ); + } /** * Retrieves an aggregated list of persistent disks. diff --git a/packages/google-cloud-compute/src/v1/disks_client_config.json b/packages/google-cloud-compute/src/v1/disks_client_config.json index fcc105267a7..a905e6e3f85 100644 --- a/packages/google-cloud-compute/src/v1/disks_client_config.json +++ b/packages/google-cloud-compute/src/v1/disks_client_config.json @@ -71,6 +71,10 @@ "TestIamPermissions": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "Update": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1/firewall_policies_client.ts b/packages/google-cloud-compute/src/v1/firewall_policies_client.ts index fd102597273..6b13d3e5803 100644 --- a/packages/google-cloud-compute/src/v1/firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/firewall_policies_client.ts @@ -1418,7 +1418,7 @@ export class FirewallPoliciesClient { * @param {string} request.firewallPolicy * Name of the firewall policy to update. * @param {string} request.parentId - * The new parent of the firewall policy. + * The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. * @param {string} request.requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @param {object} [options] @@ -2225,7 +2225,7 @@ export class FirewallPoliciesClient { * @param {string} request.pageToken * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. * @param {string} request.parentId - * Parent ID for this request. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {object} [options] @@ -2317,7 +2317,7 @@ export class FirewallPoliciesClient { * @param {string} request.pageToken * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. * @param {string} request.parentId - * Parent ID for this request. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {object} [options] @@ -2365,7 +2365,7 @@ export class FirewallPoliciesClient { * @param {string} request.pageToken * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. * @param {string} request.parentId - * Parent ID for this request. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index f7fee32af4c..1dc35086303 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -561,6 +561,11 @@ "testIamPermissions" ] }, + "Update": { + "methods": [ + "update" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -635,6 +640,11 @@ "testIamPermissions" ] }, + "Update": { + "methods": [ + "update" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -2331,6 +2341,11 @@ "setMinCpuPlatform" ] }, + "SetName": { + "methods": [ + "setName" + ] + }, "SetScheduling": { "methods": [ "setScheduling" @@ -2567,6 +2582,11 @@ "setMinCpuPlatform" ] }, + "SetName": { + "methods": [ + "setName" + ] + }, "SetScheduling": { "methods": [ "setScheduling" @@ -2702,6 +2722,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -2744,6 +2771,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -4853,6 +4887,11 @@ "testIamPermissions" ] }, + "Update": { + "methods": [ + "update" + ] + }, "List": { "methods": [ "list", @@ -4920,6 +4959,11 @@ "testIamPermissions" ] }, + "Update": { + "methods": [ + "update" + ] + }, "List": { "methods": [ "list", @@ -5421,6 +5465,64 @@ } } }, + "RegionInstanceTemplates": { + "clients": { + "grpc": { + "libraryClient": "RegionInstanceTemplatesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionInstanceTemplatesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "RegionNetworkEndpointGroups": { "clients": { "grpc": { diff --git a/packages/google-cloud-compute/src/v1/global_addresses_client.ts b/packages/google-cloud-compute/src/v1/global_addresses_client.ts index 0be22bc7273..b5ce4072c05 100644 --- a/packages/google-cloud-compute/src/v1/global_addresses_client.ts +++ b/packages/google-cloud-compute/src/v1/global_addresses_client.ts @@ -448,7 +448,7 @@ export class GlobalAddressesClient { ); } /** - * Returns the specified address resource. Gets a list of available addresses by making a list() request. + * Returns the specified address resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts index ce32a380cd6..63ed7729729 100644 --- a/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts @@ -703,7 +703,7 @@ export class GlobalNetworkEndpointGroupsClient { ); } /** - * Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. + * Returns the specified network endpoint group. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/health_checks_client.ts b/packages/google-cloud-compute/src/v1/health_checks_client.ts index 30f38e94f16..37b2553c8be 100644 --- a/packages/google-cloud-compute/src/v1/health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1/health_checks_client.ts @@ -455,7 +455,7 @@ export class HealthChecksClient { ); } /** - * Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request. + * Returns the specified HealthCheck resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/images_client.ts b/packages/google-cloud-compute/src/v1/images_client.ts index b9c763b8820..b62a42564e6 100644 --- a/packages/google-cloud-compute/src/v1/images_client.ts +++ b/packages/google-cloud-compute/src/v1/images_client.ts @@ -563,7 +563,7 @@ export class ImagesClient { ); } /** - * Returns the specified image. Gets a list of available images by making a list() request. + * Returns the specified image. * * @param {Object} request * The request object that will be sent. @@ -649,14 +649,14 @@ export class ImagesClient { return this.innerApiCalls.get(request, options, callback); } /** - * Returns the latest image that is part of an image family and is not deprecated. + * Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation. * * @param {Object} request * The request object that will be sent. * @param {string} request.family * Name of the image family to search for. * @param {string} request.project - * Project ID for this request. + * The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project. * @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-compute/src/v1/index.ts b/packages/google-cloud-compute/src/v1/index.ts index 207f53289d0..2c1d8882a27 100644 --- a/packages/google-cloud-compute/src/v1/index.ts +++ b/packages/google-cloud-compute/src/v1/index.ts @@ -69,6 +69,7 @@ export {RegionHealthCheckServicesClient} from './region_health_check_services_cl export {RegionInstanceGroupManagersClient} from './region_instance_group_managers_client'; export {RegionInstanceGroupsClient} from './region_instance_groups_client'; export {RegionInstancesClient} from './region_instances_client'; +export {RegionInstanceTemplatesClient} from './region_instance_templates_client'; export {RegionNetworkEndpointGroupsClient} from './region_network_endpoint_groups_client'; export {RegionNetworkFirewallPoliciesClient} from './region_network_firewall_policies_client'; export {RegionNotificationEndpointsClient} from './region_notification_endpoints_client'; diff --git a/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts b/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts index fa13921df32..ccb3b30528d 100644 --- a/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts @@ -1113,7 +1113,7 @@ export class InstanceGroupManagersClient { ); } /** - * Returns all of the details about the specified managed instance group. Gets a list of available managed instance groups by making a list() request. + * Returns all of the details about the specified managed instance group. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/instance_templates_client.ts b/packages/google-cloud-compute/src/v1/instance_templates_client.ts index 72d35770cde..361d2d7009f 100644 --- a/packages/google-cloud-compute/src/v1/instance_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_templates_client.ts @@ -178,6 +178,11 @@ export class InstanceTemplatesClient { // (e.g. 50 results at a time, with tokens to get subsequent // pages). Denote the keys used for pagination and results. this.descriptors.page = { + aggregatedList: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'items' + ), list: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -235,6 +240,7 @@ export class InstanceTemplatesClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const instanceTemplatesStubMethods = [ + 'aggregatedList', 'delete', 'get', 'getIamPolicy', @@ -450,7 +456,7 @@ export class InstanceTemplatesClient { ); } /** - * Returns the specified instance template. Gets a list of available instance templates by making a list() request. + * Returns the specified instance template. * * @param {Object} request * The request object that will be sent. @@ -970,6 +976,64 @@ export class InstanceTemplatesClient { return this.innerApiCalls.testIamPermissions(request, options, callback); } + /** + * Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. + * + * `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.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + * @param {boolean} request.includeAllScopes + * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Name of the project scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * as tuple [string, {@link google.cloud.compute.v1.InstanceTemplatesScopedList | InstanceTemplatesScopedList}]. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/instance_templates.aggregated_list.js + * region_tag:compute_v1_generated_InstanceTemplates_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest, + options?: CallOptions + ): AsyncIterable< + [string, protos.google.cloud.compute.v1.IInstanceTemplatesScopedList] + > { + 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({ + project: request.project ?? '', + }); + const defaultCallSettings = this._defaults['aggregatedList']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.aggregatedList.asyncIterate( + this.innerApiCalls['aggregatedList'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable< + [string, protos.google.cloud.compute.v1.IInstanceTemplatesScopedList] + >; + } /** * Retrieves a list of instance templates that are contained within the specified project. * diff --git a/packages/google-cloud-compute/src/v1/instance_templates_client_config.json b/packages/google-cloud-compute/src/v1/instance_templates_client_config.json index 9bec5e0ea4f..3117de45c09 100644 --- a/packages/google-cloud-compute/src/v1/instance_templates_client_config.json +++ b/packages/google-cloud-compute/src/v1/instance_templates_client_config.json @@ -20,6 +20,10 @@ } }, "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Delete": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1/instances_client.ts b/packages/google-cloud-compute/src/v1/instances_client.ts index 76e161acad8..46bd0efa074 100644 --- a/packages/google-cloud-compute/src/v1/instances_client.ts +++ b/packages/google-cloud-compute/src/v1/instances_client.ts @@ -275,6 +275,7 @@ export class InstancesClient { 'setMachineType', 'setMetadata', 'setMinCpuPlatform', + 'setName', 'setScheduling', 'setServiceAccount', 'setShieldedInstanceIntegrityPolicy', @@ -1254,7 +1255,7 @@ export class InstancesClient { ); } /** - * Returns the specified Instance resource. Gets a list of available instances by making a list() request. + * Returns the specified Instance resource. * * @param {Object} request * The request object that will be sent. @@ -3537,6 +3538,126 @@ export class InstancesClient { } ); } + /** + * Sets name of an instance. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instance + * The instance name for this request. + * @param {google.cloud.compute.v1.InstancesSetNameRequest} request.instancesSetNameRequestResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * @param {string} request.zone + * The name of the zone for this 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. + * The first element of the array is an object representing + * a long running operation. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/instances.set_name.js + * region_tag:compute_v1_generated_Instances_SetName_async + */ + setName( + request?: protos.google.cloud.compute.v1.ISetNameInstanceRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + setName( + request: protos.google.cloud.compute.v1.ISetNameInstanceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISetNameInstanceRequest | null | undefined, + {} | null | undefined + > + ): void; + setName( + request: protos.google.cloud.compute.v1.ISetNameInstanceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISetNameInstanceRequest | null | undefined, + {} | null | undefined + > + ): void; + setName( + request?: protos.google.cloud.compute.v1.ISetNameInstanceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetNameInstanceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISetNameInstanceRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.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({ + project: request.project ?? '', + zone: request.zone ?? '', + instance: request.instance ?? '', + }); + this.initialize(); + return this.innerApiCalls + .setName(request, options, callback) + .then( + ([response, operation, rawResponse]: [ + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation + ]) => { + return [ + { + latestResponse: response, + done: false, + name: response.id, + metadata: null, + result: {}, + }, + operation, + rawResponse, + ]; + } + ); + } /** * Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy. * diff --git a/packages/google-cloud-compute/src/v1/instances_client_config.json b/packages/google-cloud-compute/src/v1/instances_client_config.json index 003f5890203..c02f2609fec 100644 --- a/packages/google-cloud-compute/src/v1/instances_client_config.json +++ b/packages/google-cloud-compute/src/v1/instances_client_config.json @@ -140,6 +140,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "SetName": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "SetScheduling": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1/machine_images_client.ts b/packages/google-cloud-compute/src/v1/machine_images_client.ts index 0acf936145b..65d575b1862 100644 --- a/packages/google-cloud-compute/src/v1/machine_images_client.ts +++ b/packages/google-cloud-compute/src/v1/machine_images_client.ts @@ -450,7 +450,7 @@ export class MachineImagesClient { ); } /** - * Returns the specified machine image. Gets a list of available machine images by making a list() request. + * Returns the specified machine image. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/machine_types_client.ts b/packages/google-cloud-compute/src/v1/machine_types_client.ts index ba1dca35664..111ec557dbb 100644 --- a/packages/google-cloud-compute/src/v1/machine_types_client.ts +++ b/packages/google-cloud-compute/src/v1/machine_types_client.ts @@ -326,7 +326,7 @@ export class MachineTypesClient { // -- Service calls -- // ------------------- /** - * Returns the specified machine type. Gets a list of available machine types by making a list() request. + * Returns the specified machine type. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts index 82f46e03afb..be4fbe1f5bf 100644 --- a/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts @@ -718,7 +718,7 @@ export class NetworkEndpointGroupsClient { ); } /** - * Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. + * Returns the specified network endpoint group. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/networks_client.ts b/packages/google-cloud-compute/src/v1/networks_client.ts index 49c7619df9b..431bc897fe1 100644 --- a/packages/google-cloud-compute/src/v1/networks_client.ts +++ b/packages/google-cloud-compute/src/v1/networks_client.ts @@ -576,7 +576,7 @@ export class NetworksClient { ); } /** - * Returns the specified network. Gets a list of available networks by making a list() request. + * Returns the specified network. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/node_templates_client.ts b/packages/google-cloud-compute/src/v1/node_templates_client.ts index f1798a704cc..9eedbeea46c 100644 --- a/packages/google-cloud-compute/src/v1/node_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/node_templates_client.ts @@ -459,7 +459,7 @@ export class NodeTemplatesClient { ); } /** - * Returns the specified node template. Gets a list of available node templates by making a list() request. + * Returns the specified node template. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/node_types_client.ts b/packages/google-cloud-compute/src/v1/node_types_client.ts index 205743c636f..fa44fbed2b0 100644 --- a/packages/google-cloud-compute/src/v1/node_types_client.ts +++ b/packages/google-cloud-compute/src/v1/node_types_client.ts @@ -326,7 +326,7 @@ export class NodeTypesClient { // -- Service calls -- // ------------------- /** - * Returns the specified node type. Gets a list of available node types by making a list() request. + * Returns the specified node type. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_commitments_client.ts b/packages/google-cloud-compute/src/v1/region_commitments_client.ts index e1788edaf98..f03e9574c6d 100644 --- a/packages/google-cloud-compute/src/v1/region_commitments_client.ts +++ b/packages/google-cloud-compute/src/v1/region_commitments_client.ts @@ -332,7 +332,7 @@ export class RegionCommitmentsClient { // -- Service calls -- // ------------------- /** - * Returns the specified commitment resource. Gets a list of available commitments by making a list() request. + * Returns the specified commitment resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_disk_types_client.ts b/packages/google-cloud-compute/src/v1/region_disk_types_client.ts index f4dd105407e..83193ad7cf5 100644 --- a/packages/google-cloud-compute/src/v1/region_disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1/region_disk_types_client.ts @@ -321,7 +321,7 @@ export class RegionDiskTypesClient { // -- Service calls -- // ------------------- /** - * Returns the specified regional disk type. Gets a list of available disk types by making a list() request. + * Returns the specified regional disk type. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_disks_client.ts b/packages/google-cloud-compute/src/v1/region_disks_client.ts index 3a8f9b3c1b2..78c3bf545e9 100644 --- a/packages/google-cloud-compute/src/v1/region_disks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_disks_client.ts @@ -247,6 +247,7 @@ export class RegionDisksClient { 'setIamPolicy', 'setLabels', 'testIamPermissions', + 'update', ]; for (const methodName of regionDisksStubMethods) { const callPromise = this.regionDisksStub.then( @@ -1606,6 +1607,135 @@ export class RegionDisksClient { this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); } + /** + * Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.disk + * The disk name for this request. + * @param {google.cloud.compute.v1.Disk} request.diskResource + * The body resource for this request + * @param {string} request.paths + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * @param {string} request.updateMask + * update_mask indicates fields to be updated as part of this 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. + * The first element of the array is an object representing + * a long running operation. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/region_disks.update.js + * region_tag:compute_v1_generated_RegionDisks_Update_async + */ + update( + request?: protos.google.cloud.compute.v1.IUpdateRegionDiskRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + update( + request: protos.google.cloud.compute.v1.IUpdateRegionDiskRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateRegionDiskRequest + | null + | undefined, + {} | null | undefined + > + ): void; + update( + request: protos.google.cloud.compute.v1.IUpdateRegionDiskRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateRegionDiskRequest + | null + | undefined, + {} | null | undefined + > + ): void; + update( + request?: protos.google.cloud.compute.v1.IUpdateRegionDiskRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateRegionDiskRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateRegionDiskRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.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({ + project: request.project ?? '', + region: request.region ?? '', + disk: request.disk ?? '', + }); + this.initialize(); + return this.innerApiCalls + .update(request, options, callback) + .then( + ([response, operation, rawResponse]: [ + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation + ]) => { + return [ + { + latestResponse: response, + done: false, + name: response.id, + metadata: null, + result: {}, + }, + operation, + rawResponse, + ]; + } + ); + } /** * Retrieves the list of persistent disks contained within the specified region. diff --git a/packages/google-cloud-compute/src/v1/region_disks_client_config.json b/packages/google-cloud-compute/src/v1/region_disks_client_config.json index 7f6519dfcf3..abf1fc2f267 100644 --- a/packages/google-cloud-compute/src/v1/region_disks_client_config.json +++ b/packages/google-cloud-compute/src/v1/region_disks_client_config.json @@ -67,6 +67,10 @@ "TestIamPermissions": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "Update": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1/region_health_checks_client.ts b/packages/google-cloud-compute/src/v1/region_health_checks_client.ts index 4671559a85f..816b7be10d2 100644 --- a/packages/google-cloud-compute/src/v1/region_health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_health_checks_client.ts @@ -452,7 +452,7 @@ export class RegionHealthChecksClient { ); } /** - * Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request. + * Returns the specified HealthCheck resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_instance_templates_client.ts b/packages/google-cloud-compute/src/v1/region_instance_templates_client.ts new file mode 100644 index 00000000000..4bafa6e56c6 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instance_templates_client.ts @@ -0,0 +1,906 @@ +// 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 +// +// 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. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + LROperation, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/region_instance_templates_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_instance_templates_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionInstanceTemplates API. + * @class + * @memberof v1 + */ +export class RegionInstanceTemplatesClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + regionInstanceTemplatesStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionInstanceTemplatesClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RegionInstanceTemplatesClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this + .constructor as typeof RegionInstanceTemplatesClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitely set 'rest' value for the apis use rest as transport (eg. googleapis-discovery apis). + if (!opts) { + opts = {fallback: 'rest'}; + } else { + opts.fallback = opts.fallback ?? 'rest'; + } + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'items' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1.RegionInstanceTemplates', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.regionInstanceTemplatesStub) { + return this.regionInstanceTemplatesStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionInstanceTemplates. + this.regionInstanceTemplatesStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.compute.v1.RegionInstanceTemplates' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionInstanceTemplates, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const regionInstanceTemplatesStubMethods = [ + 'delete', + 'get', + 'insert', + 'list', + ]; + for (const methodName of regionInstanceTemplatesStubMethods) { + const callPromise = this.regionInstanceTemplatesStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.regionInstanceTemplatesStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'compute.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instanceTemplate + * The name of the instance template to delete. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * @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. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/region_instance_templates.delete.js + * region_tag:compute_v1_generated_RegionInstanceTemplates_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.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({ + project: request.project ?? '', + region: request.region ?? '', + instance_template: request.instanceTemplate ?? '', + }); + this.initialize(); + return this.innerApiCalls + .delete(request, options, callback) + .then( + ([response, operation, rawResponse]: [ + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation + ]) => { + return [ + { + latestResponse: response, + done: false, + name: response.id, + metadata: null, + result: {}, + }, + operation, + rawResponse, + ]; + } + ); + } + /** + * Returns the specified instance template. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instanceTemplate + * The name of the instance template. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this 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. + * The first element of the array is an object representing {@link google.cloud.compute.v1.InstanceTemplate | InstanceTemplate}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/region_instance_templates.get.js + * region_tag:compute_v1_generated_RegionInstanceTemplates_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IInstanceTemplate, + ( + | protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest + | undefined + ), + {} | undefined + ] + >; + get( + request: protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IInstanceTemplate, + | protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest, + callback: Callback< + protos.google.cloud.compute.v1.IInstanceTemplate, + | protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IInstanceTemplate, + | protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IInstanceTemplate, + | protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IInstanceTemplate, + ( + | protos.google.cloud.compute.v1.IGetRegionInstanceTemplateRequest + | 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({ + project: request.project ?? '', + region: request.region ?? '', + instance_template: request.instanceTemplate ?? '', + }); + this.initialize(); + return this.innerApiCalls.get(request, options, callback); + } + /** + * Creates an instance template in the specified project and region using the global instance template whose URL is included in the request. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.InstanceTemplate} request.instanceTemplateResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * @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. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/region_instance_templates.insert.js + * region_tag:compute_v1_generated_RegionInstanceTemplates_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertRegionInstanceTemplateRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.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({ + project: request.project ?? '', + region: request.region ?? '', + }); + this.initialize(); + return this.innerApiCalls + .insert(request, options, callback) + .then( + ([response, operation, rawResponse]: [ + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation + ]) => { + return [ + { + latestResponse: response, + done: false, + name: response.id, + metadata: null, + result: {}, + }, + operation, + rawResponse, + ]; + } + ); + } + + /** + * Retrieves a list of instance templates that are contained within the specified project and region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the regions for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @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 google.cloud.compute.v1.InstanceTemplate | InstanceTemplate}. + * 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 `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IInstanceTemplate[], + protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest | null, + protos.google.cloud.compute.v1.IInstanceTemplateList + ] + >; + list( + request: protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + protos.google.cloud.compute.v1.IInstanceTemplateList | null | undefined, + protos.google.cloud.compute.v1.IInstanceTemplate + > + ): void; + list( + request: protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + protos.google.cloud.compute.v1.IInstanceTemplateList | null | undefined, + protos.google.cloud.compute.v1.IInstanceTemplate + > + ): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + | protos.google.cloud.compute.v1.IInstanceTemplateList + | null + | undefined, + protos.google.cloud.compute.v1.IInstanceTemplate + >, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + protos.google.cloud.compute.v1.IInstanceTemplateList | null | undefined, + protos.google.cloud.compute.v1.IInstanceTemplate + > + ): Promise< + [ + protos.google.cloud.compute.v1.IInstanceTemplate[], + protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest | null, + protos.google.cloud.compute.v1.IInstanceTemplateList + ] + > | 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({ + project: request.project ?? '', + region: request.region ?? '', + }); + this.initialize(); + return this.innerApiCalls.list(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.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the regions for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @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 google.cloud.compute.v1.InstanceTemplate | InstanceTemplate} 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 `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + 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({ + project: request.project ?? '', + region: request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `list`, 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.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the regions for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * {@link google.cloud.compute.v1.InstanceTemplate | InstanceTemplate}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/region_instance_templates.list.js + * region_tag:compute_v1_generated_RegionInstanceTemplates_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionInstanceTemplatesRequest, + 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({ + project: request.project ?? '', + region: request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.regionInstanceTemplatesStub && !this._terminated) { + return this.regionInstanceTemplatesStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-compute/src/v1/region_instance_templates_client_config.json b/packages/google-cloud-compute/src/v1/region_instance_templates_client_config.json new file mode 100644 index 00000000000..2aa64fd604c --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instance_templates_client_config.json @@ -0,0 +1,42 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionInstanceTemplates": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/region_instance_templates_proto_list.json b/packages/google-cloud-compute/src/v1/region_instance_templates_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instance_templates_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts index 9abae3a153e..882143dbaf2 100644 --- a/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts @@ -452,7 +452,7 @@ export class RegionNetworkEndpointGroupsClient { ); } /** - * Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. + * Returns the specified network endpoint group. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts b/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts index b50120cd8ba..8640793b9e4 100644 --- a/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts @@ -452,7 +452,7 @@ export class RegionTargetHttpProxiesClient { ); } /** - * Returns the specified TargetHttpProxy resource in the specified region. Gets a list of available target HTTP proxies by making a list() request. + * Returns the specified TargetHttpProxy resource in the specified region. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts b/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts index 9c3945a5987..f2c8fbff3f7 100644 --- a/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts @@ -455,7 +455,7 @@ export class RegionTargetHttpsProxiesClient { ); } /** - * Returns the specified TargetHttpsProxy resource in the specified region. Gets a list of available target HTTP proxies by making a list() request. + * Returns the specified TargetHttpsProxy resource in the specified region. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_url_maps_client.ts b/packages/google-cloud-compute/src/v1/region_url_maps_client.ts index 2a646fa588d..5d599a671bc 100644 --- a/packages/google-cloud-compute/src/v1/region_url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1/region_url_maps_client.ts @@ -453,7 +453,7 @@ export class RegionUrlMapsClient { ); } /** - * Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request. + * Returns the specified UrlMap resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/regions_client.ts b/packages/google-cloud-compute/src/v1/regions_client.ts index ce77edfee1d..6fcb2a0bf41 100644 --- a/packages/google-cloud-compute/src/v1/regions_client.ts +++ b/packages/google-cloud-compute/src/v1/regions_client.ts @@ -321,7 +321,7 @@ export class RegionsClient { // -- Service calls -- // ------------------- /** - * Returns the specified Region resource. Gets a list of available regions by making a list() request. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/routers_client.ts b/packages/google-cloud-compute/src/v1/routers_client.ts index 66b5ec2dfd9..8c3c5d80884 100644 --- a/packages/google-cloud-compute/src/v1/routers_client.ts +++ b/packages/google-cloud-compute/src/v1/routers_client.ts @@ -460,7 +460,7 @@ export class RoutersClient { ); } /** - * Returns the specified Router resource. Gets a list of available routers by making a list() request. + * Returns the specified Router resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/routes_client.ts b/packages/google-cloud-compute/src/v1/routes_client.ts index ed127917fc2..53565cbbac6 100644 --- a/packages/google-cloud-compute/src/v1/routes_client.ts +++ b/packages/google-cloud-compute/src/v1/routes_client.ts @@ -434,7 +434,7 @@ export class RoutesClient { ); } /** - * Returns the specified Route resource. Gets a list of available routes by making a list() request. + * Returns the specified Route resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/snapshots_client.ts b/packages/google-cloud-compute/src/v1/snapshots_client.ts index a0692d8f0bd..c11bde14c06 100644 --- a/packages/google-cloud-compute/src/v1/snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1/snapshots_client.ts @@ -445,7 +445,7 @@ export class SnapshotsClient { ); } /** - * Returns the specified Snapshot resource. Gets a list of available snapshots by making a list() request. + * Returns the specified Snapshot resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts b/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts index 6ba2249eca9..82f15591e0d 100644 --- a/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts +++ b/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts @@ -453,7 +453,7 @@ export class SslCertificatesClient { ); } /** - * Returns the specified SslCertificate resource. Gets a list of available SSL certificates by making a list() request. + * Returns the specified SslCertificate resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/ssl_policies_client.ts b/packages/google-cloud-compute/src/v1/ssl_policies_client.ts index 7b93476b27a..61c13bf0ebf 100644 --- a/packages/google-cloud-compute/src/v1/ssl_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/ssl_policies_client.ts @@ -537,7 +537,7 @@ export class SslPoliciesClient { return this.innerApiCalls.get(request, options, callback); } /** - * Returns the specified SSL policy resource. Gets a list of available SSL policies by making a list() request. + * Returns the specified SSL policy resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/subnetworks_client.ts b/packages/google-cloud-compute/src/v1/subnetworks_client.ts index 25cce15efa3..312fa6dc2ee 100644 --- a/packages/google-cloud-compute/src/v1/subnetworks_client.ts +++ b/packages/google-cloud-compute/src/v1/subnetworks_client.ts @@ -594,7 +594,7 @@ export class SubnetworksClient { ); } /** - * Returns the specified subnetwork. Gets a list of available subnetworks list() request. + * Returns the specified subnetwork. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts index 6ccc3f89a65..0f5e6ba3e86 100644 --- a/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts @@ -455,7 +455,7 @@ export class TargetHttpProxiesClient { ); } /** - * Returns the specified TargetHttpProxy resource. Gets a list of available target HTTP proxies by making a list() request. + * Returns the specified TargetHttpProxy resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts index 5231fbe6089..f0276bba37d 100644 --- a/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts @@ -459,7 +459,7 @@ export class TargetHttpsProxiesClient { ); } /** - * Returns the specified TargetHttpsProxy resource. Gets a list of available target HTTPS proxies by making a list() request. + * Returns the specified TargetHttpsProxy resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/target_instances_client.ts b/packages/google-cloud-compute/src/v1/target_instances_client.ts index edf3d846b2a..52cc58cbc60 100644 --- a/packages/google-cloud-compute/src/v1/target_instances_client.ts +++ b/packages/google-cloud-compute/src/v1/target_instances_client.ts @@ -456,7 +456,7 @@ export class TargetInstancesClient { ); } /** - * Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request. + * Returns the specified TargetInstance resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/target_pools_client.ts b/packages/google-cloud-compute/src/v1/target_pools_client.ts index 14c54ef53a5..78b9d74be32 100644 --- a/packages/google-cloud-compute/src/v1/target_pools_client.ts +++ b/packages/google-cloud-compute/src/v1/target_pools_client.ts @@ -714,7 +714,7 @@ export class TargetPoolsClient { ); } /** - * Returns the specified target pool. Gets a list of available target pools by making a list() request. + * Returns the specified target pool. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts index d4387937206..c70f90fb2c9 100644 --- a/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts @@ -452,7 +452,7 @@ export class TargetSslProxiesClient { ); } /** - * Returns the specified TargetSslProxy resource. Gets a list of available target SSL proxies by making a list() request. + * Returns the specified TargetSslProxy resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts index 74d7749ab35..281a3463143 100644 --- a/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts @@ -455,7 +455,7 @@ export class TargetTcpProxiesClient { ); } /** - * Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request. + * Returns the specified TargetTcpProxy resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts index c5cee22b906..b650a54edb6 100644 --- a/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts @@ -457,7 +457,7 @@ export class TargetVpnGatewaysClient { ); } /** - * Returns the specified target VPN gateway. Gets a list of available target VPN gateways by making a list() request. + * Returns the specified target VPN gateway. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/url_maps_client.ts b/packages/google-cloud-compute/src/v1/url_maps_client.ts index 153017108cf..d72db073e49 100644 --- a/packages/google-cloud-compute/src/v1/url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1/url_maps_client.ts @@ -451,7 +451,7 @@ export class UrlMapsClient { ); } /** - * Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request. + * Returns the specified UrlMap resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts index 9be87bac330..4c194ca17f9 100644 --- a/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts @@ -459,7 +459,7 @@ export class VpnGatewaysClient { ); } /** - * Returns the specified VPN gateway. Gets a list of available VPN gateways by making a list() request. + * Returns the specified VPN gateway. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts b/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts index 7b093f9e89e..fa8bc8c42f6 100644 --- a/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts +++ b/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts @@ -451,7 +451,7 @@ export class VpnTunnelsClient { ); } /** - * Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request. + * Returns the specified VpnTunnel resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/zones_client.ts b/packages/google-cloud-compute/src/v1/zones_client.ts index eacb9ce04c7..c57c4f4bc5a 100644 --- a/packages/google-cloud-compute/src/v1/zones_client.ts +++ b/packages/google-cloud-compute/src/v1/zones_client.ts @@ -321,7 +321,7 @@ export class ZonesClient { // -- Service calls -- // ------------------- /** - * Returns the specified Zone resource. Gets a list of available zones by making a list() request. + * Returns the specified Zone resource. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js index 4cc9e3e89af..688eb4b3165 100644 --- a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js @@ -83,6 +83,8 @@ function main() { new compute.RegionInstanceGroupManagersClient(); const regionInstanceGroupsClient = new compute.RegionInstanceGroupsClient(); const regionInstancesClient = new compute.RegionInstancesClient(); + const regionInstanceTemplatesClient = + new compute.RegionInstanceTemplatesClient(); const regionNetworkEndpointGroupsClient = new compute.RegionNetworkEndpointGroupsClient(); const regionNetworkFirewallPoliciesClient = diff --git a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts index 84f72ea2951..b95a6871dde 100644 --- a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts @@ -70,6 +70,7 @@ import { RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, + RegionInstanceTemplatesClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, @@ -301,6 +302,11 @@ function doStuffWithRegionInstanceGroupsClient( function doStuffWithRegionInstancesClient(client: RegionInstancesClient) { client.close(); } +function doStuffWithRegionInstanceTemplatesClient( + client: RegionInstanceTemplatesClient +) { + client.close(); +} function doStuffWithRegionNetworkEndpointGroupsClient( client: RegionNetworkEndpointGroupsClient ) { @@ -599,6 +605,9 @@ function main() { const regionInstancesClient = new RegionInstancesClient(); doStuffWithRegionInstancesClient(regionInstancesClient); // check that the client instance can be created + const regionInstanceTemplatesClient = new RegionInstanceTemplatesClient(); + doStuffWithRegionInstanceTemplatesClient(regionInstanceTemplatesClient); + // check that the client instance can be created const regionNetworkEndpointGroupsClient = new RegionNetworkEndpointGroupsClient(); doStuffWithRegionNetworkEndpointGroupsClient( diff --git a/packages/google-cloud-compute/test/gapic_disks_v1.ts b/packages/google-cloud-compute/test/gapic_disks_v1.ts index 10812c71efc..f2f8e18681b 100644 --- a/packages/google-cloud-compute/test/gapic_disks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_disks_v1.ts @@ -2078,6 +2078,173 @@ describe('v1.DisksClient', () => { }); }); + describe('update', () => { + it('invokes update without error', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateDiskRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['disk'] + ); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&disk=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = stubSimpleCall(expectedResponse); + const [response] = await client.update(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.update as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update without error using callback', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateDiskRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['disk'] + ); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&disk=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.update as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with error', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateDiskRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['disk'] + ); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&disk=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.update(request), expectedError); + const actualRequest = (client.innerApiCalls.update as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.update as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with closed client', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateDiskRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateDiskRequest', + ['disk'] + ); + request.disk = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.update(request), expectedError); + }); + }); + describe('aggregatedList', () => { it('uses async iteration with aggregatedList without error', async () => { const client = new disksModule.v1.DisksClient({ diff --git a/packages/google-cloud-compute/test/gapic_instance_templates_v1.ts b/packages/google-cloud-compute/test/gapic_instance_templates_v1.ts index 4278d2724e7..b888bf1c0e1 100644 --- a/packages/google-cloud-compute/test/gapic_instance_templates_v1.ts +++ b/packages/google-cloud-compute/test/gapic_instance_templates_v1.ts @@ -1108,6 +1108,110 @@ describe('v1.InstanceTemplatesClient', () => { }); }); + describe('aggregatedList', () => { + it('uses async iteration with aggregatedList without error', async () => { + const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedResponse = [ + [ + 'tuple_key_1', + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplatesScopedList() + ), + ], + [ + 'tuple_key_2', + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplatesScopedList() + ), + ], + [ + 'tuple_key_3', + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplatesScopedList() + ), + ], + ]; + client.descriptors.page.aggregatedList.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: Array< + [string, protos.google.cloud.compute.v1.IInstanceTemplatesScopedList] + > = []; + const iterable = client.aggregatedListAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.aggregatedList.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with aggregatedList with error', async () => { + const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.aggregatedList.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.aggregatedListAsync(request); + await assert.rejects(async () => { + const responses: Array< + [string, protos.google.cloud.compute.v1.IInstanceTemplatesScopedList] + > = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.aggregatedList.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ diff --git a/packages/google-cloud-compute/test/gapic_instances_v1.ts b/packages/google-cloud-compute/test/gapic_instances_v1.ts index 6ead11526ad..549ee6c24d6 100644 --- a/packages/google-cloud-compute/test/gapic_instances_v1.ts +++ b/packages/google-cloud-compute/test/gapic_instances_v1.ts @@ -4802,6 +4802,173 @@ describe('v1.InstancesClient', () => { }); }); + describe('setName', () => { + it('invokes setName without error', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetNameInstanceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['instance'] + ); + request.instance = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instance=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setName = stubSimpleCall(expectedResponse); + const [response] = await client.setName(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.setName as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setName as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setName without error using callback', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetNameInstanceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['instance'] + ); + request.instance = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instance=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setName = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setName( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setName as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setName as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setName with error', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetNameInstanceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['instance'] + ); + request.instance = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instance=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.setName = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.setName(request), expectedError); + const actualRequest = (client.innerApiCalls.setName as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setName as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setName with closed client', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetNameInstanceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetNameInstanceRequest', + ['instance'] + ); + request.instance = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setName(request), expectedError); + }); + }); + describe('setScheduling', () => { it('invokes setScheduling without error', async () => { const client = new instancesModule.v1.InstancesClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_disks_v1.ts b/packages/google-cloud-compute/test/gapic_region_disks_v1.ts index 9f676b778bb..2cccd631205 100644 --- a/packages/google-cloud-compute/test/gapic_region_disks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_disks_v1.ts @@ -2078,6 +2078,173 @@ describe('v1.RegionDisksClient', () => { }); }); + describe('update', () => { + it('invokes update without error', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateRegionDiskRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['disk'] + ); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&disk=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = stubSimpleCall(expectedResponse); + const [response] = await client.update(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.update as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update without error using callback', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateRegionDiskRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['disk'] + ); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&disk=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.update as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with error', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateRegionDiskRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['disk'] + ); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&disk=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.update(request), expectedError); + const actualRequest = (client.innerApiCalls.update as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.update as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with closed client', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateRegionDiskRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.UpdateRegionDiskRequest', + ['disk'] + ); + request.disk = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.update(request), expectedError); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new regiondisksModule.v1.RegionDisksClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_instance_templates_v1.ts b/packages/google-cloud-compute/test/gapic_region_instance_templates_v1.ts new file mode 100644 index 00000000000..000aabbbd9e --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_instance_templates_v1.ts @@ -0,0 +1,1104 @@ +// 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 +// +// 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. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as regioninstancetemplatesModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.RegionInstanceTemplatesClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon + .stub() + .resolves({Authorization: 'Bearer SOME_TOKEN'}), + }), + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient + .servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient + .apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = + regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstanceTemplatesStub, undefined); + await client.initialize(); + assert(client.regionInstanceTemplatesStub); + }); + + it('has close method for the initialized client', done => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionInstanceTemplatesStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstanceTemplatesStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['instanceTemplate'] + ); + request.instanceTemplate = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instance_template=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.delete as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['instanceTemplate'] + ); + request.instanceTemplate = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instance_template=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.delete as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['instanceTemplate'] + ); + request.instanceTemplate = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instance_template=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.delete as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest', + ['instanceTemplate'] + ); + request.instanceTemplate = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['instanceTemplate'] + ); + request.instanceTemplate = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instance_template=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.get as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['instanceTemplate'] + ); + request.instanceTemplate = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instance_template=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IInstanceTemplate | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.get as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['instanceTemplate'] + ); + request.instanceTemplate = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instance_template=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.get as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstanceTemplateRequest', + ['instanceTemplate'] + ); + request.instanceTemplate = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.insert as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.insert as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.insert as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IInstanceTemplate[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + ]; + client.descriptors.page.list.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.InstanceTemplate[] = []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.InstanceTemplate) => { + 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.list.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.list, request) + ); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.InstanceTemplate[] = []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.InstanceTemplate) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.list, request) + ); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceTemplate() + ), + ]; + client.descriptors.page.list.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IInstanceTemplate[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = + new regioninstancetemplatesModule.v1.RegionInstanceTemplatesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1.IInstanceTemplate[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +});