diff --git a/packages/google-cloud-vmwareengine/.jsdoc.js b/packages/google-cloud-vmwareengine/.jsdoc.js index eb1f6fb78c2..03e74f50d73 100644 --- a/packages/google-cloud-vmwareengine/.jsdoc.js +++ b/packages/google-cloud-vmwareengine/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2023 Google LLC', + copyright: 'Copyright 2024 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/vmwareengine', diff --git a/packages/google-cloud-vmwareengine/.mocharc.js b/packages/google-cloud-vmwareengine/.mocharc.js index 49e7e228701..7e843ab5a75 100644 --- a/packages/google-cloud-vmwareengine/.mocharc.js +++ b/packages/google-cloud-vmwareengine/.mocharc.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/.prettierrc.js b/packages/google-cloud-vmwareengine/.prettierrc.js index 1e6cec783e4..120c6aa3e6e 100644 --- a/packages/google-cloud-vmwareengine/.prettierrc.js +++ b/packages/google-cloud-vmwareengine/.prettierrc.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/README.md b/packages/google-cloud-vmwareengine/README.md index 3aae240a953..ceb162bd9cc 100644 --- a/packages/google-cloud-vmwareengine/README.md +++ b/packages/google-cloud-vmwareengine/README.md @@ -131,9 +131,8 @@ async function callListVmwareEngineNetworks() { }; // Run request - const iterable = await vmwareengineClient.listVmwareEngineNetworksAsync( - request - ); + const iterable = + await vmwareengineClient.listVmwareEngineNetworksAsync(request); for await (const response of iterable) { console.log(response); } @@ -152,39 +151,74 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | | Vmware_engine.create_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_cluster.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-vmwareengine/samples/generated/v1/vmware_engine.create_cluster.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.create_external_access_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_access_rule.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-vmwareengine/samples/generated/v1/vmware_engine.create_external_access_rule.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.create_external_address | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_address.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-vmwareengine/samples/generated/v1/vmware_engine.create_external_address.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.create_hcx_activation_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.create_logging_server | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_logging_server.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_logging_server.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.create_management_dns_zone_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.create_management_dns_zone_binding.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.create_network_peering | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_peering.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-vmwareengine/samples/generated/v1/vmware_engine.create_network_peering.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.create_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_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-vmwareengine/samples/generated/v1/vmware_engine.create_network_policy.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.create_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.create_private_cloud.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.create_private_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_connection.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-vmwareengine/samples/generated/v1/vmware_engine.create_private_connection.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.create_vmware_engine_network | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_vmware_engine_network.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-vmwareengine/samples/generated/v1/vmware_engine.create_vmware_engine_network.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.delete_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_cluster.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-vmwareengine/samples/generated/v1/vmware_engine.delete_cluster.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.delete_external_access_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_access_rule.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-vmwareengine/samples/generated/v1/vmware_engine.delete_external_access_rule.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.delete_external_address | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_address.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-vmwareengine/samples/generated/v1/vmware_engine.delete_external_address.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.delete_logging_server | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_logging_server.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_logging_server.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.delete_management_dns_zone_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.delete_network_peering | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_peering.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-vmwareengine/samples/generated/v1/vmware_engine.delete_network_peering.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.delete_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_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-vmwareengine/samples/generated/v1/vmware_engine.delete_network_policy.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.delete_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.delete_private_cloud.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.delete_private_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_connection.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-vmwareengine/samples/generated/v1/vmware_engine.delete_private_connection.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.delete_vmware_engine_network | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_vmware_engine_network.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-vmwareengine/samples/generated/v1/vmware_engine.delete_vmware_engine_network.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.fetch_network_policy_external_addresses | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.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-vmwareengine/samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.get_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.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-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.get_dns_bind_permission | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_bind_permission.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-vmwareengine/samples/generated/v1/vmware_engine.get_dns_bind_permission.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.get_dns_forwarding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_forwarding.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-vmwareengine/samples/generated/v1/vmware_engine.get_dns_forwarding.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.get_external_access_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_access_rule.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-vmwareengine/samples/generated/v1/vmware_engine.get_external_access_rule.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.get_external_address | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_address.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-vmwareengine/samples/generated/v1/vmware_engine.get_external_address.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.get_hcx_activation_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.get_logging_server | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_logging_server.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_logging_server.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.get_management_dns_zone_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.get_management_dns_zone_binding.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.get_network_peering | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_peering.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-vmwareengine/samples/generated/v1/vmware_engine.get_network_peering.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.get_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_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-vmwareengine/samples/generated/v1/vmware_engine.get_network_policy.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.get_node | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node.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-vmwareengine/samples/generated/v1/vmware_engine.get_node.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.get_node_type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node_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-vmwareengine/samples/generated/v1/vmware_engine.get_node_type.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.get_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.get_private_cloud.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.get_private_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_connection.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-vmwareengine/samples/generated/v1/vmware_engine.get_private_connection.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.get_subnet | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_subnet.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-vmwareengine/samples/generated/v1/vmware_engine.get_subnet.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.get_vmware_engine_network | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_vmware_engine_network.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-vmwareengine/samples/generated/v1/vmware_engine.get_vmware_engine_network.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.grant_dns_bind_permission | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.grant_dns_bind_permission.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-vmwareengine/samples/generated/v1/vmware_engine.grant_dns_bind_permission.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.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-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.list_external_access_rules | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_access_rules.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-vmwareengine/samples/generated/v1/vmware_engine.list_external_access_rules.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.list_external_addresses | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_addresses.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-vmwareengine/samples/generated/v1/vmware_engine.list_external_addresses.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_hcx_activation_keys | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.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-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.list_logging_servers | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_logging_servers.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-vmwareengine/samples/generated/v1/vmware_engine.list_logging_servers.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.list_management_dns_zone_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.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-vmwareengine/samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.list_network_peerings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_peerings.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-vmwareengine/samples/generated/v1/vmware_engine.list_network_peerings.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_network_policies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_node_types | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_node_types.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-vmwareengine/samples/generated/v1/vmware_engine.list_node_types.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.list_nodes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_nodes.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-vmwareengine/samples/generated/v1/vmware_engine.list_nodes.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.list_peering_routes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_peering_routes.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-vmwareengine/samples/generated/v1/vmware_engine.list_peering_routes.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_private_clouds | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.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-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_private_connection_peering_routes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connection_peering_routes.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-vmwareengine/samples/generated/v1/vmware_engine.list_private_connection_peering_routes.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_private_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connections.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-vmwareengine/samples/generated/v1/vmware_engine.list_private_connections.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_subnets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_subnets.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-vmwareengine/samples/generated/v1/vmware_engine.list_subnets.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.list_vmware_engine_networks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_vmware_engine_networks.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-vmwareengine/samples/generated/v1/vmware_engine.list_vmware_engine_networks.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.repair_management_dns_zone_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.reset_nsx_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.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-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.reset_vcenter_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_vcenter_credentials.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-vmwareengine/samples/generated/v1/vmware_engine.reset_vcenter_credentials.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.revoke_dns_bind_permission | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.revoke_dns_bind_permission.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-vmwareengine/samples/generated/v1/vmware_engine.revoke_dns_bind_permission.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.show_nsx_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.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-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.show_vcenter_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_vcenter_credentials.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-vmwareengine/samples/generated/v1/vmware_engine.show_vcenter_credentials.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.undelete_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.undelete_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.undelete_private_cloud.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.update_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_cluster.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-vmwareengine/samples/generated/v1/vmware_engine.update_cluster.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.update_dns_forwarding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_dns_forwarding.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-vmwareengine/samples/generated/v1/vmware_engine.update_dns_forwarding.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.update_external_access_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_access_rule.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-vmwareengine/samples/generated/v1/vmware_engine.update_external_access_rule.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.update_external_address | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_address.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-vmwareengine/samples/generated/v1/vmware_engine.update_external_address.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.update_logging_server | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_logging_server.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_logging_server.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.update_management_dns_zone_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.update_management_dns_zone_binding.js,packages/google-cloud-vmwareengine/samples/README.md) | +| Vmware_engine.update_network_peering | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_peering.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-vmwareengine/samples/generated/v1/vmware_engine.update_network_peering.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.update_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_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-vmwareengine/samples/generated/v1/vmware_engine.update_network_policy.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.update_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.update_private_cloud.js,packages/google-cloud-vmwareengine/samples/README.md) | | Vmware_engine.update_private_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_connection.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-vmwareengine/samples/generated/v1/vmware_engine.update_private_connection.js,packages/google-cloud-vmwareengine/samples/README.md) | diff --git a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto index eef4dcd7da4..b724f685430 100644 --- a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto +++ b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto @@ -16,15 +16,16 @@ syntax = "proto3"; package google.cloud.vmwareengine.v1; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/field_mask.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/vmwareengine/v1/vmwareengine_resources.proto"; -import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.VmwareEngine.V1"; option go_package = "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb;vmwareenginepb"; @@ -62,9 +63,9 @@ service VmwareEngine { } // Creates a new `PrivateCloud` resource in a given project and location. - // Private clouds can only be created in zones, regional private clouds are - // not supported. - // + // Private clouds of type `STANDARD` and + // `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are + // regional. // Creating a private cloud also creates a [management // cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) // for that private cloud. @@ -180,8 +181,7 @@ service VmwareEngine { }; } - // Modifies a `Cluster` resource. Only the following fields can be updated: - // `node_type_configs.*.node_count`. Only fields specified in `updateMask` are + // Modifies a `Cluster` resource. Only fields specified in `updateMask` are // applied. // // During operation processing, the resource is temporarily in the `ACTIVE` @@ -217,6 +217,103 @@ service VmwareEngine { }; } + // Lists nodes in a given cluster. + rpc ListNodes(ListNodesRequest) returns (ListNodesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*/clusters/*}/nodes" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single node. + rpc GetNode(GetNodeRequest) returns (Node) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*/nodes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists external IP addresses assigned to VMware workload VMs in a given + // private cloud. + rpc ListExternalAddresses(ListExternalAddressesRequest) + returns (ListExternalAddressesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists external IP addresses assigned to VMware workload VMs within the + // scope of the given network policy. + rpc FetchNetworkPolicyExternalAddresses( + FetchNetworkPolicyExternalAddressesRequest) + returns (FetchNetworkPolicyExternalAddressesResponse) { + option (google.api.http) = { + get: "/v1/{network_policy=projects/*/locations/*/networkPolicies/*}:fetchExternalAddresses" + }; + option (google.api.method_signature) = "network_policy"; + } + + // Gets details of a single external IP address. + rpc GetExternalAddress(GetExternalAddressRequest) returns (ExternalAddress) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `ExternalAddress` resource in a given private cloud. The + // network policy that corresponds to the private cloud must have the external + // IP address network service enabled (`NetworkPolicy.external_ip`). + rpc CreateExternalAddress(CreateExternalAddressRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses" + body: "external_address" + }; + option (google.api.method_signature) = + "parent,external_address,external_address_id"; + option (google.longrunning.operation_info) = { + response_type: "ExternalAddress" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single external IP address. + // Only fields specified in `update_mask` are applied. + // + // During operation processing, the resource is temporarily in the `ACTIVE` + // state before the operation fully completes. For that period of time, you + // can't update the resource. Use the operation status to determine when the + // processing fully completes. + rpc UpdateExternalAddress(UpdateExternalAddressRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{external_address.name=projects/*/locations/*/privateClouds/*/externalAddresses/*}" + body: "external_address" + }; + option (google.api.method_signature) = "external_address,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ExternalAddress" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single external IP address. When you delete an external IP + // address, connectivity between the external IP address and the corresponding + // internal IP address is lost. + rpc DeleteExternalAddress(DeleteExternalAddressRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + // Lists subnets in a given private cloud. rpc ListSubnets(ListSubnetsRequest) returns (ListSubnetsResponse) { option (google.api.http) = { @@ -251,6 +348,128 @@ service VmwareEngine { }; } + // Lists `ExternalAccessRule` resources in the specified network policy. + rpc ListExternalAccessRules(ListExternalAccessRulesRequest) + returns (ListExternalAccessRulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single external access rule. + rpc GetExternalAccessRule(GetExternalAccessRuleRequest) + returns (ExternalAccessRule) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new external access rule in a given network policy. + rpc CreateExternalAccessRule(CreateExternalAccessRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules" + body: "external_access_rule" + }; + option (google.api.method_signature) = + "parent,external_access_rule,external_access_rule_id"; + option (google.longrunning.operation_info) = { + response_type: "ExternalAccessRule" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single external access rule. + // Only fields specified in `update_mask` are applied. + rpc UpdateExternalAccessRule(UpdateExternalAccessRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{external_access_rule.name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}" + body: "external_access_rule" + }; + option (google.api.method_signature) = "external_access_rule,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ExternalAccessRule" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single external access rule. + rpc DeleteExternalAccessRule(DeleteExternalAccessRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists logging servers configured for a given private + // cloud. + rpc ListLoggingServers(ListLoggingServersRequest) + returns (ListLoggingServersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a logging server. + rpc GetLoggingServer(GetLoggingServerRequest) returns (LoggingServer) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new logging server for a given private cloud. + rpc CreateLoggingServer(CreateLoggingServerRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers" + body: "logging_server" + }; + option (google.api.method_signature) = + "parent,logging_server,logging_server_id"; + option (google.longrunning.operation_info) = { + response_type: "LoggingServer" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single logging server. + // Only fields specified in `update_mask` are applied. + rpc UpdateLoggingServer(UpdateLoggingServerRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{logging_server.name=projects/*/locations/*/privateClouds/*/loggingServers/*}" + body: "logging_server" + }; + option (google.api.method_signature) = "logging_server,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "LoggingServer" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single logging server. + rpc DeleteLoggingServer(DeleteLoggingServerRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + // Lists node types rpc ListNodeTypes(ListNodeTypesRequest) returns (ListNodeTypesResponse) { option (google.api.http) = { @@ -312,6 +531,109 @@ service VmwareEngine { }; } + // Gets details of the `DnsForwarding` config. + rpc GetDnsForwarding(GetDnsForwardingRequest) returns (DnsForwarding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/dnsForwarding}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the parameters of the `DnsForwarding` config, like associated + // domains. Only fields specified in `update_mask` are applied. + rpc UpdateDnsForwarding(UpdateDnsForwardingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{dns_forwarding.name=projects/*/locations/*/privateClouds/*/dnsForwarding}" + body: "dns_forwarding" + }; + option (google.api.method_signature) = "dns_forwarding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "DnsForwarding" + metadata_type: "OperationMetadata" + }; + } + + // Retrieves a `NetworkPeering` resource by its resource name. The resource + // contains details of the network peering, such as peered + // networks, import and export custom route configurations, and peering state. + // NetworkPeering is a global resource and location can only be global. + rpc GetNetworkPeering(GetNetworkPeeringRequest) returns (NetworkPeering) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/networkPeerings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists `NetworkPeering` resources in a given project. NetworkPeering is a + // global resource and location can only be global. + rpc ListNetworkPeerings(ListNetworkPeeringsRequest) + returns (ListNetworkPeeringsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/networkPeerings" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new network peering between the peer network and VMware Engine + // network provided in a `NetworkPeering` resource. NetworkPeering is a + // global resource and location can only be global. + rpc CreateNetworkPeering(CreateNetworkPeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/networkPeerings" + body: "network_peering" + }; + option (google.api.method_signature) = + "parent,network_peering,network_peering_id"; + option (google.longrunning.operation_info) = { + response_type: "NetworkPeering" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `NetworkPeering` resource. When a network peering is deleted for + // a VMware Engine network, the peer network becomes inaccessible to that + // VMware Engine network. NetworkPeering is a global resource and location can + // only be global. + rpc DeleteNetworkPeering(DeleteNetworkPeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/networkPeerings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Modifies a `NetworkPeering` resource. Only the `description` field can be + // updated. Only fields specified in `updateMask` are applied. NetworkPeering + // is a global resource and location can only be global. + rpc UpdateNetworkPeering(UpdateNetworkPeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{network_peering.name=projects/*/locations/*/networkPeerings/*}" + body: "network_peering" + }; + option (google.api.method_signature) = "network_peering,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "NetworkPeering" + metadata_type: "OperationMetadata" + }; + } + + // Lists the network peering routes exchanged over a peering connection. + // NetworkPeering is a global resource and location can only be global. + rpc ListPeeringRoutes(ListPeeringRoutesRequest) + returns (ListPeeringRoutesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/networkPeerings/*}/peeringRoutes" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a new HCX activation key in a given private cloud. rpc CreateHcxActivationKey(CreateHcxActivationKeyRequest) returns (google.longrunning.Operation) { @@ -419,6 +741,91 @@ service VmwareEngine { }; } + // Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. + rpc ListManagementDnsZoneBindings(ListManagementDnsZoneBindingsRequest) + returns (ListManagementDnsZoneBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. + rpc GetManagementDnsZoneBinding(GetManagementDnsZoneBindingRequest) + returns (ManagementDnsZoneBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `ManagementDnsZoneBinding` resource in a private cloud. + // This RPC creates the DNS binding and the resource that represents the + // DNS binding of the consumer VPC network to the management DNS zone. A + // management DNS zone is the Cloud DNS cross-project binding zone that + // VMware Engine creates for each private cloud. It contains FQDNs and + // corresponding IP addresses for the private cloud's ESXi hosts and + // management VM appliances like vCenter and NSX Manager. + rpc CreateManagementDnsZoneBinding(CreateManagementDnsZoneBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings" + body: "management_dns_zone_binding" + }; + option (google.api.method_signature) = + "parent,management_dns_zone_binding,management_dns_zone_binding_id"; + option (google.longrunning.operation_info) = { + response_type: "ManagementDnsZoneBinding" + metadata_type: "OperationMetadata" + }; + } + + // Updates a `ManagementDnsZoneBinding` resource. + // Only fields specified in `update_mask` are applied. + rpc UpdateManagementDnsZoneBinding(UpdateManagementDnsZoneBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{management_dns_zone_binding.name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}" + body: "management_dns_zone_binding" + }; + option (google.api.method_signature) = + "management_dns_zone_binding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ManagementDnsZoneBinding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone + // binding is deleted, the corresponding consumer VPC network is no longer + // bound to the management DNS zone. + rpc DeleteManagementDnsZoneBinding(DeleteManagementDnsZoneBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Retries to create a `ManagementDnsZoneBinding` resource that is + // in failed state. + rpc RepairManagementDnsZoneBinding(RepairManagementDnsZoneBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}:repair" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "ManagementDnsZoneBinding" + metadata_type: "OperationMetadata" + }; + } + // Creates a new VMware Engine network that can be used by a private cloud. rpc CreateVmwareEngineNetwork(CreateVmwareEngineNetworkRequest) returns (google.longrunning.Operation) { @@ -563,22 +970,66 @@ service VmwareEngine { }; option (google.api.method_signature) = "parent"; } -} - -// Request message for -// [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds] -message ListPrivateCloudsRequest { - // Required. The resource name of the private cloud to be queried for - // clusters. Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-project/locations/us-central1-a` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; + + // Grants the bind permission to the customer provided principal(user / + // service account) to bind their DNS zone with the intranet VPC associated + // with the project. DnsBindPermission is a global resource and location can + // only be global. + rpc GrantDnsBindPermission(GrantDnsBindPermissionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/dnsBindPermission}:grant" + body: "*" + }; + option (google.api.method_signature) = "name,principal"; + option (google.longrunning.operation_info) = { + response_type: "DnsBindPermission" + metadata_type: "OperationMetadata" + }; + } + + // Gets all the principals having bind permission on the intranet VPC + // associated with the consumer project granted by the Grant API. + // DnsBindPermission is a global resource and location can only be global. + rpc GetDnsBindPermission(GetDnsBindPermissionRequest) + returns (DnsBindPermission) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dnsBindPermission}" + }; + option (google.api.method_signature) = "name"; + } + + // Revokes the bind permission from the customer provided principal(user / + // service account) on the intranet VPC associated with the consumer project. + // DnsBindPermission is a global resource and location can only be global. + rpc RevokeDnsBindPermission(RevokeDnsBindPermissionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/dnsBindPermission}:revoke" + body: "*" + }; + option (google.api.method_signature) = "name,principal"; + option (google.longrunning.operation_info) = { + response_type: "DnsBindPermission" + metadata_type: "OperationMetadata" + }; + } +} + +// Request message for +// [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds] +message ListPrivateCloudsRequest { + // Required. The resource name of the private cloud to be queried for + // clusters. Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; // The maximum number of private clouds to return in one page. // The service may return fewer than this value. @@ -943,138 +1394,87 @@ message DeleteClusterRequest { } // Request message for -// [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] -message ListSubnetsRequest { - // Required. The resource name of the private cloud to be queried for - // subnets. +// [VmwareEngine.ListNodes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodes] +message ListNodesRequest { + // Required. The resource name of the cluster to be queried for nodes. // Resource names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/PrivateCloud" + type: "vmwareengine.googleapis.com/Cluster" } ]; - // The maximum number of subnets to return in one page. + // The maximum number of nodes to return in one page. // The service may return fewer than this value. // The maximum value is coerced to 1000. // The default value of this field is 500. int32 page_size = 2; - // A page token, received from a previous `ListSubnetsRequest` call. + // A page token, received from a previous `ListNodes` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // `ListSubnetsRequest` must match the call that provided the page token. + // `ListNodes` must match the call that provided the page + // token. string page_token = 3; } // Response message for -// [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] -message ListSubnetsResponse { - // A list of subnets. - repeated Subnet subnets = 1; +// [VmwareEngine.ListNodes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodes] +message ListNodesResponse { + // The nodes. + repeated Node nodes = 1; // A token, which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. string next_page_token = 2; - - // Locations that could not be reached when making an aggregated query using - // wildcards. - repeated string unreachable = 3; } // Request message for -// [VmwareEngine.GetSubnet][google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet] -message GetSubnetRequest { - // Required. The resource name of the subnet to retrieve. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. +// [VmwareEngine.GetNode][google.cloud.vmwareengine.v1.VmwareEngine.GetNode] +message GetNodeRequest { + // Required. The resource name of the node to retrieve. // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` + // `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/Subnet" + type: "vmwareengine.googleapis.com/Node" } ]; } // Request message for -// [VmwareEngine.UpdateSubnet][google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet] -message UpdateSubnetRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // `Subnet` resource by the update. - // The fields specified in the `update_mask` are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. - google.protobuf.FieldMask update_mask = 1 - [(google.api.field_behavior) = REQUIRED]; - - // Required. Subnet description. - Subnet subnet = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Represents the metadata of the long-running operation. -message OperationMetadata { - // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Server-defined resource path for the target of the operation. - string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Name of the verb executed by the operation. - string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Human-readable status of the operation, if any. - string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. True if the user has requested cancellation - // of the operation; false otherwise. - // Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. - bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. API version used to start the operation. - string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request message for -// [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] -message ListNodeTypesRequest { - // Required. The resource name of the location to be queried for node types. +// [VmwareEngine.ListExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses] +message ListExternalAddressesRequest { + // Required. The resource name of the private cloud to be queried for + // external IP addresses. // Resource names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. // For example: - // `projects/my-project/locations/us-central1-a` + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" + type: "vmwareengine.googleapis.com/PrivateCloud" } ]; - // The maximum number of node types to return in one page. + // The maximum number of external IP addresses to return in one page. // The service may return fewer than this value. // The maximum value is coerced to 1000. // The default value of this field is 500. int32 page_size = 2; - // A page token, received from a previous `ListNodeTypes` call. + // A page token, received from a previous `ListExternalAddresses` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // `ListNodeTypes` must match the call that provided the page token. + // `ListExternalAddresses` must match the call that provided the page token. string page_token = 3; // A filter expression that matches resources returned in the response. @@ -1083,33 +1483,40 @@ message ListNodeTypesRequest { // must be a string, a number, or a boolean. The comparison operator // must be `=`, `!=`, `>`, or `<`. // - // For example, if you are filtering a list of node types, you can - // exclude the ones named `standard-72` by specifying - // `name != "standard-72"`. + // For example, if you are filtering a list of IP addresses, you can + // exclude the ones named `example-ip` by specifying + // `name != "example-ip"`. // // To filter on multiple expressions, provide each separate expression within // parentheses. For example: // ``` - // (name = "standard-72") - // (virtual_cpu_count > 2) + // (name = "example-ip") + // (createTime > "2021-04-12T08:15:10.40Z") // ``` // // By default, each expression is an `AND` expression. However, you // can include `AND` and `OR` expressions explicitly. // For example: // ``` - // (name = "standard-96") AND - // (virtual_cpu_count > 2) OR - // (name = "standard-72") + // (name = "example-ip-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-ip-2") // ``` string filter = 4; + + // Sorts list results by a certain order. By default, returned results + // are ordered by `name` in ascending order. + // You can also sort results in descending order based on the `name` value + // using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; } // Response message for -// [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] -message ListNodeTypesResponse { - // A list of Node Types. - repeated NodeType node_types = 1; +// [VmwareEngine.ListExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses] +message ListExternalAddressesResponse { + // A list of external IP addresses. + repeated ExternalAddress external_addresses = 1; // A token, which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. @@ -1121,70 +1528,126 @@ message ListNodeTypesResponse { } // Request message for -// [VmwareEngine.GetNodeType][google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType] -message GetNodeTypeRequest { - // Required. The resource name of the node type to retrieve. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` - string name = 1 [ +// [VmwareEngine.FetchNetworkPolicyExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses] +message FetchNetworkPolicyExternalAddressesRequest { + // Required. The resource name of the network policy to query for assigned + // external IP addresses. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. For + // example: + // `projects/my-project/locations/us-central1/networkPolicies/my-policy` + string network_policy = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/NodeType" + type: "vmwareengine.googleapis.com/NetworkPolicy" } ]; + + // The maximum number of external IP addresses to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous + // `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the + // subsequent page. + // + // When paginating, all parameters provided to + // `FetchNetworkPolicyExternalAddresses`, except for `page_size` and + // `page_token`, must match the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [VmwareEngine.FetchNetworkPolicyExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses] +message FetchNetworkPolicyExternalAddressesResponse { + // A list of external IP addresses assigned to VMware workload VMs within the + // scope of the given network policy. + repeated ExternalAddress external_addresses = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; } // Request message for -// [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials] -message ShowNsxCredentialsRequest { - // Required. The resource name of the private cloud - // to be queried for credentials. +// [VmwareEngine.GetExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddress] +message GetExternalAddressRequest { + // Required. The resource name of the external IP address to retrieve. // Resource names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - string private_cloud = 1 [ + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` + string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/PrivateCloud" + type: "vmwareengine.googleapis.com/ExternalAddress" } ]; } // Request message for -// [VmwareEngine.ShowVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials] -message ShowVcenterCredentialsRequest { +// [VmwareEngine.CreateExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddress] +message CreateExternalAddressRequest { // Required. The resource name of the private cloud - // to be queried for credentials. + // to create a new external IP address in. // Resource names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. // For example: // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - string private_cloud = 1 [ + string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "vmwareengine.googleapis.com/PrivateCloud" } ]; + + // Required. The initial description of a new external IP address. + ExternalAddress external_address = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `ExternalAddress` to be + // created. This identifier must be unique among `ExternalAddress` resources + // within the parent and becomes the final token in the name URI. The + // identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string external_address_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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 the 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). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; } // Request message for -// [VmwareEngine.ResetNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials] -message ResetNsxCredentialsRequest { - // Required. The resource name of the private cloud - // to reset credentials for. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - string private_cloud = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/PrivateCloud" - } - ]; +// [VmwareEngine.UpdateExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddress] +message UpdateExternalAddressRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `ExternalAddress` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. External IP address description. + ExternalAddress external_address = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore @@ -1193,29 +1656,28 @@ message ResetNsxCredentialsRequest { // minutes. // // 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. + // request times out. If you make the request again with the same request ID, + // the server can check if the 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). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request message for -// [VmwareEngine.ResetVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials] -message ResetVcenterCredentialsRequest { - // Required. The resource name of the private cloud - // to reset credentials for. +// [VmwareEngine.DeleteExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddress] +message DeleteExternalAddressRequest { + // Required. The resource name of the external IP address to delete. // Resource names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - string private_cloud = 1 [ + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` + string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/PrivateCloud" + type: "vmwareengine.googleapis.com/ExternalAddress" } ]; @@ -1227,7 +1689,7 @@ message ResetVcenterCredentialsRequest { // // 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 + // ID, the server can check if the 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. // @@ -1236,14 +1698,748 @@ message ResetVcenterCredentialsRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for -// [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] -message ListHcxActivationKeysResponse { - // List of HCX activation keys. - repeated HcxActivationKey hcx_activation_keys = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. +// Request message for +// [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] +message ListSubnetsRequest { + // Required. The resource name of the private cloud to be queried for + // subnets. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of subnets to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListSubnetsRequest` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListSubnetsRequest` must match the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] +message ListSubnetsResponse { + // A list of subnets. + repeated Subnet subnets = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetSubnet][google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet] +message GetSubnetRequest { + // Required. The resource name of the subnet to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/Subnet" + } + ]; +} + +// Request message for +// [VmwareEngine.UpdateSubnet][google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet] +message UpdateSubnetRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `Subnet` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Subnet description. + Subnet subnet = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [VmwareEngine.ListExternalAccessRules][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules] +message ListExternalAccessRulesRequest { + // Required. The resource name of the network policy to query for external + // access firewall rules. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. For + // example: + // `projects/my-project/locations/us-central1/networkPolicies/my-policy` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPolicy" + } + ]; + + // The maximum number of external access rules to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListExternalAccessRulesRequest` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListExternalAccessRulesRequest` must match the call that provided the page + // token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of external access rules, you can + // exclude the ones named `example-rule` by specifying + // `name != "example-rule"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-rule") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-rule-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-rule-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results + // are ordered by `name` in ascending order. + // You can also sort results in descending order based on the `name` value + // using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Response message for +// [VmwareEngine.ListExternalAccessRules][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules] +message ListExternalAccessRulesResponse { + // A list of external access firewall rules. + repeated ExternalAccessRule external_access_rules = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRule] +message GetExternalAccessRuleRequest { + // Required. The resource name of the external access firewall rule to + // retrieve. Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ExternalAccessRule" + } + ]; +} + +// Request message for +// [VmwareEngine.CreateExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRule] +message CreateExternalAccessRuleRequest { + // Required. The resource name of the network policy + // to create a new external access firewall rule in. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/networkPolicies/my-policy` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPolicy" + } + ]; + + // Required. The initial description of a new external access rule. + ExternalAccessRule external_access_rule = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `ExternalAccessRule` to be + // created. This identifier must be unique among `ExternalAccessRule` + // resources within the parent and becomes the final token in the name URI. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string external_access_rule_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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 the 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). + string request_id = 4; +} + +// Request message for +// [VmwareEngine.UpdateExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRule] +message UpdateExternalAccessRuleRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `ExternalAccessRule` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Description of the external access rule. + ExternalAccessRule external_access_rule = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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 the 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). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.DeleteExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRule] +message DeleteExternalAccessRuleRequest { + // Required. The resource name of the external access firewall rule to delete. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ExternalAccessRule" + } + ]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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 the 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). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.ListLoggingServers][google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers] +message ListLoggingServersRequest { + // Required. The resource name of the private cloud to be queried for + // logging servers. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of logging servers to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListLoggingServersRequest` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListLoggingServersRequest` must match the call that provided the page + // token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of logging servers, you can + // exclude the ones named `example-server` by specifying + // `name != "example-server"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-server") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-server-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-server-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results + // are ordered by `name` in ascending order. + // You can also sort results in descending order based on the `name` value + // using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Response message for +// [VmwareEngine.ListLoggingServers][google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers] +message ListLoggingServersResponse { + // A list of Logging Servers. + repeated LoggingServer logging_servers = 1; + + // A token, which can be send as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServer] +message GetLoggingServerRequest { + // Required. The resource name of the Logging Server to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/LoggingServer" + } + ]; +} + +// Request message for +// [VmwareEngine.CreateLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServer] +message CreateLoggingServerRequest { + // Required. The resource name of the private cloud + // to create a new Logging Server in. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Required. The initial description of a new logging server. + LoggingServer logging_server = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `LoggingServer` to be + // created. This identifier must be unique among `LoggingServer` resources + // within the parent and becomes the final token in the name URI. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string logging_server_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.UpdateLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServer] +message UpdateLoggingServerRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `LoggingServer` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Logging server description. + LoggingServer logging_server = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.DeleteLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServer] +message DeleteLoggingServerRequest { + // Required. The resource name of the logging server to delete. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/LoggingServer" + } + ]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if the user has requested cancellation + // of the operation; false otherwise. + // Operations that have successfully been cancelled + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for +// [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] +message ListNodeTypesRequest { + // Required. The resource name of the location to be queried for node types. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of node types to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListNodeTypes` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListNodeTypes` must match the call that provided the page token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of node types, you can + // exclude the ones named `standard-72` by specifying + // `name != "standard-72"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "standard-72") + // (virtual_cpu_count > 2) + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "standard-96") AND + // (virtual_cpu_count > 2) OR + // (name = "standard-72") + // ``` + string filter = 4; +} + +// Response message for +// [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] +message ListNodeTypesResponse { + // A list of Node Types. + repeated NodeType node_types = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetNodeType][google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType] +message GetNodeTypeRequest { + // Required. The resource name of the node type to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NodeType" + } + ]; +} + +// Request message for +// [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials] +message ShowNsxCredentialsRequest { + // Required. The resource name of the private cloud + // to be queried for credentials. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; +} + +// Request message for +// [VmwareEngine.ShowVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials] +message ShowVcenterCredentialsRequest { + // Required. The resource name of the private cloud + // to be queried for credentials. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Optional. The username of the user to be queried for credentials. + // The default value of this field is CloudOwner@gve.local. + // The provided value must be one of the following: + // CloudOwner@gve.local, + // solution-user-01@gve.local, + // solution-user-02@gve.local, + // solution-user-03@gve.local, + // solution-user-04@gve.local, + // solution-user-05@gve.local, + // zertoadmin@gve.local. + string username = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.ResetNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials] +message ResetNsxCredentialsRequest { + // Required. The resource name of the private cloud + // to reset credentials for. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.ResetVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials] +message ResetVcenterCredentialsRequest { + // Required. The resource name of the private cloud + // to reset credentials for. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The username of the user to be to reset the credentials. + // The default value of this field is CloudOwner@gve.local. + // The provided value should be one of the following: + // solution-user-01@gve.local, + // solution-user-02@gve.local, + // solution-user-03@gve.local, + // solution-user-04@gve.local, + // solution-user-05@gve.local, + // zertoadmin@gve.local. + string username = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] +message ListHcxActivationKeysResponse { + // List of HCX activation keys. + repeated HcxActivationKey hcx_activation_keys = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. string next_page_token = 2; // Locations that could not be reached when making an aggregated query using @@ -1347,6 +2543,301 @@ message CreateHcxActivationKeyRequest { string request_id = 4; } +// Request message for +// [VmwareEngine.GetDnsForwarding][google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwarding] +message GetDnsForwardingRequest { + // Required. The resource name of a `DnsForwarding` to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/DnsForwarding" + } + ]; +} + +// Request message for +// [VmwareEngine.UpdateDnsForwarding][google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwarding] +message UpdateDnsForwardingRequest { + // Required. DnsForwarding config details. + DnsForwarding dns_forwarding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // `DnsForwarding` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.CreateNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeering] +message CreateNetworkPeeringRequest { + // Required. The resource name of the location to create the new network + // peering in. This value is always `global`, because `NetworkPeering` is a + // global resource. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. For + // example: `projects/my-project/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The user-provided identifier of the new `NetworkPeering`. + // This identifier must be unique among `NetworkPeering` resources within the + // parent and becomes the final token in the name URI. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string network_peering_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The initial description of the new network peering. + NetworkPeering network_peering = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.DeleteNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeering] +message DeleteNetworkPeeringRequest { + // Required. The resource name of the network peering to be deleted. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/global/networkPeerings/my-peering` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPeering" + } + ]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.GetNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeering] +message GetNetworkPeeringRequest { + // Required. The resource name of the network peering to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/global/networkPeerings/my-peering` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPeering" + } + ]; +} + +// Request message for +// [VmwareEngine.ListNetworkPeerings][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings] +message ListNetworkPeeringsRequest { + // Required. The resource name of the location (global) to query for + // network peerings. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. For + // example: `projects/my-project/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmwareengine.googleapis.com/NetworkPeering" + } + ]; + + // The maximum number of network peerings to return in one page. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListNetworkPeerings` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListNetworkPeerings` must match the call that provided the page + // token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of network peerings, you can + // exclude the ones named `example-peering` by specifying + // `name != "example-peering"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-peering") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-peering-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-peering-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results + // are ordered by `name` in ascending order. + // You can also sort results in descending order based on the `name` value + // using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Request message for +// [VmwareEngine.UpdateNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeering] +message UpdateNetworkPeeringRequest { + // Required. Network peering description. + NetworkPeering network_peering = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // `NetworkPeering` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [VmwareEngine.ListNetworkPeerings][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings] +message ListNetworkPeeringsResponse { + // A list of network peerings. + repeated NetworkPeering network_peerings = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.ListPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes] +message ListPeeringRoutesRequest { + // Required. The resource name of the network peering to retrieve peering + // routes from. Resource names are schemeless URIs that follow the conventions + // in https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/global/networkPeerings/my-peering` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPeering" + } + ]; + + // The maximum number of peering routes to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListPeeringRoutes` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListPeeringRoutes` must + // match the call that provided the page token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // Currently, only filtering on the `direction` field is supported. To return + // routes imported from the peer network, provide "direction=INCOMING". To + // return routes exported from the VMware Engine network, provide + // "direction=OUTGOING". Other filter expressions return an error. + string filter = 6; +} + +// Response message for +// [VmwareEngine.ListPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes] +message ListPeeringRoutesResponse { + // A list of peering routes. + repeated PeeringRoute peering_routes = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + // Request message for // [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies] message ListNetworkPoliciesRequest { @@ -1554,6 +3045,248 @@ message DeleteNetworkPolicyRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for +// [VmwareEngine.ListManagementDnsZoneBindings][google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings] +message ListManagementDnsZoneBindingsRequest { + // Required. The resource name of the private cloud to be queried for + // management DNS zone bindings. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of management DNS zone bindings to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListManagementDnsZoneBindings` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListManagementDnsZoneBindings` must match the call that provided the page + // token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of Management DNS Zone Bindings, + // you can exclude the ones named `example-management-dns-zone-binding` by + // specifying `name != "example-management-dns-zone-binding"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-management-dns-zone-binding") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-management-dns-zone-binding-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-management-dns-zone-binding-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results + // are ordered by `name` in ascending order. + // You can also sort results in descending order based on the `name` value + // using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Response message for +// [VmwareEngine.ListManagementDnsZoneBindings][google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings] +message ListManagementDnsZoneBindingsResponse { + // A list of management DNS zone bindings. + repeated ManagementDnsZoneBinding management_dns_zone_bindings = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBinding] +message GetManagementDnsZoneBindingRequest { + // Required. The resource name of the management DNS zone binding to + // retrieve. Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ManagementDnsZoneBinding" + } + ]; +} + +// Request message for [VmwareEngine.CreateManagementDnsZoneBindings][] +message CreateManagementDnsZoneBindingRequest { + // Required. The resource name of the private cloud + // to create a new management DNS zone binding for. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Required. The initial values for a new management DNS zone binding. + ManagementDnsZoneBinding management_dns_zone_binding = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `ManagementDnsZoneBinding` + // resource to be created. This identifier must be unique among + // `ManagementDnsZoneBinding` resources within the parent and becomes the + // final token in the name URI. The identifier must meet the following + // requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string management_dns_zone_binding_id = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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 the 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). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.UpdateManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBinding] +message UpdateManagementDnsZoneBindingRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `ManagementDnsZoneBinding` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. New values to update the management DNS zone binding with. + ManagementDnsZoneBinding management_dns_zone_binding = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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 the 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). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.DeleteManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBinding] +message DeleteManagementDnsZoneBindingRequest { + // Required. The resource name of the management DNS zone binding to delete. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ManagementDnsZoneBinding" + } + ]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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 the 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). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.RepairManagementDnsZoneBindings][] +message RepairManagementDnsZoneBindingRequest { + // Required. The resource name of the management DNS zone binding to repair. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ManagementDnsZoneBinding" + } + ]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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 the 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). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for // [VmwareEngine.CreateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork] message CreateVmwareEngineNetworkRequest { @@ -2013,3 +3746,96 @@ message ListPrivateConnectionPeeringRoutesResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for +// [VmwareEngine.GrantDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermission] +message GrantDnsBindPermissionRequest { + // Required. The name of the resource which stores the users/service accounts + // having the permission to bind to the corresponding intranet VPC of the + // consumer project. DnsBindPermission is a global resource. Resource names + // are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/global/dnsBindPermission` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/DnsBindPermission" + } + ]; + + // Required. The consumer provided user/service account which needs to be + // granted permission to bind with the intranet VPC corresponding to the + // consumer project. + Principal principal = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.RevokeDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermission] +message RevokeDnsBindPermissionRequest { + // Required. The name of the resource which stores the users/service accounts + // having the permission to bind to the corresponding intranet VPC of the + // consumer project. DnsBindPermission is a global resource. Resource names + // are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/global/dnsBindPermission` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/DnsBindPermission" + } + ]; + + // Required. The consumer provided user/service account which needs to be + // granted permission to bind with the intranet VPC corresponding to the + // consumer project. + Principal principal = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A 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. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // 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). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.GetDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermission] +message GetDnsBindPermissionRequest { + // Required. The name of the resource which stores the users/service accounts + // having the permission to bind to the corresponding intranet VPC of the + // consumer project. DnsBindPermission is a global resource. Resource names + // are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/global/dnsBindPermission` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/DnsBindPermission" + } + ]; +} diff --git a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto index 273a833719e..229db77923d 100644 --- a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto +++ b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto @@ -64,6 +64,12 @@ message NetworkConfig { // current features. int32 management_ip_address_layout_version = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DNS Server IP of the Private Cloud. + // All DNS queries can be forwarded to this address for name resolution of + // Private Cloud's management entities like vCenter, NSX-T Manager and + // ESXi hosts. + string dns_server_ip = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Information about the type and number of nodes associated with the cluster. @@ -78,7 +84,36 @@ message NodeTypeConfig { int32 custom_core_count = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Represents a private cloud resource. Private clouds are zonal resources. +// Configuration of a stretched cluster. +message StretchedClusterConfig { + // Required. Zone that will remain operational when connection between the two + // zones is lost. Specify the resource name of a zone that belongs to the + // region of the private cloud. For example: + // `projects/{project}/locations/europe-west3-a` where `{project}` can either + // be a project number or a project ID. + string preferred_location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. Additional zone for a higher level of availability and load + // balancing. Specify the resource name of a zone that belongs to the region + // of the private cloud. For example: + // `projects/{project}/locations/europe-west3-b` where `{project}` can either + // be a project number or a project ID. + string secondary_location = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; +} + +// Represents a private cloud resource. Private clouds of type `STANDARD` and +// `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are +// regional. message PrivateCloud { option (google.api.resource) = { type: "vmwareengine.googleapis.com/PrivateCloud" @@ -128,6 +163,11 @@ message PrivateCloud { // canonical identifier of the node type (corresponds to the `NodeType`). map node_type_configs = 7 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration of a stretched cluster. Required for STRETCHED + // private clouds. + StretchedClusterConfig stretched_cluster_config = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Enum Type defines private cloud type. @@ -140,6 +180,10 @@ message PrivateCloud { // can be converted into standard private cloud by expanding it up to 3 // or more nodes. TIME_LIMITED = 1; + + // Stretched private cloud is a regional resource with redundancy, + // with a minimum of 6 nodes, nodes count has to be even. + STRETCHED = 2; } // Output only. The resource name of this private cloud. @@ -262,6 +306,122 @@ message Cluster { // canonical identifier of the node type (corresponds to the `NodeType`). map node_type_configs = 16 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration of a stretched cluster. Required for clusters that + // belong to a STRETCHED private cloud. + StretchedClusterConfig stretched_cluster_config = 17 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Node in a cluster. +message Node { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/Node" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}" + }; + + // Enum State defines possible states of a node in a cluster. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // Node is operational and can be used by the user. + ACTIVE = 1; + + // Node is being provisioned. + CREATING = 2; + + // Node is in a failed state. + FAILED = 3; + + // Node is undergoing maintenance, e.g.: during private cloud upgrade. + UPGRADING = 4; + } + + // Output only. The resource name of this node. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster/nodes/my-node + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Fully qualified domain name of the node. + string fqdn = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Internal IP address of the node. + string internal_ip = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The canonical identifier of the node type (corresponds to the + // `NodeType`). + // For example: standard-72. + string node_type_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The version number of the VMware ESXi + // management component in this cluster. + string version = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Customized number of cores + int64 custom_core_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the appliance. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents an allocated external IP address and its corresponding internal IP +// address in a private cloud. +message ExternalAddress { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/ExternalAddress" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}" + }; + + // Enum State defines possible states of external addresses. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The address is ready. + ACTIVE = 1; + + // The address is being created. + CREATING = 2; + + // The address is being updated. + UPDATING = 3; + + // The address is being deleted. + DELETING = 4; + } + + // Output only. The resource name of this external IP address. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The internal IP address of a workload VM. + string internal_ip = 6; + + // Output only. The external IP address of a workload VM. + string external_ip = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the resource. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-provided description for this resource. + string description = 11; } // Subnet in a private cloud. Either `management` subnets (such as vMotion) that @@ -317,6 +477,207 @@ message Subnet { // Output only. The state of the resource. State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. VLAN ID of the VLAN on which the subnet is configured + int32 vlan_id = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// External access firewall rules for filtering incoming traffic destined to +// `ExternalAddress` resources. +message ExternalAccessRule { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/ExternalAccessRule" + pattern: "projects/{project}/locations/{location}/networkPolicies/{network_policy}/externalAccessRules/{external_access_rule}" + }; + + // Action determines whether the external access rule permits or blocks + // traffic, subject to the other components of the rule matching the traffic. + enum Action { + // Defaults to allow. + ACTION_UNSPECIFIED = 0; + + // Allows connections that match the other specified components. + ALLOW = 1; + + // Blocks connections that match the other specified components. + DENY = 2; + } + + // An IP range provided in any one of the supported formats. + message IpRange { + oneof ip_range { + // A single IP address. For example: `10.0.0.5`. + string ip_address = 1; + + // An IP address range in the CIDR format. For example: `10.0.0.0/24`. + string ip_address_range = 2; + + // The name of an `ExternalAddress` resource. The external address must + // have been reserved in the scope of this external access rule's parent + // network policy. Provide the external address name in the form of + // `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`. + string external_address = 3 [(google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ExternalAddress" + }]; + } + } + + // Defines possible states of external access firewall rules. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // The rule is ready. + ACTIVE = 1; + + // The rule is being created. + CREATING = 2; + + // The rule is being updated. + UPDATING = 3; + + // The rule is being deleted. + DELETING = 4; + } + + // Output only. The resource name of this external access rule. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-provided description for this external access rule. + string description = 5; + + // External access rule priority, which determines the external access rule to + // use when multiple rules apply. If multiple rules have the same priority, + // their ordering is non-deterministic. If specific ordering is required, + // assign unique priorities to enforce such ordering. The external access rule + // priority is an integer from 100 to 4096, both inclusive. Lower integers + // indicate higher precedence. For example, a rule with priority `100` has + // higher precedence than a rule with priority `101`. + int32 priority = 6; + + // The action that the external access rule performs. + Action action = 7; + + // The IP protocol to which the external access rule applies. This value can + // be one of the following three protocol strings (not case-sensitive): + // `tcp`, `udp`, or `icmp`. + string ip_protocol = 8; + + // If source ranges are specified, the external access rule applies only to + // traffic that has a source IP address in these ranges. These ranges can + // either be expressed in the CIDR format or as an IP address. As only inbound + // rules are supported, `ExternalAddress` resources cannot be the source IP + // addresses of an external access rule. To match all source addresses, + // specify `0.0.0.0/0`. + repeated IpRange source_ip_ranges = 9; + + // A list of source ports to which the external access rule applies. This + // field is only applicable for the UDP or TCP protocol. + // Each entry must be either an integer or a range. For example: `["22"]`, + // `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify + // `["0-65535"]`. + repeated string source_ports = 10; + + // If destination ranges are specified, the external access rule applies only + // to the traffic that has a destination IP address in these ranges. The + // specified IP addresses must have reserved external IP addresses in the + // scope of the parent network policy. To match all external IP addresses in + // the scope of the parent network policy, specify `0.0.0.0/0`. To match a + // specific external IP address, specify it using the + // `IpRange.external_address` property. + repeated IpRange destination_ip_ranges = 11; + + // A list of destination ports to which the external access rule applies. This + // field is only applicable for the UDP or TCP protocol. + // Each entry must be either an integer or a range. For example: `["22"]`, + // `["80","443"]`, or `["12345-12349"]`. To match all destination ports, + // specify `["0-65535"]`. + repeated string destination_ports = 12; + + // Output only. The state of the resource. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Logging server to receive vCenter or ESXi logs. +message LoggingServer { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/LoggingServer" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/loggingServers/{logging_server}" + }; + + // Defines possible protocols used to send logs to + // a logging server. + enum Protocol { + // Unspecified communications protocol. This is the default value. + PROTOCOL_UNSPECIFIED = 0; + + // UDP + UDP = 1; + + // TCP + TCP = 2; + } + + // Defines possible types of component that produces logs. + enum SourceType { + // The default value. This value should never be used. + SOURCE_TYPE_UNSPECIFIED = 0; + + // Logs produced by ESXI hosts + ESXI = 1; + + // Logs produced by vCenter server + VCSA = 2; + } + + // Output only. The resource name of this logging server. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Fully-qualified domain name (FQDN) or IP Address of the logging + // server. + string hostname = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Port number at which the logging server receives logs. + int32 port = 7 [(google.api.field_behavior) = REQUIRED]; + + // Required. Protocol used by vCenter to send logs to a logging server. + Protocol protocol = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. The type of component that produces logs that will be forwarded + // to this logging server. + SourceType source_type = 10 [(google.api.field_behavior) = REQUIRED]; + + // Output only. System-generated unique identifier for the resource. + string uid = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Describes node type. @@ -326,6 +687,28 @@ message NodeType { pattern: "projects/{project}/locations/{location}/nodeTypes/{node_type}" }; + // Enum Kind defines possible types of a NodeType. + enum Kind { + // The default value. This value should never be used. + KIND_UNSPECIFIED = 0; + + // Standard HCI node. + STANDARD = 1; + + // Storage only Node. + STORAGE_ONLY = 2; + } + + // Capability of a node type. + enum Capability { + // The default value. This value is used if the capability is omitted or + // unknown. + CAPABILITY_UNSPECIFIED = 0; + + // This node type supports stretch clusters. + STRETCHED_CLUSTERS = 1; + } + // Output only. The resource name of this node type. // Resource names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. @@ -356,6 +739,18 @@ message NodeType { // Output only. List of possible values of custom core count. repeated int32 available_custom_core_counts = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the resource. + Kind kind = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Families of the node type. + // For node types to be in the same cluster + // they must share at least one element in the `families`. + repeated string families = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Capabilities of this node type. + repeated Capability capabilities = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Credentials for a private cloud. @@ -498,6 +893,195 @@ message Vcenter { string fqdn = 6; } +// DNS forwarding config. +// This config defines a list of domain to name server mappings, +// and is attached to the private cloud for custom domain resolution. +message DnsForwarding { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/DnsForwarding" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/dnsForwarding" + }; + + // A forwarding rule is a mapping of a `domain` to `name_servers`. + // This mapping allows VMware Engine to resolve domains for attached private + // clouds by forwarding DNS requests for a given domain to the specified + // nameservers. + message ForwardingRule { + // Required. Domain used to resolve a `name_servers` list. + string domain = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of DNS servers to use for domain resolution + repeated string name_servers = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Output only. The resource name of this DNS profile. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. List of domain mappings to configure + repeated ForwardingRule forwarding_rules = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// Details of a network peering. +message NetworkPeering { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/NetworkPeering" + pattern: "projects/{project}/locations/{location}/networkPeerings/{network_peering}" + }; + + // Possible states of a network peering. + enum State { + // Unspecified network peering state. This is the default value. + STATE_UNSPECIFIED = 0; + + // The peering is not active. + INACTIVE = 1; + + // The peering is active. + ACTIVE = 2; + + // The peering is being created. + CREATING = 3; + + // The peering is being deleted. + DELETING = 4; + } + + // Type or purpose of the network peering connection. + enum PeerNetworkType { + // Unspecified + PEER_NETWORK_TYPE_UNSPECIFIED = 0; + + // Peering connection used for connecting to another VPC network established + // by the same user. For example, a peering connection to another VPC + // network in the same project or to an on-premises network. + STANDARD = 1; + + // Peering connection used for connecting to another VMware Engine network. + VMWARE_ENGINE_NETWORK = 2; + + // Peering connection used for establishing [private services + // access](https://cloud.google.com/vpc/docs/private-services-access). + PRIVATE_SERVICES_ACCESS = 3; + + // Peering connection used for connecting to NetApp Cloud Volumes. + NETAPP_CLOUD_VOLUMES = 4; + + // Peering connection used for connecting to third-party services. Most + // third-party services require manual setup of reverse peering on the VPC + // network associated with the third-party service. + THIRD_PARTY_SERVICE = 5; + + // Peering connection used for connecting to Dell PowerScale Filers + DELL_POWERSCALE = 6; + } + + // Output only. The resource name of the network peering. NetworkPeering is a + // global resource and location can only be global. Resource names are + // scheme-less URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/global/networkPeerings/my-peering` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The relative resource name of the network to peer with + // a standard VMware Engine network. The provided network can be a + // consumer VPC network or another standard VMware Engine network. If the + // `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form: + // `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`. + // Otherwise specify the name in the form: + // `projects/{project}/global/networks/{network_id}`, where + // `{project}` can either be a project number or a project ID. + string peer_network = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. True if custom routes are exported to the peered network; + // false otherwise. The default value is true. + optional bool export_custom_routes = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if custom routes are imported from the peered network; + // false otherwise. The default value is true. + optional bool import_custom_routes = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if full mesh connectivity is created and managed + // automatically between peered networks; false otherwise. Currently this + // field is always true because Google Compute Engine automatically creates + // and manages subnetwork routes between two VPC networks when peering state + // is 'ACTIVE'. + optional bool exchange_subnet_routes = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if all subnet routes with a public IP address range are + // exported; false otherwise. The default value is true. IPv4 special-use + // ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always + // exported to peers and are not controlled by this field. + optional bool export_custom_routes_with_public_ip = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if all subnet routes with public IP address range are + // imported; false otherwise. The default value is true. IPv4 special-use + // ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always + // imported to peers and are not controlled by this field. + optional bool import_custom_routes_with_public_ip = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the network peering. This field + // has a value of 'ACTIVE' when there's a matching configuration in the peer + // network. New values may be added to this enum when appropriate. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Output Only. Details about the current state of the network + // peering. + string state_details = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Maximum transmission unit (MTU) in bytes. + // The default value is `1500`. If a value of `0` is provided for this field, + // VMware Engine uses the default value instead. + int32 peer_mtu = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The type of the network to peer with the VMware Engine network. + PeerNetworkType peer_network_type = 16 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. System-generated unique identifier for the resource. + string uid = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The relative resource name of the VMware Engine network. + // Specify the name in the following form: + // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + // where `{project}` can either be a project number or a project ID. + string vmware_engine_network = 20 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Optional. User-provided description for this network peering. + string description = 21 [(google.api.field_behavior) = OPTIONAL]; +} + // Exchanged network peering route. message PeeringRoute { // The type of the peering route. @@ -655,6 +1239,85 @@ message NetworkPolicy { ]; } +// Represents a binding between a network and the management DNS zone. +// A management DNS zone is the Cloud DNS cross-project binding zone that +// VMware Engine creates for each private cloud. It contains FQDNs and +// corresponding IP addresses for the private cloud's ESXi hosts and management +// VM appliances like vCenter and NSX Manager. +message ManagementDnsZoneBinding { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/ManagementDnsZoneBinding" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/managementDnsZoneBindings/{management_dns_zone_binding}" + }; + + // Enum State defines possible states of binding between the consumer VPC + // network and the management DNS zone. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The binding is ready. + ACTIVE = 1; + + // The binding is being created. + CREATING = 2; + + // The binding is being updated. + UPDATING = 3; + + // The binding is being deleted. + DELETING = 4; + + // The binding has failed. + FAILED = 5; + } + + // Output only. The resource name of this binding. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the resource. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-provided description for this resource. + string description = 13; + + // Required. The relative resource name of the network to bind to the + // management DNS zone. This network can be a consumer VPC network or a + // VMware engine network. + oneof bind_network { + // Network to bind is a standard consumer VPC. + // Specify the name in the following form for consumer + // VPC network: `projects/{project}/global/networks/{network_id}`. + // `{project}` can either be a project number or a project ID. + string vpc_network = 14 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + }]; + + // Network to bind is a VMware Engine network. + // Specify the name in the following form for VMware engine network: + // `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`. + // `{project}` can either be a project number or a project ID. + string vmware_engine_network = 15 [(google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + }]; + } + + // Output only. System-generated unique identifier for the resource. + string uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // VMware Engine network resource that provides connectivity for VMware Engine // private clouds. message VmwareEngineNetwork { @@ -728,6 +1391,9 @@ message VmwareEngineNetwork { // of type `STANDARD`. This network type is no longer used for new VMware // Engine private cloud deployments. LEGACY = 1; + + // Standard network type used for private cloud connectivity. + STANDARD = 2; } // Output only. The resource name of the VMware Engine network. @@ -929,3 +1595,59 @@ message PrivateConnection { // network. PeeringState peering_state = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// VmwareEngine specific metadata for the given +// [google.cloud.location.Location][google.cloud.location.Location]. It is +// returned as a content of the `google.cloud.location.Location.metadata` field. +message LocationMetadata { + // Capability of a location. + enum Capability { + // The default value. This value is used if the capability is omitted or + // unknown. + CAPABILITY_UNSPECIFIED = 0; + + // Stretch clusters are supported in this location. + STRETCHED_CLUSTERS = 1; + } + + // Output only. Capabilities of this location. + repeated Capability capabilities = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// DnsBindPermission resource that contains the accounts having the consumer DNS +// bind permission on the corresponding intranet VPC of the consumer project. +message DnsBindPermission { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/DnsBindPermission" + pattern: "projects/{project}/locations/{location}/dnsBindPermission" + }; + + // Required. Output only. The name of the resource which stores the + // users/service accounts having the permission to bind to the corresponding + // intranet VPC of the consumer project. DnsBindPermission is a global + // resource and location can only be global. Resource names are schemeless + // URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/global/dnsBindPermission` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Users/Service accounts which have access for binding on the + // intranet VPC project corresponding to the consumer project. + repeated Principal principals = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Users/Service accounts which have access for DNS binding on the intranet +// VPC corresponding to the consumer project. +message Principal { + // The consumer provided user/service account which needs to be + // granted permission to DNS bind with the intranet VPC corresponding to the + // consumer project. + oneof principal { + // The user who needs to be granted permission. + string user = 1; + + // The service account which needs to be granted the permission. + string service_account = 2; + } +} diff --git a/packages/google-cloud-vmwareengine/protos/protos.d.ts b/packages/google-cloud-vmwareengine/protos/protos.d.ts index 258961d3406..28d6e30fd50 100644 --- a/packages/google-cloud-vmwareengine/protos/protos.d.ts +++ b/packages/google-cloud-vmwareengine/protos/protos.d.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -200,6 +200,118 @@ export namespace google { */ public deleteCluster(request: google.cloud.vmwareengine.v1.IDeleteClusterRequest): Promise; + /** + * Calls ListNodes. + * @param request ListNodesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNodesResponse + */ + public listNodes(request: google.cloud.vmwareengine.v1.IListNodesRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListNodesCallback): void; + + /** + * Calls ListNodes. + * @param request ListNodesRequest message or plain object + * @returns Promise + */ + public listNodes(request: google.cloud.vmwareengine.v1.IListNodesRequest): Promise; + + /** + * Calls GetNode. + * @param request GetNodeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Node + */ + public getNode(request: google.cloud.vmwareengine.v1.IGetNodeRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetNodeCallback): void; + + /** + * Calls GetNode. + * @param request GetNodeRequest message or plain object + * @returns Promise + */ + public getNode(request: google.cloud.vmwareengine.v1.IGetNodeRequest): Promise; + + /** + * Calls ListExternalAddresses. + * @param request ListExternalAddressesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExternalAddressesResponse + */ + public listExternalAddresses(request: google.cloud.vmwareengine.v1.IListExternalAddressesRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddressesCallback): void; + + /** + * Calls ListExternalAddresses. + * @param request ListExternalAddressesRequest message or plain object + * @returns Promise + */ + public listExternalAddresses(request: google.cloud.vmwareengine.v1.IListExternalAddressesRequest): Promise; + + /** + * Calls FetchNetworkPolicyExternalAddresses. + * @param request FetchNetworkPolicyExternalAddressesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FetchNetworkPolicyExternalAddressesResponse + */ + public fetchNetworkPolicyExternalAddresses(request: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddressesCallback): void; + + /** + * Calls FetchNetworkPolicyExternalAddresses. + * @param request FetchNetworkPolicyExternalAddressesRequest message or plain object + * @returns Promise + */ + public fetchNetworkPolicyExternalAddresses(request: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest): Promise; + + /** + * Calls GetExternalAddress. + * @param request GetExternalAddressRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExternalAddress + */ + public getExternalAddress(request: google.cloud.vmwareengine.v1.IGetExternalAddressRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddressCallback): void; + + /** + * Calls GetExternalAddress. + * @param request GetExternalAddressRequest message or plain object + * @returns Promise + */ + public getExternalAddress(request: google.cloud.vmwareengine.v1.IGetExternalAddressRequest): Promise; + + /** + * Calls CreateExternalAddress. + * @param request CreateExternalAddressRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createExternalAddress(request: google.cloud.vmwareengine.v1.ICreateExternalAddressRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddressCallback): void; + + /** + * Calls CreateExternalAddress. + * @param request CreateExternalAddressRequest message or plain object + * @returns Promise + */ + public createExternalAddress(request: google.cloud.vmwareengine.v1.ICreateExternalAddressRequest): Promise; + + /** + * Calls UpdateExternalAddress. + * @param request UpdateExternalAddressRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateExternalAddress(request: google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddressCallback): void; + + /** + * Calls UpdateExternalAddress. + * @param request UpdateExternalAddressRequest message or plain object + * @returns Promise + */ + public updateExternalAddress(request: google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest): Promise; + + /** + * Calls DeleteExternalAddress. + * @param request DeleteExternalAddressRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteExternalAddress(request: google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddressCallback): void; + + /** + * Calls DeleteExternalAddress. + * @param request DeleteExternalAddressRequest message or plain object + * @returns Promise + */ + public deleteExternalAddress(request: google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest): Promise; + /** * Calls ListSubnets. * @param request ListSubnetsRequest message or plain object @@ -242,6 +354,146 @@ export namespace google { */ public updateSubnet(request: google.cloud.vmwareengine.v1.IUpdateSubnetRequest): Promise; + /** + * Calls ListExternalAccessRules. + * @param request ListExternalAccessRulesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExternalAccessRulesResponse + */ + public listExternalAccessRules(request: google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRulesCallback): void; + + /** + * Calls ListExternalAccessRules. + * @param request ListExternalAccessRulesRequest message or plain object + * @returns Promise + */ + public listExternalAccessRules(request: google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest): Promise; + + /** + * Calls GetExternalAccessRule. + * @param request GetExternalAccessRuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExternalAccessRule + */ + public getExternalAccessRule(request: google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRuleCallback): void; + + /** + * Calls GetExternalAccessRule. + * @param request GetExternalAccessRuleRequest message or plain object + * @returns Promise + */ + public getExternalAccessRule(request: google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest): Promise; + + /** + * Calls CreateExternalAccessRule. + * @param request CreateExternalAccessRuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createExternalAccessRule(request: google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRuleCallback): void; + + /** + * Calls CreateExternalAccessRule. + * @param request CreateExternalAccessRuleRequest message or plain object + * @returns Promise + */ + public createExternalAccessRule(request: google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest): Promise; + + /** + * Calls UpdateExternalAccessRule. + * @param request UpdateExternalAccessRuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateExternalAccessRule(request: google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRuleCallback): void; + + /** + * Calls UpdateExternalAccessRule. + * @param request UpdateExternalAccessRuleRequest message or plain object + * @returns Promise + */ + public updateExternalAccessRule(request: google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest): Promise; + + /** + * Calls DeleteExternalAccessRule. + * @param request DeleteExternalAccessRuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteExternalAccessRule(request: google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRuleCallback): void; + + /** + * Calls DeleteExternalAccessRule. + * @param request DeleteExternalAccessRuleRequest message or plain object + * @returns Promise + */ + public deleteExternalAccessRule(request: google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest): Promise; + + /** + * Calls ListLoggingServers. + * @param request ListLoggingServersRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListLoggingServersResponse + */ + public listLoggingServers(request: google.cloud.vmwareengine.v1.IListLoggingServersRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServersCallback): void; + + /** + * Calls ListLoggingServers. + * @param request ListLoggingServersRequest message or plain object + * @returns Promise + */ + public listLoggingServers(request: google.cloud.vmwareengine.v1.IListLoggingServersRequest): Promise; + + /** + * Calls GetLoggingServer. + * @param request GetLoggingServerRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LoggingServer + */ + public getLoggingServer(request: google.cloud.vmwareengine.v1.IGetLoggingServerRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServerCallback): void; + + /** + * Calls GetLoggingServer. + * @param request GetLoggingServerRequest message or plain object + * @returns Promise + */ + public getLoggingServer(request: google.cloud.vmwareengine.v1.IGetLoggingServerRequest): Promise; + + /** + * Calls CreateLoggingServer. + * @param request CreateLoggingServerRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createLoggingServer(request: google.cloud.vmwareengine.v1.ICreateLoggingServerRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServerCallback): void; + + /** + * Calls CreateLoggingServer. + * @param request CreateLoggingServerRequest message or plain object + * @returns Promise + */ + public createLoggingServer(request: google.cloud.vmwareengine.v1.ICreateLoggingServerRequest): Promise; + + /** + * Calls UpdateLoggingServer. + * @param request UpdateLoggingServerRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateLoggingServer(request: google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServerCallback): void; + + /** + * Calls UpdateLoggingServer. + * @param request UpdateLoggingServerRequest message or plain object + * @returns Promise + */ + public updateLoggingServer(request: google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest): Promise; + + /** + * Calls DeleteLoggingServer. + * @param request DeleteLoggingServerRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteLoggingServer(request: google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServerCallback): void; + + /** + * Calls DeleteLoggingServer. + * @param request DeleteLoggingServerRequest message or plain object + * @returns Promise + */ + public deleteLoggingServer(request: google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest): Promise; + /** * Calls ListNodeTypes. * @param request ListNodeTypesRequest message or plain object @@ -326,6 +578,118 @@ export namespace google { */ public resetVcenterCredentials(request: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest): Promise; + /** + * Calls GetDnsForwarding. + * @param request GetDnsForwardingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DnsForwarding + */ + public getDnsForwarding(request: google.cloud.vmwareengine.v1.IGetDnsForwardingRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwardingCallback): void; + + /** + * Calls GetDnsForwarding. + * @param request GetDnsForwardingRequest message or plain object + * @returns Promise + */ + public getDnsForwarding(request: google.cloud.vmwareengine.v1.IGetDnsForwardingRequest): Promise; + + /** + * Calls UpdateDnsForwarding. + * @param request UpdateDnsForwardingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateDnsForwarding(request: google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwardingCallback): void; + + /** + * Calls UpdateDnsForwarding. + * @param request UpdateDnsForwardingRequest message or plain object + * @returns Promise + */ + public updateDnsForwarding(request: google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest): Promise; + + /** + * Calls GetNetworkPeering. + * @param request GetNetworkPeeringRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NetworkPeering + */ + public getNetworkPeering(request: google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeeringCallback): void; + + /** + * Calls GetNetworkPeering. + * @param request GetNetworkPeeringRequest message or plain object + * @returns Promise + */ + public getNetworkPeering(request: google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest): Promise; + + /** + * Calls ListNetworkPeerings. + * @param request ListNetworkPeeringsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNetworkPeeringsResponse + */ + public listNetworkPeerings(request: google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeeringsCallback): void; + + /** + * Calls ListNetworkPeerings. + * @param request ListNetworkPeeringsRequest message or plain object + * @returns Promise + */ + public listNetworkPeerings(request: google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest): Promise; + + /** + * Calls CreateNetworkPeering. + * @param request CreateNetworkPeeringRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createNetworkPeering(request: google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeeringCallback): void; + + /** + * Calls CreateNetworkPeering. + * @param request CreateNetworkPeeringRequest message or plain object + * @returns Promise + */ + public createNetworkPeering(request: google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest): Promise; + + /** + * Calls DeleteNetworkPeering. + * @param request DeleteNetworkPeeringRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteNetworkPeering(request: google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeeringCallback): void; + + /** + * Calls DeleteNetworkPeering. + * @param request DeleteNetworkPeeringRequest message or plain object + * @returns Promise + */ + public deleteNetworkPeering(request: google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest): Promise; + + /** + * Calls UpdateNetworkPeering. + * @param request UpdateNetworkPeeringRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateNetworkPeering(request: google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeeringCallback): void; + + /** + * Calls UpdateNetworkPeering. + * @param request UpdateNetworkPeeringRequest message or plain object + * @returns Promise + */ + public updateNetworkPeering(request: google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest): Promise; + + /** + * Calls ListPeeringRoutes. + * @param request ListPeeringRoutesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPeeringRoutesResponse + */ + public listPeeringRoutes(request: google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutesCallback): void; + + /** + * Calls ListPeeringRoutes. + * @param request ListPeeringRoutesRequest message or plain object + * @returns Promise + */ + public listPeeringRoutes(request: google.cloud.vmwareengine.v1.IListPeeringRoutesRequest): Promise; + /** * Calls CreateHcxActivationKey. * @param request CreateHcxActivationKeyRequest message or plain object @@ -438,6 +802,90 @@ export namespace google { */ public deleteNetworkPolicy(request: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest): Promise; + /** + * Calls ListManagementDnsZoneBindings. + * @param request ListManagementDnsZoneBindingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListManagementDnsZoneBindingsResponse + */ + public listManagementDnsZoneBindings(request: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindingsCallback): void; + + /** + * Calls ListManagementDnsZoneBindings. + * @param request ListManagementDnsZoneBindingsRequest message or plain object + * @returns Promise + */ + public listManagementDnsZoneBindings(request: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest): Promise; + + /** + * Calls GetManagementDnsZoneBinding. + * @param request GetManagementDnsZoneBindingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ManagementDnsZoneBinding + */ + public getManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBindingCallback): void; + + /** + * Calls GetManagementDnsZoneBinding. + * @param request GetManagementDnsZoneBindingRequest message or plain object + * @returns Promise + */ + public getManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest): Promise; + + /** + * Calls CreateManagementDnsZoneBinding. + * @param request CreateManagementDnsZoneBindingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateManagementDnsZoneBindingCallback): void; + + /** + * Calls CreateManagementDnsZoneBinding. + * @param request CreateManagementDnsZoneBindingRequest message or plain object + * @returns Promise + */ + public createManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest): Promise; + + /** + * Calls UpdateManagementDnsZoneBinding. + * @param request UpdateManagementDnsZoneBindingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBindingCallback): void; + + /** + * Calls UpdateManagementDnsZoneBinding. + * @param request UpdateManagementDnsZoneBindingRequest message or plain object + * @returns Promise + */ + public updateManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest): Promise; + + /** + * Calls DeleteManagementDnsZoneBinding. + * @param request DeleteManagementDnsZoneBindingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBindingCallback): void; + + /** + * Calls DeleteManagementDnsZoneBinding. + * @param request DeleteManagementDnsZoneBindingRequest message or plain object + * @returns Promise + */ + public deleteManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest): Promise; + + /** + * Calls RepairManagementDnsZoneBinding. + * @param request RepairManagementDnsZoneBindingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public repairManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.RepairManagementDnsZoneBindingCallback): void; + + /** + * Calls RepairManagementDnsZoneBinding. + * @param request RepairManagementDnsZoneBindingRequest message or plain object + * @returns Promise + */ + public repairManagementDnsZoneBinding(request: google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest): Promise; + /** * Calls CreateVmwareEngineNetwork. * @param request CreateVmwareEngineNetworkRequest message or plain object @@ -591,26 +1039,68 @@ export namespace google { * @returns Promise */ public listPrivateConnectionPeeringRoutes(request: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest): Promise; - } - namespace VmwareEngine { + /** + * Calls GrantDnsBindPermission. + * @param request GrantDnsBindPermissionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public grantDnsBindPermission(request: google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermissionCallback): void; /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPrivateClouds}. - * @param error Error, if any - * @param [response] ListPrivateCloudsResponse + * Calls GrantDnsBindPermission. + * @param request GrantDnsBindPermissionRequest message or plain object + * @returns Promise */ - type ListPrivateCloudsCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) => void; + public grantDnsBindPermission(request: google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest): Promise; /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getPrivateCloud}. - * @param error Error, if any - * @param [response] PrivateCloud + * Calls GetDnsBindPermission. + * @param request GetDnsBindPermissionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DnsBindPermission */ - type GetPrivateCloudCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.PrivateCloud) => void; + public getDnsBindPermission(request: google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermissionCallback): void; /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createPrivateCloud}. + * Calls GetDnsBindPermission. + * @param request GetDnsBindPermissionRequest message or plain object + * @returns Promise + */ + public getDnsBindPermission(request: google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest): Promise; + + /** + * Calls RevokeDnsBindPermission. + * @param request RevokeDnsBindPermissionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public revokeDnsBindPermission(request: google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermissionCallback): void; + + /** + * Calls RevokeDnsBindPermission. + * @param request RevokeDnsBindPermissionRequest message or plain object + * @returns Promise + */ + public revokeDnsBindPermission(request: google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest): Promise; + } + + namespace VmwareEngine { + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPrivateClouds}. + * @param error Error, if any + * @param [response] ListPrivateCloudsResponse + */ + type ListPrivateCloudsCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getPrivateCloud}. + * @param error Error, if any + * @param [response] PrivateCloud + */ + type GetPrivateCloudCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.PrivateCloud) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createPrivateCloud}. * @param error Error, if any * @param [response] Operation */ @@ -672,6 +1162,62 @@ export namespace google { */ type DeleteClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNodes}. + * @param error Error, if any + * @param [response] ListNodesResponse + */ + type ListNodesCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListNodesResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNode}. + * @param error Error, if any + * @param [response] Node + */ + type GetNodeCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.Node) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listExternalAddresses}. + * @param error Error, if any + * @param [response] ListExternalAddressesResponse + */ + type ListExternalAddressesCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListExternalAddressesResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|fetchNetworkPolicyExternalAddresses}. + * @param error Error, if any + * @param [response] FetchNetworkPolicyExternalAddressesResponse + */ + type FetchNetworkPolicyExternalAddressesCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getExternalAddress}. + * @param error Error, if any + * @param [response] ExternalAddress + */ + type GetExternalAddressCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ExternalAddress) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createExternalAddress}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateExternalAddressCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateExternalAddress}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateExternalAddressCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteExternalAddress}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteExternalAddressCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listSubnets}. * @param error Error, if any @@ -693,6 +1239,76 @@ export namespace google { */ type UpdateSubnetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listExternalAccessRules}. + * @param error Error, if any + * @param [response] ListExternalAccessRulesResponse + */ + type ListExternalAccessRulesCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getExternalAccessRule}. + * @param error Error, if any + * @param [response] ExternalAccessRule + */ + type GetExternalAccessRuleCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ExternalAccessRule) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createExternalAccessRule}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateExternalAccessRuleCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateExternalAccessRule}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateExternalAccessRuleCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteExternalAccessRule}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteExternalAccessRuleCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listLoggingServers}. + * @param error Error, if any + * @param [response] ListLoggingServersResponse + */ + type ListLoggingServersCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListLoggingServersResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getLoggingServer}. + * @param error Error, if any + * @param [response] LoggingServer + */ + type GetLoggingServerCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.LoggingServer) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createLoggingServer}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateLoggingServerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateLoggingServer}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateLoggingServerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteLoggingServer}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteLoggingServerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNodeTypes}. * @param error Error, if any @@ -735,6 +1351,62 @@ export namespace google { */ type ResetVcenterCredentialsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getDnsForwarding}. + * @param error Error, if any + * @param [response] DnsForwarding + */ + type GetDnsForwardingCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.DnsForwarding) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateDnsForwarding}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateDnsForwardingCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNetworkPeering}. + * @param error Error, if any + * @param [response] NetworkPeering + */ + type GetNetworkPeeringCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.NetworkPeering) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNetworkPeerings}. + * @param error Error, if any + * @param [response] ListNetworkPeeringsResponse + */ + type ListNetworkPeeringsCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createNetworkPeering}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateNetworkPeeringCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteNetworkPeering}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteNetworkPeeringCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateNetworkPeering}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateNetworkPeeringCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPeeringRoutes}. + * @param error Error, if any + * @param [response] ListPeeringRoutesResponse + */ + type ListPeeringRoutesCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListPeeringRoutesResponse) => void; + /** * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createHcxActivationKey}. * @param error Error, if any @@ -791,6 +1463,48 @@ export namespace google { */ type DeleteNetworkPolicyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listManagementDnsZoneBindings}. + * @param error Error, if any + * @param [response] ListManagementDnsZoneBindingsResponse + */ + type ListManagementDnsZoneBindingsCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getManagementDnsZoneBinding}. + * @param error Error, if any + * @param [response] ManagementDnsZoneBinding + */ + type GetManagementDnsZoneBindingCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ManagementDnsZoneBinding) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createManagementDnsZoneBinding}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateManagementDnsZoneBindingCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateManagementDnsZoneBinding}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateManagementDnsZoneBindingCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteManagementDnsZoneBinding}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteManagementDnsZoneBindingCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|repairManagementDnsZoneBinding}. + * @param error Error, if any + * @param [response] Operation + */ + type RepairManagementDnsZoneBindingCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createVmwareEngineNetwork}. * @param error Error, if any @@ -867,6 +1581,27 @@ export namespace google { * @param [response] ListPrivateConnectionPeeringRoutesResponse */ type ListPrivateConnectionPeeringRoutesCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|grantDnsBindPermission}. + * @param error Error, if any + * @param [response] Operation + */ + type GrantDnsBindPermissionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getDnsBindPermission}. + * @param error Error, if any + * @param [response] DnsBindPermission + */ + type GetDnsBindPermissionCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.DnsBindPermission) => void; + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|revokeDnsBindPermission}. + * @param error Error, if any + * @param [response] Operation + */ + type RevokeDnsBindPermissionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } /** Properties of a ListPrivateCloudsRequest. */ @@ -2313,9647 +3048,15551 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSubnetsRequest. */ - interface IListSubnetsRequest { + /** Properties of a ListNodesRequest. */ + interface IListNodesRequest { - /** ListSubnetsRequest parent */ + /** ListNodesRequest parent */ parent?: (string|null); - /** ListSubnetsRequest pageSize */ + /** ListNodesRequest pageSize */ pageSize?: (number|null); - /** ListSubnetsRequest pageToken */ + /** ListNodesRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListSubnetsRequest. */ - class ListSubnetsRequest implements IListSubnetsRequest { + /** Represents a ListNodesRequest. */ + class ListNodesRequest implements IListNodesRequest { /** - * Constructs a new ListSubnetsRequest. + * Constructs a new ListNodesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListNodesRequest); - /** ListSubnetsRequest parent. */ + /** ListNodesRequest parent. */ public parent: string; - /** ListSubnetsRequest pageSize. */ + /** ListNodesRequest pageSize. */ public pageSize: number; - /** ListSubnetsRequest pageToken. */ + /** ListNodesRequest pageToken. */ public pageToken: string; /** - * Creates a new ListSubnetsRequest instance using the specified properties. + * Creates a new ListNodesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSubnetsRequest instance + * @returns ListNodesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest): google.cloud.vmwareengine.v1.ListSubnetsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListNodesRequest): google.cloud.vmwareengine.v1.ListNodesRequest; /** - * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. - * @param message ListSubnetsRequest message or plain object to encode + * Encodes the specified ListNodesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodesRequest.verify|verify} messages. + * @param message ListNodesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNodesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. - * @param message ListSubnetsRequest message or plain object to encode + * Encodes the specified ListNodesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodesRequest.verify|verify} messages. + * @param message ListNodesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSubnetsRequest message from the specified reader or buffer. + * Decodes a ListNodesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSubnetsRequest + * @returns ListNodesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListSubnetsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNodesRequest; /** - * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSubnetsRequest + * @returns ListNodesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListSubnetsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNodesRequest; /** - * Verifies a ListSubnetsRequest message. + * Verifies a ListNodesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSubnetsRequest + * @returns ListNodesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodesRequest; /** - * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified. - * @param message ListSubnetsRequest + * Creates a plain object from a ListNodesRequest message. Also converts values to other types if specified. + * @param message ListNodesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNodesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSubnetsRequest to JSON. + * Converts this ListNodesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSubnetsRequest + * Gets the default type url for ListNodesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSubnetsResponse. */ - interface IListSubnetsResponse { + /** Properties of a ListNodesResponse. */ + interface IListNodesResponse { - /** ListSubnetsResponse subnets */ - subnets?: (google.cloud.vmwareengine.v1.ISubnet[]|null); + /** ListNodesResponse nodes */ + nodes?: (google.cloud.vmwareengine.v1.INode[]|null); - /** ListSubnetsResponse nextPageToken */ + /** ListNodesResponse nextPageToken */ nextPageToken?: (string|null); - - /** ListSubnetsResponse unreachable */ - unreachable?: (string[]|null); } - /** Represents a ListSubnetsResponse. */ - class ListSubnetsResponse implements IListSubnetsResponse { + /** Represents a ListNodesResponse. */ + class ListNodesResponse implements IListNodesResponse { /** - * Constructs a new ListSubnetsResponse. + * Constructs a new ListNodesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IListNodesResponse); - /** ListSubnetsResponse subnets. */ - public subnets: google.cloud.vmwareengine.v1.ISubnet[]; + /** ListNodesResponse nodes. */ + public nodes: google.cloud.vmwareengine.v1.INode[]; - /** ListSubnetsResponse nextPageToken. */ + /** ListNodesResponse nextPageToken. */ public nextPageToken: string; - /** ListSubnetsResponse unreachable. */ - public unreachable: string[]; - /** - * Creates a new ListSubnetsResponse instance using the specified properties. + * Creates a new ListNodesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListSubnetsResponse instance + * @returns ListNodesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse): google.cloud.vmwareengine.v1.ListSubnetsResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IListNodesResponse): google.cloud.vmwareengine.v1.ListNodesResponse; /** - * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. - * @param message ListSubnetsResponse message or plain object to encode + * Encodes the specified ListNodesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodesResponse.verify|verify} messages. + * @param message ListNodesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNodesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. - * @param message ListSubnetsResponse message or plain object to encode + * Encodes the specified ListNodesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodesResponse.verify|verify} messages. + * @param message ListNodesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSubnetsResponse message from the specified reader or buffer. + * Decodes a ListNodesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSubnetsResponse + * @returns ListNodesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListSubnetsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNodesResponse; /** - * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNodesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSubnetsResponse + * @returns ListNodesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListSubnetsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNodesResponse; /** - * Verifies a ListSubnetsResponse message. + * Verifies a ListNodesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSubnetsResponse + * @returns ListNodesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodesResponse; /** - * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified. - * @param message ListSubnetsResponse + * Creates a plain object from a ListNodesResponse message. Also converts values to other types if specified. + * @param message ListNodesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNodesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSubnetsResponse to JSON. + * Converts this ListNodesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSubnetsResponse + * Gets the default type url for ListNodesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetSubnetRequest. */ - interface IGetSubnetRequest { + /** Properties of a GetNodeRequest. */ + interface IGetNodeRequest { - /** GetSubnetRequest name */ + /** GetNodeRequest name */ name?: (string|null); } - /** Represents a GetSubnetRequest. */ - class GetSubnetRequest implements IGetSubnetRequest { + /** Represents a GetNodeRequest. */ + class GetNodeRequest implements IGetNodeRequest { /** - * Constructs a new GetSubnetRequest. + * Constructs a new GetNodeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetSubnetRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IGetNodeRequest); - /** GetSubnetRequest name. */ + /** GetNodeRequest name. */ public name: string; /** - * Creates a new GetSubnetRequest instance using the specified properties. + * Creates a new GetNodeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSubnetRequest instance + * @returns GetNodeRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetSubnetRequest): google.cloud.vmwareengine.v1.GetSubnetRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IGetNodeRequest): google.cloud.vmwareengine.v1.GetNodeRequest; /** - * Encodes the specified GetSubnetRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetSubnetRequest.verify|verify} messages. - * @param message GetSubnetRequest message or plain object to encode + * Encodes the specified GetNodeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeRequest.verify|verify} messages. + * @param message GetNodeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetSubnetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSubnetRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetSubnetRequest.verify|verify} messages. - * @param message GetSubnetRequest message or plain object to encode + * Encodes the specified GetNodeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeRequest.verify|verify} messages. + * @param message GetNodeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetSubnetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSubnetRequest message from the specified reader or buffer. + * Decodes a GetNodeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSubnetRequest + * @returns GetNodeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetSubnetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetNodeRequest; /** - * Decodes a GetSubnetRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNodeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSubnetRequest + * @returns GetNodeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetSubnetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetNodeRequest; /** - * Verifies a GetSubnetRequest message. + * Verifies a GetNodeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSubnetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSubnetRequest + * @returns GetNodeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetSubnetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNodeRequest; /** - * Creates a plain object from a GetSubnetRequest message. Also converts values to other types if specified. - * @param message GetSubnetRequest + * Creates a plain object from a GetNodeRequest message. Also converts values to other types if specified. + * @param message GetNodeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetSubnetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetNodeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSubnetRequest to JSON. + * Converts this GetNodeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSubnetRequest + * Gets the default type url for GetNodeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateSubnetRequest. */ - interface IUpdateSubnetRequest { + /** Properties of a ListExternalAddressesRequest. */ + interface IListExternalAddressesRequest { - /** UpdateSubnetRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListExternalAddressesRequest parent */ + parent?: (string|null); - /** UpdateSubnetRequest subnet */ - subnet?: (google.cloud.vmwareengine.v1.ISubnet|null); + /** ListExternalAddressesRequest pageSize */ + pageSize?: (number|null); + + /** ListExternalAddressesRequest pageToken */ + pageToken?: (string|null); + + /** ListExternalAddressesRequest filter */ + filter?: (string|null); + + /** ListExternalAddressesRequest orderBy */ + orderBy?: (string|null); } - /** Represents an UpdateSubnetRequest. */ - class UpdateSubnetRequest implements IUpdateSubnetRequest { + /** Represents a ListExternalAddressesRequest. */ + class ListExternalAddressesRequest implements IListExternalAddressesRequest { /** - * Constructs a new UpdateSubnetRequest. + * Constructs a new ListExternalAddressesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IUpdateSubnetRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListExternalAddressesRequest); - /** UpdateSubnetRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListExternalAddressesRequest parent. */ + public parent: string; - /** UpdateSubnetRequest subnet. */ - public subnet?: (google.cloud.vmwareengine.v1.ISubnet|null); + /** ListExternalAddressesRequest pageSize. */ + public pageSize: number; + + /** ListExternalAddressesRequest pageToken. */ + public pageToken: string; + + /** ListExternalAddressesRequest filter. */ + public filter: string; + + /** ListExternalAddressesRequest orderBy. */ + public orderBy: string; /** - * Creates a new UpdateSubnetRequest instance using the specified properties. + * Creates a new ListExternalAddressesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSubnetRequest instance + * @returns ListExternalAddressesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IUpdateSubnetRequest): google.cloud.vmwareengine.v1.UpdateSubnetRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListExternalAddressesRequest): google.cloud.vmwareengine.v1.ListExternalAddressesRequest; /** - * Encodes the specified UpdateSubnetRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateSubnetRequest.verify|verify} messages. - * @param message UpdateSubnetRequest message or plain object to encode + * Encodes the specified ListExternalAddressesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAddressesRequest.verify|verify} messages. + * @param message ListExternalAddressesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IUpdateSubnetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListExternalAddressesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSubnetRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateSubnetRequest.verify|verify} messages. - * @param message UpdateSubnetRequest message or plain object to encode + * Encodes the specified ListExternalAddressesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAddressesRequest.verify|verify} messages. + * @param message ListExternalAddressesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateSubnetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListExternalAddressesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSubnetRequest message from the specified reader or buffer. + * Decodes a ListExternalAddressesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSubnetRequest + * @returns ListExternalAddressesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateSubnetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListExternalAddressesRequest; /** - * Decodes an UpdateSubnetRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExternalAddressesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSubnetRequest + * @returns ListExternalAddressesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateSubnetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListExternalAddressesRequest; /** - * Verifies an UpdateSubnetRequest message. + * Verifies a ListExternalAddressesRequest message. * @param message Plain 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 UpdateSubnetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExternalAddressesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSubnetRequest + * @returns ListExternalAddressesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateSubnetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListExternalAddressesRequest; /** - * Creates a plain object from an UpdateSubnetRequest message. Also converts values to other types if specified. - * @param message UpdateSubnetRequest + * Creates a plain object from a ListExternalAddressesRequest message. Also converts values to other types if specified. + * @param message ListExternalAddressesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.UpdateSubnetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListExternalAddressesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSubnetRequest to JSON. + * Converts this ListExternalAddressesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateSubnetRequest + * Gets the default type url for ListExternalAddressesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an OperationMetadata. */ - interface IOperationMetadata { - - /** OperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target */ - target?: (string|null); - - /** OperationMetadata verb */ - verb?: (string|null); + /** Properties of a ListExternalAddressesResponse. */ + interface IListExternalAddressesResponse { - /** OperationMetadata statusMessage */ - statusMessage?: (string|null); + /** ListExternalAddressesResponse externalAddresses */ + externalAddresses?: (google.cloud.vmwareengine.v1.IExternalAddress[]|null); - /** OperationMetadata requestedCancellation */ - requestedCancellation?: (boolean|null); + /** ListExternalAddressesResponse nextPageToken */ + nextPageToken?: (string|null); - /** OperationMetadata apiVersion */ - apiVersion?: (string|null); + /** ListExternalAddressesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents an OperationMetadata. */ - class OperationMetadata implements IOperationMetadata { + /** Represents a ListExternalAddressesResponse. */ + class ListExternalAddressesResponse implements IListExternalAddressesResponse { /** - * Constructs a new OperationMetadata. + * Constructs a new ListExternalAddressesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IOperationMetadata); - - /** OperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target. */ - public target: string; + constructor(properties?: google.cloud.vmwareengine.v1.IListExternalAddressesResponse); - /** OperationMetadata verb. */ - public verb: string; - - /** OperationMetadata statusMessage. */ - public statusMessage: string; + /** ListExternalAddressesResponse externalAddresses. */ + public externalAddresses: google.cloud.vmwareengine.v1.IExternalAddress[]; - /** OperationMetadata requestedCancellation. */ - public requestedCancellation: boolean; + /** ListExternalAddressesResponse nextPageToken. */ + public nextPageToken: string; - /** OperationMetadata apiVersion. */ - public apiVersion: string; + /** ListExternalAddressesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new ListExternalAddressesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns OperationMetadata instance + * @returns ListExternalAddressesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IOperationMetadata): google.cloud.vmwareengine.v1.OperationMetadata; + public static create(properties?: google.cloud.vmwareengine.v1.IListExternalAddressesResponse): google.cloud.vmwareengine.v1.ListExternalAddressesResponse; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified ListExternalAddressesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAddressesResponse.verify|verify} messages. + * @param message ListExternalAddressesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListExternalAddressesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified ListExternalAddressesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAddressesResponse.verify|verify} messages. + * @param message ListExternalAddressesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListExternalAddressesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes a ListExternalAddressesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OperationMetadata + * @returns ListExternalAddressesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.OperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListExternalAddressesResponse; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListExternalAddressesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OperationMetadata + * @returns ListExternalAddressesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.OperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListExternalAddressesResponse; /** - * Verifies an OperationMetadata message. + * Verifies a ListExternalAddressesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListExternalAddressesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OperationMetadata + * @returns ListExternalAddressesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.OperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListExternalAddressesResponse; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. - * @param message OperationMetadata + * Creates a plain object from a ListExternalAddressesResponse message. Also converts values to other types if specified. + * @param message ListExternalAddressesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListExternalAddressesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OperationMetadata to JSON. + * Converts this ListExternalAddressesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for ListExternalAddressesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNodeTypesRequest. */ - interface IListNodeTypesRequest { + /** Properties of a FetchNetworkPolicyExternalAddressesRequest. */ + interface IFetchNetworkPolicyExternalAddressesRequest { - /** ListNodeTypesRequest parent */ - parent?: (string|null); + /** FetchNetworkPolicyExternalAddressesRequest networkPolicy */ + networkPolicy?: (string|null); - /** ListNodeTypesRequest pageSize */ + /** FetchNetworkPolicyExternalAddressesRequest pageSize */ pageSize?: (number|null); - /** ListNodeTypesRequest pageToken */ + /** FetchNetworkPolicyExternalAddressesRequest pageToken */ pageToken?: (string|null); - - /** ListNodeTypesRequest filter */ - filter?: (string|null); } - /** Represents a ListNodeTypesRequest. */ - class ListNodeTypesRequest implements IListNodeTypesRequest { + /** Represents a FetchNetworkPolicyExternalAddressesRequest. */ + class FetchNetworkPolicyExternalAddressesRequest implements IFetchNetworkPolicyExternalAddressesRequest { /** - * Constructs a new ListNodeTypesRequest. + * Constructs a new FetchNetworkPolicyExternalAddressesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest); - /** ListNodeTypesRequest parent. */ - public parent: string; + /** FetchNetworkPolicyExternalAddressesRequest networkPolicy. */ + public networkPolicy: string; - /** ListNodeTypesRequest pageSize. */ + /** FetchNetworkPolicyExternalAddressesRequest pageSize. */ public pageSize: number; - /** ListNodeTypesRequest pageToken. */ + /** FetchNetworkPolicyExternalAddressesRequest pageToken. */ public pageToken: string; - /** ListNodeTypesRequest filter. */ - public filter: string; - /** - * Creates a new ListNodeTypesRequest instance using the specified properties. + * Creates a new FetchNetworkPolicyExternalAddressesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListNodeTypesRequest instance + * @returns FetchNetworkPolicyExternalAddressesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest): google.cloud.vmwareengine.v1.ListNodeTypesRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest): google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; /** - * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. - * @param message ListNodeTypesRequest message or plain object to encode + * Encodes the specified FetchNetworkPolicyExternalAddressesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.verify|verify} messages. + * @param message FetchNetworkPolicyExternalAddressesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. - * @param message ListNodeTypesRequest message or plain object to encode + * Encodes the specified FetchNetworkPolicyExternalAddressesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.verify|verify} messages. + * @param message FetchNetworkPolicyExternalAddressesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNodeTypesRequest message from the specified reader or buffer. + * Decodes a FetchNetworkPolicyExternalAddressesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNodeTypesRequest + * @returns FetchNetworkPolicyExternalAddressesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNodeTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; /** - * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchNetworkPolicyExternalAddressesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNodeTypesRequest + * @returns FetchNetworkPolicyExternalAddressesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNodeTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; /** - * Verifies a ListNodeTypesRequest message. + * Verifies a FetchNetworkPolicyExternalAddressesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchNetworkPolicyExternalAddressesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNodeTypesRequest + * @returns FetchNetworkPolicyExternalAddressesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; /** - * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified. - * @param message ListNodeTypesRequest + * Creates a plain object from a FetchNetworkPolicyExternalAddressesRequest message. Also converts values to other types if specified. + * @param message FetchNetworkPolicyExternalAddressesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNodeTypesRequest to JSON. + * Converts this FetchNetworkPolicyExternalAddressesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNodeTypesRequest + * Gets the default type url for FetchNetworkPolicyExternalAddressesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNodeTypesResponse. */ - interface IListNodeTypesResponse { + /** Properties of a FetchNetworkPolicyExternalAddressesResponse. */ + interface IFetchNetworkPolicyExternalAddressesResponse { - /** ListNodeTypesResponse nodeTypes */ - nodeTypes?: (google.cloud.vmwareengine.v1.INodeType[]|null); + /** FetchNetworkPolicyExternalAddressesResponse externalAddresses */ + externalAddresses?: (google.cloud.vmwareengine.v1.IExternalAddress[]|null); - /** ListNodeTypesResponse nextPageToken */ + /** FetchNetworkPolicyExternalAddressesResponse nextPageToken */ nextPageToken?: (string|null); - - /** ListNodeTypesResponse unreachable */ - unreachable?: (string[]|null); } - /** Represents a ListNodeTypesResponse. */ - class ListNodeTypesResponse implements IListNodeTypesResponse { + /** Represents a FetchNetworkPolicyExternalAddressesResponse. */ + class FetchNetworkPolicyExternalAddressesResponse implements IFetchNetworkPolicyExternalAddressesResponse { /** - * Constructs a new ListNodeTypesResponse. + * Constructs a new FetchNetworkPolicyExternalAddressesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse); - /** ListNodeTypesResponse nodeTypes. */ - public nodeTypes: google.cloud.vmwareengine.v1.INodeType[]; + /** FetchNetworkPolicyExternalAddressesResponse externalAddresses. */ + public externalAddresses: google.cloud.vmwareengine.v1.IExternalAddress[]; - /** ListNodeTypesResponse nextPageToken. */ + /** FetchNetworkPolicyExternalAddressesResponse nextPageToken. */ public nextPageToken: string; - /** ListNodeTypesResponse unreachable. */ - public unreachable: string[]; - /** - * Creates a new ListNodeTypesResponse instance using the specified properties. + * Creates a new FetchNetworkPolicyExternalAddressesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListNodeTypesResponse instance + * @returns FetchNetworkPolicyExternalAddressesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse): google.cloud.vmwareengine.v1.ListNodeTypesResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse): google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; /** - * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. - * @param message ListNodeTypesResponse message or plain object to encode + * Encodes the specified FetchNetworkPolicyExternalAddressesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.verify|verify} messages. + * @param message FetchNetworkPolicyExternalAddressesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. - * @param message ListNodeTypesResponse message or plain object to encode + * Encodes the specified FetchNetworkPolicyExternalAddressesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.verify|verify} messages. + * @param message FetchNetworkPolicyExternalAddressesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNodeTypesResponse message from the specified reader or buffer. + * Decodes a FetchNetworkPolicyExternalAddressesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNodeTypesResponse + * @returns FetchNetworkPolicyExternalAddressesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNodeTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; /** - * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a FetchNetworkPolicyExternalAddressesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNodeTypesResponse + * @returns FetchNetworkPolicyExternalAddressesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNodeTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; /** - * Verifies a ListNodeTypesResponse message. + * Verifies a FetchNetworkPolicyExternalAddressesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FetchNetworkPolicyExternalAddressesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNodeTypesResponse + * @returns FetchNetworkPolicyExternalAddressesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; /** - * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified. - * @param message ListNodeTypesResponse + * Creates a plain object from a FetchNetworkPolicyExternalAddressesResponse message. Also converts values to other types if specified. + * @param message FetchNetworkPolicyExternalAddressesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNodeTypesResponse to JSON. + * Converts this FetchNetworkPolicyExternalAddressesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNodeTypesResponse + * Gets the default type url for FetchNetworkPolicyExternalAddressesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetNodeTypeRequest. */ - interface IGetNodeTypeRequest { + /** Properties of a GetExternalAddressRequest. */ + interface IGetExternalAddressRequest { - /** GetNodeTypeRequest name */ + /** GetExternalAddressRequest name */ name?: (string|null); } - /** Represents a GetNodeTypeRequest. */ - class GetNodeTypeRequest implements IGetNodeTypeRequest { + /** Represents a GetExternalAddressRequest. */ + class GetExternalAddressRequest implements IGetExternalAddressRequest { /** - * Constructs a new GetNodeTypeRequest. + * Constructs a new GetExternalAddressRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IGetExternalAddressRequest); - /** GetNodeTypeRequest name. */ + /** GetExternalAddressRequest name. */ public name: string; /** - * Creates a new GetNodeTypeRequest instance using the specified properties. + * Creates a new GetExternalAddressRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetNodeTypeRequest instance + * @returns GetExternalAddressRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest): google.cloud.vmwareengine.v1.GetNodeTypeRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IGetExternalAddressRequest): google.cloud.vmwareengine.v1.GetExternalAddressRequest; /** - * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. - * @param message GetNodeTypeRequest message or plain object to encode + * Encodes the specified GetExternalAddressRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetExternalAddressRequest.verify|verify} messages. + * @param message GetExternalAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetExternalAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. - * @param message GetNodeTypeRequest message or plain object to encode + * Encodes the specified GetExternalAddressRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetExternalAddressRequest.verify|verify} messages. + * @param message GetExternalAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetExternalAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetNodeTypeRequest message from the specified reader or buffer. + * Decodes a GetExternalAddressRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetNodeTypeRequest + * @returns GetExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetNodeTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetExternalAddressRequest; /** - * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExternalAddressRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetNodeTypeRequest + * @returns GetExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetNodeTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetExternalAddressRequest; /** - * Verifies a GetNodeTypeRequest message. + * Verifies a GetExternalAddressRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExternalAddressRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetNodeTypeRequest + * @returns GetExternalAddressRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNodeTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetExternalAddressRequest; /** - * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified. - * @param message GetNodeTypeRequest + * Creates a plain object from a GetExternalAddressRequest message. Also converts values to other types if specified. + * @param message GetExternalAddressRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetNodeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetExternalAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetNodeTypeRequest to JSON. + * Converts this GetExternalAddressRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetNodeTypeRequest + * Gets the default type url for GetExternalAddressRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShowNsxCredentialsRequest. */ - interface IShowNsxCredentialsRequest { + /** Properties of a CreateExternalAddressRequest. */ + interface ICreateExternalAddressRequest { - /** ShowNsxCredentialsRequest privateCloud */ - privateCloud?: (string|null); + /** CreateExternalAddressRequest parent */ + parent?: (string|null); + + /** CreateExternalAddressRequest externalAddress */ + externalAddress?: (google.cloud.vmwareengine.v1.IExternalAddress|null); + + /** CreateExternalAddressRequest externalAddressId */ + externalAddressId?: (string|null); + + /** CreateExternalAddressRequest requestId */ + requestId?: (string|null); } - /** Represents a ShowNsxCredentialsRequest. */ - class ShowNsxCredentialsRequest implements IShowNsxCredentialsRequest { + /** Represents a CreateExternalAddressRequest. */ + class CreateExternalAddressRequest implements ICreateExternalAddressRequest { /** - * Constructs a new ShowNsxCredentialsRequest. + * Constructs a new CreateExternalAddressRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest); + constructor(properties?: google.cloud.vmwareengine.v1.ICreateExternalAddressRequest); - /** ShowNsxCredentialsRequest privateCloud. */ - public privateCloud: string; + /** CreateExternalAddressRequest parent. */ + public parent: string; + + /** CreateExternalAddressRequest externalAddress. */ + public externalAddress?: (google.cloud.vmwareengine.v1.IExternalAddress|null); + + /** CreateExternalAddressRequest externalAddressId. */ + public externalAddressId: string; + + /** CreateExternalAddressRequest requestId. */ + public requestId: string; /** - * Creates a new ShowNsxCredentialsRequest instance using the specified properties. + * Creates a new CreateExternalAddressRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShowNsxCredentialsRequest instance + * @returns CreateExternalAddressRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.ICreateExternalAddressRequest): google.cloud.vmwareengine.v1.CreateExternalAddressRequest; /** - * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. - * @param message ShowNsxCredentialsRequest message or plain object to encode + * Encodes the specified CreateExternalAddressRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateExternalAddressRequest.verify|verify} messages. + * @param message CreateExternalAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreateExternalAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. - * @param message ShowNsxCredentialsRequest message or plain object to encode + * Encodes the specified CreateExternalAddressRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateExternalAddressRequest.verify|verify} messages. + * @param message CreateExternalAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateExternalAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer. + * Decodes a CreateExternalAddressRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShowNsxCredentialsRequest + * @returns CreateExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateExternalAddressRequest; /** - * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExternalAddressRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShowNsxCredentialsRequest + * @returns CreateExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateExternalAddressRequest; /** - * Verifies a ShowNsxCredentialsRequest message. + * Verifies a CreateExternalAddressRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExternalAddressRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShowNsxCredentialsRequest + * @returns CreateExternalAddressRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateExternalAddressRequest; /** - * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified. - * @param message ShowNsxCredentialsRequest + * Creates a plain object from a CreateExternalAddressRequest message. Also converts values to other types if specified. + * @param message CreateExternalAddressRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreateExternalAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShowNsxCredentialsRequest to JSON. + * Converts this CreateExternalAddressRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShowNsxCredentialsRequest + * Gets the default type url for CreateExternalAddressRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShowVcenterCredentialsRequest. */ - interface IShowVcenterCredentialsRequest { + /** Properties of an UpdateExternalAddressRequest. */ + interface IUpdateExternalAddressRequest { - /** ShowVcenterCredentialsRequest privateCloud */ - privateCloud?: (string|null); + /** UpdateExternalAddressRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateExternalAddressRequest externalAddress */ + externalAddress?: (google.cloud.vmwareengine.v1.IExternalAddress|null); + + /** UpdateExternalAddressRequest requestId */ + requestId?: (string|null); } - /** Represents a ShowVcenterCredentialsRequest. */ - class ShowVcenterCredentialsRequest implements IShowVcenterCredentialsRequest { + /** Represents an UpdateExternalAddressRequest. */ + class UpdateExternalAddressRequest implements IUpdateExternalAddressRequest { /** - * Constructs a new ShowVcenterCredentialsRequest. + * Constructs a new UpdateExternalAddressRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest); - /** ShowVcenterCredentialsRequest privateCloud. */ - public privateCloud: string; + /** UpdateExternalAddressRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateExternalAddressRequest externalAddress. */ + public externalAddress?: (google.cloud.vmwareengine.v1.IExternalAddress|null); + + /** UpdateExternalAddressRequest requestId. */ + public requestId: string; /** - * Creates a new ShowVcenterCredentialsRequest instance using the specified properties. + * Creates a new UpdateExternalAddressRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShowVcenterCredentialsRequest instance + * @returns UpdateExternalAddressRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest): google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; /** - * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. - * @param message ShowVcenterCredentialsRequest message or plain object to encode + * Encodes the specified UpdateExternalAddressRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.verify|verify} messages. + * @param message UpdateExternalAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. - * @param message ShowVcenterCredentialsRequest message or plain object to encode + * Encodes the specified UpdateExternalAddressRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.verify|verify} messages. + * @param message UpdateExternalAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer. + * Decodes an UpdateExternalAddressRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShowVcenterCredentialsRequest + * @returns UpdateExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; /** - * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExternalAddressRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShowVcenterCredentialsRequest + * @returns UpdateExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; /** - * Verifies a ShowVcenterCredentialsRequest message. + * Verifies an UpdateExternalAddressRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExternalAddressRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShowVcenterCredentialsRequest + * @returns UpdateExternalAddressRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; /** - * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified. - * @param message ShowVcenterCredentialsRequest + * Creates a plain object from an UpdateExternalAddressRequest message. Also converts values to other types if specified. + * @param message UpdateExternalAddressRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateExternalAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShowVcenterCredentialsRequest to JSON. + * Converts this UpdateExternalAddressRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShowVcenterCredentialsRequest + * Gets the default type url for UpdateExternalAddressRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetNsxCredentialsRequest. */ - interface IResetNsxCredentialsRequest { + /** Properties of a DeleteExternalAddressRequest. */ + interface IDeleteExternalAddressRequest { - /** ResetNsxCredentialsRequest privateCloud */ - privateCloud?: (string|null); + /** DeleteExternalAddressRequest name */ + name?: (string|null); - /** ResetNsxCredentialsRequest requestId */ + /** DeleteExternalAddressRequest requestId */ requestId?: (string|null); } - /** Represents a ResetNsxCredentialsRequest. */ - class ResetNsxCredentialsRequest implements IResetNsxCredentialsRequest { + /** Represents a DeleteExternalAddressRequest. */ + class DeleteExternalAddressRequest implements IDeleteExternalAddressRequest { /** - * Constructs a new ResetNsxCredentialsRequest. + * Constructs a new DeleteExternalAddressRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest); - /** ResetNsxCredentialsRequest privateCloud. */ - public privateCloud: string; + /** DeleteExternalAddressRequest name. */ + public name: string; - /** ResetNsxCredentialsRequest requestId. */ + /** DeleteExternalAddressRequest requestId. */ public requestId: string; /** - * Creates a new ResetNsxCredentialsRequest instance using the specified properties. + * Creates a new DeleteExternalAddressRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResetNsxCredentialsRequest instance + * @returns DeleteExternalAddressRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest): google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; /** - * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. - * @param message ResetNsxCredentialsRequest message or plain object to encode + * Encodes the specified DeleteExternalAddressRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.verify|verify} messages. + * @param message DeleteExternalAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. - * @param message ResetNsxCredentialsRequest message or plain object to encode + * Encodes the specified DeleteExternalAddressRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.verify|verify} messages. + * @param message DeleteExternalAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer. + * Decodes a DeleteExternalAddressRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetNsxCredentialsRequest + * @returns DeleteExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; /** - * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExternalAddressRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetNsxCredentialsRequest + * @returns DeleteExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; /** - * Verifies a ResetNsxCredentialsRequest message. + * Verifies a DeleteExternalAddressRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExternalAddressRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetNsxCredentialsRequest + * @returns DeleteExternalAddressRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; /** - * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified. - * @param message ResetNsxCredentialsRequest + * Creates a plain object from a DeleteExternalAddressRequest message. Also converts values to other types if specified. + * @param message DeleteExternalAddressRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.DeleteExternalAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetNsxCredentialsRequest to JSON. + * Converts this DeleteExternalAddressRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetNsxCredentialsRequest + * Gets the default type url for DeleteExternalAddressRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetVcenterCredentialsRequest. */ - interface IResetVcenterCredentialsRequest { + /** Properties of a ListSubnetsRequest. */ + interface IListSubnetsRequest { - /** ResetVcenterCredentialsRequest privateCloud */ - privateCloud?: (string|null); + /** ListSubnetsRequest parent */ + parent?: (string|null); - /** ResetVcenterCredentialsRequest requestId */ - requestId?: (string|null); + /** ListSubnetsRequest pageSize */ + pageSize?: (number|null); + + /** ListSubnetsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ResetVcenterCredentialsRequest. */ - class ResetVcenterCredentialsRequest implements IResetVcenterCredentialsRequest { + /** Represents a ListSubnetsRequest. */ + class ListSubnetsRequest implements IListSubnetsRequest { /** - * Constructs a new ResetVcenterCredentialsRequest. + * Constructs a new ListSubnetsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest); - /** ResetVcenterCredentialsRequest privateCloud. */ - public privateCloud: string; + /** ListSubnetsRequest parent. */ + public parent: string; - /** ResetVcenterCredentialsRequest requestId. */ - public requestId: string; + /** ListSubnetsRequest pageSize. */ + public pageSize: number; + + /** ListSubnetsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ResetVcenterCredentialsRequest instance using the specified properties. + * Creates a new ListSubnetsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResetVcenterCredentialsRequest instance + * @returns ListSubnetsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest): google.cloud.vmwareengine.v1.ListSubnetsRequest; /** - * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. - * @param message ResetVcenterCredentialsRequest message or plain object to encode + * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. + * @param message ListSubnetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. - * @param message ResetVcenterCredentialsRequest message or plain object to encode + * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. + * @param message ListSubnetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer. + * Decodes a ListSubnetsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetVcenterCredentialsRequest + * @returns ListSubnetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListSubnetsRequest; /** - * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetVcenterCredentialsRequest + * @returns ListSubnetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListSubnetsRequest; /** - * Verifies a ResetVcenterCredentialsRequest message. + * Verifies a ListSubnetsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetVcenterCredentialsRequest + * @returns ListSubnetsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsRequest; /** - * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified. - * @param message ResetVcenterCredentialsRequest + * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified. + * @param message ListSubnetsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetVcenterCredentialsRequest to JSON. + * Converts this ListSubnetsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetVcenterCredentialsRequest + * Gets the default type url for ListSubnetsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHcxActivationKeysResponse. */ - interface IListHcxActivationKeysResponse { + /** Properties of a ListSubnetsResponse. */ + interface IListSubnetsResponse { - /** ListHcxActivationKeysResponse hcxActivationKeys */ - hcxActivationKeys?: (google.cloud.vmwareengine.v1.IHcxActivationKey[]|null); + /** ListSubnetsResponse subnets */ + subnets?: (google.cloud.vmwareengine.v1.ISubnet[]|null); - /** ListHcxActivationKeysResponse nextPageToken */ + /** ListSubnetsResponse nextPageToken */ nextPageToken?: (string|null); - /** ListHcxActivationKeysResponse unreachable */ + /** ListSubnetsResponse unreachable */ unreachable?: (string[]|null); } - /** Represents a ListHcxActivationKeysResponse. */ - class ListHcxActivationKeysResponse implements IListHcxActivationKeysResponse { + /** Represents a ListSubnetsResponse. */ + class ListSubnetsResponse implements IListSubnetsResponse { /** - * Constructs a new ListHcxActivationKeysResponse. + * Constructs a new ListSubnetsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse); - /** ListHcxActivationKeysResponse hcxActivationKeys. */ - public hcxActivationKeys: google.cloud.vmwareengine.v1.IHcxActivationKey[]; + /** ListSubnetsResponse subnets. */ + public subnets: google.cloud.vmwareengine.v1.ISubnet[]; - /** ListHcxActivationKeysResponse nextPageToken. */ + /** ListSubnetsResponse nextPageToken. */ public nextPageToken: string; - /** ListHcxActivationKeysResponse unreachable. */ + /** ListSubnetsResponse unreachable. */ public unreachable: string[]; /** - * Creates a new ListHcxActivationKeysResponse instance using the specified properties. + * Creates a new ListSubnetsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListHcxActivationKeysResponse instance + * @returns ListSubnetsResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse): google.cloud.vmwareengine.v1.ListSubnetsResponse; /** - * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. - * @param message ListHcxActivationKeysResponse message or plain object to encode + * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. + * @param message ListSubnetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. - * @param message ListHcxActivationKeysResponse message or plain object to encode + * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. + * @param message ListSubnetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer. + * Decodes a ListSubnetsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHcxActivationKeysResponse + * @returns ListSubnetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListSubnetsResponse; /** - * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHcxActivationKeysResponse + * @returns ListSubnetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListSubnetsResponse; /** - * Verifies a ListHcxActivationKeysResponse message. + * Verifies a ListSubnetsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHcxActivationKeysResponse + * @returns ListSubnetsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsResponse; /** - * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified. - * @param message ListHcxActivationKeysResponse + * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified. + * @param message ListSubnetsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHcxActivationKeysResponse to JSON. + * Converts this ListSubnetsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHcxActivationKeysResponse + * Gets the default type url for ListSubnetsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHcxActivationKeysRequest. */ - interface IListHcxActivationKeysRequest { - - /** ListHcxActivationKeysRequest parent */ - parent?: (string|null); - - /** ListHcxActivationKeysRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetSubnetRequest. */ + interface IGetSubnetRequest { - /** ListHcxActivationKeysRequest pageToken */ - pageToken?: (string|null); + /** GetSubnetRequest name */ + name?: (string|null); } - /** Represents a ListHcxActivationKeysRequest. */ - class ListHcxActivationKeysRequest implements IListHcxActivationKeysRequest { + /** Represents a GetSubnetRequest. */ + class GetSubnetRequest implements IGetSubnetRequest { /** - * Constructs a new ListHcxActivationKeysRequest. + * Constructs a new GetSubnetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest); - - /** ListHcxActivationKeysRequest parent. */ - public parent: string; - - /** ListHcxActivationKeysRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.vmwareengine.v1.IGetSubnetRequest); - /** ListHcxActivationKeysRequest pageToken. */ - public pageToken: string; + /** GetSubnetRequest name. */ + public name: string; /** - * Creates a new ListHcxActivationKeysRequest instance using the specified properties. + * Creates a new GetSubnetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHcxActivationKeysRequest instance + * @returns GetSubnetRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IGetSubnetRequest): google.cloud.vmwareengine.v1.GetSubnetRequest; /** - * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. - * @param message ListHcxActivationKeysRequest message or plain object to encode + * Encodes the specified GetSubnetRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetSubnetRequest.verify|verify} messages. + * @param message GetSubnetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetSubnetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. - * @param message ListHcxActivationKeysRequest message or plain object to encode + * Encodes the specified GetSubnetRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetSubnetRequest.verify|verify} messages. + * @param message GetSubnetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetSubnetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer. + * Decodes a GetSubnetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHcxActivationKeysRequest + * @returns GetSubnetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetSubnetRequest; /** - * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSubnetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHcxActivationKeysRequest + * @returns GetSubnetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetSubnetRequest; /** - * Verifies a ListHcxActivationKeysRequest message. + * Verifies a GetSubnetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSubnetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHcxActivationKeysRequest + * @returns GetSubnetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetSubnetRequest; /** - * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified. - * @param message ListHcxActivationKeysRequest + * Creates a plain object from a GetSubnetRequest message. Also converts values to other types if specified. + * @param message GetSubnetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetSubnetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHcxActivationKeysRequest to JSON. + * Converts this GetSubnetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHcxActivationKeysRequest + * Gets the default type url for GetSubnetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetHcxActivationKeyRequest. */ - interface IGetHcxActivationKeyRequest { + /** Properties of an UpdateSubnetRequest. */ + interface IUpdateSubnetRequest { - /** GetHcxActivationKeyRequest name */ - name?: (string|null); + /** UpdateSubnetRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateSubnetRequest subnet */ + subnet?: (google.cloud.vmwareengine.v1.ISubnet|null); } - /** Represents a GetHcxActivationKeyRequest. */ - class GetHcxActivationKeyRequest implements IGetHcxActivationKeyRequest { + /** Represents an UpdateSubnetRequest. */ + class UpdateSubnetRequest implements IUpdateSubnetRequest { /** - * Constructs a new GetHcxActivationKeyRequest. + * Constructs a new UpdateSubnetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateSubnetRequest); - /** GetHcxActivationKeyRequest name. */ - public name: string; + /** UpdateSubnetRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateSubnetRequest subnet. */ + public subnet?: (google.cloud.vmwareengine.v1.ISubnet|null); /** - * Creates a new GetHcxActivationKeyRequest instance using the specified properties. + * Creates a new UpdateSubnetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetHcxActivationKeyRequest instance + * @returns UpdateSubnetRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateSubnetRequest): google.cloud.vmwareengine.v1.UpdateSubnetRequest; /** - * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. - * @param message GetHcxActivationKeyRequest message or plain object to encode + * Encodes the specified UpdateSubnetRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateSubnetRequest.verify|verify} messages. + * @param message UpdateSubnetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateSubnetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. - * @param message GetHcxActivationKeyRequest message or plain object to encode + * Encodes the specified UpdateSubnetRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateSubnetRequest.verify|verify} messages. + * @param message UpdateSubnetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateSubnetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer. + * Decodes an UpdateSubnetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetHcxActivationKeyRequest + * @returns UpdateSubnetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateSubnetRequest; /** - * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSubnetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetHcxActivationKeyRequest + * @returns UpdateSubnetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateSubnetRequest; /** - * Verifies a GetHcxActivationKeyRequest message. + * Verifies an UpdateSubnetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSubnetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetHcxActivationKeyRequest + * @returns UpdateSubnetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateSubnetRequest; /** - * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified. - * @param message GetHcxActivationKeyRequest + * Creates a plain object from an UpdateSubnetRequest message. Also converts values to other types if specified. + * @param message UpdateSubnetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateSubnetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetHcxActivationKeyRequest to JSON. + * Converts this UpdateSubnetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetHcxActivationKeyRequest + * Gets the default type url for UpdateSubnetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateHcxActivationKeyRequest. */ - interface ICreateHcxActivationKeyRequest { + /** Properties of a ListExternalAccessRulesRequest. */ + interface IListExternalAccessRulesRequest { - /** CreateHcxActivationKeyRequest parent */ + /** ListExternalAccessRulesRequest parent */ parent?: (string|null); - /** CreateHcxActivationKeyRequest hcxActivationKey */ - hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null); + /** ListExternalAccessRulesRequest pageSize */ + pageSize?: (number|null); - /** CreateHcxActivationKeyRequest hcxActivationKeyId */ - hcxActivationKeyId?: (string|null); + /** ListExternalAccessRulesRequest pageToken */ + pageToken?: (string|null); - /** CreateHcxActivationKeyRequest requestId */ - requestId?: (string|null); + /** ListExternalAccessRulesRequest filter */ + filter?: (string|null); + + /** ListExternalAccessRulesRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CreateHcxActivationKeyRequest. */ - class CreateHcxActivationKeyRequest implements ICreateHcxActivationKeyRequest { + /** Represents a ListExternalAccessRulesRequest. */ + class ListExternalAccessRulesRequest implements IListExternalAccessRulesRequest { /** - * Constructs a new CreateHcxActivationKeyRequest. + * Constructs a new ListExternalAccessRulesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest); - /** CreateHcxActivationKeyRequest parent. */ + /** ListExternalAccessRulesRequest parent. */ public parent: string; - /** CreateHcxActivationKeyRequest hcxActivationKey. */ - public hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null); + /** ListExternalAccessRulesRequest pageSize. */ + public pageSize: number; - /** CreateHcxActivationKeyRequest hcxActivationKeyId. */ - public hcxActivationKeyId: string; + /** ListExternalAccessRulesRequest pageToken. */ + public pageToken: string; - /** CreateHcxActivationKeyRequest requestId. */ - public requestId: string; + /** ListExternalAccessRulesRequest filter. */ + public filter: string; + + /** ListExternalAccessRulesRequest orderBy. */ + public orderBy: string; /** - * Creates a new CreateHcxActivationKeyRequest instance using the specified properties. + * Creates a new ListExternalAccessRulesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateHcxActivationKeyRequest instance + * @returns ListExternalAccessRulesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest): google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; /** - * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. - * @param message CreateHcxActivationKeyRequest message or plain object to encode + * Encodes the specified ListExternalAccessRulesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.verify|verify} messages. + * @param message ListExternalAccessRulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. - * @param message CreateHcxActivationKeyRequest message or plain object to encode + * Encodes the specified ListExternalAccessRulesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.verify|verify} messages. + * @param message ListExternalAccessRulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer. + * Decodes a ListExternalAccessRulesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateHcxActivationKeyRequest + * @returns ListExternalAccessRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; /** - * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExternalAccessRulesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateHcxActivationKeyRequest + * @returns ListExternalAccessRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; /** - * Verifies a CreateHcxActivationKeyRequest message. + * Verifies a ListExternalAccessRulesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExternalAccessRulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateHcxActivationKeyRequest + * @returns ListExternalAccessRulesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; /** - * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified. - * @param message CreateHcxActivationKeyRequest + * Creates a plain object from a ListExternalAccessRulesRequest message. Also converts values to other types if specified. + * @param message ListExternalAccessRulesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateHcxActivationKeyRequest to JSON. + * Converts this ListExternalAccessRulesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateHcxActivationKeyRequest + * Gets the default type url for ListExternalAccessRulesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNetworkPoliciesRequest. */ - interface IListNetworkPoliciesRequest { - - /** ListNetworkPoliciesRequest parent */ - parent?: (string|null); - - /** ListNetworkPoliciesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ListExternalAccessRulesResponse. */ + interface IListExternalAccessRulesResponse { - /** ListNetworkPoliciesRequest pageToken */ - pageToken?: (string|null); + /** ListExternalAccessRulesResponse externalAccessRules */ + externalAccessRules?: (google.cloud.vmwareengine.v1.IExternalAccessRule[]|null); - /** ListNetworkPoliciesRequest filter */ - filter?: (string|null); + /** ListExternalAccessRulesResponse nextPageToken */ + nextPageToken?: (string|null); - /** ListNetworkPoliciesRequest orderBy */ - orderBy?: (string|null); + /** ListExternalAccessRulesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a ListNetworkPoliciesRequest. */ - class ListNetworkPoliciesRequest implements IListNetworkPoliciesRequest { + /** Represents a ListExternalAccessRulesResponse. */ + class ListExternalAccessRulesResponse implements IListExternalAccessRulesResponse { /** - * Constructs a new ListNetworkPoliciesRequest. + * Constructs a new ListExternalAccessRulesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest); - - /** ListNetworkPoliciesRequest parent. */ - public parent: string; - - /** ListNetworkPoliciesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse); - /** ListNetworkPoliciesRequest pageToken. */ - public pageToken: string; + /** ListExternalAccessRulesResponse externalAccessRules. */ + public externalAccessRules: google.cloud.vmwareengine.v1.IExternalAccessRule[]; - /** ListNetworkPoliciesRequest filter. */ - public filter: string; + /** ListExternalAccessRulesResponse nextPageToken. */ + public nextPageToken: string; - /** ListNetworkPoliciesRequest orderBy. */ - public orderBy: string; + /** ListExternalAccessRulesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new ListNetworkPoliciesRequest instance using the specified properties. + * Creates a new ListExternalAccessRulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListNetworkPoliciesRequest instance + * @returns ListExternalAccessRulesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse): google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; /** - * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. - * @param message ListNetworkPoliciesRequest message or plain object to encode + * Encodes the specified ListExternalAccessRulesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.verify|verify} messages. + * @param message ListExternalAccessRulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. - * @param message ListNetworkPoliciesRequest message or plain object to encode + * Encodes the specified ListExternalAccessRulesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.verify|verify} messages. + * @param message ListExternalAccessRulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer. + * Decodes a ListExternalAccessRulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNetworkPoliciesRequest + * @returns ListExternalAccessRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; /** - * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExternalAccessRulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNetworkPoliciesRequest + * @returns ListExternalAccessRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; /** - * Verifies a ListNetworkPoliciesRequest message. + * Verifies a ListExternalAccessRulesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExternalAccessRulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNetworkPoliciesRequest + * @returns ListExternalAccessRulesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; /** - * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified. - * @param message ListNetworkPoliciesRequest + * Creates a plain object from a ListExternalAccessRulesResponse message. Also converts values to other types if specified. + * @param message ListExternalAccessRulesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNetworkPoliciesRequest to JSON. + * Converts this ListExternalAccessRulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNetworkPoliciesRequest + * Gets the default type url for ListExternalAccessRulesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNetworkPoliciesResponse. */ - interface IListNetworkPoliciesResponse { - - /** ListNetworkPoliciesResponse networkPolicies */ - networkPolicies?: (google.cloud.vmwareengine.v1.INetworkPolicy[]|null); - - /** ListNetworkPoliciesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of a GetExternalAccessRuleRequest. */ + interface IGetExternalAccessRuleRequest { - /** ListNetworkPoliciesResponse unreachable */ - unreachable?: (string[]|null); + /** GetExternalAccessRuleRequest name */ + name?: (string|null); } - /** Represents a ListNetworkPoliciesResponse. */ - class ListNetworkPoliciesResponse implements IListNetworkPoliciesResponse { + /** Represents a GetExternalAccessRuleRequest. */ + class GetExternalAccessRuleRequest implements IGetExternalAccessRuleRequest { /** - * Constructs a new ListNetworkPoliciesResponse. + * Constructs a new GetExternalAccessRuleRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest); - /** ListNetworkPoliciesResponse networkPolicies. */ - public networkPolicies: google.cloud.vmwareengine.v1.INetworkPolicy[]; - - /** ListNetworkPoliciesResponse nextPageToken. */ - public nextPageToken: string; - - /** ListNetworkPoliciesResponse unreachable. */ - public unreachable: string[]; + /** GetExternalAccessRuleRequest name. */ + public name: string; /** - * Creates a new ListNetworkPoliciesResponse instance using the specified properties. + * Creates a new GetExternalAccessRuleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListNetworkPoliciesResponse instance + * @returns GetExternalAccessRuleRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest): google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; /** - * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. - * @param message ListNetworkPoliciesResponse message or plain object to encode + * Encodes the specified GetExternalAccessRuleRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.verify|verify} messages. + * @param message GetExternalAccessRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. - * @param message ListNetworkPoliciesResponse message or plain object to encode + * Encodes the specified GetExternalAccessRuleRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.verify|verify} messages. + * @param message GetExternalAccessRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer. + * Decodes a GetExternalAccessRuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNetworkPoliciesResponse + * @returns GetExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; /** - * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetExternalAccessRuleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNetworkPoliciesResponse + * @returns GetExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; /** - * Verifies a ListNetworkPoliciesResponse message. + * Verifies a GetExternalAccessRuleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetExternalAccessRuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNetworkPoliciesResponse + * @returns GetExternalAccessRuleRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; /** - * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified. - * @param message ListNetworkPoliciesResponse + * Creates a plain object from a GetExternalAccessRuleRequest message. Also converts values to other types if specified. + * @param message GetExternalAccessRuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNetworkPoliciesResponse to JSON. + * Converts this GetExternalAccessRuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNetworkPoliciesResponse + * Gets the default type url for GetExternalAccessRuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetNetworkPolicyRequest. */ - interface IGetNetworkPolicyRequest { + /** Properties of a CreateExternalAccessRuleRequest. */ + interface ICreateExternalAccessRuleRequest { - /** GetNetworkPolicyRequest name */ - name?: (string|null); + /** CreateExternalAccessRuleRequest parent */ + parent?: (string|null); + + /** CreateExternalAccessRuleRequest externalAccessRule */ + externalAccessRule?: (google.cloud.vmwareengine.v1.IExternalAccessRule|null); + + /** CreateExternalAccessRuleRequest externalAccessRuleId */ + externalAccessRuleId?: (string|null); + + /** CreateExternalAccessRuleRequest requestId */ + requestId?: (string|null); } - /** Represents a GetNetworkPolicyRequest. */ - class GetNetworkPolicyRequest implements IGetNetworkPolicyRequest { + /** Represents a CreateExternalAccessRuleRequest. */ + class CreateExternalAccessRuleRequest implements ICreateExternalAccessRuleRequest { /** - * Constructs a new GetNetworkPolicyRequest. + * Constructs a new CreateExternalAccessRuleRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest); + constructor(properties?: google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest); - /** GetNetworkPolicyRequest name. */ - public name: string; + /** CreateExternalAccessRuleRequest parent. */ + public parent: string; + + /** CreateExternalAccessRuleRequest externalAccessRule. */ + public externalAccessRule?: (google.cloud.vmwareengine.v1.IExternalAccessRule|null); + + /** CreateExternalAccessRuleRequest externalAccessRuleId. */ + public externalAccessRuleId: string; + + /** CreateExternalAccessRuleRequest requestId. */ + public requestId: string; /** - * Creates a new GetNetworkPolicyRequest instance using the specified properties. + * Creates a new CreateExternalAccessRuleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetNetworkPolicyRequest instance + * @returns CreateExternalAccessRuleRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest): google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; /** - * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. - * @param message GetNetworkPolicyRequest message or plain object to encode + * Encodes the specified CreateExternalAccessRuleRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.verify|verify} messages. + * @param message CreateExternalAccessRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. - * @param message GetNetworkPolicyRequest message or plain object to encode + * Encodes the specified CreateExternalAccessRuleRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.verify|verify} messages. + * @param message CreateExternalAccessRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a CreateExternalAccessRuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetNetworkPolicyRequest + * @returns CreateExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; /** - * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExternalAccessRuleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetNetworkPolicyRequest + * @returns CreateExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; /** - * Verifies a GetNetworkPolicyRequest message. + * Verifies a CreateExternalAccessRuleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExternalAccessRuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetNetworkPolicyRequest + * @returns CreateExternalAccessRuleRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; /** - * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message GetNetworkPolicyRequest + * Creates a plain object from a CreateExternalAccessRuleRequest message. Also converts values to other types if specified. + * @param message CreateExternalAccessRuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetNetworkPolicyRequest to JSON. + * Converts this CreateExternalAccessRuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetNetworkPolicyRequest + * Gets the default type url for CreateExternalAccessRuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateNetworkPolicyRequest. */ - interface IUpdateNetworkPolicyRequest { - - /** UpdateNetworkPolicyRequest networkPolicy */ - networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); + /** Properties of an UpdateExternalAccessRuleRequest. */ + interface IUpdateExternalAccessRuleRequest { - /** UpdateNetworkPolicyRequest updateMask */ + /** UpdateExternalAccessRuleRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateNetworkPolicyRequest requestId */ + /** UpdateExternalAccessRuleRequest externalAccessRule */ + externalAccessRule?: (google.cloud.vmwareengine.v1.IExternalAccessRule|null); + + /** UpdateExternalAccessRuleRequest requestId */ requestId?: (string|null); } - /** Represents an UpdateNetworkPolicyRequest. */ - class UpdateNetworkPolicyRequest implements IUpdateNetworkPolicyRequest { + /** Represents an UpdateExternalAccessRuleRequest. */ + class UpdateExternalAccessRuleRequest implements IUpdateExternalAccessRuleRequest { /** - * Constructs a new UpdateNetworkPolicyRequest. + * Constructs a new UpdateExternalAccessRuleRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest); - - /** UpdateNetworkPolicyRequest networkPolicy. */ - public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest); - /** UpdateNetworkPolicyRequest updateMask. */ + /** UpdateExternalAccessRuleRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateNetworkPolicyRequest requestId. */ + /** UpdateExternalAccessRuleRequest externalAccessRule. */ + public externalAccessRule?: (google.cloud.vmwareengine.v1.IExternalAccessRule|null); + + /** UpdateExternalAccessRuleRequest requestId. */ public requestId: string; /** - * Creates a new UpdateNetworkPolicyRequest instance using the specified properties. + * Creates a new UpdateExternalAccessRuleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateNetworkPolicyRequest instance + * @returns UpdateExternalAccessRuleRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest): google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; /** - * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. - * @param message UpdateNetworkPolicyRequest message or plain object to encode + * Encodes the specified UpdateExternalAccessRuleRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.verify|verify} messages. + * @param message UpdateExternalAccessRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. - * @param message UpdateNetworkPolicyRequest message or plain object to encode + * Encodes the specified UpdateExternalAccessRuleRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.verify|verify} messages. + * @param message UpdateExternalAccessRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer. + * Decodes an UpdateExternalAccessRuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateNetworkPolicyRequest + * @returns UpdateExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; /** - * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExternalAccessRuleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateNetworkPolicyRequest + * @returns UpdateExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; /** - * Verifies an UpdateNetworkPolicyRequest message. + * Verifies an UpdateExternalAccessRuleRequest message. * @param message Plain 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 UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExternalAccessRuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateNetworkPolicyRequest + * @returns UpdateExternalAccessRuleRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; /** - * Creates a plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message UpdateNetworkPolicyRequest + * Creates a plain object from an UpdateExternalAccessRuleRequest message. Also converts values to other types if specified. + * @param message UpdateExternalAccessRuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateNetworkPolicyRequest to JSON. + * Converts this UpdateExternalAccessRuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateNetworkPolicyRequest + * Gets the default type url for UpdateExternalAccessRuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateNetworkPolicyRequest. */ - interface ICreateNetworkPolicyRequest { - - /** CreateNetworkPolicyRequest parent */ - parent?: (string|null); - - /** CreateNetworkPolicyRequest networkPolicyId */ - networkPolicyId?: (string|null); + /** Properties of a DeleteExternalAccessRuleRequest. */ + interface IDeleteExternalAccessRuleRequest { - /** CreateNetworkPolicyRequest networkPolicy */ - networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); + /** DeleteExternalAccessRuleRequest name */ + name?: (string|null); - /** CreateNetworkPolicyRequest requestId */ + /** DeleteExternalAccessRuleRequest requestId */ requestId?: (string|null); } - /** Represents a CreateNetworkPolicyRequest. */ - class CreateNetworkPolicyRequest implements ICreateNetworkPolicyRequest { + /** Represents a DeleteExternalAccessRuleRequest. */ + class DeleteExternalAccessRuleRequest implements IDeleteExternalAccessRuleRequest { /** - * Constructs a new CreateNetworkPolicyRequest. + * Constructs a new DeleteExternalAccessRuleRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest); - - /** CreateNetworkPolicyRequest parent. */ - public parent: string; - - /** CreateNetworkPolicyRequest networkPolicyId. */ - public networkPolicyId: string; + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest); - /** CreateNetworkPolicyRequest networkPolicy. */ - public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); + /** DeleteExternalAccessRuleRequest name. */ + public name: string; - /** CreateNetworkPolicyRequest requestId. */ + /** DeleteExternalAccessRuleRequest requestId. */ public requestId: string; /** - * Creates a new CreateNetworkPolicyRequest instance using the specified properties. + * Creates a new DeleteExternalAccessRuleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateNetworkPolicyRequest instance + * @returns DeleteExternalAccessRuleRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest): google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest; /** - * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. - * @param message CreateNetworkPolicyRequest message or plain object to encode + * Encodes the specified DeleteExternalAccessRuleRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.verify|verify} messages. + * @param message DeleteExternalAccessRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. - * @param message CreateNetworkPolicyRequest message or plain object to encode + * Encodes the specified DeleteExternalAccessRuleRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.verify|verify} messages. + * @param message DeleteExternalAccessRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a DeleteExternalAccessRuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateNetworkPolicyRequest + * @returns DeleteExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest; /** - * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExternalAccessRuleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateNetworkPolicyRequest + * @returns DeleteExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest; /** - * Verifies a CreateNetworkPolicyRequest message. + * Verifies a DeleteExternalAccessRuleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExternalAccessRuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateNetworkPolicyRequest + * @returns DeleteExternalAccessRuleRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest; /** - * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message CreateNetworkPolicyRequest + * Creates a plain object from a DeleteExternalAccessRuleRequest message. Also converts values to other types if specified. + * @param message DeleteExternalAccessRuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateNetworkPolicyRequest to JSON. + * Converts this DeleteExternalAccessRuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateNetworkPolicyRequest + * Gets the default type url for DeleteExternalAccessRuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteNetworkPolicyRequest. */ - interface IDeleteNetworkPolicyRequest { + /** Properties of a ListLoggingServersRequest. */ + interface IListLoggingServersRequest { - /** DeleteNetworkPolicyRequest name */ - name?: (string|null); + /** ListLoggingServersRequest parent */ + parent?: (string|null); - /** DeleteNetworkPolicyRequest requestId */ - requestId?: (string|null); + /** ListLoggingServersRequest pageSize */ + pageSize?: (number|null); + + /** ListLoggingServersRequest pageToken */ + pageToken?: (string|null); + + /** ListLoggingServersRequest filter */ + filter?: (string|null); + + /** ListLoggingServersRequest orderBy */ + orderBy?: (string|null); } - /** Represents a DeleteNetworkPolicyRequest. */ - class DeleteNetworkPolicyRequest implements IDeleteNetworkPolicyRequest { + /** Represents a ListLoggingServersRequest. */ + class ListLoggingServersRequest implements IListLoggingServersRequest { /** - * Constructs a new DeleteNetworkPolicyRequest. + * Constructs a new ListLoggingServersRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListLoggingServersRequest); - /** DeleteNetworkPolicyRequest name. */ - public name: string; + /** ListLoggingServersRequest parent. */ + public parent: string; - /** DeleteNetworkPolicyRequest requestId. */ - public requestId: string; + /** ListLoggingServersRequest pageSize. */ + public pageSize: number; + + /** ListLoggingServersRequest pageToken. */ + public pageToken: string; + + /** ListLoggingServersRequest filter. */ + public filter: string; + + /** ListLoggingServersRequest orderBy. */ + public orderBy: string; /** - * Creates a new DeleteNetworkPolicyRequest instance using the specified properties. + * Creates a new ListLoggingServersRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteNetworkPolicyRequest instance + * @returns ListLoggingServersRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListLoggingServersRequest): google.cloud.vmwareengine.v1.ListLoggingServersRequest; /** - * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. - * @param message DeleteNetworkPolicyRequest message or plain object to encode + * Encodes the specified ListLoggingServersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListLoggingServersRequest.verify|verify} messages. + * @param message ListLoggingServersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListLoggingServersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. - * @param message DeleteNetworkPolicyRequest message or plain object to encode + * Encodes the specified ListLoggingServersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListLoggingServersRequest.verify|verify} messages. + * @param message ListLoggingServersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListLoggingServersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a ListLoggingServersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteNetworkPolicyRequest + * @returns ListLoggingServersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListLoggingServersRequest; /** - * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListLoggingServersRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteNetworkPolicyRequest + * @returns ListLoggingServersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListLoggingServersRequest; /** - * Verifies a DeleteNetworkPolicyRequest message. + * Verifies a ListLoggingServersRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListLoggingServersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteNetworkPolicyRequest + * @returns ListLoggingServersRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListLoggingServersRequest; /** - * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message DeleteNetworkPolicyRequest + * Creates a plain object from a ListLoggingServersRequest message. Also converts values to other types if specified. + * @param message ListLoggingServersRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListLoggingServersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteNetworkPolicyRequest to JSON. + * Converts this ListLoggingServersRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteNetworkPolicyRequest + * Gets the default type url for ListLoggingServersRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateVmwareEngineNetworkRequest. */ - interface ICreateVmwareEngineNetworkRequest { - - /** CreateVmwareEngineNetworkRequest parent */ - parent?: (string|null); + /** Properties of a ListLoggingServersResponse. */ + interface IListLoggingServersResponse { - /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId */ - vmwareEngineNetworkId?: (string|null); + /** ListLoggingServersResponse loggingServers */ + loggingServers?: (google.cloud.vmwareengine.v1.ILoggingServer[]|null); - /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork */ - vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); + /** ListLoggingServersResponse nextPageToken */ + nextPageToken?: (string|null); - /** CreateVmwareEngineNetworkRequest requestId */ - requestId?: (string|null); + /** ListLoggingServersResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a CreateVmwareEngineNetworkRequest. */ - class CreateVmwareEngineNetworkRequest implements ICreateVmwareEngineNetworkRequest { + /** Represents a ListLoggingServersResponse. */ + class ListLoggingServersResponse implements IListLoggingServersResponse { /** - * Constructs a new CreateVmwareEngineNetworkRequest. + * Constructs a new ListLoggingServersResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListLoggingServersResponse); - /** CreateVmwareEngineNetworkRequest parent. */ - public parent: string; - - /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. */ - public vmwareEngineNetworkId: string; + /** ListLoggingServersResponse loggingServers. */ + public loggingServers: google.cloud.vmwareengine.v1.ILoggingServer[]; - /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork. */ - public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); + /** ListLoggingServersResponse nextPageToken. */ + public nextPageToken: string; - /** CreateVmwareEngineNetworkRequest requestId. */ - public requestId: string; + /** ListLoggingServersResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new ListLoggingServersResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVmwareEngineNetworkRequest instance + * @returns ListLoggingServersResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListLoggingServersResponse): google.cloud.vmwareengine.v1.ListLoggingServersResponse; /** - * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. - * @param message CreateVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified ListLoggingServersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListLoggingServersResponse.verify|verify} messages. + * @param message ListLoggingServersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListLoggingServersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. - * @param message CreateVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified ListLoggingServersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListLoggingServersResponse.verify|verify} messages. + * @param message ListLoggingServersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListLoggingServersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a ListLoggingServersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVmwareEngineNetworkRequest + * @returns ListLoggingServersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListLoggingServersResponse; /** - * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListLoggingServersResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVmwareEngineNetworkRequest + * @returns ListLoggingServersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListLoggingServersResponse; /** - * Verifies a CreateVmwareEngineNetworkRequest message. + * Verifies a ListLoggingServersResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListLoggingServersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVmwareEngineNetworkRequest + * @returns ListLoggingServersResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListLoggingServersResponse; /** - * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @param message CreateVmwareEngineNetworkRequest + * Creates a plain object from a ListLoggingServersResponse message. Also converts values to other types if specified. + * @param message ListLoggingServersResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListLoggingServersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVmwareEngineNetworkRequest to JSON. + * Converts this ListLoggingServersResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateVmwareEngineNetworkRequest + * Gets the default type url for ListLoggingServersResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateVmwareEngineNetworkRequest. */ - interface IUpdateVmwareEngineNetworkRequest { - - /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork */ - vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - - /** UpdateVmwareEngineNetworkRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a GetLoggingServerRequest. */ + interface IGetLoggingServerRequest { - /** UpdateVmwareEngineNetworkRequest requestId */ - requestId?: (string|null); + /** GetLoggingServerRequest name */ + name?: (string|null); } - /** Represents an UpdateVmwareEngineNetworkRequest. */ - class UpdateVmwareEngineNetworkRequest implements IUpdateVmwareEngineNetworkRequest { + /** Represents a GetLoggingServerRequest. */ + class GetLoggingServerRequest implements IGetLoggingServerRequest { /** - * Constructs a new UpdateVmwareEngineNetworkRequest. + * Constructs a new GetLoggingServerRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest); - - /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. */ - public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - - /** UpdateVmwareEngineNetworkRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.vmwareengine.v1.IGetLoggingServerRequest); - /** UpdateVmwareEngineNetworkRequest requestId. */ - public requestId: string; + /** GetLoggingServerRequest name. */ + public name: string; /** - * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new GetLoggingServerRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateVmwareEngineNetworkRequest instance + * @returns GetLoggingServerRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IGetLoggingServerRequest): google.cloud.vmwareengine.v1.GetLoggingServerRequest; /** - * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. - * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified GetLoggingServerRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetLoggingServerRequest.verify|verify} messages. + * @param message GetLoggingServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetLoggingServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. - * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified GetLoggingServerRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetLoggingServerRequest.verify|verify} messages. + * @param message GetLoggingServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetLoggingServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a GetLoggingServerRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateVmwareEngineNetworkRequest + * @returns GetLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetLoggingServerRequest; /** - * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetLoggingServerRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateVmwareEngineNetworkRequest + * @returns GetLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetLoggingServerRequest; /** - * Verifies an UpdateVmwareEngineNetworkRequest message. + * Verifies a GetLoggingServerRequest message. * @param message Plain 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 UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetLoggingServerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateVmwareEngineNetworkRequest + * @returns GetLoggingServerRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetLoggingServerRequest; /** - * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @param message UpdateVmwareEngineNetworkRequest + * Creates a plain object from a GetLoggingServerRequest message. Also converts values to other types if specified. + * @param message GetLoggingServerRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetLoggingServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateVmwareEngineNetworkRequest to JSON. + * Converts this GetLoggingServerRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateVmwareEngineNetworkRequest + * Gets the default type url for GetLoggingServerRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteVmwareEngineNetworkRequest. */ - interface IDeleteVmwareEngineNetworkRequest { + /** Properties of a CreateLoggingServerRequest. */ + interface ICreateLoggingServerRequest { - /** DeleteVmwareEngineNetworkRequest name */ - name?: (string|null); + /** CreateLoggingServerRequest parent */ + parent?: (string|null); - /** DeleteVmwareEngineNetworkRequest requestId */ - requestId?: (string|null); + /** CreateLoggingServerRequest loggingServer */ + loggingServer?: (google.cloud.vmwareengine.v1.ILoggingServer|null); - /** DeleteVmwareEngineNetworkRequest etag */ - etag?: (string|null); + /** CreateLoggingServerRequest loggingServerId */ + loggingServerId?: (string|null); + + /** CreateLoggingServerRequest requestId */ + requestId?: (string|null); } - /** Represents a DeleteVmwareEngineNetworkRequest. */ - class DeleteVmwareEngineNetworkRequest implements IDeleteVmwareEngineNetworkRequest { + /** Represents a CreateLoggingServerRequest. */ + class CreateLoggingServerRequest implements ICreateLoggingServerRequest { /** - * Constructs a new DeleteVmwareEngineNetworkRequest. + * Constructs a new CreateLoggingServerRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest); + constructor(properties?: google.cloud.vmwareengine.v1.ICreateLoggingServerRequest); - /** DeleteVmwareEngineNetworkRequest name. */ - public name: string; + /** CreateLoggingServerRequest parent. */ + public parent: string; - /** DeleteVmwareEngineNetworkRequest requestId. */ - public requestId: string; + /** CreateLoggingServerRequest loggingServer. */ + public loggingServer?: (google.cloud.vmwareengine.v1.ILoggingServer|null); - /** DeleteVmwareEngineNetworkRequest etag. */ - public etag: string; + /** CreateLoggingServerRequest loggingServerId. */ + public loggingServerId: string; + + /** CreateLoggingServerRequest requestId. */ + public requestId: string; /** - * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new CreateLoggingServerRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteVmwareEngineNetworkRequest instance + * @returns CreateLoggingServerRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + public static create(properties?: google.cloud.vmwareengine.v1.ICreateLoggingServerRequest): google.cloud.vmwareengine.v1.CreateLoggingServerRequest; /** - * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. - * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified CreateLoggingServerRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateLoggingServerRequest.verify|verify} messages. + * @param message CreateLoggingServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreateLoggingServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. - * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified CreateLoggingServerRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateLoggingServerRequest.verify|verify} messages. + * @param message CreateLoggingServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateLoggingServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a CreateLoggingServerRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteVmwareEngineNetworkRequest + * @returns CreateLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateLoggingServerRequest; /** - * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateLoggingServerRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVmwareEngineNetworkRequest + * @returns CreateLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateLoggingServerRequest; /** - * Verifies a DeleteVmwareEngineNetworkRequest message. + * Verifies a CreateLoggingServerRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateLoggingServerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteVmwareEngineNetworkRequest + * @returns CreateLoggingServerRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateLoggingServerRequest; /** - * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @param message DeleteVmwareEngineNetworkRequest + * Creates a plain object from a CreateLoggingServerRequest message. Also converts values to other types if specified. + * @param message CreateLoggingServerRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreateLoggingServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVmwareEngineNetworkRequest to JSON. + * Converts this CreateLoggingServerRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteVmwareEngineNetworkRequest + * Gets the default type url for CreateLoggingServerRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetVmwareEngineNetworkRequest. */ - interface IGetVmwareEngineNetworkRequest { + /** Properties of an UpdateLoggingServerRequest. */ + interface IUpdateLoggingServerRequest { - /** GetVmwareEngineNetworkRequest name */ - name?: (string|null); + /** UpdateLoggingServerRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateLoggingServerRequest loggingServer */ + loggingServer?: (google.cloud.vmwareengine.v1.ILoggingServer|null); + + /** UpdateLoggingServerRequest requestId */ + requestId?: (string|null); } - /** Represents a GetVmwareEngineNetworkRequest. */ - class GetVmwareEngineNetworkRequest implements IGetVmwareEngineNetworkRequest { + /** Represents an UpdateLoggingServerRequest. */ + class UpdateLoggingServerRequest implements IUpdateLoggingServerRequest { /** - * Constructs a new GetVmwareEngineNetworkRequest. + * Constructs a new UpdateLoggingServerRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest); - /** GetVmwareEngineNetworkRequest name. */ - public name: string; + /** UpdateLoggingServerRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateLoggingServerRequest loggingServer. */ + public loggingServer?: (google.cloud.vmwareengine.v1.ILoggingServer|null); + + /** UpdateLoggingServerRequest requestId. */ + public requestId: string; /** - * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new UpdateLoggingServerRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetVmwareEngineNetworkRequest instance + * @returns UpdateLoggingServerRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest): google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; /** - * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. - * @param message GetVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified UpdateLoggingServerRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.verify|verify} messages. + * @param message UpdateLoggingServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. - * @param message GetVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified UpdateLoggingServerRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.verify|verify} messages. + * @param message UpdateLoggingServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes an UpdateLoggingServerRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetVmwareEngineNetworkRequest + * @returns UpdateLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; /** - * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateLoggingServerRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVmwareEngineNetworkRequest + * @returns UpdateLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; /** - * Verifies a GetVmwareEngineNetworkRequest message. + * Verifies an UpdateLoggingServerRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateLoggingServerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVmwareEngineNetworkRequest + * @returns UpdateLoggingServerRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; /** - * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @param message GetVmwareEngineNetworkRequest + * Creates a plain object from an UpdateLoggingServerRequest message. Also converts values to other types if specified. + * @param message UpdateLoggingServerRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateLoggingServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVmwareEngineNetworkRequest to JSON. + * Converts this UpdateLoggingServerRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVmwareEngineNetworkRequest + * Gets the default type url for UpdateLoggingServerRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListVmwareEngineNetworksRequest. */ - interface IListVmwareEngineNetworksRequest { - - /** ListVmwareEngineNetworksRequest parent */ - parent?: (string|null); - - /** ListVmwareEngineNetworksRequest pageSize */ - pageSize?: (number|null); - - /** ListVmwareEngineNetworksRequest pageToken */ - pageToken?: (string|null); + /** Properties of a DeleteLoggingServerRequest. */ + interface IDeleteLoggingServerRequest { - /** ListVmwareEngineNetworksRequest filter */ - filter?: (string|null); + /** DeleteLoggingServerRequest name */ + name?: (string|null); - /** ListVmwareEngineNetworksRequest orderBy */ - orderBy?: (string|null); + /** DeleteLoggingServerRequest requestId */ + requestId?: (string|null); } - /** Represents a ListVmwareEngineNetworksRequest. */ - class ListVmwareEngineNetworksRequest implements IListVmwareEngineNetworksRequest { + /** Represents a DeleteLoggingServerRequest. */ + class DeleteLoggingServerRequest implements IDeleteLoggingServerRequest { /** - * Constructs a new ListVmwareEngineNetworksRequest. + * Constructs a new DeleteLoggingServerRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest); - - /** ListVmwareEngineNetworksRequest parent. */ - public parent: string; - - /** ListVmwareEngineNetworksRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest); - /** ListVmwareEngineNetworksRequest pageToken. */ - public pageToken: string; - - /** ListVmwareEngineNetworksRequest filter. */ - public filter: string; + /** DeleteLoggingServerRequest name. */ + public name: string; - /** ListVmwareEngineNetworksRequest orderBy. */ - public orderBy: string; + /** DeleteLoggingServerRequest requestId. */ + public requestId: string; /** - * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties. + * Creates a new DeleteLoggingServerRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListVmwareEngineNetworksRequest instance + * @returns DeleteLoggingServerRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest): google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; /** - * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. - * @param message ListVmwareEngineNetworksRequest message or plain object to encode + * Encodes the specified DeleteLoggingServerRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.verify|verify} messages. + * @param message DeleteLoggingServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. - * @param message ListVmwareEngineNetworksRequest message or plain object to encode + * Encodes the specified DeleteLoggingServerRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.verify|verify} messages. + * @param message DeleteLoggingServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer. + * Decodes a DeleteLoggingServerRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVmwareEngineNetworksRequest + * @returns DeleteLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; /** - * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteLoggingServerRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVmwareEngineNetworksRequest + * @returns DeleteLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; /** - * Verifies a ListVmwareEngineNetworksRequest message. + * Verifies a DeleteLoggingServerRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteLoggingServerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVmwareEngineNetworksRequest + * @returns DeleteLoggingServerRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; /** - * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified. - * @param message ListVmwareEngineNetworksRequest + * Creates a plain object from a DeleteLoggingServerRequest message. Also converts values to other types if specified. + * @param message DeleteLoggingServerRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.DeleteLoggingServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVmwareEngineNetworksRequest to JSON. + * Converts this DeleteLoggingServerRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVmwareEngineNetworksRequest + * Gets the default type url for DeleteLoggingServerRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListVmwareEngineNetworksResponse. */ - interface IListVmwareEngineNetworksResponse { + /** Properties of an OperationMetadata. */ + interface IOperationMetadata { - /** ListVmwareEngineNetworksResponse vmwareEngineNetworks */ - vmwareEngineNetworks?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]|null); + /** OperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ListVmwareEngineNetworksResponse nextPageToken */ - nextPageToken?: (string|null); + /** OperationMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** ListVmwareEngineNetworksResponse unreachable */ - unreachable?: (string[]|null); + /** OperationMetadata target */ + target?: (string|null); + + /** OperationMetadata verb */ + verb?: (string|null); + + /** OperationMetadata statusMessage */ + statusMessage?: (string|null); + + /** OperationMetadata requestedCancellation */ + requestedCancellation?: (boolean|null); + + /** OperationMetadata apiVersion */ + apiVersion?: (string|null); } - /** Represents a ListVmwareEngineNetworksResponse. */ - class ListVmwareEngineNetworksResponse implements IListVmwareEngineNetworksResponse { + /** Represents an OperationMetadata. */ + class OperationMetadata implements IOperationMetadata { /** - * Constructs a new ListVmwareEngineNetworksResponse. + * Constructs a new OperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IOperationMetadata); - /** ListVmwareEngineNetworksResponse vmwareEngineNetworks. */ - public vmwareEngineNetworks: google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]; + /** OperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListVmwareEngineNetworksResponse nextPageToken. */ - public nextPageToken: string; + /** OperationMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** ListVmwareEngineNetworksResponse unreachable. */ - public unreachable: string[]; + /** OperationMetadata target. */ + public target: string; + + /** OperationMetadata verb. */ + public verb: string; + + /** OperationMetadata statusMessage. */ + public statusMessage: string; + + /** OperationMetadata requestedCancellation. */ + public requestedCancellation: boolean; + + /** OperationMetadata apiVersion. */ + public apiVersion: string; /** - * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties. + * Creates a new OperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListVmwareEngineNetworksResponse instance + * @returns OperationMetadata instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IOperationMetadata): google.cloud.vmwareengine.v1.OperationMetadata; /** - * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. - * @param message ListVmwareEngineNetworksResponse message or plain object to encode + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. - * @param message ListVmwareEngineNetworksResponse message or plain object to encode + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer. + * Decodes an OperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVmwareEngineNetworksResponse + * @returns OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.OperationMetadata; /** - * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited. + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVmwareEngineNetworksResponse + * @returns OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.OperationMetadata; /** - * Verifies a ListVmwareEngineNetworksResponse message. + * Verifies an OperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types. + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVmwareEngineNetworksResponse + * @returns OperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.OperationMetadata; /** - * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified. - * @param message ListVmwareEngineNetworksResponse + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @param message OperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVmwareEngineNetworksResponse to JSON. + * Converts this OperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVmwareEngineNetworksResponse + * Gets the default type url for OperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePrivateConnectionRequest. */ - interface ICreatePrivateConnectionRequest { + /** Properties of a ListNodeTypesRequest. */ + interface IListNodeTypesRequest { - /** CreatePrivateConnectionRequest parent */ + /** ListNodeTypesRequest parent */ parent?: (string|null); - /** CreatePrivateConnectionRequest privateConnectionId */ - privateConnectionId?: (string|null); + /** ListNodeTypesRequest pageSize */ + pageSize?: (number|null); - /** CreatePrivateConnectionRequest privateConnection */ - privateConnection?: (google.cloud.vmwareengine.v1.IPrivateConnection|null); + /** ListNodeTypesRequest pageToken */ + pageToken?: (string|null); - /** CreatePrivateConnectionRequest requestId */ - requestId?: (string|null); + /** ListNodeTypesRequest filter */ + filter?: (string|null); } - /** Represents a CreatePrivateConnectionRequest. */ - class CreatePrivateConnectionRequest implements ICreatePrivateConnectionRequest { + /** Represents a ListNodeTypesRequest. */ + class ListNodeTypesRequest implements IListNodeTypesRequest { /** - * Constructs a new CreatePrivateConnectionRequest. + * Constructs a new ListNodeTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest); - /** CreatePrivateConnectionRequest parent. */ + /** ListNodeTypesRequest parent. */ public parent: string; - /** CreatePrivateConnectionRequest privateConnectionId. */ - public privateConnectionId: string; + /** ListNodeTypesRequest pageSize. */ + public pageSize: number; - /** CreatePrivateConnectionRequest privateConnection. */ - public privateConnection?: (google.cloud.vmwareengine.v1.IPrivateConnection|null); + /** ListNodeTypesRequest pageToken. */ + public pageToken: string; - /** CreatePrivateConnectionRequest requestId. */ - public requestId: string; + /** ListNodeTypesRequest filter. */ + public filter: string; /** - * Creates a new CreatePrivateConnectionRequest instance using the specified properties. + * Creates a new ListNodeTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePrivateConnectionRequest instance + * @returns ListNodeTypesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest): google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest): google.cloud.vmwareengine.v1.ListNodeTypesRequest; /** - * Encodes the specified CreatePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.verify|verify} messages. - * @param message CreatePrivateConnectionRequest message or plain object to encode + * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. + * @param message ListNodeTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.verify|verify} messages. - * @param message CreatePrivateConnectionRequest message or plain object to encode + * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. + * @param message ListNodeTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePrivateConnectionRequest message from the specified reader or buffer. + * Decodes a ListNodeTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePrivateConnectionRequest + * @returns ListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNodeTypesRequest; /** - * Decodes a CreatePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePrivateConnectionRequest + * @returns ListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNodeTypesRequest; /** - * Verifies a CreatePrivateConnectionRequest message. + * Verifies a ListNodeTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreatePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePrivateConnectionRequest + * @returns ListNodeTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesRequest; /** - * Creates a plain object from a CreatePrivateConnectionRequest message. Also converts values to other types if specified. - * @param message CreatePrivateConnectionRequest + * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified. + * @param message ListNodeTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePrivateConnectionRequest to JSON. + * Converts this ListNodeTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreatePrivateConnectionRequest + * Gets the default type url for ListNodeTypesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPrivateConnectionRequest. */ - interface IGetPrivateConnectionRequest { + /** Properties of a ListNodeTypesResponse. */ + interface IListNodeTypesResponse { - /** GetPrivateConnectionRequest name */ - name?: (string|null); + /** ListNodeTypesResponse nodeTypes */ + nodeTypes?: (google.cloud.vmwareengine.v1.INodeType[]|null); + + /** ListNodeTypesResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListNodeTypesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a GetPrivateConnectionRequest. */ - class GetPrivateConnectionRequest implements IGetPrivateConnectionRequest { + /** Represents a ListNodeTypesResponse. */ + class ListNodeTypesResponse implements IListNodeTypesResponse { /** - * Constructs a new GetPrivateConnectionRequest. + * Constructs a new ListNodeTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse); - /** GetPrivateConnectionRequest name. */ - public name: string; + /** ListNodeTypesResponse nodeTypes. */ + public nodeTypes: google.cloud.vmwareengine.v1.INodeType[]; + + /** ListNodeTypesResponse nextPageToken. */ + public nextPageToken: string; + + /** ListNodeTypesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new GetPrivateConnectionRequest instance using the specified properties. + * Creates a new ListNodeTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetPrivateConnectionRequest instance + * @returns ListNodeTypesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest): google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse): google.cloud.vmwareengine.v1.ListNodeTypesResponse; /** - * Encodes the specified GetPrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.verify|verify} messages. - * @param message GetPrivateConnectionRequest message or plain object to encode + * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. + * @param message ListNodeTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.verify|verify} messages. - * @param message GetPrivateConnectionRequest message or plain object to encode + * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. + * @param message ListNodeTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPrivateConnectionRequest message from the specified reader or buffer. + * Decodes a ListNodeTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPrivateConnectionRequest + * @returns ListNodeTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNodeTypesResponse; /** - * Decodes a GetPrivateConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPrivateConnectionRequest + * @returns ListNodeTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNodeTypesResponse; /** - * Verifies a GetPrivateConnectionRequest message. + * Verifies a ListNodeTypesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetPrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPrivateConnectionRequest + * @returns ListNodeTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesResponse; /** - * Creates a plain object from a GetPrivateConnectionRequest message. Also converts values to other types if specified. - * @param message GetPrivateConnectionRequest + * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified. + * @param message ListNodeTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetPrivateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPrivateConnectionRequest to JSON. + * Converts this ListNodeTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPrivateConnectionRequest + * Gets the default type url for ListNodeTypesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPrivateConnectionsRequest. */ - interface IListPrivateConnectionsRequest { - - /** ListPrivateConnectionsRequest parent */ - parent?: (string|null); - - /** ListPrivateConnectionsRequest pageSize */ - pageSize?: (number|null); - - /** ListPrivateConnectionsRequest pageToken */ - pageToken?: (string|null); - - /** ListPrivateConnectionsRequest filter */ - filter?: (string|null); + /** Properties of a GetNodeTypeRequest. */ + interface IGetNodeTypeRequest { - /** ListPrivateConnectionsRequest orderBy */ - orderBy?: (string|null); + /** GetNodeTypeRequest name */ + name?: (string|null); } - /** Represents a ListPrivateConnectionsRequest. */ - class ListPrivateConnectionsRequest implements IListPrivateConnectionsRequest { + /** Represents a GetNodeTypeRequest. */ + class GetNodeTypeRequest implements IGetNodeTypeRequest { /** - * Constructs a new ListPrivateConnectionsRequest. + * Constructs a new GetNodeTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest); - - /** ListPrivateConnectionsRequest parent. */ - public parent: string; - - /** ListPrivateConnectionsRequest pageSize. */ - public pageSize: number; - - /** ListPrivateConnectionsRequest pageToken. */ - public pageToken: string; - - /** ListPrivateConnectionsRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest); - /** ListPrivateConnectionsRequest orderBy. */ - public orderBy: string; + /** GetNodeTypeRequest name. */ + public name: string; /** - * Creates a new ListPrivateConnectionsRequest instance using the specified properties. + * Creates a new GetNodeTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPrivateConnectionsRequest instance + * @returns GetNodeTypeRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest): google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest): google.cloud.vmwareengine.v1.GetNodeTypeRequest; /** - * Encodes the specified ListPrivateConnectionsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.verify|verify} messages. - * @param message ListPrivateConnectionsRequest message or plain object to encode + * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. + * @param message GetNodeTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPrivateConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.verify|verify} messages. - * @param message ListPrivateConnectionsRequest message or plain object to encode + * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. + * @param message GetNodeTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPrivateConnectionsRequest message from the specified reader or buffer. + * Decodes a GetNodeTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPrivateConnectionsRequest + * @returns GetNodeTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetNodeTypeRequest; /** - * Decodes a ListPrivateConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPrivateConnectionsRequest + * @returns GetNodeTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetNodeTypeRequest; /** - * Verifies a ListPrivateConnectionsRequest message. + * Verifies a GetNodeTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPrivateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPrivateConnectionsRequest + * @returns GetNodeTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNodeTypeRequest; /** - * Creates a plain object from a ListPrivateConnectionsRequest message. Also converts values to other types if specified. - * @param message ListPrivateConnectionsRequest + * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified. + * @param message GetNodeTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetNodeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPrivateConnectionsRequest to JSON. + * Converts this GetNodeTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPrivateConnectionsRequest + * Gets the default type url for GetNodeTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPrivateConnectionsResponse. */ - interface IListPrivateConnectionsResponse { - - /** ListPrivateConnectionsResponse privateConnections */ - privateConnections?: (google.cloud.vmwareengine.v1.IPrivateConnection[]|null); - - /** ListPrivateConnectionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of a ShowNsxCredentialsRequest. */ + interface IShowNsxCredentialsRequest { - /** ListPrivateConnectionsResponse unreachable */ - unreachable?: (string[]|null); + /** ShowNsxCredentialsRequest privateCloud */ + privateCloud?: (string|null); } - /** Represents a ListPrivateConnectionsResponse. */ - class ListPrivateConnectionsResponse implements IListPrivateConnectionsResponse { + /** Represents a ShowNsxCredentialsRequest. */ + class ShowNsxCredentialsRequest implements IShowNsxCredentialsRequest { /** - * Constructs a new ListPrivateConnectionsResponse. + * Constructs a new ShowNsxCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse); - - /** ListPrivateConnectionsResponse privateConnections. */ - public privateConnections: google.cloud.vmwareengine.v1.IPrivateConnection[]; - - /** ListPrivateConnectionsResponse nextPageToken. */ - public nextPageToken: string; + constructor(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest); - /** ListPrivateConnectionsResponse unreachable. */ - public unreachable: string[]; + /** ShowNsxCredentialsRequest privateCloud. */ + public privateCloud: string; /** - * Creates a new ListPrivateConnectionsResponse instance using the specified properties. + * Creates a new ShowNsxCredentialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPrivateConnectionsResponse instance + * @returns ShowNsxCredentialsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse): google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; /** - * Encodes the specified ListPrivateConnectionsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.verify|verify} messages. - * @param message ListPrivateConnectionsResponse message or plain object to encode + * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. + * @param message ShowNsxCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPrivateConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.verify|verify} messages. - * @param message ListPrivateConnectionsResponse message or plain object to encode + * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. + * @param message ShowNsxCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPrivateConnectionsResponse message from the specified reader or buffer. + * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPrivateConnectionsResponse + * @returns ShowNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; /** - * Decodes a ListPrivateConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPrivateConnectionsResponse + * @returns ShowNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; /** - * Verifies a ListPrivateConnectionsResponse message. + * Verifies a ShowNsxCredentialsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPrivateConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPrivateConnectionsResponse + * @returns ShowNsxCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; /** - * Creates a plain object from a ListPrivateConnectionsResponse message. Also converts values to other types if specified. - * @param message ListPrivateConnectionsResponse + * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified. + * @param message ShowNsxCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPrivateConnectionsResponse to JSON. + * Converts this ShowNsxCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPrivateConnectionsResponse + * Gets the default type url for ShowNsxCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdatePrivateConnectionRequest. */ - interface IUpdatePrivateConnectionRequest { - - /** UpdatePrivateConnectionRequest privateConnection */ - privateConnection?: (google.cloud.vmwareengine.v1.IPrivateConnection|null); + /** Properties of a ShowVcenterCredentialsRequest. */ + interface IShowVcenterCredentialsRequest { - /** UpdatePrivateConnectionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ShowVcenterCredentialsRequest privateCloud */ + privateCloud?: (string|null); - /** UpdatePrivateConnectionRequest requestId */ - requestId?: (string|null); + /** ShowVcenterCredentialsRequest username */ + username?: (string|null); } - /** Represents an UpdatePrivateConnectionRequest. */ - class UpdatePrivateConnectionRequest implements IUpdatePrivateConnectionRequest { + /** Represents a ShowVcenterCredentialsRequest. */ + class ShowVcenterCredentialsRequest implements IShowVcenterCredentialsRequest { /** - * Constructs a new UpdatePrivateConnectionRequest. + * Constructs a new ShowVcenterCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest); - /** UpdatePrivateConnectionRequest privateConnection. */ - public privateConnection?: (google.cloud.vmwareengine.v1.IPrivateConnection|null); - - /** UpdatePrivateConnectionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ShowVcenterCredentialsRequest privateCloud. */ + public privateCloud: string; - /** UpdatePrivateConnectionRequest requestId. */ - public requestId: string; + /** ShowVcenterCredentialsRequest username. */ + public username: string; /** - * Creates a new UpdatePrivateConnectionRequest instance using the specified properties. + * Creates a new ShowVcenterCredentialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdatePrivateConnectionRequest instance + * @returns ShowVcenterCredentialsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest): google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; /** - * Encodes the specified UpdatePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.verify|verify} messages. - * @param message UpdatePrivateConnectionRequest message or plain object to encode + * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. + * @param message ShowVcenterCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdatePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.verify|verify} messages. - * @param message UpdatePrivateConnectionRequest message or plain object to encode + * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. + * @param message ShowVcenterCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdatePrivateConnectionRequest message from the specified reader or buffer. + * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdatePrivateConnectionRequest + * @returns ShowVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; /** - * Decodes an UpdatePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdatePrivateConnectionRequest + * @returns ShowVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; /** - * Verifies an UpdatePrivateConnectionRequest message. + * Verifies a ShowVcenterCredentialsRequest message. * @param message Plain 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 UpdatePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdatePrivateConnectionRequest + * @returns ShowVcenterCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; /** - * Creates a plain object from an UpdatePrivateConnectionRequest message. Also converts values to other types if specified. - * @param message UpdatePrivateConnectionRequest + * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified. + * @param message ShowVcenterCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdatePrivateConnectionRequest to JSON. + * Converts this ShowVcenterCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdatePrivateConnectionRequest + * Gets the default type url for ShowVcenterCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeletePrivateConnectionRequest. */ - interface IDeletePrivateConnectionRequest { + /** Properties of a ResetNsxCredentialsRequest. */ + interface IResetNsxCredentialsRequest { - /** DeletePrivateConnectionRequest name */ - name?: (string|null); + /** ResetNsxCredentialsRequest privateCloud */ + privateCloud?: (string|null); - /** DeletePrivateConnectionRequest requestId */ + /** ResetNsxCredentialsRequest requestId */ requestId?: (string|null); } - /** Represents a DeletePrivateConnectionRequest. */ - class DeletePrivateConnectionRequest implements IDeletePrivateConnectionRequest { + /** Represents a ResetNsxCredentialsRequest. */ + class ResetNsxCredentialsRequest implements IResetNsxCredentialsRequest { /** - * Constructs a new DeletePrivateConnectionRequest. + * Constructs a new ResetNsxCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest); - /** DeletePrivateConnectionRequest name. */ - public name: string; + /** ResetNsxCredentialsRequest privateCloud. */ + public privateCloud: string; - /** DeletePrivateConnectionRequest requestId. */ + /** ResetNsxCredentialsRequest requestId. */ public requestId: string; /** - * Creates a new DeletePrivateConnectionRequest instance using the specified properties. + * Creates a new ResetNsxCredentialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePrivateConnectionRequest instance + * @returns ResetNsxCredentialsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest): google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; /** - * Encodes the specified DeletePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.verify|verify} messages. - * @param message DeletePrivateConnectionRequest message or plain object to encode + * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * @param message ResetNsxCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.verify|verify} messages. - * @param message DeletePrivateConnectionRequest message or plain object to encode + * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * @param message ResetNsxCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePrivateConnectionRequest message from the specified reader or buffer. + * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePrivateConnectionRequest + * @returns ResetNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; /** - * Decodes a DeletePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePrivateConnectionRequest + * @returns ResetNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; /** - * Verifies a DeletePrivateConnectionRequest message. + * Verifies a ResetNsxCredentialsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeletePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePrivateConnectionRequest + * @returns ResetNsxCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; /** - * Creates a plain object from a DeletePrivateConnectionRequest message. Also converts values to other types if specified. - * @param message DeletePrivateConnectionRequest + * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified. + * @param message ResetNsxCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePrivateConnectionRequest to JSON. + * Converts this ResetNsxCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeletePrivateConnectionRequest + * Gets the default type url for ResetNsxCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPrivateConnectionPeeringRoutesRequest. */ - interface IListPrivateConnectionPeeringRoutesRequest { + /** Properties of a ResetVcenterCredentialsRequest. */ + interface IResetVcenterCredentialsRequest { - /** ListPrivateConnectionPeeringRoutesRequest parent */ - parent?: (string|null); + /** ResetVcenterCredentialsRequest privateCloud */ + privateCloud?: (string|null); - /** ListPrivateConnectionPeeringRoutesRequest pageSize */ - pageSize?: (number|null); + /** ResetVcenterCredentialsRequest requestId */ + requestId?: (string|null); - /** ListPrivateConnectionPeeringRoutesRequest pageToken */ - pageToken?: (string|null); + /** ResetVcenterCredentialsRequest username */ + username?: (string|null); } - /** Represents a ListPrivateConnectionPeeringRoutesRequest. */ - class ListPrivateConnectionPeeringRoutesRequest implements IListPrivateConnectionPeeringRoutesRequest { + /** Represents a ResetVcenterCredentialsRequest. */ + class ResetVcenterCredentialsRequest implements IResetVcenterCredentialsRequest { /** - * Constructs a new ListPrivateConnectionPeeringRoutesRequest. + * Constructs a new ResetVcenterCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest); - /** ListPrivateConnectionPeeringRoutesRequest parent. */ - public parent: string; + /** ResetVcenterCredentialsRequest privateCloud. */ + public privateCloud: string; - /** ListPrivateConnectionPeeringRoutesRequest pageSize. */ - public pageSize: number; + /** ResetVcenterCredentialsRequest requestId. */ + public requestId: string; - /** ListPrivateConnectionPeeringRoutesRequest pageToken. */ - public pageToken: string; + /** ResetVcenterCredentialsRequest username. */ + public username: string; /** - * Creates a new ListPrivateConnectionPeeringRoutesRequest instance using the specified properties. + * Creates a new ResetVcenterCredentialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPrivateConnectionPeeringRoutesRequest instance + * @returns ResetVcenterCredentialsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; /** - * Encodes the specified ListPrivateConnectionPeeringRoutesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.verify|verify} messages. - * @param message ListPrivateConnectionPeeringRoutesRequest message or plain object to encode + * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. + * @param message ResetVcenterCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPrivateConnectionPeeringRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.verify|verify} messages. - * @param message ListPrivateConnectionPeeringRoutesRequest message or plain object to encode + * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. + * @param message ResetVcenterCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPrivateConnectionPeeringRoutesRequest message from the specified reader or buffer. + * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPrivateConnectionPeeringRoutesRequest + * @returns ResetVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; /** - * Decodes a ListPrivateConnectionPeeringRoutesRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPrivateConnectionPeeringRoutesRequest + * @returns ResetVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; /** - * Verifies a ListPrivateConnectionPeeringRoutesRequest message. + * Verifies a ResetVcenterCredentialsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPrivateConnectionPeeringRoutesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPrivateConnectionPeeringRoutesRequest + * @returns ResetVcenterCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; /** - * Creates a plain object from a ListPrivateConnectionPeeringRoutesRequest message. Also converts values to other types if specified. - * @param message ListPrivateConnectionPeeringRoutesRequest + * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified. + * @param message ResetVcenterCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPrivateConnectionPeeringRoutesRequest to JSON. + * Converts this ResetVcenterCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPrivateConnectionPeeringRoutesRequest + * Gets the default type url for ResetVcenterCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPrivateConnectionPeeringRoutesResponse. */ - interface IListPrivateConnectionPeeringRoutesResponse { + /** Properties of a ListHcxActivationKeysResponse. */ + interface IListHcxActivationKeysResponse { - /** ListPrivateConnectionPeeringRoutesResponse peeringRoutes */ - peeringRoutes?: (google.cloud.vmwareengine.v1.IPeeringRoute[]|null); + /** ListHcxActivationKeysResponse hcxActivationKeys */ + hcxActivationKeys?: (google.cloud.vmwareengine.v1.IHcxActivationKey[]|null); - /** ListPrivateConnectionPeeringRoutesResponse nextPageToken */ + /** ListHcxActivationKeysResponse nextPageToken */ nextPageToken?: (string|null); + + /** ListHcxActivationKeysResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a ListPrivateConnectionPeeringRoutesResponse. */ - class ListPrivateConnectionPeeringRoutesResponse implements IListPrivateConnectionPeeringRoutesResponse { + /** Represents a ListHcxActivationKeysResponse. */ + class ListHcxActivationKeysResponse implements IListHcxActivationKeysResponse { /** - * Constructs a new ListPrivateConnectionPeeringRoutesResponse. + * Constructs a new ListHcxActivationKeysResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse); - /** ListPrivateConnectionPeeringRoutesResponse peeringRoutes. */ - public peeringRoutes: google.cloud.vmwareengine.v1.IPeeringRoute[]; + /** ListHcxActivationKeysResponse hcxActivationKeys. */ + public hcxActivationKeys: google.cloud.vmwareengine.v1.IHcxActivationKey[]; - /** ListPrivateConnectionPeeringRoutesResponse nextPageToken. */ + /** ListHcxActivationKeysResponse nextPageToken. */ public nextPageToken: string; + /** ListHcxActivationKeysResponse unreachable. */ + public unreachable: string[]; + /** - * Creates a new ListPrivateConnectionPeeringRoutesResponse instance using the specified properties. + * Creates a new ListHcxActivationKeysResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListPrivateConnectionPeeringRoutesResponse instance + * @returns ListHcxActivationKeysResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; /** - * Encodes the specified ListPrivateConnectionPeeringRoutesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.verify|verify} messages. - * @param message ListPrivateConnectionPeeringRoutesResponse message or plain object to encode + * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * @param message ListHcxActivationKeysResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPrivateConnectionPeeringRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.verify|verify} messages. - * @param message ListPrivateConnectionPeeringRoutesResponse message or plain object to encode - * @param [writer] Writer to encode to + * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * @param message ListHcxActivationKeysResponse message or plain object to encode + * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPrivateConnectionPeeringRoutesResponse message from the specified reader or buffer. + * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPrivateConnectionPeeringRoutesResponse + * @returns ListHcxActivationKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; /** - * Decodes a ListPrivateConnectionPeeringRoutesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPrivateConnectionPeeringRoutesResponse + * @returns ListHcxActivationKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; /** - * Verifies a ListPrivateConnectionPeeringRoutesResponse message. + * Verifies a ListHcxActivationKeysResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPrivateConnectionPeeringRoutesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPrivateConnectionPeeringRoutesResponse + * @returns ListHcxActivationKeysResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; /** - * Creates a plain object from a ListPrivateConnectionPeeringRoutesResponse message. Also converts values to other types if specified. - * @param message ListPrivateConnectionPeeringRoutesResponse + * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified. + * @param message ListHcxActivationKeysResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPrivateConnectionPeeringRoutesResponse to JSON. + * Converts this ListHcxActivationKeysResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPrivateConnectionPeeringRoutesResponse + * Gets the default type url for ListHcxActivationKeysResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetworkConfig. */ - interface INetworkConfig { - - /** NetworkConfig managementCidr */ - managementCidr?: (string|null); + /** Properties of a ListHcxActivationKeysRequest. */ + interface IListHcxActivationKeysRequest { - /** NetworkConfig vmwareEngineNetwork */ - vmwareEngineNetwork?: (string|null); + /** ListHcxActivationKeysRequest parent */ + parent?: (string|null); - /** NetworkConfig vmwareEngineNetworkCanonical */ - vmwareEngineNetworkCanonical?: (string|null); + /** ListHcxActivationKeysRequest pageSize */ + pageSize?: (number|null); - /** NetworkConfig managementIpAddressLayoutVersion */ - managementIpAddressLayoutVersion?: (number|null); + /** ListHcxActivationKeysRequest pageToken */ + pageToken?: (string|null); } - /** Represents a NetworkConfig. */ - class NetworkConfig implements INetworkConfig { + /** Represents a ListHcxActivationKeysRequest. */ + class ListHcxActivationKeysRequest implements IListHcxActivationKeysRequest { /** - * Constructs a new NetworkConfig. + * Constructs a new ListHcxActivationKeysRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.INetworkConfig); - - /** NetworkConfig managementCidr. */ - public managementCidr: string; + constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest); - /** NetworkConfig vmwareEngineNetwork. */ - public vmwareEngineNetwork: string; + /** ListHcxActivationKeysRequest parent. */ + public parent: string; - /** NetworkConfig vmwareEngineNetworkCanonical. */ - public vmwareEngineNetworkCanonical: string; + /** ListHcxActivationKeysRequest pageSize. */ + public pageSize: number; - /** NetworkConfig managementIpAddressLayoutVersion. */ - public managementIpAddressLayoutVersion: number; + /** ListHcxActivationKeysRequest pageToken. */ + public pageToken: string; /** - * Creates a new NetworkConfig instance using the specified properties. + * Creates a new ListHcxActivationKeysRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NetworkConfig instance + * @returns ListHcxActivationKeysRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INetworkConfig): google.cloud.vmwareengine.v1.NetworkConfig; + public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; /** - * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. - * @param message NetworkConfig message or plain object to encode + * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. + * @param message ListHcxActivationKeysRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. - * @param message NetworkConfig message or plain object to encode + * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. + * @param message ListHcxActivationKeysRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetworkConfig + * @returns ListHcxActivationKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetworkConfig + * @returns ListHcxActivationKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; /** - * Verifies a NetworkConfig message. + * Verifies a ListHcxActivationKeysRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetworkConfig + * @returns ListHcxActivationKeysRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; /** - * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. - * @param message NetworkConfig + * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified. + * @param message ListHcxActivationKeysRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetworkConfig to JSON. + * Converts this ListHcxActivationKeysRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetworkConfig + * Gets the default type url for ListHcxActivationKeysRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NodeTypeConfig. */ - interface INodeTypeConfig { - - /** NodeTypeConfig nodeCount */ - nodeCount?: (number|null); + /** Properties of a GetHcxActivationKeyRequest. */ + interface IGetHcxActivationKeyRequest { - /** NodeTypeConfig customCoreCount */ - customCoreCount?: (number|null); + /** GetHcxActivationKeyRequest name */ + name?: (string|null); } - /** Represents a NodeTypeConfig. */ - class NodeTypeConfig implements INodeTypeConfig { + /** Represents a GetHcxActivationKeyRequest. */ + class GetHcxActivationKeyRequest implements IGetHcxActivationKeyRequest { /** - * Constructs a new NodeTypeConfig. + * Constructs a new GetHcxActivationKeyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig); - - /** NodeTypeConfig nodeCount. */ - public nodeCount: number; + constructor(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest); - /** NodeTypeConfig customCoreCount. */ - public customCoreCount: number; + /** GetHcxActivationKeyRequest name. */ + public name: string; /** - * Creates a new NodeTypeConfig instance using the specified properties. + * Creates a new GetHcxActivationKeyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NodeTypeConfig instance + * @returns GetHcxActivationKeyRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig): google.cloud.vmwareengine.v1.NodeTypeConfig; + public static create(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; /** - * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. - * @param message NodeTypeConfig message or plain object to encode + * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. + * @param message GetHcxActivationKeyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. - * @param message NodeTypeConfig message or plain object to encode + * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. + * @param message GetHcxActivationKeyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeTypeConfig message from the specified reader or buffer. + * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeTypeConfig + * @returns GetHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NodeTypeConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; /** - * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited. + * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodeTypeConfig + * @returns GetHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NodeTypeConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; /** - * Verifies a NodeTypeConfig message. + * Verifies a GetHcxActivationKeyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NodeTypeConfig + * @returns GetHcxActivationKeyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeTypeConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; /** - * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified. - * @param message NodeTypeConfig + * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified. + * @param message GetHcxActivationKeyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.NodeTypeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodeTypeConfig to JSON. + * Converts this GetHcxActivationKeyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NodeTypeConfig + * Gets the default type url for GetHcxActivationKeyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrivateCloud. */ - interface IPrivateCloud { + /** Properties of a CreateHcxActivationKeyRequest. */ + interface ICreateHcxActivationKeyRequest { - /** PrivateCloud name */ - name?: (string|null); + /** CreateHcxActivationKeyRequest parent */ + parent?: (string|null); - /** PrivateCloud createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** CreateHcxActivationKeyRequest hcxActivationKey */ + hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null); - /** PrivateCloud updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** CreateHcxActivationKeyRequest hcxActivationKeyId */ + hcxActivationKeyId?: (string|null); - /** PrivateCloud deleteTime */ - deleteTime?: (google.protobuf.ITimestamp|null); + /** CreateHcxActivationKeyRequest requestId */ + requestId?: (string|null); + } - /** PrivateCloud expireTime */ - expireTime?: (google.protobuf.ITimestamp|null); + /** Represents a CreateHcxActivationKeyRequest. */ + class CreateHcxActivationKeyRequest implements ICreateHcxActivationKeyRequest { - /** PrivateCloud state */ - state?: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State|null); + /** + * Constructs a new CreateHcxActivationKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest); - /** PrivateCloud networkConfig */ - networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null); + /** CreateHcxActivationKeyRequest parent. */ + public parent: string; - /** PrivateCloud managementCluster */ - managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null); + /** CreateHcxActivationKeyRequest hcxActivationKey. */ + public hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null); - /** PrivateCloud description */ - description?: (string|null); + /** CreateHcxActivationKeyRequest hcxActivationKeyId. */ + public hcxActivationKeyId: string; - /** PrivateCloud hcx */ - hcx?: (google.cloud.vmwareengine.v1.IHcx|null); + /** CreateHcxActivationKeyRequest requestId. */ + public requestId: string; - /** PrivateCloud nsx */ - nsx?: (google.cloud.vmwareengine.v1.INsx|null); + /** + * Creates a new CreateHcxActivationKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateHcxActivationKeyRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; - /** PrivateCloud vcenter */ - vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null); + /** + * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. + * @param message CreateHcxActivationKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PrivateCloud uid */ - uid?: (string|null); + /** + * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. + * @param message CreateHcxActivationKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PrivateCloud type */ - type?: (google.cloud.vmwareengine.v1.PrivateCloud.Type|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.Type|null); + /** + * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateHcxActivationKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + + /** + * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateHcxActivationKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + + /** + * Verifies a CreateHcxActivationKeyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateHcxActivationKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + + /** + * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified. + * @param message CreateHcxActivationKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateHcxActivationKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateHcxActivationKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PrivateCloud. */ - class PrivateCloud implements IPrivateCloud { + /** Properties of a GetDnsForwardingRequest. */ + interface IGetDnsForwardingRequest { + + /** GetDnsForwardingRequest name */ + name?: (string|null); + } + + /** Represents a GetDnsForwardingRequest. */ + class GetDnsForwardingRequest implements IGetDnsForwardingRequest { /** - * Constructs a new PrivateCloud. + * Constructs a new GetDnsForwardingRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IPrivateCloud); + constructor(properties?: google.cloud.vmwareengine.v1.IGetDnsForwardingRequest); - /** PrivateCloud name. */ + /** GetDnsForwardingRequest name. */ public name: string; - /** PrivateCloud createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new GetDnsForwardingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDnsForwardingRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IGetDnsForwardingRequest): google.cloud.vmwareengine.v1.GetDnsForwardingRequest; - /** PrivateCloud updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified GetDnsForwardingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetDnsForwardingRequest.verify|verify} messages. + * @param message GetDnsForwardingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IGetDnsForwardingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PrivateCloud deleteTime. */ - public deleteTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified GetDnsForwardingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetDnsForwardingRequest.verify|verify} messages. + * @param message GetDnsForwardingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetDnsForwardingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PrivateCloud expireTime. */ - public expireTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a GetDnsForwardingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDnsForwardingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetDnsForwardingRequest; - /** PrivateCloud state. */ - public state: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State); + /** + * Decodes a GetDnsForwardingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDnsForwardingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetDnsForwardingRequest; - /** PrivateCloud networkConfig. */ - public networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null); + /** + * Verifies a GetDnsForwardingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** PrivateCloud managementCluster. */ - public managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null); + /** + * Creates a GetDnsForwardingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDnsForwardingRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetDnsForwardingRequest; - /** PrivateCloud description. */ - public description: string; + /** + * Creates a plain object from a GetDnsForwardingRequest message. Also converts values to other types if specified. + * @param message GetDnsForwardingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.GetDnsForwardingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PrivateCloud hcx. */ - public hcx?: (google.cloud.vmwareengine.v1.IHcx|null); + /** + * Converts this GetDnsForwardingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PrivateCloud nsx. */ - public nsx?: (google.cloud.vmwareengine.v1.INsx|null); + /** + * Gets the default type url for GetDnsForwardingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PrivateCloud vcenter. */ - public vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null); + /** Properties of an UpdateDnsForwardingRequest. */ + interface IUpdateDnsForwardingRequest { - /** PrivateCloud uid. */ - public uid: string; + /** UpdateDnsForwardingRequest dnsForwarding */ + dnsForwarding?: (google.cloud.vmwareengine.v1.IDnsForwarding|null); - /** PrivateCloud type. */ - public type: (google.cloud.vmwareengine.v1.PrivateCloud.Type|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.Type); + /** UpdateDnsForwardingRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateDnsForwardingRequest requestId */ + requestId?: (string|null); + } + + /** Represents an UpdateDnsForwardingRequest. */ + class UpdateDnsForwardingRequest implements IUpdateDnsForwardingRequest { /** - * Creates a new PrivateCloud instance using the specified properties. + * Constructs a new UpdateDnsForwardingRequest. * @param [properties] Properties to set - * @returns PrivateCloud instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IPrivateCloud): google.cloud.vmwareengine.v1.PrivateCloud; + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest); + + /** UpdateDnsForwardingRequest dnsForwarding. */ + public dnsForwarding?: (google.cloud.vmwareengine.v1.IDnsForwarding|null); + + /** UpdateDnsForwardingRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateDnsForwardingRequest requestId. */ + public requestId: string; /** - * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. - * @param message PrivateCloud message or plain object to encode + * Creates a new UpdateDnsForwardingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateDnsForwardingRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest): google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest; + + /** + * Encodes the specified UpdateDnsForwardingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.verify|verify} messages. + * @param message UpdateDnsForwardingRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. - * @param message PrivateCloud message or plain object to encode + * Encodes the specified UpdateDnsForwardingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.verify|verify} messages. + * @param message UpdateDnsForwardingRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateCloud message from the specified reader or buffer. + * Decodes an UpdateDnsForwardingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateCloud + * @returns UpdateDnsForwardingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PrivateCloud; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest; /** - * Decodes a PrivateCloud message from the specified reader or buffer, length delimited. + * Decodes an UpdateDnsForwardingRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateCloud + * @returns UpdateDnsForwardingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PrivateCloud; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest; /** - * Verifies a PrivateCloud message. + * Verifies an UpdateDnsForwardingRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDnsForwardingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateCloud + * @returns UpdateDnsForwardingRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest; /** - * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified. - * @param message PrivateCloud + * Creates a plain object from an UpdateDnsForwardingRequest message. Also converts values to other types if specified. + * @param message UpdateDnsForwardingRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateCloud to JSON. + * Converts this UpdateDnsForwardingRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrivateCloud + * Gets the default type url for UpdateDnsForwardingRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PrivateCloud { + /** Properties of a CreateNetworkPeeringRequest. */ + interface ICreateNetworkPeeringRequest { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2, - UPDATING = 3, - FAILED = 5, - DELETED = 6, - PURGING = 7 - } + /** CreateNetworkPeeringRequest parent */ + parent?: (string|null); - /** Properties of a ManagementCluster. */ - interface IManagementCluster { + /** CreateNetworkPeeringRequest networkPeeringId */ + networkPeeringId?: (string|null); - /** ManagementCluster clusterId */ - clusterId?: (string|null); + /** CreateNetworkPeeringRequest networkPeering */ + networkPeering?: (google.cloud.vmwareengine.v1.INetworkPeering|null); - /** ManagementCluster nodeTypeConfigs */ - nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null); - } + /** CreateNetworkPeeringRequest requestId */ + requestId?: (string|null); + } - /** Represents a ManagementCluster. */ - class ManagementCluster implements IManagementCluster { + /** Represents a CreateNetworkPeeringRequest. */ + class CreateNetworkPeeringRequest implements ICreateNetworkPeeringRequest { - /** - * Constructs a new ManagementCluster. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster); + /** + * Constructs a new CreateNetworkPeeringRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest); - /** ManagementCluster clusterId. */ - public clusterId: string; + /** CreateNetworkPeeringRequest parent. */ + public parent: string; - /** ManagementCluster nodeTypeConfigs. */ - public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }; + /** CreateNetworkPeeringRequest networkPeeringId. */ + public networkPeeringId: string; - /** - * Creates a new ManagementCluster instance using the specified properties. - * @param [properties] Properties to set - * @returns ManagementCluster instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; + /** CreateNetworkPeeringRequest networkPeering. */ + public networkPeering?: (google.cloud.vmwareengine.v1.INetworkPeering|null); - /** - * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. - * @param message ManagementCluster message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateNetworkPeeringRequest requestId. */ + public requestId: string; - /** - * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. - * @param message ManagementCluster message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CreateNetworkPeeringRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateNetworkPeeringRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest): google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; - /** - * Decodes a ManagementCluster message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ManagementCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; + /** + * Encodes the specified CreateNetworkPeeringRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.verify|verify} messages. + * @param message CreateNetworkPeeringRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ManagementCluster message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ManagementCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; + /** + * Encodes the specified CreateNetworkPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.verify|verify} messages. + * @param message CreateNetworkPeeringRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ManagementCluster message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a CreateNetworkPeeringRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateNetworkPeeringRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; - /** - * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ManagementCluster - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; + /** + * Decodes a CreateNetworkPeeringRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateNetworkPeeringRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; - /** - * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified. - * @param message ManagementCluster - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a CreateNetworkPeeringRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this ManagementCluster to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a CreateNetworkPeeringRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateNetworkPeeringRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; - /** - * Gets the default type url for ManagementCluster - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a CreateNetworkPeeringRequest message. Also converts values to other types if specified. + * @param message CreateNetworkPeeringRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Type enum. */ - enum Type { - STANDARD = 0, - TIME_LIMITED = 1 - } + /** + * Converts this CreateNetworkPeeringRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateNetworkPeeringRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Cluster. */ - interface ICluster { + /** Properties of a DeleteNetworkPeeringRequest. */ + interface IDeleteNetworkPeeringRequest { - /** Cluster name */ + /** DeleteNetworkPeeringRequest name */ name?: (string|null); - /** Cluster createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Cluster updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Cluster state */ - state?: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State|null); - - /** Cluster management */ - management?: (boolean|null); - - /** Cluster uid */ - uid?: (string|null); - - /** Cluster nodeTypeConfigs */ - nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null); + /** DeleteNetworkPeeringRequest requestId */ + requestId?: (string|null); } - /** Represents a Cluster. */ - class Cluster implements ICluster { + /** Represents a DeleteNetworkPeeringRequest. */ + class DeleteNetworkPeeringRequest implements IDeleteNetworkPeeringRequest { /** - * Constructs a new Cluster. + * Constructs a new DeleteNetworkPeeringRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICluster); + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest); - /** Cluster name. */ + /** DeleteNetworkPeeringRequest name. */ public name: string; - /** Cluster createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Cluster updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Cluster state. */ - public state: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State); - - /** Cluster management. */ - public management: boolean; - - /** Cluster uid. */ - public uid: string; - - /** Cluster nodeTypeConfigs. */ - public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }; + /** DeleteNetworkPeeringRequest requestId. */ + public requestId: string; /** - * Creates a new Cluster instance using the specified properties. + * Creates a new DeleteNetworkPeeringRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Cluster instance + * @returns DeleteNetworkPeeringRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICluster): google.cloud.vmwareengine.v1.Cluster; + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest): google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; /** - * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. - * @param message Cluster message or plain object to encode + * Encodes the specified DeleteNetworkPeeringRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.verify|verify} messages. + * @param message DeleteNetworkPeeringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. - * @param message Cluster message or plain object to encode + * Encodes the specified DeleteNetworkPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.verify|verify} messages. + * @param message DeleteNetworkPeeringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Cluster message from the specified reader or buffer. + * Decodes a DeleteNetworkPeeringRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Cluster + * @returns DeleteNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Cluster; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; /** - * Decodes a Cluster message from the specified reader or buffer, length delimited. + * Decodes a DeleteNetworkPeeringRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Cluster + * @returns DeleteNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Cluster; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; /** - * Verifies a Cluster message. + * Verifies a DeleteNetworkPeeringRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Cluster message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNetworkPeeringRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Cluster + * @returns DeleteNetworkPeeringRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Cluster; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; /** - * Creates a plain object from a Cluster message. Also converts values to other types if specified. - * @param message Cluster + * Creates a plain object from a DeleteNetworkPeeringRequest message. Also converts values to other types if specified. + * @param message DeleteNetworkPeeringRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Cluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Cluster to JSON. + * Converts this DeleteNetworkPeeringRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Cluster + * Gets the default type url for DeleteNetworkPeeringRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Cluster { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2, - UPDATING = 3, - DELETING = 4, - REPAIRING = 5 - } - } - - /** Properties of a Subnet. */ - interface ISubnet { + /** Properties of a GetNetworkPeeringRequest. */ + interface IGetNetworkPeeringRequest { - /** Subnet name */ + /** GetNetworkPeeringRequest name */ name?: (string|null); - - /** Subnet ipCidrRange */ - ipCidrRange?: (string|null); - - /** Subnet gatewayIp */ - gatewayIp?: (string|null); - - /** Subnet type */ - type?: (string|null); - - /** Subnet state */ - state?: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State|null); } - /** Represents a Subnet. */ - class Subnet implements ISubnet { + /** Represents a GetNetworkPeeringRequest. */ + class GetNetworkPeeringRequest implements IGetNetworkPeeringRequest { /** - * Constructs a new Subnet. + * Constructs a new GetNetworkPeeringRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ISubnet); + constructor(properties?: google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest); - /** Subnet name. */ + /** GetNetworkPeeringRequest name. */ public name: string; - /** Subnet ipCidrRange. */ - public ipCidrRange: string; - - /** Subnet gatewayIp. */ - public gatewayIp: string; - - /** Subnet type. */ - public type: string; - - /** Subnet state. */ - public state: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State); - /** - * Creates a new Subnet instance using the specified properties. + * Creates a new GetNetworkPeeringRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Subnet instance + * @returns GetNetworkPeeringRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ISubnet): google.cloud.vmwareengine.v1.Subnet; + public static create(properties?: google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest): google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; /** - * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. - * @param message Subnet message or plain object to encode + * Encodes the specified GetNetworkPeeringRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.verify|verify} messages. + * @param message GetNetworkPeeringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. - * @param message Subnet message or plain object to encode + * Encodes the specified GetNetworkPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.verify|verify} messages. + * @param message GetNetworkPeeringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Subnet message from the specified reader or buffer. + * Decodes a GetNetworkPeeringRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Subnet + * @returns GetNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Subnet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; /** - * Decodes a Subnet message from the specified reader or buffer, length delimited. + * Decodes a GetNetworkPeeringRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Subnet + * @returns GetNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Subnet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; /** - * Verifies a Subnet message. + * Verifies a GetNetworkPeeringRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Subnet message from a plain object. Also converts values to their respective internal types. + * Creates a GetNetworkPeeringRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Subnet + * @returns GetNetworkPeeringRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Subnet; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; /** - * Creates a plain object from a Subnet message. Also converts values to other types if specified. - * @param message Subnet + * Creates a plain object from a GetNetworkPeeringRequest message. Also converts values to other types if specified. + * @param message GetNetworkPeeringRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Subnet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetNetworkPeeringRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Subnet to JSON. + * Converts this GetNetworkPeeringRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Subnet + * Gets the default type url for GetNetworkPeeringRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Subnet { + /** Properties of a ListNetworkPeeringsRequest. */ + interface IListNetworkPeeringsRequest { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2, - UPDATING = 3, - DELETING = 4, - RECONCILING = 5, - FAILED = 6 - } - } + /** ListNetworkPeeringsRequest parent */ + parent?: (string|null); - /** Properties of a NodeType. */ - interface INodeType { + /** ListNetworkPeeringsRequest pageSize */ + pageSize?: (number|null); - /** NodeType name */ - name?: (string|null); + /** ListNetworkPeeringsRequest pageToken */ + pageToken?: (string|null); - /** NodeType nodeTypeId */ - nodeTypeId?: (string|null); + /** ListNetworkPeeringsRequest filter */ + filter?: (string|null); - /** NodeType displayName */ - displayName?: (string|null); + /** ListNetworkPeeringsRequest orderBy */ + orderBy?: (string|null); + } - /** NodeType virtualCpuCount */ - virtualCpuCount?: (number|null); + /** Represents a ListNetworkPeeringsRequest. */ + class ListNetworkPeeringsRequest implements IListNetworkPeeringsRequest { - /** NodeType totalCoreCount */ - totalCoreCount?: (number|null); + /** + * Constructs a new ListNetworkPeeringsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest); - /** NodeType memoryGb */ - memoryGb?: (number|null); - - /** NodeType diskSizeGb */ - diskSizeGb?: (number|null); - - /** NodeType availableCustomCoreCounts */ - availableCustomCoreCounts?: (number[]|null); - } - - /** Represents a NodeType. */ - class NodeType implements INodeType { - - /** - * Constructs a new NodeType. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.INodeType); - - /** NodeType name. */ - public name: string; - - /** NodeType nodeTypeId. */ - public nodeTypeId: string; - - /** NodeType displayName. */ - public displayName: string; - - /** NodeType virtualCpuCount. */ - public virtualCpuCount: number; + /** ListNetworkPeeringsRequest parent. */ + public parent: string; - /** NodeType totalCoreCount. */ - public totalCoreCount: number; + /** ListNetworkPeeringsRequest pageSize. */ + public pageSize: number; - /** NodeType memoryGb. */ - public memoryGb: number; + /** ListNetworkPeeringsRequest pageToken. */ + public pageToken: string; - /** NodeType diskSizeGb. */ - public diskSizeGb: number; + /** ListNetworkPeeringsRequest filter. */ + public filter: string; - /** NodeType availableCustomCoreCounts. */ - public availableCustomCoreCounts: number[]; + /** ListNetworkPeeringsRequest orderBy. */ + public orderBy: string; /** - * Creates a new NodeType instance using the specified properties. + * Creates a new ListNetworkPeeringsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NodeType instance + * @returns ListNetworkPeeringsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INodeType): google.cloud.vmwareengine.v1.NodeType; + public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest): google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; /** - * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. - * @param message NodeType message or plain object to encode + * Encodes the specified ListNetworkPeeringsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.verify|verify} messages. + * @param message ListNetworkPeeringsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. - * @param message NodeType message or plain object to encode + * Encodes the specified ListNetworkPeeringsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.verify|verify} messages. + * @param message ListNetworkPeeringsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeType message from the specified reader or buffer. + * Decodes a ListNetworkPeeringsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeType + * @returns ListNetworkPeeringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NodeType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; /** - * Decodes a NodeType message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPeeringsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodeType + * @returns ListNetworkPeeringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NodeType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; /** - * Verifies a NodeType message. + * Verifies a ListNetworkPeeringsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NodeType message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPeeringsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NodeType + * @returns ListNetworkPeeringsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeType; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; /** - * Creates a plain object from a NodeType message. Also converts values to other types if specified. - * @param message NodeType + * Creates a plain object from a ListNetworkPeeringsRequest message. Also converts values to other types if specified. + * @param message ListNetworkPeeringsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.NodeType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodeType to JSON. + * Converts this ListNetworkPeeringsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NodeType + * Gets the default type url for ListNetworkPeeringsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Credentials. */ - interface ICredentials { + /** Properties of an UpdateNetworkPeeringRequest. */ + interface IUpdateNetworkPeeringRequest { - /** Credentials username */ - username?: (string|null); + /** UpdateNetworkPeeringRequest networkPeering */ + networkPeering?: (google.cloud.vmwareengine.v1.INetworkPeering|null); - /** Credentials password */ - password?: (string|null); + /** UpdateNetworkPeeringRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateNetworkPeeringRequest requestId */ + requestId?: (string|null); } - /** Represents a Credentials. */ - class Credentials implements ICredentials { + /** Represents an UpdateNetworkPeeringRequest. */ + class UpdateNetworkPeeringRequest implements IUpdateNetworkPeeringRequest { /** - * Constructs a new Credentials. + * Constructs a new UpdateNetworkPeeringRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICredentials); + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest); - /** Credentials username. */ - public username: string; + /** UpdateNetworkPeeringRequest networkPeering. */ + public networkPeering?: (google.cloud.vmwareengine.v1.INetworkPeering|null); - /** Credentials password. */ - public password: string; + /** UpdateNetworkPeeringRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateNetworkPeeringRequest requestId. */ + public requestId: string; /** - * Creates a new Credentials instance using the specified properties. + * Creates a new UpdateNetworkPeeringRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Credentials instance + * @returns UpdateNetworkPeeringRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICredentials): google.cloud.vmwareengine.v1.Credentials; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest): google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; /** - * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. - * @param message Credentials message or plain object to encode + * Encodes the specified UpdateNetworkPeeringRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.verify|verify} messages. + * @param message UpdateNetworkPeeringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. - * @param message Credentials message or plain object to encode + * Encodes the specified UpdateNetworkPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.verify|verify} messages. + * @param message UpdateNetworkPeeringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Credentials message from the specified reader or buffer. + * Decodes an UpdateNetworkPeeringRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Credentials + * @returns UpdateNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Credentials; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; /** - * Decodes a Credentials message from the specified reader or buffer, length delimited. + * Decodes an UpdateNetworkPeeringRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Credentials + * @returns UpdateNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Credentials; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; /** - * Verifies a Credentials message. + * Verifies an UpdateNetworkPeeringRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Credentials message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateNetworkPeeringRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Credentials + * @returns UpdateNetworkPeeringRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Credentials; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; /** - * Creates a plain object from a Credentials message. Also converts values to other types if specified. - * @param message Credentials + * Creates a plain object from an UpdateNetworkPeeringRequest message. Also converts values to other types if specified. + * @param message UpdateNetworkPeeringRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Credentials, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Credentials to JSON. + * Converts this UpdateNetworkPeeringRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Credentials + * Gets the default type url for UpdateNetworkPeeringRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a HcxActivationKey. */ - interface IHcxActivationKey { - - /** HcxActivationKey name */ - name?: (string|null); - - /** HcxActivationKey createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListNetworkPeeringsResponse. */ + interface IListNetworkPeeringsResponse { - /** HcxActivationKey state */ - state?: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State|null); + /** ListNetworkPeeringsResponse networkPeerings */ + networkPeerings?: (google.cloud.vmwareengine.v1.INetworkPeering[]|null); - /** HcxActivationKey activationKey */ - activationKey?: (string|null); + /** ListNetworkPeeringsResponse nextPageToken */ + nextPageToken?: (string|null); - /** HcxActivationKey uid */ - uid?: (string|null); + /** ListNetworkPeeringsResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a HcxActivationKey. */ - class HcxActivationKey implements IHcxActivationKey { + /** Represents a ListNetworkPeeringsResponse. */ + class ListNetworkPeeringsResponse implements IListNetworkPeeringsResponse { /** - * Constructs a new HcxActivationKey. + * Constructs a new ListNetworkPeeringsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey); - - /** HcxActivationKey name. */ - public name: string; - - /** HcxActivationKey createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse); - /** HcxActivationKey state. */ - public state: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State); + /** ListNetworkPeeringsResponse networkPeerings. */ + public networkPeerings: google.cloud.vmwareengine.v1.INetworkPeering[]; - /** HcxActivationKey activationKey. */ - public activationKey: string; + /** ListNetworkPeeringsResponse nextPageToken. */ + public nextPageToken: string; - /** HcxActivationKey uid. */ - public uid: string; + /** ListNetworkPeeringsResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new HcxActivationKey instance using the specified properties. + * Creates a new ListNetworkPeeringsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns HcxActivationKey instance + * @returns ListNetworkPeeringsResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey): google.cloud.vmwareengine.v1.HcxActivationKey; + public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse): google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; /** - * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. - * @param message HcxActivationKey message or plain object to encode + * Encodes the specified ListNetworkPeeringsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.verify|verify} messages. + * @param message ListNetworkPeeringsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. - * @param message HcxActivationKey message or plain object to encode + * Encodes the specified ListNetworkPeeringsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.verify|verify} messages. + * @param message ListNetworkPeeringsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HcxActivationKey message from the specified reader or buffer. + * Decodes a ListNetworkPeeringsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HcxActivationKey + * @returns ListNetworkPeeringsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.HcxActivationKey; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; /** - * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPeeringsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HcxActivationKey + * @returns ListNetworkPeeringsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.HcxActivationKey; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; /** - * Verifies a HcxActivationKey message. + * Verifies a ListNetworkPeeringsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPeeringsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HcxActivationKey + * @returns ListNetworkPeeringsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.HcxActivationKey; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; /** - * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified. - * @param message HcxActivationKey + * Creates a plain object from a ListNetworkPeeringsResponse message. Also converts values to other types if specified. + * @param message ListNetworkPeeringsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.HcxActivationKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HcxActivationKey to JSON. + * Converts this ListNetworkPeeringsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HcxActivationKey + * Gets the default type url for ListNetworkPeeringsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace HcxActivationKey { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - AVAILABLE = 1, - CONSUMED = 2, - CREATING = 3 - } - } - - /** Properties of a Hcx. */ - interface IHcx { + /** Properties of a ListPeeringRoutesRequest. */ + interface IListPeeringRoutesRequest { - /** Hcx internalIp */ - internalIp?: (string|null); + /** ListPeeringRoutesRequest parent */ + parent?: (string|null); - /** Hcx version */ - version?: (string|null); + /** ListPeeringRoutesRequest pageSize */ + pageSize?: (number|null); - /** Hcx state */ - state?: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State|null); + /** ListPeeringRoutesRequest pageToken */ + pageToken?: (string|null); - /** Hcx fqdn */ - fqdn?: (string|null); + /** ListPeeringRoutesRequest filter */ + filter?: (string|null); } - /** Represents a Hcx. */ - class Hcx implements IHcx { + /** Represents a ListPeeringRoutesRequest. */ + class ListPeeringRoutesRequest implements IListPeeringRoutesRequest { /** - * Constructs a new Hcx. + * Constructs a new ListPeeringRoutesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IHcx); + constructor(properties?: google.cloud.vmwareengine.v1.IListPeeringRoutesRequest); - /** Hcx internalIp. */ - public internalIp: string; + /** ListPeeringRoutesRequest parent. */ + public parent: string; - /** Hcx version. */ - public version: string; + /** ListPeeringRoutesRequest pageSize. */ + public pageSize: number; - /** Hcx state. */ - public state: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State); + /** ListPeeringRoutesRequest pageToken. */ + public pageToken: string; - /** Hcx fqdn. */ - public fqdn: string; + /** ListPeeringRoutesRequest filter. */ + public filter: string; /** - * Creates a new Hcx instance using the specified properties. + * Creates a new ListPeeringRoutesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Hcx instance + * @returns ListPeeringRoutesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IHcx): google.cloud.vmwareengine.v1.Hcx; + public static create(properties?: google.cloud.vmwareengine.v1.IListPeeringRoutesRequest): google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; /** - * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. - * @param message Hcx message or plain object to encode + * Encodes the specified ListPeeringRoutesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.verify|verify} messages. + * @param message ListPeeringRoutesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. - * @param message Hcx message or plain object to encode + * Encodes the specified ListPeeringRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.verify|verify} messages. + * @param message ListPeeringRoutesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Hcx message from the specified reader or buffer. + * Decodes a ListPeeringRoutesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Hcx + * @returns ListPeeringRoutesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Hcx; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; /** - * Decodes a Hcx message from the specified reader or buffer, length delimited. + * Decodes a ListPeeringRoutesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Hcx + * @returns ListPeeringRoutesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Hcx; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; /** - * Verifies a Hcx message. + * Verifies a ListPeeringRoutesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Hcx message from a plain object. Also converts values to their respective internal types. + * Creates a ListPeeringRoutesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Hcx + * @returns ListPeeringRoutesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Hcx; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; /** - * Creates a plain object from a Hcx message. Also converts values to other types if specified. - * @param message Hcx + * Creates a plain object from a ListPeeringRoutesRequest message. Also converts values to other types if specified. + * @param message ListPeeringRoutesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Hcx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListPeeringRoutesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Hcx to JSON. + * Converts this ListPeeringRoutesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Hcx + * Gets the default type url for ListPeeringRoutesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Hcx { + /** Properties of a ListPeeringRoutesResponse. */ + interface IListPeeringRoutesResponse { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2 - } + /** ListPeeringRoutesResponse peeringRoutes */ + peeringRoutes?: (google.cloud.vmwareengine.v1.IPeeringRoute[]|null); + + /** ListPeeringRoutesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Properties of a Nsx. */ - interface INsx { + /** Represents a ListPeeringRoutesResponse. */ + class ListPeeringRoutesResponse implements IListPeeringRoutesResponse { - /** Nsx internalIp */ - internalIp?: (string|null); + /** + * Constructs a new ListPeeringRoutesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListPeeringRoutesResponse); - /** Nsx version */ - version?: (string|null); + /** ListPeeringRoutesResponse peeringRoutes. */ + public peeringRoutes: google.cloud.vmwareengine.v1.IPeeringRoute[]; - /** Nsx state */ - state?: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State|null); - - /** Nsx fqdn */ - fqdn?: (string|null); - } - - /** Represents a Nsx. */ - class Nsx implements INsx { - - /** - * Constructs a new Nsx. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.INsx); - - /** Nsx internalIp. */ - public internalIp: string; - - /** Nsx version. */ - public version: string; - - /** Nsx state. */ - public state: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State); - - /** Nsx fqdn. */ - public fqdn: string; + /** ListPeeringRoutesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new Nsx instance using the specified properties. + * Creates a new ListPeeringRoutesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Nsx instance + * @returns ListPeeringRoutesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INsx): google.cloud.vmwareengine.v1.Nsx; + public static create(properties?: google.cloud.vmwareengine.v1.IListPeeringRoutesResponse): google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; /** - * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. - * @param message Nsx message or plain object to encode + * Encodes the specified ListPeeringRoutesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.verify|verify} messages. + * @param message ListPeeringRoutesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListPeeringRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. - * @param message Nsx message or plain object to encode + * Encodes the specified ListPeeringRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.verify|verify} messages. + * @param message ListPeeringRoutesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPeeringRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Nsx message from the specified reader or buffer. + * Decodes a ListPeeringRoutesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Nsx + * @returns ListPeeringRoutesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Nsx; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; /** - * Decodes a Nsx message from the specified reader or buffer, length delimited. + * Decodes a ListPeeringRoutesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Nsx + * @returns ListPeeringRoutesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Nsx; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; /** - * Verifies a Nsx message. + * Verifies a ListPeeringRoutesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Nsx message from a plain object. Also converts values to their respective internal types. + * Creates a ListPeeringRoutesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Nsx + * @returns ListPeeringRoutesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Nsx; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; /** - * Creates a plain object from a Nsx message. Also converts values to other types if specified. - * @param message Nsx + * Creates a plain object from a ListPeeringRoutesResponse message. Also converts values to other types if specified. + * @param message ListPeeringRoutesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Nsx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListPeeringRoutesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Nsx to JSON. + * Converts this ListPeeringRoutesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Nsx + * Gets the default type url for ListPeeringRoutesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Nsx { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2 - } - } + /** Properties of a ListNetworkPoliciesRequest. */ + interface IListNetworkPoliciesRequest { - /** Properties of a Vcenter. */ - interface IVcenter { + /** ListNetworkPoliciesRequest parent */ + parent?: (string|null); - /** Vcenter internalIp */ - internalIp?: (string|null); + /** ListNetworkPoliciesRequest pageSize */ + pageSize?: (number|null); - /** Vcenter version */ - version?: (string|null); + /** ListNetworkPoliciesRequest pageToken */ + pageToken?: (string|null); - /** Vcenter state */ - state?: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State|null); + /** ListNetworkPoliciesRequest filter */ + filter?: (string|null); - /** Vcenter fqdn */ - fqdn?: (string|null); + /** ListNetworkPoliciesRequest orderBy */ + orderBy?: (string|null); } - /** Represents a Vcenter. */ - class Vcenter implements IVcenter { + /** Represents a ListNetworkPoliciesRequest. */ + class ListNetworkPoliciesRequest implements IListNetworkPoliciesRequest { /** - * Constructs a new Vcenter. + * Constructs a new ListNetworkPoliciesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IVcenter); + constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest); - /** Vcenter internalIp. */ - public internalIp: string; + /** ListNetworkPoliciesRequest parent. */ + public parent: string; - /** Vcenter version. */ - public version: string; + /** ListNetworkPoliciesRequest pageSize. */ + public pageSize: number; - /** Vcenter state. */ - public state: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State); + /** ListNetworkPoliciesRequest pageToken. */ + public pageToken: string; - /** Vcenter fqdn. */ - public fqdn: string; + /** ListNetworkPoliciesRequest filter. */ + public filter: string; + + /** ListNetworkPoliciesRequest orderBy. */ + public orderBy: string; /** - * Creates a new Vcenter instance using the specified properties. + * Creates a new ListNetworkPoliciesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Vcenter instance + * @returns ListNetworkPoliciesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IVcenter): google.cloud.vmwareengine.v1.Vcenter; + public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; /** - * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. - * @param message Vcenter message or plain object to encode + * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. + * @param message ListNetworkPoliciesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. - * @param message Vcenter message or plain object to encode + * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. + * @param message ListNetworkPoliciesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Vcenter message from the specified reader or buffer. + * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Vcenter + * @returns ListNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Vcenter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; /** - * Decodes a Vcenter message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Vcenter + * @returns ListNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Vcenter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; /** - * Verifies a Vcenter message. + * Verifies a ListNetworkPoliciesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Vcenter message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Vcenter + * @returns ListNetworkPoliciesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Vcenter; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; /** - * Creates a plain object from a Vcenter message. Also converts values to other types if specified. - * @param message Vcenter + * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified. + * @param message ListNetworkPoliciesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Vcenter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Vcenter to JSON. + * Converts this ListNetworkPoliciesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Vcenter + * Gets the default type url for ListNetworkPoliciesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Vcenter { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2 - } - } - - /** Properties of a PeeringRoute. */ - interface IPeeringRoute { - - /** PeeringRoute destRange */ - destRange?: (string|null); - - /** PeeringRoute type */ - type?: (google.cloud.vmwareengine.v1.PeeringRoute.Type|keyof typeof google.cloud.vmwareengine.v1.PeeringRoute.Type|null); - - /** PeeringRoute nextHopRegion */ - nextHopRegion?: (string|null); + /** Properties of a ListNetworkPoliciesResponse. */ + interface IListNetworkPoliciesResponse { - /** PeeringRoute priority */ - priority?: (number|Long|string|null); + /** ListNetworkPoliciesResponse networkPolicies */ + networkPolicies?: (google.cloud.vmwareengine.v1.INetworkPolicy[]|null); - /** PeeringRoute imported */ - imported?: (boolean|null); + /** ListNetworkPoliciesResponse nextPageToken */ + nextPageToken?: (string|null); - /** PeeringRoute direction */ - direction?: (google.cloud.vmwareengine.v1.PeeringRoute.Direction|keyof typeof google.cloud.vmwareengine.v1.PeeringRoute.Direction|null); + /** ListNetworkPoliciesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a PeeringRoute. */ - class PeeringRoute implements IPeeringRoute { + /** Represents a ListNetworkPoliciesResponse. */ + class ListNetworkPoliciesResponse implements IListNetworkPoliciesResponse { /** - * Constructs a new PeeringRoute. + * Constructs a new ListNetworkPoliciesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IPeeringRoute); - - /** PeeringRoute destRange. */ - public destRange: string; - - /** PeeringRoute type. */ - public type: (google.cloud.vmwareengine.v1.PeeringRoute.Type|keyof typeof google.cloud.vmwareengine.v1.PeeringRoute.Type); - - /** PeeringRoute nextHopRegion. */ - public nextHopRegion: string; + constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse); - /** PeeringRoute priority. */ - public priority: (number|Long|string); + /** ListNetworkPoliciesResponse networkPolicies. */ + public networkPolicies: google.cloud.vmwareengine.v1.INetworkPolicy[]; - /** PeeringRoute imported. */ - public imported: boolean; + /** ListNetworkPoliciesResponse nextPageToken. */ + public nextPageToken: string; - /** PeeringRoute direction. */ - public direction: (google.cloud.vmwareengine.v1.PeeringRoute.Direction|keyof typeof google.cloud.vmwareengine.v1.PeeringRoute.Direction); + /** ListNetworkPoliciesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new PeeringRoute instance using the specified properties. + * Creates a new ListNetworkPoliciesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PeeringRoute instance + * @returns ListNetworkPoliciesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IPeeringRoute): google.cloud.vmwareengine.v1.PeeringRoute; + public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; /** - * Encodes the specified PeeringRoute message. Does not implicitly {@link google.cloud.vmwareengine.v1.PeeringRoute.verify|verify} messages. - * @param message PeeringRoute message or plain object to encode + * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * @param message ListNetworkPoliciesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IPeeringRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PeeringRoute message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PeeringRoute.verify|verify} messages. - * @param message PeeringRoute message or plain object to encode + * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * @param message ListNetworkPoliciesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPeeringRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PeeringRoute message from the specified reader or buffer. + * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PeeringRoute + * @returns ListNetworkPoliciesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PeeringRoute; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; /** - * Decodes a PeeringRoute message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PeeringRoute + * @returns ListNetworkPoliciesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PeeringRoute; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; /** - * Verifies a PeeringRoute message. + * Verifies a ListNetworkPoliciesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PeeringRoute message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PeeringRoute + * @returns ListNetworkPoliciesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PeeringRoute; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; /** - * Creates a plain object from a PeeringRoute message. Also converts values to other types if specified. - * @param message PeeringRoute + * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified. + * @param message ListNetworkPoliciesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.PeeringRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PeeringRoute to JSON. + * Converts this ListNetworkPoliciesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PeeringRoute + * Gets the default type url for ListNetworkPoliciesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PeeringRoute { - - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - DYNAMIC_PEERING_ROUTE = 1, - STATIC_PEERING_ROUTE = 2, - SUBNET_PEERING_ROUTE = 3 - } + /** Properties of a GetNetworkPolicyRequest. */ + interface IGetNetworkPolicyRequest { - /** Direction enum. */ - enum Direction { - DIRECTION_UNSPECIFIED = 0, - INCOMING = 1, - OUTGOING = 2 - } + /** GetNetworkPolicyRequest name */ + name?: (string|null); } - /** Properties of a NetworkPolicy. */ - interface INetworkPolicy { - - /** NetworkPolicy name */ - name?: (string|null); + /** Represents a GetNetworkPolicyRequest. */ + class GetNetworkPolicyRequest implements IGetNetworkPolicyRequest { - /** NetworkPolicy createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new GetNetworkPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest); - /** NetworkPolicy updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** GetNetworkPolicyRequest name. */ + public name: string; - /** NetworkPolicy internetAccess */ - internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + /** + * Creates a new GetNetworkPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetNetworkPolicyRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; - /** NetworkPolicy externalIp */ - externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + /** + * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * @param message GetNetworkPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** NetworkPolicy edgeServicesCidr */ - edgeServicesCidr?: (string|null); + /** + * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * @param message GetNetworkPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** NetworkPolicy uid */ - uid?: (string|null); + /** + * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; - /** NetworkPolicy vmwareEngineNetwork */ - vmwareEngineNetwork?: (string|null); + /** + * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; - /** NetworkPolicy description */ - description?: (string|null); + /** + * Verifies a GetNetworkPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** NetworkPolicy vmwareEngineNetworkCanonical */ - vmwareEngineNetworkCanonical?: (string|null); - } + /** + * Creates a GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetNetworkPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; - /** Represents a NetworkPolicy. */ - class NetworkPolicy implements INetworkPolicy { + /** + * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message GetNetworkPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Constructs a new NetworkPolicy. - * @param [properties] Properties to set + * Converts this GetNetworkPolicyRequest to JSON. + * @returns JSON object */ - constructor(properties?: google.cloud.vmwareengine.v1.INetworkPolicy); + public toJSON(): { [k: string]: any }; - /** NetworkPolicy name. */ - public name: string; + /** + * Gets the default type url for GetNetworkPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NetworkPolicy createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Properties of an UpdateNetworkPolicyRequest. */ + interface IUpdateNetworkPolicyRequest { - /** NetworkPolicy updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** UpdateNetworkPolicyRequest networkPolicy */ + networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); - /** NetworkPolicy internetAccess. */ - public internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + /** UpdateNetworkPolicyRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** NetworkPolicy externalIp. */ - public externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + /** UpdateNetworkPolicyRequest requestId */ + requestId?: (string|null); + } - /** NetworkPolicy edgeServicesCidr. */ - public edgeServicesCidr: string; + /** Represents an UpdateNetworkPolicyRequest. */ + class UpdateNetworkPolicyRequest implements IUpdateNetworkPolicyRequest { - /** NetworkPolicy uid. */ - public uid: string; + /** + * Constructs a new UpdateNetworkPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest); - /** NetworkPolicy vmwareEngineNetwork. */ - public vmwareEngineNetwork: string; + /** UpdateNetworkPolicyRequest networkPolicy. */ + public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); - /** NetworkPolicy description. */ - public description: string; + /** UpdateNetworkPolicyRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** NetworkPolicy vmwareEngineNetworkCanonical. */ - public vmwareEngineNetworkCanonical: string; + /** UpdateNetworkPolicyRequest requestId. */ + public requestId: string; /** - * Creates a new NetworkPolicy instance using the specified properties. + * Creates a new UpdateNetworkPolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NetworkPolicy instance + * @returns UpdateNetworkPolicyRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INetworkPolicy): google.cloud.vmwareengine.v1.NetworkPolicy; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. - * @param message NetworkPolicy message or plain object to encode + * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * @param message UpdateNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. - * @param message NetworkPolicy message or plain object to encode + * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * @param message UpdateNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetworkPolicy message from the specified reader or buffer. + * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetworkPolicy + * @returns UpdateNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetworkPolicy + * @returns UpdateNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; /** - * Verifies a NetworkPolicy message. + * Verifies an UpdateNetworkPolicyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetworkPolicy + * @returns UpdateNetworkPolicyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. - * @param message NetworkPolicy + * Creates a plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message UpdateNetworkPolicyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetworkPolicy to JSON. + * Converts this UpdateNetworkPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetworkPolicy + * Gets the default type url for UpdateNetworkPolicyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NetworkPolicy { - - /** Properties of a NetworkService. */ - interface INetworkService { + /** Properties of a CreateNetworkPolicyRequest. */ + interface ICreateNetworkPolicyRequest { - /** NetworkService enabled */ - enabled?: (boolean|null); + /** CreateNetworkPolicyRequest parent */ + parent?: (string|null); - /** NetworkService state */ - state?: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null); - } + /** CreateNetworkPolicyRequest networkPolicyId */ + networkPolicyId?: (string|null); - /** Represents a NetworkService. */ - class NetworkService implements INetworkService { + /** CreateNetworkPolicyRequest networkPolicy */ + networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); - /** - * Constructs a new NetworkService. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService); + /** CreateNetworkPolicyRequest requestId */ + requestId?: (string|null); + } - /** NetworkService enabled. */ - public enabled: boolean; - - /** NetworkService state. */ - public state: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State); - - /** - * Creates a new NetworkService instance using the specified properties. - * @param [properties] Properties to set - * @returns NetworkService instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; - - /** - * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. - * @param message NetworkService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. - * @param message NetworkService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NetworkService message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NetworkService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; - - /** - * Decodes a NetworkService message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetworkService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; - - /** - * Verifies a NetworkService message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NetworkService message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NetworkService - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; - - /** - * Creates a plain object from a NetworkService message. Also converts values to other types if specified. - * @param message NetworkService - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NetworkService to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NetworkService - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace NetworkService { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - UNPROVISIONED = 1, - RECONCILING = 2, - ACTIVE = 3 - } - } - } - - /** Properties of a VmwareEngineNetwork. */ - interface IVmwareEngineNetwork { - - /** VmwareEngineNetwork name */ - name?: (string|null); - - /** VmwareEngineNetwork createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** VmwareEngineNetwork updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** VmwareEngineNetwork description */ - description?: (string|null); - - /** VmwareEngineNetwork vpcNetworks */ - vpcNetworks?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]|null); - - /** VmwareEngineNetwork state */ - state?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null); - - /** VmwareEngineNetwork type */ - type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null); - - /** VmwareEngineNetwork uid */ - uid?: (string|null); - - /** VmwareEngineNetwork etag */ - etag?: (string|null); - } - - /** Represents a VmwareEngineNetwork. */ - class VmwareEngineNetwork implements IVmwareEngineNetwork { + /** Represents a CreateNetworkPolicyRequest. */ + class CreateNetworkPolicyRequest implements ICreateNetworkPolicyRequest { /** - * Constructs a new VmwareEngineNetwork. + * Constructs a new CreateNetworkPolicyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork); - - /** VmwareEngineNetwork name. */ - public name: string; - - /** VmwareEngineNetwork createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** VmwareEngineNetwork updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** VmwareEngineNetwork description. */ - public description: string; - - /** VmwareEngineNetwork vpcNetworks. */ - public vpcNetworks: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]; + constructor(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest); - /** VmwareEngineNetwork state. */ - public state: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State); + /** CreateNetworkPolicyRequest parent. */ + public parent: string; - /** VmwareEngineNetwork type. */ - public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type); + /** CreateNetworkPolicyRequest networkPolicyId. */ + public networkPolicyId: string; - /** VmwareEngineNetwork uid. */ - public uid: string; + /** CreateNetworkPolicyRequest networkPolicy. */ + public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); - /** VmwareEngineNetwork etag. */ - public etag: string; + /** CreateNetworkPolicyRequest requestId. */ + public requestId: string; /** - * Creates a new VmwareEngineNetwork instance using the specified properties. + * Creates a new CreateNetworkPolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VmwareEngineNetwork instance + * @returns CreateNetworkPolicyRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + public static create(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; /** - * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. - * @param message VmwareEngineNetwork message or plain object to encode + * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * @param message CreateNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. - * @param message VmwareEngineNetwork message or plain object to encode + * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * @param message CreateNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VmwareEngineNetwork message from the specified reader or buffer. + * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VmwareEngineNetwork + * @returns CreateNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; /** - * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited. + * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VmwareEngineNetwork + * @returns CreateNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; /** - * Verifies a VmwareEngineNetwork message. + * Verifies a CreateNetworkPolicyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VmwareEngineNetwork + * @returns CreateNetworkPolicyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; /** - * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified. - * @param message VmwareEngineNetwork + * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message CreateNetworkPolicyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VmwareEngineNetwork to JSON. + * Converts this CreateNetworkPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VmwareEngineNetwork + * Gets the default type url for CreateNetworkPolicyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace VmwareEngineNetwork { + /** Properties of a DeleteNetworkPolicyRequest. */ + interface IDeleteNetworkPolicyRequest { - /** Properties of a VpcNetwork. */ - interface IVpcNetwork { + /** DeleteNetworkPolicyRequest name */ + name?: (string|null); - /** VpcNetwork type */ - type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null); + /** DeleteNetworkPolicyRequest requestId */ + requestId?: (string|null); + } - /** VpcNetwork network */ - network?: (string|null); - } + /** Represents a DeleteNetworkPolicyRequest. */ + class DeleteNetworkPolicyRequest implements IDeleteNetworkPolicyRequest { - /** Represents a VpcNetwork. */ - class VpcNetwork implements IVpcNetwork { + /** + * Constructs a new DeleteNetworkPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest); - /** - * Constructs a new VpcNetwork. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork); + /** DeleteNetworkPolicyRequest name. */ + public name: string; - /** VpcNetwork type. */ - public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type); + /** DeleteNetworkPolicyRequest requestId. */ + public requestId: string; - /** VpcNetwork network. */ - public network: string; + /** + * Creates a new DeleteNetworkPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteNetworkPolicyRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; - /** - * Creates a new VpcNetwork instance using the specified properties. - * @param [properties] Properties to set - * @returns VpcNetwork instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; - - /** - * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. - * @param message VpcNetwork message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. - * @param message VpcNetwork message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VpcNetwork message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VpcNetwork - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; - - /** - * Decodes a VpcNetwork message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VpcNetwork - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; - - /** - * Verifies a VpcNetwork message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * @param message DeleteNetworkPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a VpcNetwork message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VpcNetwork - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; + /** + * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * @param message DeleteNetworkPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified. - * @param message VpcNetwork - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; - /** - * Converts this VpcNetwork to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; - /** - * Gets the default type url for VpcNetwork - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a DeleteNetworkPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - namespace VpcNetwork { + /** + * Creates a DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteNetworkPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - INTRANET = 1, - INTERNET = 2, - GOOGLE_CLOUD = 3 - } - } + /** + * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message DeleteNetworkPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - ACTIVE = 2, - UPDATING = 3, - DELETING = 4 - } + /** + * Converts this DeleteNetworkPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - LEGACY = 1 - } + /** + * Gets the default type url for DeleteNetworkPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrivateConnection. */ - interface IPrivateConnection { - - /** PrivateConnection name */ - name?: (string|null); - - /** PrivateConnection createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** PrivateConnection updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** PrivateConnection description */ - description?: (string|null); - - /** PrivateConnection state */ - state?: (google.cloud.vmwareengine.v1.PrivateConnection.State|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.State|null); - - /** PrivateConnection vmwareEngineNetwork */ - vmwareEngineNetwork?: (string|null); - - /** PrivateConnection vmwareEngineNetworkCanonical */ - vmwareEngineNetworkCanonical?: (string|null); - - /** PrivateConnection type */ - type?: (google.cloud.vmwareengine.v1.PrivateConnection.Type|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.Type|null); + /** Properties of a ListManagementDnsZoneBindingsRequest. */ + interface IListManagementDnsZoneBindingsRequest { - /** PrivateConnection peeringId */ - peeringId?: (string|null); + /** ListManagementDnsZoneBindingsRequest parent */ + parent?: (string|null); - /** PrivateConnection routingMode */ - routingMode?: (google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode|null); + /** ListManagementDnsZoneBindingsRequest pageSize */ + pageSize?: (number|null); - /** PrivateConnection uid */ - uid?: (string|null); + /** ListManagementDnsZoneBindingsRequest pageToken */ + pageToken?: (string|null); - /** PrivateConnection serviceNetwork */ - serviceNetwork?: (string|null); + /** ListManagementDnsZoneBindingsRequest filter */ + filter?: (string|null); - /** PrivateConnection peeringState */ - peeringState?: (google.cloud.vmwareengine.v1.PrivateConnection.PeeringState|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.PeeringState|null); + /** ListManagementDnsZoneBindingsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a PrivateConnection. */ - class PrivateConnection implements IPrivateConnection { + /** Represents a ListManagementDnsZoneBindingsRequest. */ + class ListManagementDnsZoneBindingsRequest implements IListManagementDnsZoneBindingsRequest { /** - * Constructs a new PrivateConnection. + * Constructs a new ListManagementDnsZoneBindingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IPrivateConnection); - - /** PrivateConnection name. */ - public name: string; - - /** PrivateConnection createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** PrivateConnection updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** PrivateConnection description. */ - public description: string; - - /** PrivateConnection state. */ - public state: (google.cloud.vmwareengine.v1.PrivateConnection.State|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.State); - - /** PrivateConnection vmwareEngineNetwork. */ - public vmwareEngineNetwork: string; - - /** PrivateConnection vmwareEngineNetworkCanonical. */ - public vmwareEngineNetworkCanonical: string; - - /** PrivateConnection type. */ - public type: (google.cloud.vmwareengine.v1.PrivateConnection.Type|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.Type); + constructor(properties?: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest); - /** PrivateConnection peeringId. */ - public peeringId: string; + /** ListManagementDnsZoneBindingsRequest parent. */ + public parent: string; - /** PrivateConnection routingMode. */ - public routingMode: (google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode); + /** ListManagementDnsZoneBindingsRequest pageSize. */ + public pageSize: number; - /** PrivateConnection uid. */ - public uid: string; + /** ListManagementDnsZoneBindingsRequest pageToken. */ + public pageToken: string; - /** PrivateConnection serviceNetwork. */ - public serviceNetwork: string; + /** ListManagementDnsZoneBindingsRequest filter. */ + public filter: string; - /** PrivateConnection peeringState. */ - public peeringState: (google.cloud.vmwareengine.v1.PrivateConnection.PeeringState|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.PeeringState); + /** ListManagementDnsZoneBindingsRequest orderBy. */ + public orderBy: string; /** - * Creates a new PrivateConnection instance using the specified properties. + * Creates a new ListManagementDnsZoneBindingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PrivateConnection instance + * @returns ListManagementDnsZoneBindingsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IPrivateConnection): google.cloud.vmwareengine.v1.PrivateConnection; + public static create(properties?: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest): google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; /** - * Encodes the specified PrivateConnection message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateConnection.verify|verify} messages. - * @param message PrivateConnection message or plain object to encode + * Encodes the specified ListManagementDnsZoneBindingsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.verify|verify} messages. + * @param message ListManagementDnsZoneBindingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IPrivateConnection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateConnection message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateConnection.verify|verify} messages. - * @param message PrivateConnection message or plain object to encode + * Encodes the specified ListManagementDnsZoneBindingsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.verify|verify} messages. + * @param message ListManagementDnsZoneBindingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPrivateConnection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateConnection message from the specified reader or buffer. + * Decodes a ListManagementDnsZoneBindingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateConnection + * @returns ListManagementDnsZoneBindingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PrivateConnection; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; /** - * Decodes a PrivateConnection message from the specified reader or buffer, length delimited. + * Decodes a ListManagementDnsZoneBindingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateConnection + * @returns ListManagementDnsZoneBindingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PrivateConnection; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; /** - * Verifies a PrivateConnection message. + * Verifies a ListManagementDnsZoneBindingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrivateConnection message from a plain object. Also converts values to their respective internal types. + * Creates a ListManagementDnsZoneBindingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateConnection + * @returns ListManagementDnsZoneBindingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateConnection; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; /** - * Creates a plain object from a PrivateConnection message. Also converts values to other types if specified. - * @param message PrivateConnection + * Creates a plain object from a ListManagementDnsZoneBindingsRequest message. Also converts values to other types if specified. + * @param message ListManagementDnsZoneBindingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.PrivateConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateConnection to JSON. + * Converts this ListManagementDnsZoneBindingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrivateConnection + * Gets the default type url for ListManagementDnsZoneBindingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PrivateConnection { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - ACTIVE = 2, - UPDATING = 3, - DELETING = 4, - UNPROVISIONED = 5, - FAILED = 6 - } + /** Properties of a ListManagementDnsZoneBindingsResponse. */ + interface IListManagementDnsZoneBindingsResponse { - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - PRIVATE_SERVICE_ACCESS = 1, - NETAPP_CLOUD_VOLUMES = 2, - DELL_POWERSCALE = 3, - THIRD_PARTY_SERVICE = 4 - } + /** ListManagementDnsZoneBindingsResponse managementDnsZoneBindings */ + managementDnsZoneBindings?: (google.cloud.vmwareengine.v1.IManagementDnsZoneBinding[]|null); - /** RoutingMode enum. */ - enum RoutingMode { - ROUTING_MODE_UNSPECIFIED = 0, - GLOBAL = 1, - REGIONAL = 2 - } + /** ListManagementDnsZoneBindingsResponse nextPageToken */ + nextPageToken?: (string|null); - /** PeeringState enum. */ - enum PeeringState { - PEERING_STATE_UNSPECIFIED = 0, - PEERING_ACTIVE = 1, - PEERING_INACTIVE = 2 - } + /** ListManagementDnsZoneBindingsResponse unreachable */ + unreachable?: (string[]|null); } - } - } - } - /** Namespace api. */ - namespace api { + /** Represents a ListManagementDnsZoneBindingsResponse. */ + class ListManagementDnsZoneBindingsResponse implements IListManagementDnsZoneBindingsResponse { - /** Properties of a Http. */ - interface IHttp { + /** + * Constructs a new ListManagementDnsZoneBindingsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse); - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); + /** ListManagementDnsZoneBindingsResponse managementDnsZoneBindings. */ + public managementDnsZoneBindings: google.cloud.vmwareengine.v1.IManagementDnsZoneBinding[]; - /** Http fullyDecodeReservedExpansion */ - fullyDecodeReservedExpansion?: (boolean|null); - } + /** ListManagementDnsZoneBindingsResponse nextPageToken. */ + public nextPageToken: string; - /** Represents a Http. */ - class Http implements IHttp { + /** ListManagementDnsZoneBindingsResponse unreachable. */ + public unreachable: string[]; - /** - * Constructs a new Http. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttp); + /** + * Creates a new ListManagementDnsZoneBindingsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListManagementDnsZoneBindingsResponse instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse): google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; - /** Http rules. */ - public rules: google.api.IHttpRule[]; + /** + * Encodes the specified ListManagementDnsZoneBindingsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.verify|verify} messages. + * @param message ListManagementDnsZoneBindingsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Http fullyDecodeReservedExpansion. */ - public fullyDecodeReservedExpansion: boolean; + /** + * Encodes the specified ListManagementDnsZoneBindingsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.verify|verify} messages. + * @param message ListManagementDnsZoneBindingsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Http instance using the specified properties. - * @param [properties] Properties to set - * @returns Http instance - */ - public static create(properties?: google.api.IHttp): google.api.Http; + /** + * Decodes a ListManagementDnsZoneBindingsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListManagementDnsZoneBindingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListManagementDnsZoneBindingsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListManagementDnsZoneBindingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a ListManagementDnsZoneBindingsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a Http message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + /** + * Creates a ListManagementDnsZoneBindingsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListManagementDnsZoneBindingsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http; + /** + * Creates a plain object from a ListManagementDnsZoneBindingsResponse message. Also converts values to other types if specified. + * @param message ListManagementDnsZoneBindingsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a Http message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this ListManagementDnsZoneBindingsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Http - */ - public static fromObject(object: { [k: string]: any }): google.api.Http; + /** + * Gets the default type url for ListManagementDnsZoneBindingsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @param message Http - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a GetManagementDnsZoneBindingRequest. */ + interface IGetManagementDnsZoneBindingRequest { - /** - * Converts this Http to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** GetManagementDnsZoneBindingRequest name */ + name?: (string|null); + } - /** - * Gets the default type url for Http - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a GetManagementDnsZoneBindingRequest. */ + class GetManagementDnsZoneBindingRequest implements IGetManagementDnsZoneBindingRequest { - /** Properties of a HttpRule. */ - interface IHttpRule { + /** + * Constructs a new GetManagementDnsZoneBindingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest); - /** HttpRule selector */ - selector?: (string|null); + /** GetManagementDnsZoneBindingRequest name. */ + public name: string; - /** HttpRule get */ - get?: (string|null); + /** + * Creates a new GetManagementDnsZoneBindingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetManagementDnsZoneBindingRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest): google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; - /** HttpRule put */ - put?: (string|null); + /** + * Encodes the specified GetManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message GetManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** HttpRule post */ - post?: (string|null); + /** + * Encodes the specified GetManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message GetManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** HttpRule delete */ - "delete"?: (string|null); + /** + * Decodes a GetManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; - /** HttpRule patch */ - patch?: (string|null); + /** + * Decodes a GetManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; - /** HttpRule custom */ - custom?: (google.api.ICustomHttpPattern|null); + /** + * Verifies a GetManagementDnsZoneBindingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** HttpRule body */ - body?: (string|null); + /** + * Creates a GetManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetManagementDnsZoneBindingRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; - /** HttpRule responseBody */ - responseBody?: (string|null); + /** + * Creates a plain object from a GetManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @param message GetManagementDnsZoneBindingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** HttpRule additionalBindings */ - additionalBindings?: (google.api.IHttpRule[]|null); - } + /** + * Converts this GetManagementDnsZoneBindingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { + /** + * Gets the default type url for GetManagementDnsZoneBindingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new HttpRule. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttpRule); + /** Properties of a CreateManagementDnsZoneBindingRequest. */ + interface ICreateManagementDnsZoneBindingRequest { - /** HttpRule selector. */ - public selector: string; + /** CreateManagementDnsZoneBindingRequest parent */ + parent?: (string|null); - /** HttpRule get. */ - public get?: (string|null); + /** CreateManagementDnsZoneBindingRequest managementDnsZoneBinding */ + managementDnsZoneBinding?: (google.cloud.vmwareengine.v1.IManagementDnsZoneBinding|null); - /** HttpRule put. */ - public put?: (string|null); + /** CreateManagementDnsZoneBindingRequest managementDnsZoneBindingId */ + managementDnsZoneBindingId?: (string|null); - /** HttpRule post. */ - public post?: (string|null); + /** CreateManagementDnsZoneBindingRequest requestId */ + requestId?: (string|null); + } - /** HttpRule delete. */ - public delete?: (string|null); + /** Represents a CreateManagementDnsZoneBindingRequest. */ + class CreateManagementDnsZoneBindingRequest implements ICreateManagementDnsZoneBindingRequest { - /** HttpRule patch. */ - public patch?: (string|null); + /** + * Constructs a new CreateManagementDnsZoneBindingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest); - /** HttpRule custom. */ - public custom?: (google.api.ICustomHttpPattern|null); + /** CreateManagementDnsZoneBindingRequest parent. */ + public parent: string; - /** HttpRule body. */ - public body: string; + /** CreateManagementDnsZoneBindingRequest managementDnsZoneBinding. */ + public managementDnsZoneBinding?: (google.cloud.vmwareengine.v1.IManagementDnsZoneBinding|null); - /** HttpRule responseBody. */ - public responseBody: string; + /** CreateManagementDnsZoneBindingRequest managementDnsZoneBindingId. */ + public managementDnsZoneBindingId: string; - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; + /** CreateManagementDnsZoneBindingRequest requestId. */ + public requestId: string; - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + /** + * Creates a new CreateManagementDnsZoneBindingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateManagementDnsZoneBindingRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest): google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; - /** - * Creates a new HttpRule instance using the specified properties. - * @param [properties] Properties to set - * @returns HttpRule instance - */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + /** + * Encodes the specified CreateManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message CreateManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message CreateManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CreateManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + /** + * Decodes a CreateManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; - /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule; + /** + * Verifies a CreateManagementDnsZoneBindingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a HttpRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a CreateManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateManagementDnsZoneBindingRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; - /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns HttpRule - */ - public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + /** + * Creates a plain object from a CreateManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @param message CreateManagementDnsZoneBindingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @param message HttpRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this CreateManagementDnsZoneBindingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this HttpRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for CreateManagementDnsZoneBindingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for HttpRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an UpdateManagementDnsZoneBindingRequest. */ + interface IUpdateManagementDnsZoneBindingRequest { - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { + /** UpdateManagementDnsZoneBindingRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** CustomHttpPattern kind */ - kind?: (string|null); + /** UpdateManagementDnsZoneBindingRequest managementDnsZoneBinding */ + managementDnsZoneBinding?: (google.cloud.vmwareengine.v1.IManagementDnsZoneBinding|null); - /** CustomHttpPattern path */ - path?: (string|null); - } + /** UpdateManagementDnsZoneBindingRequest requestId */ + requestId?: (string|null); + } - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { + /** Represents an UpdateManagementDnsZoneBindingRequest. */ + class UpdateManagementDnsZoneBindingRequest implements IUpdateManagementDnsZoneBindingRequest { - /** - * Constructs a new CustomHttpPattern. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.ICustomHttpPattern); + /** + * Constructs a new UpdateManagementDnsZoneBindingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest); - /** CustomHttpPattern kind. */ - public kind: string; + /** UpdateManagementDnsZoneBindingRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** CustomHttpPattern path. */ - public path: string; + /** UpdateManagementDnsZoneBindingRequest managementDnsZoneBinding. */ + public managementDnsZoneBinding?: (google.cloud.vmwareengine.v1.IManagementDnsZoneBinding|null); - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomHttpPattern instance - */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + /** UpdateManagementDnsZoneBindingRequest requestId. */ + public requestId: string; - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UpdateManagementDnsZoneBindingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateManagementDnsZoneBindingRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest): google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; - /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message UpdateManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + /** + * Encodes the specified UpdateManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message UpdateManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern; + /** + * Decodes an UpdateManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; - /** - * Verifies a CustomHttpPattern message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an UpdateManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; - /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CustomHttpPattern - */ - public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + /** + * Verifies an UpdateManagementDnsZoneBindingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @param message CustomHttpPattern - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an UpdateManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateManagementDnsZoneBindingRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; - /** - * Converts this CustomHttpPattern to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an UpdateManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @param message UpdateManagementDnsZoneBindingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for CustomHttpPattern - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this UpdateManagementDnsZoneBindingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a CommonLanguageSettings. */ - interface ICommonLanguageSettings { + /** + * Gets the default type url for UpdateManagementDnsZoneBindingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CommonLanguageSettings referenceDocsUri */ - referenceDocsUri?: (string|null); + /** Properties of a DeleteManagementDnsZoneBindingRequest. */ + interface IDeleteManagementDnsZoneBindingRequest { - /** CommonLanguageSettings destinations */ - destinations?: (google.api.ClientLibraryDestination[]|null); - } + /** DeleteManagementDnsZoneBindingRequest name */ + name?: (string|null); - /** Represents a CommonLanguageSettings. */ - class CommonLanguageSettings implements ICommonLanguageSettings { + /** DeleteManagementDnsZoneBindingRequest requestId */ + requestId?: (string|null); + } - /** - * Constructs a new CommonLanguageSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.ICommonLanguageSettings); + /** Represents a DeleteManagementDnsZoneBindingRequest. */ + class DeleteManagementDnsZoneBindingRequest implements IDeleteManagementDnsZoneBindingRequest { - /** CommonLanguageSettings referenceDocsUri. */ - public referenceDocsUri: string; + /** + * Constructs a new DeleteManagementDnsZoneBindingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest); - /** CommonLanguageSettings destinations. */ - public destinations: google.api.ClientLibraryDestination[]; + /** DeleteManagementDnsZoneBindingRequest name. */ + public name: string; - /** - * Creates a new CommonLanguageSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns CommonLanguageSettings instance - */ - public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings; + /** DeleteManagementDnsZoneBindingRequest requestId. */ + public requestId: string; - /** - * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. - * @param message CommonLanguageSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new DeleteManagementDnsZoneBindingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteManagementDnsZoneBindingRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest): google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; - /** - * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. - * @param message CommonLanguageSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message DeleteManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CommonLanguageSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommonLanguageSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings; + /** + * Encodes the specified DeleteManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message DeleteManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommonLanguageSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings; + /** + * Decodes a DeleteManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; - /** - * Verifies a CommonLanguageSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a DeleteManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; - /** - * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommonLanguageSettings - */ - public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings; + /** + * Verifies a DeleteManagementDnsZoneBindingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified. - * @param message CommonLanguageSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a DeleteManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteManagementDnsZoneBindingRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; - /** - * Converts this CommonLanguageSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a DeleteManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @param message DeleteManagementDnsZoneBindingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for CommonLanguageSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this DeleteManagementDnsZoneBindingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a ClientLibrarySettings. */ - interface IClientLibrarySettings { + /** + * Gets the default type url for DeleteManagementDnsZoneBindingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ClientLibrarySettings version */ - version?: (string|null); + /** Properties of a RepairManagementDnsZoneBindingRequest. */ + interface IRepairManagementDnsZoneBindingRequest { - /** ClientLibrarySettings launchStage */ - launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null); + /** RepairManagementDnsZoneBindingRequest name */ + name?: (string|null); - /** ClientLibrarySettings restNumericEnums */ - restNumericEnums?: (boolean|null); + /** RepairManagementDnsZoneBindingRequest requestId */ + requestId?: (string|null); + } - /** ClientLibrarySettings javaSettings */ - javaSettings?: (google.api.IJavaSettings|null); + /** Represents a RepairManagementDnsZoneBindingRequest. */ + class RepairManagementDnsZoneBindingRequest implements IRepairManagementDnsZoneBindingRequest { - /** ClientLibrarySettings cppSettings */ - cppSettings?: (google.api.ICppSettings|null); + /** + * Constructs a new RepairManagementDnsZoneBindingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest); - /** ClientLibrarySettings phpSettings */ - phpSettings?: (google.api.IPhpSettings|null); + /** RepairManagementDnsZoneBindingRequest name. */ + public name: string; - /** ClientLibrarySettings pythonSettings */ - pythonSettings?: (google.api.IPythonSettings|null); + /** RepairManagementDnsZoneBindingRequest requestId. */ + public requestId: string; - /** ClientLibrarySettings nodeSettings */ - nodeSettings?: (google.api.INodeSettings|null); + /** + * Creates a new RepairManagementDnsZoneBindingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RepairManagementDnsZoneBindingRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest): google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest; - /** ClientLibrarySettings dotnetSettings */ - dotnetSettings?: (google.api.IDotnetSettings|null); + /** + * Encodes the specified RepairManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message RepairManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ClientLibrarySettings rubySettings */ - rubySettings?: (google.api.IRubySettings|null); + /** + * Encodes the specified RepairManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.verify|verify} messages. + * @param message RepairManagementDnsZoneBindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ClientLibrarySettings goSettings */ - goSettings?: (google.api.IGoSettings|null); - } + /** + * Decodes a RepairManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RepairManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest; - /** Represents a ClientLibrarySettings. */ - class ClientLibrarySettings implements IClientLibrarySettings { + /** + * Decodes a RepairManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RepairManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest; - /** - * Constructs a new ClientLibrarySettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IClientLibrarySettings); + /** + * Verifies a RepairManagementDnsZoneBindingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ClientLibrarySettings version. */ - public version: string; + /** + * Creates a RepairManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RepairManagementDnsZoneBindingRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest; - /** ClientLibrarySettings launchStage. */ - public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage); + /** + * Creates a plain object from a RepairManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @param message RepairManagementDnsZoneBindingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ClientLibrarySettings restNumericEnums. */ - public restNumericEnums: boolean; + /** + * Converts this RepairManagementDnsZoneBindingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ClientLibrarySettings javaSettings. */ - public javaSettings?: (google.api.IJavaSettings|null); + /** + * Gets the default type url for RepairManagementDnsZoneBindingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ClientLibrarySettings cppSettings. */ - public cppSettings?: (google.api.ICppSettings|null); + /** Properties of a CreateVmwareEngineNetworkRequest. */ + interface ICreateVmwareEngineNetworkRequest { - /** ClientLibrarySettings phpSettings. */ - public phpSettings?: (google.api.IPhpSettings|null); + /** CreateVmwareEngineNetworkRequest parent */ + parent?: (string|null); - /** ClientLibrarySettings pythonSettings. */ - public pythonSettings?: (google.api.IPythonSettings|null); + /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId */ + vmwareEngineNetworkId?: (string|null); - /** ClientLibrarySettings nodeSettings. */ - public nodeSettings?: (google.api.INodeSettings|null); + /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork */ + vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - /** ClientLibrarySettings dotnetSettings. */ - public dotnetSettings?: (google.api.IDotnetSettings|null); + /** CreateVmwareEngineNetworkRequest requestId */ + requestId?: (string|null); + } - /** ClientLibrarySettings rubySettings. */ - public rubySettings?: (google.api.IRubySettings|null); + /** Represents a CreateVmwareEngineNetworkRequest. */ + class CreateVmwareEngineNetworkRequest implements ICreateVmwareEngineNetworkRequest { - /** ClientLibrarySettings goSettings. */ - public goSettings?: (google.api.IGoSettings|null); + /** + * Constructs a new CreateVmwareEngineNetworkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest); - /** - * Creates a new ClientLibrarySettings instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientLibrarySettings instance - */ - public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings; + /** CreateVmwareEngineNetworkRequest parent. */ + public parent: string; - /** - * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. - * @param message ClientLibrarySettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. */ + public vmwareEngineNetworkId: string; - /** - * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. - * @param message ClientLibrarySettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork. */ + public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - /** - * Decodes a ClientLibrarySettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientLibrarySettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings; + /** CreateVmwareEngineNetworkRequest requestId. */ + public requestId: string; - /** - * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ClientLibrarySettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings; + /** + * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateVmwareEngineNetworkRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; - /** - * Verifies a ClientLibrarySettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * @param message CreateVmwareEngineNetworkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientLibrarySettings - */ - public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings; + /** + * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * @param message CreateVmwareEngineNetworkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified. - * @param message ClientLibrarySettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; - /** - * Converts this ClientLibrarySettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; - /** - * Gets the default type url for ClientLibrarySettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a CreateVmwareEngineNetworkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a Publishing. */ - interface IPublishing { + /** + * Creates a CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateVmwareEngineNetworkRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; - /** Publishing methodSettings */ - methodSettings?: (google.api.IMethodSettings[]|null); + /** + * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @param message CreateVmwareEngineNetworkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Publishing newIssueUri */ - newIssueUri?: (string|null); + /** + * Converts this CreateVmwareEngineNetworkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Publishing documentationUri */ - documentationUri?: (string|null); + /** + * Gets the default type url for CreateVmwareEngineNetworkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Publishing apiShortName */ - apiShortName?: (string|null); + /** Properties of an UpdateVmwareEngineNetworkRequest. */ + interface IUpdateVmwareEngineNetworkRequest { - /** Publishing githubLabel */ - githubLabel?: (string|null); + /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork */ + vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - /** Publishing codeownerGithubTeams */ - codeownerGithubTeams?: (string[]|null); + /** UpdateVmwareEngineNetworkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** Publishing docTagPrefix */ - docTagPrefix?: (string|null); + /** UpdateVmwareEngineNetworkRequest requestId */ + requestId?: (string|null); + } - /** Publishing organization */ - organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null); + /** Represents an UpdateVmwareEngineNetworkRequest. */ + class UpdateVmwareEngineNetworkRequest implements IUpdateVmwareEngineNetworkRequest { - /** Publishing librarySettings */ - librarySettings?: (google.api.IClientLibrarySettings[]|null); - } + /** + * Constructs a new UpdateVmwareEngineNetworkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest); - /** Represents a Publishing. */ - class Publishing implements IPublishing { + /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. */ + public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - /** - * Constructs a new Publishing. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IPublishing); + /** UpdateVmwareEngineNetworkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** Publishing methodSettings. */ - public methodSettings: google.api.IMethodSettings[]; + /** UpdateVmwareEngineNetworkRequest requestId. */ + public requestId: string; - /** Publishing newIssueUri. */ - public newIssueUri: string; + /** + * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateVmwareEngineNetworkRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; - /** Publishing documentationUri. */ - public documentationUri: string; + /** + * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Publishing apiShortName. */ - public apiShortName: string; + /** + * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Publishing githubLabel. */ - public githubLabel: string; + /** + * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + + /** + * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + + /** + * Verifies an UpdateVmwareEngineNetworkRequest message. + * @param message Plain 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 UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateVmwareEngineNetworkRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + + /** + * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @param message UpdateVmwareEngineNetworkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateVmwareEngineNetworkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateVmwareEngineNetworkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteVmwareEngineNetworkRequest. */ + interface IDeleteVmwareEngineNetworkRequest { + + /** DeleteVmwareEngineNetworkRequest name */ + name?: (string|null); + + /** DeleteVmwareEngineNetworkRequest requestId */ + requestId?: (string|null); + + /** DeleteVmwareEngineNetworkRequest etag */ + etag?: (string|null); + } + + /** Represents a DeleteVmwareEngineNetworkRequest. */ + class DeleteVmwareEngineNetworkRequest implements IDeleteVmwareEngineNetworkRequest { + + /** + * Constructs a new DeleteVmwareEngineNetworkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest); + + /** DeleteVmwareEngineNetworkRequest name. */ + public name: string; + + /** DeleteVmwareEngineNetworkRequest requestId. */ + public requestId: string; + + /** DeleteVmwareEngineNetworkRequest etag. */ + public etag: string; + + /** + * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteVmwareEngineNetworkRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + + /** + * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. + * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. + * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + + /** + * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + + /** + * Verifies a DeleteVmwareEngineNetworkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteVmwareEngineNetworkRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + + /** + * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @param message DeleteVmwareEngineNetworkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteVmwareEngineNetworkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteVmwareEngineNetworkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVmwareEngineNetworkRequest. */ + interface IGetVmwareEngineNetworkRequest { + + /** GetVmwareEngineNetworkRequest name */ + name?: (string|null); + } + + /** Represents a GetVmwareEngineNetworkRequest. */ + class GetVmwareEngineNetworkRequest implements IGetVmwareEngineNetworkRequest { + + /** + * Constructs a new GetVmwareEngineNetworkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest); + + /** GetVmwareEngineNetworkRequest name. */ + public name: string; + + /** + * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVmwareEngineNetworkRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + + /** + * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. + * @param message GetVmwareEngineNetworkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. + * @param message GetVmwareEngineNetworkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + + /** + * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + + /** + * Verifies a GetVmwareEngineNetworkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVmwareEngineNetworkRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + + /** + * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @param message GetVmwareEngineNetworkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVmwareEngineNetworkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVmwareEngineNetworkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListVmwareEngineNetworksRequest. */ + interface IListVmwareEngineNetworksRequest { + + /** ListVmwareEngineNetworksRequest parent */ + parent?: (string|null); + + /** ListVmwareEngineNetworksRequest pageSize */ + pageSize?: (number|null); + + /** ListVmwareEngineNetworksRequest pageToken */ + pageToken?: (string|null); + + /** ListVmwareEngineNetworksRequest filter */ + filter?: (string|null); + + /** ListVmwareEngineNetworksRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListVmwareEngineNetworksRequest. */ + class ListVmwareEngineNetworksRequest implements IListVmwareEngineNetworksRequest { + + /** + * Constructs a new ListVmwareEngineNetworksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest); + + /** ListVmwareEngineNetworksRequest parent. */ + public parent: string; + + /** ListVmwareEngineNetworksRequest pageSize. */ + public pageSize: number; + + /** ListVmwareEngineNetworksRequest pageToken. */ + public pageToken: string; + + /** ListVmwareEngineNetworksRequest filter. */ + public filter: string; + + /** ListVmwareEngineNetworksRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVmwareEngineNetworksRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + + /** + * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * @param message ListVmwareEngineNetworksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * @param message ListVmwareEngineNetworksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListVmwareEngineNetworksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + + /** + * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListVmwareEngineNetworksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + + /** + * Verifies a ListVmwareEngineNetworksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVmwareEngineNetworksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + + /** + * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified. + * @param message ListVmwareEngineNetworksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListVmwareEngineNetworksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListVmwareEngineNetworksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListVmwareEngineNetworksResponse. */ + interface IListVmwareEngineNetworksResponse { + + /** ListVmwareEngineNetworksResponse vmwareEngineNetworks */ + vmwareEngineNetworks?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]|null); + + /** ListVmwareEngineNetworksResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListVmwareEngineNetworksResponse unreachable */ + unreachable?: (string[]|null); + } + + /** Represents a ListVmwareEngineNetworksResponse. */ + class ListVmwareEngineNetworksResponse implements IListVmwareEngineNetworksResponse { + + /** + * Constructs a new ListVmwareEngineNetworksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse); + + /** ListVmwareEngineNetworksResponse vmwareEngineNetworks. */ + public vmwareEngineNetworks: google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]; + + /** ListVmwareEngineNetworksResponse nextPageToken. */ + public nextPageToken: string; + + /** ListVmwareEngineNetworksResponse unreachable. */ + public unreachable: string[]; + + /** + * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVmwareEngineNetworksResponse instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + + /** + * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. + * @param message ListVmwareEngineNetworksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. + * @param message ListVmwareEngineNetworksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListVmwareEngineNetworksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + + /** + * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListVmwareEngineNetworksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + + /** + * Verifies a ListVmwareEngineNetworksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVmwareEngineNetworksResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + + /** + * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified. + * @param message ListVmwareEngineNetworksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListVmwareEngineNetworksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListVmwareEngineNetworksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreatePrivateConnectionRequest. */ + interface ICreatePrivateConnectionRequest { + + /** CreatePrivateConnectionRequest parent */ + parent?: (string|null); + + /** CreatePrivateConnectionRequest privateConnectionId */ + privateConnectionId?: (string|null); + + /** CreatePrivateConnectionRequest privateConnection */ + privateConnection?: (google.cloud.vmwareengine.v1.IPrivateConnection|null); + + /** CreatePrivateConnectionRequest requestId */ + requestId?: (string|null); + } + + /** Represents a CreatePrivateConnectionRequest. */ + class CreatePrivateConnectionRequest implements ICreatePrivateConnectionRequest { + + /** + * Constructs a new CreatePrivateConnectionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest); + + /** CreatePrivateConnectionRequest parent. */ + public parent: string; + + /** CreatePrivateConnectionRequest privateConnectionId. */ + public privateConnectionId: string; + + /** CreatePrivateConnectionRequest privateConnection. */ + public privateConnection?: (google.cloud.vmwareengine.v1.IPrivateConnection|null); + + /** CreatePrivateConnectionRequest requestId. */ + public requestId: string; + + /** + * Creates a new CreatePrivateConnectionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePrivateConnectionRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest): google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; + + /** + * Encodes the specified CreatePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.verify|verify} messages. + * @param message CreatePrivateConnectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreatePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.verify|verify} messages. + * @param message CreatePrivateConnectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreatePrivateConnectionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; + + /** + * Decodes a CreatePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; + + /** + * Verifies a CreatePrivateConnectionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreatePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePrivateConnectionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; + + /** + * Creates a plain object from a CreatePrivateConnectionRequest message. Also converts values to other types if specified. + * @param message CreatePrivateConnectionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreatePrivateConnectionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreatePrivateConnectionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetPrivateConnectionRequest. */ + interface IGetPrivateConnectionRequest { + + /** GetPrivateConnectionRequest name */ + name?: (string|null); + } + + /** Represents a GetPrivateConnectionRequest. */ + class GetPrivateConnectionRequest implements IGetPrivateConnectionRequest { + + /** + * Constructs a new GetPrivateConnectionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest); + + /** GetPrivateConnectionRequest name. */ + public name: string; + + /** + * Creates a new GetPrivateConnectionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPrivateConnectionRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest): google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; + + /** + * Encodes the specified GetPrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.verify|verify} messages. + * @param message GetPrivateConnectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.verify|verify} messages. + * @param message GetPrivateConnectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPrivateConnectionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; + + /** + * Decodes a GetPrivateConnectionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; + + /** + * Verifies a GetPrivateConnectionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPrivateConnectionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; + + /** + * Creates a plain object from a GetPrivateConnectionRequest message. Also converts values to other types if specified. + * @param message GetPrivateConnectionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.GetPrivateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPrivateConnectionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPrivateConnectionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListPrivateConnectionsRequest. */ + interface IListPrivateConnectionsRequest { + + /** ListPrivateConnectionsRequest parent */ + parent?: (string|null); + + /** ListPrivateConnectionsRequest pageSize */ + pageSize?: (number|null); + + /** ListPrivateConnectionsRequest pageToken */ + pageToken?: (string|null); + + /** ListPrivateConnectionsRequest filter */ + filter?: (string|null); + + /** ListPrivateConnectionsRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListPrivateConnectionsRequest. */ + class ListPrivateConnectionsRequest implements IListPrivateConnectionsRequest { + + /** + * Constructs a new ListPrivateConnectionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest); + + /** ListPrivateConnectionsRequest parent. */ + public parent: string; + + /** ListPrivateConnectionsRequest pageSize. */ + public pageSize: number; + + /** ListPrivateConnectionsRequest pageToken. */ + public pageToken: string; + + /** ListPrivateConnectionsRequest filter. */ + public filter: string; + + /** ListPrivateConnectionsRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListPrivateConnectionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPrivateConnectionsRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest): google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; + + /** + * Encodes the specified ListPrivateConnectionsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.verify|verify} messages. + * @param message ListPrivateConnectionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPrivateConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.verify|verify} messages. + * @param message ListPrivateConnectionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPrivateConnectionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPrivateConnectionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; + + /** + * Decodes a ListPrivateConnectionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPrivateConnectionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; + + /** + * Verifies a ListPrivateConnectionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPrivateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPrivateConnectionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; + + /** + * Creates a plain object from a ListPrivateConnectionsRequest message. Also converts values to other types if specified. + * @param message ListPrivateConnectionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPrivateConnectionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPrivateConnectionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListPrivateConnectionsResponse. */ + interface IListPrivateConnectionsResponse { + + /** ListPrivateConnectionsResponse privateConnections */ + privateConnections?: (google.cloud.vmwareengine.v1.IPrivateConnection[]|null); + + /** ListPrivateConnectionsResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListPrivateConnectionsResponse unreachable */ + unreachable?: (string[]|null); + } + + /** Represents a ListPrivateConnectionsResponse. */ + class ListPrivateConnectionsResponse implements IListPrivateConnectionsResponse { + + /** + * Constructs a new ListPrivateConnectionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse); + + /** ListPrivateConnectionsResponse privateConnections. */ + public privateConnections: google.cloud.vmwareengine.v1.IPrivateConnection[]; + + /** ListPrivateConnectionsResponse nextPageToken. */ + public nextPageToken: string; + + /** ListPrivateConnectionsResponse unreachable. */ + public unreachable: string[]; + + /** + * Creates a new ListPrivateConnectionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPrivateConnectionsResponse instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse): google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; + + /** + * Encodes the specified ListPrivateConnectionsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.verify|verify} messages. + * @param message ListPrivateConnectionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPrivateConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.verify|verify} messages. + * @param message ListPrivateConnectionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPrivateConnectionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPrivateConnectionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; + + /** + * Decodes a ListPrivateConnectionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPrivateConnectionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; + + /** + * Verifies a ListPrivateConnectionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPrivateConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPrivateConnectionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; + + /** + * Creates a plain object from a ListPrivateConnectionsResponse message. Also converts values to other types if specified. + * @param message ListPrivateConnectionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPrivateConnectionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPrivateConnectionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdatePrivateConnectionRequest. */ + interface IUpdatePrivateConnectionRequest { + + /** UpdatePrivateConnectionRequest privateConnection */ + privateConnection?: (google.cloud.vmwareengine.v1.IPrivateConnection|null); + + /** UpdatePrivateConnectionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdatePrivateConnectionRequest requestId */ + requestId?: (string|null); + } + + /** Represents an UpdatePrivateConnectionRequest. */ + class UpdatePrivateConnectionRequest implements IUpdatePrivateConnectionRequest { + + /** + * Constructs a new UpdatePrivateConnectionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest); + + /** UpdatePrivateConnectionRequest privateConnection. */ + public privateConnection?: (google.cloud.vmwareengine.v1.IPrivateConnection|null); + + /** UpdatePrivateConnectionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdatePrivateConnectionRequest requestId. */ + public requestId: string; + + /** + * Creates a new UpdatePrivateConnectionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdatePrivateConnectionRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest): google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; + + /** + * Encodes the specified UpdatePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.verify|verify} messages. + * @param message UpdatePrivateConnectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdatePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.verify|verify} messages. + * @param message UpdatePrivateConnectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdatePrivateConnectionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdatePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; + + /** + * Decodes an UpdatePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdatePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; + + /** + * Verifies an UpdatePrivateConnectionRequest message. + * @param message Plain 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 UpdatePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdatePrivateConnectionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; + + /** + * Creates a plain object from an UpdatePrivateConnectionRequest message. Also converts values to other types if specified. + * @param message UpdatePrivateConnectionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdatePrivateConnectionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdatePrivateConnectionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeletePrivateConnectionRequest. */ + interface IDeletePrivateConnectionRequest { + + /** DeletePrivateConnectionRequest name */ + name?: (string|null); + + /** DeletePrivateConnectionRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeletePrivateConnectionRequest. */ + class DeletePrivateConnectionRequest implements IDeletePrivateConnectionRequest { + + /** + * Constructs a new DeletePrivateConnectionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest); + + /** DeletePrivateConnectionRequest name. */ + public name: string; + + /** DeletePrivateConnectionRequest requestId. */ + public requestId: string; + + /** + * Creates a new DeletePrivateConnectionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeletePrivateConnectionRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest): google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; + + /** + * Encodes the specified DeletePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.verify|verify} messages. + * @param message DeletePrivateConnectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeletePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.verify|verify} messages. + * @param message DeletePrivateConnectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeletePrivateConnectionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeletePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; + + /** + * Decodes a DeletePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeletePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; + + /** + * Verifies a DeletePrivateConnectionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeletePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeletePrivateConnectionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; + + /** + * Creates a plain object from a DeletePrivateConnectionRequest message. Also converts values to other types if specified. + * @param message DeletePrivateConnectionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeletePrivateConnectionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeletePrivateConnectionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListPrivateConnectionPeeringRoutesRequest. */ + interface IListPrivateConnectionPeeringRoutesRequest { + + /** ListPrivateConnectionPeeringRoutesRequest parent */ + parent?: (string|null); + + /** ListPrivateConnectionPeeringRoutesRequest pageSize */ + pageSize?: (number|null); + + /** ListPrivateConnectionPeeringRoutesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListPrivateConnectionPeeringRoutesRequest. */ + class ListPrivateConnectionPeeringRoutesRequest implements IListPrivateConnectionPeeringRoutesRequest { + + /** + * Constructs a new ListPrivateConnectionPeeringRoutesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest); + + /** ListPrivateConnectionPeeringRoutesRequest parent. */ + public parent: string; + + /** ListPrivateConnectionPeeringRoutesRequest pageSize. */ + public pageSize: number; + + /** ListPrivateConnectionPeeringRoutesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListPrivateConnectionPeeringRoutesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPrivateConnectionPeeringRoutesRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; + + /** + * Encodes the specified ListPrivateConnectionPeeringRoutesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.verify|verify} messages. + * @param message ListPrivateConnectionPeeringRoutesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPrivateConnectionPeeringRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.verify|verify} messages. + * @param message ListPrivateConnectionPeeringRoutesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPrivateConnectionPeeringRoutesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPrivateConnectionPeeringRoutesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; + + /** + * Decodes a ListPrivateConnectionPeeringRoutesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPrivateConnectionPeeringRoutesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; + + /** + * Verifies a ListPrivateConnectionPeeringRoutesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPrivateConnectionPeeringRoutesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPrivateConnectionPeeringRoutesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; + + /** + * Creates a plain object from a ListPrivateConnectionPeeringRoutesRequest message. Also converts values to other types if specified. + * @param message ListPrivateConnectionPeeringRoutesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPrivateConnectionPeeringRoutesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPrivateConnectionPeeringRoutesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListPrivateConnectionPeeringRoutesResponse. */ + interface IListPrivateConnectionPeeringRoutesResponse { + + /** ListPrivateConnectionPeeringRoutesResponse peeringRoutes */ + peeringRoutes?: (google.cloud.vmwareengine.v1.IPeeringRoute[]|null); + + /** ListPrivateConnectionPeeringRoutesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListPrivateConnectionPeeringRoutesResponse. */ + class ListPrivateConnectionPeeringRoutesResponse implements IListPrivateConnectionPeeringRoutesResponse { + + /** + * Constructs a new ListPrivateConnectionPeeringRoutesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse); + + /** ListPrivateConnectionPeeringRoutesResponse peeringRoutes. */ + public peeringRoutes: google.cloud.vmwareengine.v1.IPeeringRoute[]; + + /** ListPrivateConnectionPeeringRoutesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListPrivateConnectionPeeringRoutesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPrivateConnectionPeeringRoutesResponse instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; + + /** + * Encodes the specified ListPrivateConnectionPeeringRoutesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.verify|verify} messages. + * @param message ListPrivateConnectionPeeringRoutesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPrivateConnectionPeeringRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.verify|verify} messages. + * @param message ListPrivateConnectionPeeringRoutesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPrivateConnectionPeeringRoutesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPrivateConnectionPeeringRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; + + /** + * Decodes a ListPrivateConnectionPeeringRoutesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPrivateConnectionPeeringRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; + + /** + * Verifies a ListPrivateConnectionPeeringRoutesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPrivateConnectionPeeringRoutesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPrivateConnectionPeeringRoutesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; + + /** + * Creates a plain object from a ListPrivateConnectionPeeringRoutesResponse message. Also converts values to other types if specified. + * @param message ListPrivateConnectionPeeringRoutesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPrivateConnectionPeeringRoutesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPrivateConnectionPeeringRoutesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GrantDnsBindPermissionRequest. */ + interface IGrantDnsBindPermissionRequest { + + /** GrantDnsBindPermissionRequest name */ + name?: (string|null); + + /** GrantDnsBindPermissionRequest principal */ + principal?: (google.cloud.vmwareengine.v1.IPrincipal|null); + + /** GrantDnsBindPermissionRequest requestId */ + requestId?: (string|null); + } + + /** Represents a GrantDnsBindPermissionRequest. */ + class GrantDnsBindPermissionRequest implements IGrantDnsBindPermissionRequest { + + /** + * Constructs a new GrantDnsBindPermissionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest); + + /** GrantDnsBindPermissionRequest name. */ + public name: string; + + /** GrantDnsBindPermissionRequest principal. */ + public principal?: (google.cloud.vmwareengine.v1.IPrincipal|null); + + /** GrantDnsBindPermissionRequest requestId. */ + public requestId: string; + + /** + * Creates a new GrantDnsBindPermissionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GrantDnsBindPermissionRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest): google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest; + + /** + * Encodes the specified GrantDnsBindPermissionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.verify|verify} messages. + * @param message GrantDnsBindPermissionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GrantDnsBindPermissionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.verify|verify} messages. + * @param message GrantDnsBindPermissionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GrantDnsBindPermissionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GrantDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest; + + /** + * Decodes a GrantDnsBindPermissionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GrantDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest; + + /** + * Verifies a GrantDnsBindPermissionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GrantDnsBindPermissionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GrantDnsBindPermissionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest; + + /** + * Creates a plain object from a GrantDnsBindPermissionRequest message. Also converts values to other types if specified. + * @param message GrantDnsBindPermissionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GrantDnsBindPermissionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GrantDnsBindPermissionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RevokeDnsBindPermissionRequest. */ + interface IRevokeDnsBindPermissionRequest { + + /** RevokeDnsBindPermissionRequest name */ + name?: (string|null); + + /** RevokeDnsBindPermissionRequest principal */ + principal?: (google.cloud.vmwareengine.v1.IPrincipal|null); + + /** RevokeDnsBindPermissionRequest requestId */ + requestId?: (string|null); + } + + /** Represents a RevokeDnsBindPermissionRequest. */ + class RevokeDnsBindPermissionRequest implements IRevokeDnsBindPermissionRequest { + + /** + * Constructs a new RevokeDnsBindPermissionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest); + + /** RevokeDnsBindPermissionRequest name. */ + public name: string; + + /** RevokeDnsBindPermissionRequest principal. */ + public principal?: (google.cloud.vmwareengine.v1.IPrincipal|null); + + /** RevokeDnsBindPermissionRequest requestId. */ + public requestId: string; + + /** + * Creates a new RevokeDnsBindPermissionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RevokeDnsBindPermissionRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest): google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; + + /** + * Encodes the specified RevokeDnsBindPermissionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.verify|verify} messages. + * @param message RevokeDnsBindPermissionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RevokeDnsBindPermissionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.verify|verify} messages. + * @param message RevokeDnsBindPermissionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RevokeDnsBindPermissionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RevokeDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; + + /** + * Decodes a RevokeDnsBindPermissionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RevokeDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; + + /** + * Verifies a RevokeDnsBindPermissionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RevokeDnsBindPermissionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RevokeDnsBindPermissionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; + + /** + * Creates a plain object from a RevokeDnsBindPermissionRequest message. Also converts values to other types if specified. + * @param message RevokeDnsBindPermissionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RevokeDnsBindPermissionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RevokeDnsBindPermissionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetDnsBindPermissionRequest. */ + interface IGetDnsBindPermissionRequest { + + /** GetDnsBindPermissionRequest name */ + name?: (string|null); + } + + /** Represents a GetDnsBindPermissionRequest. */ + class GetDnsBindPermissionRequest implements IGetDnsBindPermissionRequest { + + /** + * Constructs a new GetDnsBindPermissionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest); + + /** GetDnsBindPermissionRequest name. */ + public name: string; + + /** + * Creates a new GetDnsBindPermissionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDnsBindPermissionRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest): google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; + + /** + * Encodes the specified GetDnsBindPermissionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.verify|verify} messages. + * @param message GetDnsBindPermissionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDnsBindPermissionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.verify|verify} messages. + * @param message GetDnsBindPermissionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDnsBindPermissionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; + + /** + * Decodes a GetDnsBindPermissionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; + + /** + * Verifies a GetDnsBindPermissionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetDnsBindPermissionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDnsBindPermissionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; + + /** + * Creates a plain object from a GetDnsBindPermissionRequest message. Also converts values to other types if specified. + * @param message GetDnsBindPermissionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDnsBindPermissionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDnsBindPermissionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetworkConfig. */ + interface INetworkConfig { + + /** NetworkConfig managementCidr */ + managementCidr?: (string|null); + + /** NetworkConfig vmwareEngineNetwork */ + vmwareEngineNetwork?: (string|null); + + /** NetworkConfig vmwareEngineNetworkCanonical */ + vmwareEngineNetworkCanonical?: (string|null); + + /** NetworkConfig managementIpAddressLayoutVersion */ + managementIpAddressLayoutVersion?: (number|null); + + /** NetworkConfig dnsServerIp */ + dnsServerIp?: (string|null); + } + + /** Represents a NetworkConfig. */ + class NetworkConfig implements INetworkConfig { + + /** + * Constructs a new NetworkConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INetworkConfig); + + /** NetworkConfig managementCidr. */ + public managementCidr: string; + + /** NetworkConfig vmwareEngineNetwork. */ + public vmwareEngineNetwork: string; + + /** NetworkConfig vmwareEngineNetworkCanonical. */ + public vmwareEngineNetworkCanonical: string; + + /** NetworkConfig managementIpAddressLayoutVersion. */ + public managementIpAddressLayoutVersion: number; + + /** NetworkConfig dnsServerIp. */ + public dnsServerIp: string; + + /** + * Creates a new NetworkConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkConfig instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.INetworkConfig): google.cloud.vmwareengine.v1.NetworkConfig; + + /** + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * @param message NetworkConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * @param message NetworkConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkConfig; + + /** + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkConfig; + + /** + * Verifies a NetworkConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkConfig; + + /** + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * @param message NetworkConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NodeTypeConfig. */ + interface INodeTypeConfig { + + /** NodeTypeConfig nodeCount */ + nodeCount?: (number|null); + + /** NodeTypeConfig customCoreCount */ + customCoreCount?: (number|null); + } + + /** Represents a NodeTypeConfig. */ + class NodeTypeConfig implements INodeTypeConfig { + + /** + * Constructs a new NodeTypeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig); + + /** NodeTypeConfig nodeCount. */ + public nodeCount: number; + + /** NodeTypeConfig customCoreCount. */ + public customCoreCount: number; + + /** + * Creates a new NodeTypeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeTypeConfig instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig): google.cloud.vmwareengine.v1.NodeTypeConfig; + + /** + * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * @param message NodeTypeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * @param message NodeTypeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeTypeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeTypeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NodeTypeConfig; + + /** + * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeTypeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NodeTypeConfig; + + /** + * Verifies a NodeTypeConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeTypeConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeTypeConfig; + + /** + * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified. + * @param message NodeTypeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.NodeTypeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeTypeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeTypeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StretchedClusterConfig. */ + interface IStretchedClusterConfig { + + /** StretchedClusterConfig preferredLocation */ + preferredLocation?: (string|null); + + /** StretchedClusterConfig secondaryLocation */ + secondaryLocation?: (string|null); + } + + /** Represents a StretchedClusterConfig. */ + class StretchedClusterConfig implements IStretchedClusterConfig { + + /** + * Constructs a new StretchedClusterConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IStretchedClusterConfig); + + /** StretchedClusterConfig preferredLocation. */ + public preferredLocation: string; + + /** StretchedClusterConfig secondaryLocation. */ + public secondaryLocation: string; + + /** + * Creates a new StretchedClusterConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns StretchedClusterConfig instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IStretchedClusterConfig): google.cloud.vmwareengine.v1.StretchedClusterConfig; + + /** + * Encodes the specified StretchedClusterConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.StretchedClusterConfig.verify|verify} messages. + * @param message StretchedClusterConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IStretchedClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StretchedClusterConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.StretchedClusterConfig.verify|verify} messages. + * @param message StretchedClusterConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IStretchedClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StretchedClusterConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StretchedClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.StretchedClusterConfig; + + /** + * Decodes a StretchedClusterConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StretchedClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.StretchedClusterConfig; + + /** + * Verifies a StretchedClusterConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StretchedClusterConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StretchedClusterConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.StretchedClusterConfig; + + /** + * Creates a plain object from a StretchedClusterConfig message. Also converts values to other types if specified. + * @param message StretchedClusterConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.StretchedClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StretchedClusterConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StretchedClusterConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PrivateCloud. */ + interface IPrivateCloud { + + /** PrivateCloud name */ + name?: (string|null); + + /** PrivateCloud createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PrivateCloud updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** PrivateCloud deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); + + /** PrivateCloud expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); + + /** PrivateCloud state */ + state?: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State|null); + + /** PrivateCloud networkConfig */ + networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null); + + /** PrivateCloud managementCluster */ + managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null); + + /** PrivateCloud description */ + description?: (string|null); + + /** PrivateCloud hcx */ + hcx?: (google.cloud.vmwareengine.v1.IHcx|null); + + /** PrivateCloud nsx */ + nsx?: (google.cloud.vmwareengine.v1.INsx|null); + + /** PrivateCloud vcenter */ + vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null); + + /** PrivateCloud uid */ + uid?: (string|null); + + /** PrivateCloud type */ + type?: (google.cloud.vmwareengine.v1.PrivateCloud.Type|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.Type|null); + } + + /** Represents a PrivateCloud. */ + class PrivateCloud implements IPrivateCloud { + + /** + * Constructs a new PrivateCloud. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IPrivateCloud); + + /** PrivateCloud name. */ + public name: string; + + /** PrivateCloud createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PrivateCloud updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** PrivateCloud deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); + + /** PrivateCloud expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); + + /** PrivateCloud state. */ + public state: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State); + + /** PrivateCloud networkConfig. */ + public networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null); + + /** PrivateCloud managementCluster. */ + public managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null); + + /** PrivateCloud description. */ + public description: string; + + /** PrivateCloud hcx. */ + public hcx?: (google.cloud.vmwareengine.v1.IHcx|null); + + /** PrivateCloud nsx. */ + public nsx?: (google.cloud.vmwareengine.v1.INsx|null); + + /** PrivateCloud vcenter. */ + public vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null); + + /** PrivateCloud uid. */ + public uid: string; + + /** PrivateCloud type. */ + public type: (google.cloud.vmwareengine.v1.PrivateCloud.Type|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.Type); + + /** + * Creates a new PrivateCloud instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateCloud instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IPrivateCloud): google.cloud.vmwareengine.v1.PrivateCloud; + + /** + * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * @param message PrivateCloud message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * @param message PrivateCloud message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrivateCloud message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateCloud + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PrivateCloud; + + /** + * Decodes a PrivateCloud message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateCloud + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PrivateCloud; + + /** + * Verifies a PrivateCloud message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateCloud + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud; + + /** + * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified. + * @param message PrivateCloud + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrivateCloud to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrivateCloud + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace PrivateCloud { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + FAILED = 5, + DELETED = 6, + PURGING = 7 + } + + /** Properties of a ManagementCluster. */ + interface IManagementCluster { + + /** ManagementCluster clusterId */ + clusterId?: (string|null); + + /** ManagementCluster nodeTypeConfigs */ + nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null); + + /** ManagementCluster stretchedClusterConfig */ + stretchedClusterConfig?: (google.cloud.vmwareengine.v1.IStretchedClusterConfig|null); + } + + /** Represents a ManagementCluster. */ + class ManagementCluster implements IManagementCluster { + + /** + * Constructs a new ManagementCluster. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster); + + /** ManagementCluster clusterId. */ + public clusterId: string; + + /** ManagementCluster nodeTypeConfigs. */ + public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }; + + /** ManagementCluster stretchedClusterConfig. */ + public stretchedClusterConfig?: (google.cloud.vmwareengine.v1.IStretchedClusterConfig|null); + + /** + * Creates a new ManagementCluster instance using the specified properties. + * @param [properties] Properties to set + * @returns ManagementCluster instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; + + /** + * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. + * @param message ManagementCluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. + * @param message ManagementCluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ManagementCluster message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ManagementCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; + + /** + * Decodes a ManagementCluster message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ManagementCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; + + /** + * Verifies a ManagementCluster message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ManagementCluster + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; + + /** + * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified. + * @param message ManagementCluster + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ManagementCluster to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ManagementCluster + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Type enum. */ + enum Type { + STANDARD = 0, + TIME_LIMITED = 1, + STRETCHED = 2 + } + } + + /** Properties of a Cluster. */ + interface ICluster { + + /** Cluster name */ + name?: (string|null); + + /** Cluster createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Cluster updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Cluster state */ + state?: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State|null); + + /** Cluster management */ + management?: (boolean|null); + + /** Cluster uid */ + uid?: (string|null); + + /** Cluster nodeTypeConfigs */ + nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null); + + /** Cluster stretchedClusterConfig */ + stretchedClusterConfig?: (google.cloud.vmwareengine.v1.IStretchedClusterConfig|null); + } + + /** Represents a Cluster. */ + class Cluster implements ICluster { + + /** + * Constructs a new Cluster. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ICluster); + + /** Cluster name. */ + public name: string; + + /** Cluster createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Cluster updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Cluster state. */ + public state: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State); + + /** Cluster management. */ + public management: boolean; + + /** Cluster uid. */ + public uid: string; + + /** Cluster nodeTypeConfigs. */ + public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }; + + /** Cluster stretchedClusterConfig. */ + public stretchedClusterConfig?: (google.cloud.vmwareengine.v1.IStretchedClusterConfig|null); + + /** + * Creates a new Cluster instance using the specified properties. + * @param [properties] Properties to set + * @returns Cluster instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICluster): google.cloud.vmwareengine.v1.Cluster; + + /** + * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * @param message Cluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * @param message Cluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Cluster message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Cluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Cluster; + + /** + * Decodes a Cluster message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Cluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Cluster; + + /** + * Verifies a Cluster message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Cluster message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Cluster + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Cluster; + + /** + * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * @param message Cluster + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Cluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Cluster to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Cluster + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Cluster { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + DELETING = 4, + REPAIRING = 5 + } + } + + /** Properties of a Node. */ + interface INode { + + /** Node name */ + name?: (string|null); + + /** Node fqdn */ + fqdn?: (string|null); + + /** Node internalIp */ + internalIp?: (string|null); + + /** Node nodeTypeId */ + nodeTypeId?: (string|null); + + /** Node version */ + version?: (string|null); + + /** Node customCoreCount */ + customCoreCount?: (number|Long|string|null); + + /** Node state */ + state?: (google.cloud.vmwareengine.v1.Node.State|keyof typeof google.cloud.vmwareengine.v1.Node.State|null); + } + + /** Represents a Node. */ + class Node implements INode { + + /** + * Constructs a new Node. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INode); + + /** Node name. */ + public name: string; + + /** Node fqdn. */ + public fqdn: string; + + /** Node internalIp. */ + public internalIp: string; + + /** Node nodeTypeId. */ + public nodeTypeId: string; + + /** Node version. */ + public version: string; + + /** Node customCoreCount. */ + public customCoreCount: (number|Long|string); + + /** Node state. */ + public state: (google.cloud.vmwareengine.v1.Node.State|keyof typeof google.cloud.vmwareengine.v1.Node.State); + + /** + * Creates a new Node instance using the specified properties. + * @param [properties] Properties to set + * @returns Node instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.INode): google.cloud.vmwareengine.v1.Node; + + /** + * Encodes the specified Node message. Does not implicitly {@link google.cloud.vmwareengine.v1.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Node message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Node message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Node; + + /** + * Decodes a Node message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Node; + + /** + * Verifies a Node message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Node message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Node + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Node; + + /** + * Creates a plain object from a Node message. Also converts values to other types if specified. + * @param message Node + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Node, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Node to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Node + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Node { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + FAILED = 3, + UPGRADING = 4 + } + } + + /** Properties of an ExternalAddress. */ + interface IExternalAddress { + + /** ExternalAddress name */ + name?: (string|null); + + /** ExternalAddress createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ExternalAddress updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** ExternalAddress internalIp */ + internalIp?: (string|null); + + /** ExternalAddress externalIp */ + externalIp?: (string|null); + + /** ExternalAddress state */ + state?: (google.cloud.vmwareengine.v1.ExternalAddress.State|keyof typeof google.cloud.vmwareengine.v1.ExternalAddress.State|null); + + /** ExternalAddress uid */ + uid?: (string|null); + + /** ExternalAddress description */ + description?: (string|null); + } + + /** Represents an ExternalAddress. */ + class ExternalAddress implements IExternalAddress { + + /** + * Constructs a new ExternalAddress. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IExternalAddress); + + /** ExternalAddress name. */ + public name: string; + + /** ExternalAddress createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ExternalAddress updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** ExternalAddress internalIp. */ + public internalIp: string; + + /** ExternalAddress externalIp. */ + public externalIp: string; + + /** ExternalAddress state. */ + public state: (google.cloud.vmwareengine.v1.ExternalAddress.State|keyof typeof google.cloud.vmwareengine.v1.ExternalAddress.State); + + /** ExternalAddress uid. */ + public uid: string; + + /** ExternalAddress description. */ + public description: string; + + /** + * Creates a new ExternalAddress instance using the specified properties. + * @param [properties] Properties to set + * @returns ExternalAddress instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IExternalAddress): google.cloud.vmwareengine.v1.ExternalAddress; + + /** + * Encodes the specified ExternalAddress message. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAddress.verify|verify} messages. + * @param message ExternalAddress message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IExternalAddress, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExternalAddress message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAddress.verify|verify} messages. + * @param message ExternalAddress message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IExternalAddress, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExternalAddress message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExternalAddress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ExternalAddress; + + /** + * Decodes an ExternalAddress message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExternalAddress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ExternalAddress; + + /** + * Verifies an ExternalAddress message. + * @param message Plain 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 ExternalAddress message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExternalAddress + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ExternalAddress; + + /** + * Creates a plain object from an ExternalAddress message. Also converts values to other types if specified. + * @param message ExternalAddress + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ExternalAddress, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExternalAddress to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExternalAddress + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExternalAddress { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + DELETING = 4 + } + } + + /** Properties of a Subnet. */ + interface ISubnet { + + /** Subnet name */ + name?: (string|null); + + /** Subnet ipCidrRange */ + ipCidrRange?: (string|null); + + /** Subnet gatewayIp */ + gatewayIp?: (string|null); + + /** Subnet type */ + type?: (string|null); + + /** Subnet state */ + state?: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State|null); + + /** Subnet vlanId */ + vlanId?: (number|null); + } + + /** Represents a Subnet. */ + class Subnet implements ISubnet { + + /** + * Constructs a new Subnet. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ISubnet); + + /** Subnet name. */ + public name: string; + + /** Subnet ipCidrRange. */ + public ipCidrRange: string; + + /** Subnet gatewayIp. */ + public gatewayIp: string; + + /** Subnet type. */ + public type: string; + + /** Subnet state. */ + public state: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State); + + /** Subnet vlanId. */ + public vlanId: number; + + /** + * Creates a new Subnet instance using the specified properties. + * @param [properties] Properties to set + * @returns Subnet instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ISubnet): google.cloud.vmwareengine.v1.Subnet; + + /** + * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * @param message Subnet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * @param message Subnet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Subnet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Subnet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Subnet; + + /** + * Decodes a Subnet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Subnet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Subnet; + + /** + * Verifies a Subnet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Subnet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Subnet + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Subnet; + + /** + * Creates a plain object from a Subnet message. Also converts values to other types if specified. + * @param message Subnet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Subnet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Subnet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Subnet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Subnet { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + DELETING = 4, + RECONCILING = 5, + FAILED = 6 + } + } + + /** Properties of an ExternalAccessRule. */ + interface IExternalAccessRule { + + /** ExternalAccessRule name */ + name?: (string|null); + + /** ExternalAccessRule createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ExternalAccessRule updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** ExternalAccessRule description */ + description?: (string|null); + + /** ExternalAccessRule priority */ + priority?: (number|null); + + /** ExternalAccessRule action */ + action?: (google.cloud.vmwareengine.v1.ExternalAccessRule.Action|keyof typeof google.cloud.vmwareengine.v1.ExternalAccessRule.Action|null); + + /** ExternalAccessRule ipProtocol */ + ipProtocol?: (string|null); + + /** ExternalAccessRule sourceIpRanges */ + sourceIpRanges?: (google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange[]|null); + + /** ExternalAccessRule sourcePorts */ + sourcePorts?: (string[]|null); + + /** ExternalAccessRule destinationIpRanges */ + destinationIpRanges?: (google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange[]|null); + + /** ExternalAccessRule destinationPorts */ + destinationPorts?: (string[]|null); + + /** ExternalAccessRule state */ + state?: (google.cloud.vmwareengine.v1.ExternalAccessRule.State|keyof typeof google.cloud.vmwareengine.v1.ExternalAccessRule.State|null); + + /** ExternalAccessRule uid */ + uid?: (string|null); + } + + /** Represents an ExternalAccessRule. */ + class ExternalAccessRule implements IExternalAccessRule { + + /** + * Constructs a new ExternalAccessRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IExternalAccessRule); + + /** ExternalAccessRule name. */ + public name: string; + + /** ExternalAccessRule createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ExternalAccessRule updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** ExternalAccessRule description. */ + public description: string; + + /** ExternalAccessRule priority. */ + public priority: number; + + /** ExternalAccessRule action. */ + public action: (google.cloud.vmwareengine.v1.ExternalAccessRule.Action|keyof typeof google.cloud.vmwareengine.v1.ExternalAccessRule.Action); + + /** ExternalAccessRule ipProtocol. */ + public ipProtocol: string; + + /** ExternalAccessRule sourceIpRanges. */ + public sourceIpRanges: google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange[]; + + /** ExternalAccessRule sourcePorts. */ + public sourcePorts: string[]; + + /** ExternalAccessRule destinationIpRanges. */ + public destinationIpRanges: google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange[]; + + /** ExternalAccessRule destinationPorts. */ + public destinationPorts: string[]; + + /** ExternalAccessRule state. */ + public state: (google.cloud.vmwareengine.v1.ExternalAccessRule.State|keyof typeof google.cloud.vmwareengine.v1.ExternalAccessRule.State); + + /** ExternalAccessRule uid. */ + public uid: string; + + /** + * Creates a new ExternalAccessRule instance using the specified properties. + * @param [properties] Properties to set + * @returns ExternalAccessRule instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IExternalAccessRule): google.cloud.vmwareengine.v1.ExternalAccessRule; + + /** + * Encodes the specified ExternalAccessRule message. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAccessRule.verify|verify} messages. + * @param message ExternalAccessRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IExternalAccessRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExternalAccessRule message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAccessRule.verify|verify} messages. + * @param message ExternalAccessRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IExternalAccessRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExternalAccessRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExternalAccessRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ExternalAccessRule; + + /** + * Decodes an ExternalAccessRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExternalAccessRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ExternalAccessRule; + + /** + * Verifies an ExternalAccessRule message. + * @param message Plain 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 ExternalAccessRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExternalAccessRule + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ExternalAccessRule; + + /** + * Creates a plain object from an ExternalAccessRule message. Also converts values to other types if specified. + * @param message ExternalAccessRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ExternalAccessRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExternalAccessRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExternalAccessRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExternalAccessRule { + + /** Action enum. */ + enum Action { + ACTION_UNSPECIFIED = 0, + ALLOW = 1, + DENY = 2 + } + + /** Properties of an IpRange. */ + interface IIpRange { + + /** IpRange ipAddress */ + ipAddress?: (string|null); + + /** IpRange ipAddressRange */ + ipAddressRange?: (string|null); + + /** IpRange externalAddress */ + externalAddress?: (string|null); + } + + /** Represents an IpRange. */ + class IpRange implements IIpRange { + + /** + * Constructs a new IpRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange); + + /** IpRange ipAddress. */ + public ipAddress?: (string|null); + + /** IpRange ipAddressRange. */ + public ipAddressRange?: (string|null); + + /** IpRange externalAddress. */ + public externalAddress?: (string|null); + + /** IpRange ipRange. */ + public ipRange?: ("ipAddress"|"ipAddressRange"|"externalAddress"); + + /** + * Creates a new IpRange instance using the specified properties. + * @param [properties] Properties to set + * @returns IpRange instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange): google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange; + + /** + * Encodes the specified IpRange message. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.verify|verify} messages. + * @param message IpRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IpRange message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.verify|verify} messages. + * @param message IpRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IpRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IpRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange; + + /** + * Decodes an IpRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IpRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange; + + /** + * Verifies an IpRange message. + * @param message Plain 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 IpRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IpRange + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange; + + /** + * Creates a plain object from an IpRange message. Also converts values to other types if specified. + * @param message IpRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IpRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IpRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + DELETING = 4 + } + } + + /** Properties of a LoggingServer. */ + interface ILoggingServer { + + /** LoggingServer name */ + name?: (string|null); + + /** LoggingServer createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** LoggingServer updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** LoggingServer hostname */ + hostname?: (string|null); + + /** LoggingServer port */ + port?: (number|null); + + /** LoggingServer protocol */ + protocol?: (google.cloud.vmwareengine.v1.LoggingServer.Protocol|keyof typeof google.cloud.vmwareengine.v1.LoggingServer.Protocol|null); + + /** LoggingServer sourceType */ + sourceType?: (google.cloud.vmwareengine.v1.LoggingServer.SourceType|keyof typeof google.cloud.vmwareengine.v1.LoggingServer.SourceType|null); + + /** LoggingServer uid */ + uid?: (string|null); + } + + /** Represents a LoggingServer. */ + class LoggingServer implements ILoggingServer { + + /** + * Constructs a new LoggingServer. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ILoggingServer); + + /** LoggingServer name. */ + public name: string; + + /** LoggingServer createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** LoggingServer updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** LoggingServer hostname. */ + public hostname: string; + + /** LoggingServer port. */ + public port: number; + + /** LoggingServer protocol. */ + public protocol: (google.cloud.vmwareengine.v1.LoggingServer.Protocol|keyof typeof google.cloud.vmwareengine.v1.LoggingServer.Protocol); + + /** LoggingServer sourceType. */ + public sourceType: (google.cloud.vmwareengine.v1.LoggingServer.SourceType|keyof typeof google.cloud.vmwareengine.v1.LoggingServer.SourceType); + + /** LoggingServer uid. */ + public uid: string; + + /** + * Creates a new LoggingServer instance using the specified properties. + * @param [properties] Properties to set + * @returns LoggingServer instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ILoggingServer): google.cloud.vmwareengine.v1.LoggingServer; + + /** + * Encodes the specified LoggingServer message. Does not implicitly {@link google.cloud.vmwareengine.v1.LoggingServer.verify|verify} messages. + * @param message LoggingServer message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ILoggingServer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LoggingServer message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.LoggingServer.verify|verify} messages. + * @param message LoggingServer message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ILoggingServer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LoggingServer message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LoggingServer + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.LoggingServer; + + /** + * Decodes a LoggingServer message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LoggingServer + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.LoggingServer; + + /** + * Verifies a LoggingServer message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LoggingServer message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LoggingServer + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.LoggingServer; + + /** + * Creates a plain object from a LoggingServer message. Also converts values to other types if specified. + * @param message LoggingServer + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.LoggingServer, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LoggingServer to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LoggingServer + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace LoggingServer { + + /** Protocol enum. */ + enum Protocol { + PROTOCOL_UNSPECIFIED = 0, + UDP = 1, + TCP = 2 + } + + /** SourceType enum. */ + enum SourceType { + SOURCE_TYPE_UNSPECIFIED = 0, + ESXI = 1, + VCSA = 2 + } + } + + /** Properties of a NodeType. */ + interface INodeType { + + /** NodeType name */ + name?: (string|null); + + /** NodeType nodeTypeId */ + nodeTypeId?: (string|null); + + /** NodeType displayName */ + displayName?: (string|null); + + /** NodeType virtualCpuCount */ + virtualCpuCount?: (number|null); + + /** NodeType totalCoreCount */ + totalCoreCount?: (number|null); + + /** NodeType memoryGb */ + memoryGb?: (number|null); + + /** NodeType diskSizeGb */ + diskSizeGb?: (number|null); + + /** NodeType availableCustomCoreCounts */ + availableCustomCoreCounts?: (number[]|null); + + /** NodeType kind */ + kind?: (google.cloud.vmwareengine.v1.NodeType.Kind|keyof typeof google.cloud.vmwareengine.v1.NodeType.Kind|null); + + /** NodeType families */ + families?: (string[]|null); + + /** NodeType capabilities */ + capabilities?: (google.cloud.vmwareengine.v1.NodeType.Capability[]|null); + } + + /** Represents a NodeType. */ + class NodeType implements INodeType { + + /** + * Constructs a new NodeType. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INodeType); + + /** NodeType name. */ + public name: string; + + /** NodeType nodeTypeId. */ + public nodeTypeId: string; + + /** NodeType displayName. */ + public displayName: string; + + /** NodeType virtualCpuCount. */ + public virtualCpuCount: number; + + /** NodeType totalCoreCount. */ + public totalCoreCount: number; + + /** NodeType memoryGb. */ + public memoryGb: number; + + /** NodeType diskSizeGb. */ + public diskSizeGb: number; + + /** NodeType availableCustomCoreCounts. */ + public availableCustomCoreCounts: number[]; + + /** NodeType kind. */ + public kind: (google.cloud.vmwareengine.v1.NodeType.Kind|keyof typeof google.cloud.vmwareengine.v1.NodeType.Kind); + + /** NodeType families. */ + public families: string[]; + + /** NodeType capabilities. */ + public capabilities: google.cloud.vmwareengine.v1.NodeType.Capability[]; + + /** + * Creates a new NodeType instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeType instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.INodeType): google.cloud.vmwareengine.v1.NodeType; + + /** + * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * @param message NodeType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * @param message NodeType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NodeType; + + /** + * Decodes a NodeType message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NodeType; + + /** + * Verifies a NodeType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NodeType message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeType + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeType; + + /** + * Creates a plain object from a NodeType message. Also converts values to other types if specified. + * @param message NodeType + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.NodeType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeType to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeType + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NodeType { + + /** Kind enum. */ + enum Kind { + KIND_UNSPECIFIED = 0, + STANDARD = 1, + STORAGE_ONLY = 2 + } + + /** Capability enum. */ + enum Capability { + CAPABILITY_UNSPECIFIED = 0, + STRETCHED_CLUSTERS = 1 + } + } + + /** Properties of a Credentials. */ + interface ICredentials { + + /** Credentials username */ + username?: (string|null); + + /** Credentials password */ + password?: (string|null); + } + + /** Represents a Credentials. */ + class Credentials implements ICredentials { + + /** + * Constructs a new Credentials. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ICredentials); + + /** Credentials username. */ + public username: string; + + /** Credentials password. */ + public password: string; + + /** + * Creates a new Credentials instance using the specified properties. + * @param [properties] Properties to set + * @returns Credentials instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICredentials): google.cloud.vmwareengine.v1.Credentials; + + /** + * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * @param message Credentials message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * @param message Credentials message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Credentials message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Credentials + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Credentials; + + /** + * Decodes a Credentials message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Credentials + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Credentials; + + /** + * Verifies a Credentials message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Credentials message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Credentials + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Credentials; + + /** + * Creates a plain object from a Credentials message. Also converts values to other types if specified. + * @param message Credentials + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Credentials, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Credentials to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Credentials + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HcxActivationKey. */ + interface IHcxActivationKey { + + /** HcxActivationKey name */ + name?: (string|null); + + /** HcxActivationKey createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** HcxActivationKey state */ + state?: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State|null); + + /** HcxActivationKey activationKey */ + activationKey?: (string|null); + + /** HcxActivationKey uid */ + uid?: (string|null); + } + + /** Represents a HcxActivationKey. */ + class HcxActivationKey implements IHcxActivationKey { + + /** + * Constructs a new HcxActivationKey. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey); + + /** HcxActivationKey name. */ + public name: string; + + /** HcxActivationKey createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** HcxActivationKey state. */ + public state: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State); + + /** HcxActivationKey activationKey. */ + public activationKey: string; + + /** HcxActivationKey uid. */ + public uid: string; + + /** + * Creates a new HcxActivationKey instance using the specified properties. + * @param [properties] Properties to set + * @returns HcxActivationKey instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey): google.cloud.vmwareengine.v1.HcxActivationKey; + + /** + * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * @param message HcxActivationKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * @param message HcxActivationKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HcxActivationKey message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HcxActivationKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.HcxActivationKey; + + /** + * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HcxActivationKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.HcxActivationKey; + + /** + * Verifies a HcxActivationKey message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HcxActivationKey + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.HcxActivationKey; + + /** + * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified. + * @param message HcxActivationKey + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.HcxActivationKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HcxActivationKey to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HcxActivationKey + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace HcxActivationKey { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + AVAILABLE = 1, + CONSUMED = 2, + CREATING = 3 + } + } + + /** Properties of a Hcx. */ + interface IHcx { + + /** Hcx internalIp */ + internalIp?: (string|null); + + /** Hcx version */ + version?: (string|null); + + /** Hcx state */ + state?: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State|null); + + /** Hcx fqdn */ + fqdn?: (string|null); + } + + /** Represents a Hcx. */ + class Hcx implements IHcx { + + /** + * Constructs a new Hcx. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IHcx); + + /** Hcx internalIp. */ + public internalIp: string; + + /** Hcx version. */ + public version: string; + + /** Hcx state. */ + public state: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State); + + /** Hcx fqdn. */ + public fqdn: string; + + /** + * Creates a new Hcx instance using the specified properties. + * @param [properties] Properties to set + * @returns Hcx instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IHcx): google.cloud.vmwareengine.v1.Hcx; + + /** + * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * @param message Hcx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * @param message Hcx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Hcx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Hcx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Hcx; + + /** + * Decodes a Hcx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Hcx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Hcx; + + /** + * Verifies a Hcx message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Hcx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Hcx + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Hcx; + + /** + * Creates a plain object from a Hcx message. Also converts values to other types if specified. + * @param message Hcx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Hcx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Hcx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Hcx + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Hcx { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2 + } + } + + /** Properties of a Nsx. */ + interface INsx { + + /** Nsx internalIp */ + internalIp?: (string|null); + + /** Nsx version */ + version?: (string|null); + + /** Nsx state */ + state?: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State|null); + + /** Nsx fqdn */ + fqdn?: (string|null); + } + + /** Represents a Nsx. */ + class Nsx implements INsx { + + /** + * Constructs a new Nsx. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INsx); + + /** Nsx internalIp. */ + public internalIp: string; + + /** Nsx version. */ + public version: string; + + /** Nsx state. */ + public state: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State); + + /** Nsx fqdn. */ + public fqdn: string; + + /** + * Creates a new Nsx instance using the specified properties. + * @param [properties] Properties to set + * @returns Nsx instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.INsx): google.cloud.vmwareengine.v1.Nsx; + + /** + * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * @param message Nsx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * @param message Nsx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Nsx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Nsx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Nsx; + + /** + * Decodes a Nsx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Nsx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Nsx; + + /** + * Verifies a Nsx message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Nsx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Nsx + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Nsx; + + /** + * Creates a plain object from a Nsx message. Also converts values to other types if specified. + * @param message Nsx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Nsx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Nsx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Nsx + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Nsx { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2 + } + } + + /** Properties of a Vcenter. */ + interface IVcenter { + + /** Vcenter internalIp */ + internalIp?: (string|null); + + /** Vcenter version */ + version?: (string|null); + + /** Vcenter state */ + state?: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State|null); + + /** Vcenter fqdn */ + fqdn?: (string|null); + } + + /** Represents a Vcenter. */ + class Vcenter implements IVcenter { + + /** + * Constructs a new Vcenter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IVcenter); + + /** Vcenter internalIp. */ + public internalIp: string; + + /** Vcenter version. */ + public version: string; + + /** Vcenter state. */ + public state: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State); + + /** Vcenter fqdn. */ + public fqdn: string; + + /** + * Creates a new Vcenter instance using the specified properties. + * @param [properties] Properties to set + * @returns Vcenter instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IVcenter): google.cloud.vmwareengine.v1.Vcenter; + + /** + * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * @param message Vcenter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * @param message Vcenter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Vcenter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Vcenter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Vcenter; + + /** + * Decodes a Vcenter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Vcenter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Vcenter; + + /** + * Verifies a Vcenter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Vcenter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Vcenter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Vcenter; + + /** + * Creates a plain object from a Vcenter message. Also converts values to other types if specified. + * @param message Vcenter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Vcenter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Vcenter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Vcenter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Vcenter { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2 + } + } + + /** Properties of a DnsForwarding. */ + interface IDnsForwarding { + + /** DnsForwarding name */ + name?: (string|null); + + /** DnsForwarding createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DnsForwarding updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** DnsForwarding forwardingRules */ + forwardingRules?: (google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule[]|null); + } + + /** Represents a DnsForwarding. */ + class DnsForwarding implements IDnsForwarding { + + /** + * Constructs a new DnsForwarding. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IDnsForwarding); + + /** DnsForwarding name. */ + public name: string; + + /** DnsForwarding createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DnsForwarding updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** DnsForwarding forwardingRules. */ + public forwardingRules: google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule[]; + + /** + * Creates a new DnsForwarding instance using the specified properties. + * @param [properties] Properties to set + * @returns DnsForwarding instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IDnsForwarding): google.cloud.vmwareengine.v1.DnsForwarding; + + /** + * Encodes the specified DnsForwarding message. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsForwarding.verify|verify} messages. + * @param message DnsForwarding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IDnsForwarding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DnsForwarding message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsForwarding.verify|verify} messages. + * @param message DnsForwarding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDnsForwarding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DnsForwarding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DnsForwarding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DnsForwarding; + + /** + * Decodes a DnsForwarding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DnsForwarding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DnsForwarding; + + /** + * Verifies a DnsForwarding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DnsForwarding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DnsForwarding + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DnsForwarding; + + /** + * Creates a plain object from a DnsForwarding message. Also converts values to other types if specified. + * @param message DnsForwarding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.DnsForwarding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DnsForwarding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DnsForwarding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DnsForwarding { + + /** Properties of a ForwardingRule. */ + interface IForwardingRule { + + /** ForwardingRule domain */ + domain?: (string|null); + + /** ForwardingRule nameServers */ + nameServers?: (string[]|null); + } + + /** Represents a ForwardingRule. */ + class ForwardingRule implements IForwardingRule { + + /** + * Constructs a new ForwardingRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule); + + /** ForwardingRule domain. */ + public domain: string; + + /** ForwardingRule nameServers. */ + public nameServers: string[]; + + /** + * Creates a new ForwardingRule instance using the specified properties. + * @param [properties] Properties to set + * @returns ForwardingRule instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule): google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule; + + /** + * Encodes the specified ForwardingRule message. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.verify|verify} messages. + * @param message ForwardingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ForwardingRule message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.verify|verify} messages. + * @param message ForwardingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ForwardingRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ForwardingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule; + + /** + * Decodes a ForwardingRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ForwardingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule; + + /** + * Verifies a ForwardingRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ForwardingRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ForwardingRule + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule; + + /** + * Creates a plain object from a ForwardingRule message. Also converts values to other types if specified. + * @param message ForwardingRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ForwardingRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ForwardingRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a NetworkPeering. */ + interface INetworkPeering { + + /** NetworkPeering name */ + name?: (string|null); + + /** NetworkPeering createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPeering updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPeering peerNetwork */ + peerNetwork?: (string|null); + + /** NetworkPeering exportCustomRoutes */ + exportCustomRoutes?: (boolean|null); + + /** NetworkPeering importCustomRoutes */ + importCustomRoutes?: (boolean|null); + + /** NetworkPeering exchangeSubnetRoutes */ + exchangeSubnetRoutes?: (boolean|null); + + /** NetworkPeering exportCustomRoutesWithPublicIp */ + exportCustomRoutesWithPublicIp?: (boolean|null); + + /** NetworkPeering importCustomRoutesWithPublicIp */ + importCustomRoutesWithPublicIp?: (boolean|null); + + /** NetworkPeering state */ + state?: (google.cloud.vmwareengine.v1.NetworkPeering.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPeering.State|null); + + /** NetworkPeering stateDetails */ + stateDetails?: (string|null); + + /** NetworkPeering peerMtu */ + peerMtu?: (number|null); + + /** NetworkPeering peerNetworkType */ + peerNetworkType?: (google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType|keyof typeof google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType|null); + + /** NetworkPeering uid */ + uid?: (string|null); + + /** NetworkPeering vmwareEngineNetwork */ + vmwareEngineNetwork?: (string|null); + + /** NetworkPeering description */ + description?: (string|null); + } + + /** Represents a NetworkPeering. */ + class NetworkPeering implements INetworkPeering { + + /** + * Constructs a new NetworkPeering. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INetworkPeering); + + /** NetworkPeering name. */ + public name: string; + + /** NetworkPeering createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPeering updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPeering peerNetwork. */ + public peerNetwork: string; + + /** NetworkPeering exportCustomRoutes. */ + public exportCustomRoutes?: (boolean|null); + + /** NetworkPeering importCustomRoutes. */ + public importCustomRoutes?: (boolean|null); + + /** NetworkPeering exchangeSubnetRoutes. */ + public exchangeSubnetRoutes?: (boolean|null); + + /** NetworkPeering exportCustomRoutesWithPublicIp. */ + public exportCustomRoutesWithPublicIp?: (boolean|null); + + /** NetworkPeering importCustomRoutesWithPublicIp. */ + public importCustomRoutesWithPublicIp?: (boolean|null); + + /** NetworkPeering state. */ + public state: (google.cloud.vmwareengine.v1.NetworkPeering.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPeering.State); + + /** NetworkPeering stateDetails. */ + public stateDetails: string; + + /** NetworkPeering peerMtu. */ + public peerMtu: number; + + /** NetworkPeering peerNetworkType. */ + public peerNetworkType: (google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType|keyof typeof google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType); + + /** NetworkPeering uid. */ + public uid: string; + + /** NetworkPeering vmwareEngineNetwork. */ + public vmwareEngineNetwork: string; + + /** NetworkPeering description. */ + public description: string; + + /** NetworkPeering _exportCustomRoutes. */ + public _exportCustomRoutes?: "exportCustomRoutes"; + + /** NetworkPeering _importCustomRoutes. */ + public _importCustomRoutes?: "importCustomRoutes"; + + /** NetworkPeering _exchangeSubnetRoutes. */ + public _exchangeSubnetRoutes?: "exchangeSubnetRoutes"; + + /** NetworkPeering _exportCustomRoutesWithPublicIp. */ + public _exportCustomRoutesWithPublicIp?: "exportCustomRoutesWithPublicIp"; + + /** NetworkPeering _importCustomRoutesWithPublicIp. */ + public _importCustomRoutesWithPublicIp?: "importCustomRoutesWithPublicIp"; + + /** + * Creates a new NetworkPeering instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkPeering instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.INetworkPeering): google.cloud.vmwareengine.v1.NetworkPeering; + + /** + * Encodes the specified NetworkPeering message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPeering.verify|verify} messages. + * @param message NetworkPeering message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.INetworkPeering, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkPeering message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPeering.verify|verify} messages. + * @param message NetworkPeering message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkPeering, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkPeering message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkPeering + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkPeering; + + /** + * Decodes a NetworkPeering message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkPeering + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkPeering; + + /** + * Verifies a NetworkPeering message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NetworkPeering message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkPeering + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPeering; + + /** + * Creates a plain object from a NetworkPeering message. Also converts values to other types if specified. + * @param message NetworkPeering + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.NetworkPeering, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkPeering to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkPeering + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NetworkPeering { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + INACTIVE = 1, + ACTIVE = 2, + CREATING = 3, + DELETING = 4 + } + + /** PeerNetworkType enum. */ + enum PeerNetworkType { + PEER_NETWORK_TYPE_UNSPECIFIED = 0, + STANDARD = 1, + VMWARE_ENGINE_NETWORK = 2, + PRIVATE_SERVICES_ACCESS = 3, + NETAPP_CLOUD_VOLUMES = 4, + THIRD_PARTY_SERVICE = 5, + DELL_POWERSCALE = 6 + } + } + + /** Properties of a PeeringRoute. */ + interface IPeeringRoute { + + /** PeeringRoute destRange */ + destRange?: (string|null); + + /** PeeringRoute type */ + type?: (google.cloud.vmwareengine.v1.PeeringRoute.Type|keyof typeof google.cloud.vmwareengine.v1.PeeringRoute.Type|null); + + /** PeeringRoute nextHopRegion */ + nextHopRegion?: (string|null); + + /** PeeringRoute priority */ + priority?: (number|Long|string|null); + + /** PeeringRoute imported */ + imported?: (boolean|null); + + /** PeeringRoute direction */ + direction?: (google.cloud.vmwareengine.v1.PeeringRoute.Direction|keyof typeof google.cloud.vmwareengine.v1.PeeringRoute.Direction|null); + } + + /** Represents a PeeringRoute. */ + class PeeringRoute implements IPeeringRoute { + + /** + * Constructs a new PeeringRoute. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IPeeringRoute); + + /** PeeringRoute destRange. */ + public destRange: string; + + /** PeeringRoute type. */ + public type: (google.cloud.vmwareengine.v1.PeeringRoute.Type|keyof typeof google.cloud.vmwareengine.v1.PeeringRoute.Type); + + /** PeeringRoute nextHopRegion. */ + public nextHopRegion: string; + + /** PeeringRoute priority. */ + public priority: (number|Long|string); + + /** PeeringRoute imported. */ + public imported: boolean; + + /** PeeringRoute direction. */ + public direction: (google.cloud.vmwareengine.v1.PeeringRoute.Direction|keyof typeof google.cloud.vmwareengine.v1.PeeringRoute.Direction); + + /** + * Creates a new PeeringRoute instance using the specified properties. + * @param [properties] Properties to set + * @returns PeeringRoute instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IPeeringRoute): google.cloud.vmwareengine.v1.PeeringRoute; + + /** + * Encodes the specified PeeringRoute message. Does not implicitly {@link google.cloud.vmwareengine.v1.PeeringRoute.verify|verify} messages. + * @param message PeeringRoute message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IPeeringRoute, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PeeringRoute message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PeeringRoute.verify|verify} messages. + * @param message PeeringRoute message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPeeringRoute, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PeeringRoute message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PeeringRoute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PeeringRoute; + + /** + * Decodes a PeeringRoute message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PeeringRoute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PeeringRoute; + + /** + * Verifies a PeeringRoute message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PeeringRoute message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PeeringRoute + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PeeringRoute; + + /** + * Creates a plain object from a PeeringRoute message. Also converts values to other types if specified. + * @param message PeeringRoute + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.PeeringRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PeeringRoute to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PeeringRoute + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace PeeringRoute { + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + DYNAMIC_PEERING_ROUTE = 1, + STATIC_PEERING_ROUTE = 2, + SUBNET_PEERING_ROUTE = 3 + } + + /** Direction enum. */ + enum Direction { + DIRECTION_UNSPECIFIED = 0, + INCOMING = 1, + OUTGOING = 2 + } + } + + /** Properties of a NetworkPolicy. */ + interface INetworkPolicy { + + /** NetworkPolicy name */ + name?: (string|null); + + /** NetworkPolicy createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPolicy updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPolicy internetAccess */ + internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + + /** NetworkPolicy externalIp */ + externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + + /** NetworkPolicy edgeServicesCidr */ + edgeServicesCidr?: (string|null); + + /** NetworkPolicy uid */ + uid?: (string|null); + + /** NetworkPolicy vmwareEngineNetwork */ + vmwareEngineNetwork?: (string|null); + + /** NetworkPolicy description */ + description?: (string|null); + + /** NetworkPolicy vmwareEngineNetworkCanonical */ + vmwareEngineNetworkCanonical?: (string|null); + } + + /** Represents a NetworkPolicy. */ + class NetworkPolicy implements INetworkPolicy { + + /** + * Constructs a new NetworkPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INetworkPolicy); + + /** NetworkPolicy name. */ + public name: string; + + /** NetworkPolicy createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPolicy updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPolicy internetAccess. */ + public internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + + /** NetworkPolicy externalIp. */ + public externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + + /** NetworkPolicy edgeServicesCidr. */ + public edgeServicesCidr: string; + + /** NetworkPolicy uid. */ + public uid: string; + + /** NetworkPolicy vmwareEngineNetwork. */ + public vmwareEngineNetwork: string; + + /** NetworkPolicy description. */ + public description: string; + + /** NetworkPolicy vmwareEngineNetworkCanonical. */ + public vmwareEngineNetworkCanonical: string; + + /** + * Creates a new NetworkPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkPolicy instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.INetworkPolicy): google.cloud.vmwareengine.v1.NetworkPolicy; + + /** + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkPolicy; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkPolicy; + + /** + * Verifies a NetworkPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy; + + /** + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @param message NetworkPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NetworkPolicy { + + /** Properties of a NetworkService. */ + interface INetworkService { + + /** NetworkService enabled */ + enabled?: (boolean|null); + + /** NetworkService state */ + state?: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null); + } + + /** Represents a NetworkService. */ + class NetworkService implements INetworkService { + + /** + * Constructs a new NetworkService. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService); + + /** NetworkService enabled. */ + public enabled: boolean; + + /** NetworkService state. */ + public state: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State); + + /** + * Creates a new NetworkService instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkService instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; + + /** + * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * @param message NetworkService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * @param message NetworkService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkService message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; + + /** + * Decodes a NetworkService message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; + + /** + * Verifies a NetworkService message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NetworkService message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkService + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; + + /** + * Creates a plain object from a NetworkService message. Also converts values to other types if specified. + * @param message NetworkService + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkService to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkService + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NetworkService { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + UNPROVISIONED = 1, + RECONCILING = 2, + ACTIVE = 3 + } + } + } + + /** Properties of a ManagementDnsZoneBinding. */ + interface IManagementDnsZoneBinding { + + /** ManagementDnsZoneBinding name */ + name?: (string|null); + + /** ManagementDnsZoneBinding createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ManagementDnsZoneBinding updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** ManagementDnsZoneBinding state */ + state?: (google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State|keyof typeof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State|null); + + /** ManagementDnsZoneBinding description */ + description?: (string|null); + + /** ManagementDnsZoneBinding vpcNetwork */ + vpcNetwork?: (string|null); + + /** ManagementDnsZoneBinding vmwareEngineNetwork */ + vmwareEngineNetwork?: (string|null); + + /** ManagementDnsZoneBinding uid */ + uid?: (string|null); + } + + /** Represents a ManagementDnsZoneBinding. */ + class ManagementDnsZoneBinding implements IManagementDnsZoneBinding { + + /** + * Constructs a new ManagementDnsZoneBinding. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IManagementDnsZoneBinding); + + /** ManagementDnsZoneBinding name. */ + public name: string; + + /** ManagementDnsZoneBinding createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ManagementDnsZoneBinding updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** ManagementDnsZoneBinding state. */ + public state: (google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State|keyof typeof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State); + + /** ManagementDnsZoneBinding description. */ + public description: string; + + /** ManagementDnsZoneBinding vpcNetwork. */ + public vpcNetwork?: (string|null); + + /** ManagementDnsZoneBinding vmwareEngineNetwork. */ + public vmwareEngineNetwork?: (string|null); + + /** ManagementDnsZoneBinding uid. */ + public uid: string; + + /** ManagementDnsZoneBinding bindNetwork. */ + public bindNetwork?: ("vpcNetwork"|"vmwareEngineNetwork"); + + /** + * Creates a new ManagementDnsZoneBinding instance using the specified properties. + * @param [properties] Properties to set + * @returns ManagementDnsZoneBinding instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IManagementDnsZoneBinding): google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; + + /** + * Encodes the specified ManagementDnsZoneBinding message. Does not implicitly {@link google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.verify|verify} messages. + * @param message ManagementDnsZoneBinding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ManagementDnsZoneBinding message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.verify|verify} messages. + * @param message ManagementDnsZoneBinding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ManagementDnsZoneBinding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ManagementDnsZoneBinding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; + + /** + * Decodes a ManagementDnsZoneBinding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ManagementDnsZoneBinding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; + + /** + * Verifies a ManagementDnsZoneBinding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ManagementDnsZoneBinding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ManagementDnsZoneBinding + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; + + /** + * Creates a plain object from a ManagementDnsZoneBinding message. Also converts values to other types if specified. + * @param message ManagementDnsZoneBinding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ManagementDnsZoneBinding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ManagementDnsZoneBinding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ManagementDnsZoneBinding { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + DELETING = 4, + FAILED = 5 + } + } + + /** Properties of a VmwareEngineNetwork. */ + interface IVmwareEngineNetwork { + + /** VmwareEngineNetwork name */ + name?: (string|null); + + /** VmwareEngineNetwork createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** VmwareEngineNetwork updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** VmwareEngineNetwork description */ + description?: (string|null); + + /** VmwareEngineNetwork vpcNetworks */ + vpcNetworks?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]|null); + + /** VmwareEngineNetwork state */ + state?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null); + + /** VmwareEngineNetwork type */ + type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null); + + /** VmwareEngineNetwork uid */ + uid?: (string|null); + + /** VmwareEngineNetwork etag */ + etag?: (string|null); + } + + /** Represents a VmwareEngineNetwork. */ + class VmwareEngineNetwork implements IVmwareEngineNetwork { + + /** + * Constructs a new VmwareEngineNetwork. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork); + + /** VmwareEngineNetwork name. */ + public name: string; + + /** VmwareEngineNetwork createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** VmwareEngineNetwork updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** VmwareEngineNetwork description. */ + public description: string; + + /** VmwareEngineNetwork vpcNetworks. */ + public vpcNetworks: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]; + + /** VmwareEngineNetwork state. */ + public state: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State); + + /** VmwareEngineNetwork type. */ + public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type); + + /** VmwareEngineNetwork uid. */ + public uid: string; + + /** VmwareEngineNetwork etag. */ + public etag: string; + + /** + * Creates a new VmwareEngineNetwork instance using the specified properties. + * @param [properties] Properties to set + * @returns VmwareEngineNetwork instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + + /** + * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * @param message VmwareEngineNetwork message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * @param message VmwareEngineNetwork message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmwareEngineNetwork message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmwareEngineNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + + /** + * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmwareEngineNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + + /** + * Verifies a VmwareEngineNetwork message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmwareEngineNetwork + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + + /** + * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified. + * @param message VmwareEngineNetwork + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmwareEngineNetwork to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VmwareEngineNetwork + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace VmwareEngineNetwork { + + /** Properties of a VpcNetwork. */ + interface IVpcNetwork { + + /** VpcNetwork type */ + type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null); + + /** VpcNetwork network */ + network?: (string|null); + } + + /** Represents a VpcNetwork. */ + class VpcNetwork implements IVpcNetwork { + + /** + * Constructs a new VpcNetwork. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork); + + /** VpcNetwork type. */ + public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type); + + /** VpcNetwork network. */ + public network: string; + + /** + * Creates a new VpcNetwork instance using the specified properties. + * @param [properties] Properties to set + * @returns VpcNetwork instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; + + /** + * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. + * @param message VpcNetwork message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. + * @param message VpcNetwork message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VpcNetwork message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VpcNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; + + /** + * Decodes a VpcNetwork message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VpcNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; + + /** + * Verifies a VpcNetwork message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VpcNetwork message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VpcNetwork + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; + + /** + * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified. + * @param message VpcNetwork + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VpcNetwork to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VpcNetwork + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace VpcNetwork { + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + INTRANET = 1, + INTERNET = 2, + GOOGLE_CLOUD = 3 + } + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + CREATING = 1, + ACTIVE = 2, + UPDATING = 3, + DELETING = 4 + } + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + LEGACY = 1, + STANDARD = 2 + } + } + + /** Properties of a PrivateConnection. */ + interface IPrivateConnection { + + /** PrivateConnection name */ + name?: (string|null); + + /** PrivateConnection createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PrivateConnection updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** PrivateConnection description */ + description?: (string|null); + + /** PrivateConnection state */ + state?: (google.cloud.vmwareengine.v1.PrivateConnection.State|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.State|null); + + /** PrivateConnection vmwareEngineNetwork */ + vmwareEngineNetwork?: (string|null); + + /** PrivateConnection vmwareEngineNetworkCanonical */ + vmwareEngineNetworkCanonical?: (string|null); + + /** PrivateConnection type */ + type?: (google.cloud.vmwareengine.v1.PrivateConnection.Type|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.Type|null); + + /** PrivateConnection peeringId */ + peeringId?: (string|null); + + /** PrivateConnection routingMode */ + routingMode?: (google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode|null); + + /** PrivateConnection uid */ + uid?: (string|null); + + /** PrivateConnection serviceNetwork */ + serviceNetwork?: (string|null); + + /** PrivateConnection peeringState */ + peeringState?: (google.cloud.vmwareengine.v1.PrivateConnection.PeeringState|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.PeeringState|null); + } + + /** Represents a PrivateConnection. */ + class PrivateConnection implements IPrivateConnection { + + /** + * Constructs a new PrivateConnection. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IPrivateConnection); + + /** PrivateConnection name. */ + public name: string; + + /** PrivateConnection createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PrivateConnection updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** PrivateConnection description. */ + public description: string; + + /** PrivateConnection state. */ + public state: (google.cloud.vmwareengine.v1.PrivateConnection.State|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.State); + + /** PrivateConnection vmwareEngineNetwork. */ + public vmwareEngineNetwork: string; + + /** PrivateConnection vmwareEngineNetworkCanonical. */ + public vmwareEngineNetworkCanonical: string; + + /** PrivateConnection type. */ + public type: (google.cloud.vmwareengine.v1.PrivateConnection.Type|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.Type); + + /** PrivateConnection peeringId. */ + public peeringId: string; + + /** PrivateConnection routingMode. */ + public routingMode: (google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode); + + /** PrivateConnection uid. */ + public uid: string; + + /** PrivateConnection serviceNetwork. */ + public serviceNetwork: string; + + /** PrivateConnection peeringState. */ + public peeringState: (google.cloud.vmwareengine.v1.PrivateConnection.PeeringState|keyof typeof google.cloud.vmwareengine.v1.PrivateConnection.PeeringState); + + /** + * Creates a new PrivateConnection instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateConnection instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IPrivateConnection): google.cloud.vmwareengine.v1.PrivateConnection; + + /** + * Encodes the specified PrivateConnection message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateConnection.verify|verify} messages. + * @param message PrivateConnection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IPrivateConnection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrivateConnection message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateConnection.verify|verify} messages. + * @param message PrivateConnection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPrivateConnection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrivateConnection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateConnection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PrivateConnection; + + /** + * Decodes a PrivateConnection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateConnection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PrivateConnection; + + /** + * Verifies a PrivateConnection message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrivateConnection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateConnection + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateConnection; + + /** + * Creates a plain object from a PrivateConnection message. Also converts values to other types if specified. + * @param message PrivateConnection + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.PrivateConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrivateConnection to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrivateConnection + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace PrivateConnection { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + CREATING = 1, + ACTIVE = 2, + UPDATING = 3, + DELETING = 4, + UNPROVISIONED = 5, + FAILED = 6 + } + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + PRIVATE_SERVICE_ACCESS = 1, + NETAPP_CLOUD_VOLUMES = 2, + DELL_POWERSCALE = 3, + THIRD_PARTY_SERVICE = 4 + } + + /** RoutingMode enum. */ + enum RoutingMode { + ROUTING_MODE_UNSPECIFIED = 0, + GLOBAL = 1, + REGIONAL = 2 + } + + /** PeeringState enum. */ + enum PeeringState { + PEERING_STATE_UNSPECIFIED = 0, + PEERING_ACTIVE = 1, + PEERING_INACTIVE = 2 + } + } + + /** Properties of a LocationMetadata. */ + interface ILocationMetadata { + + /** LocationMetadata capabilities */ + capabilities?: (google.cloud.vmwareengine.v1.LocationMetadata.Capability[]|null); + } + + /** Represents a LocationMetadata. */ + class LocationMetadata implements ILocationMetadata { + + /** + * Constructs a new LocationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ILocationMetadata); + + /** LocationMetadata capabilities. */ + public capabilities: google.cloud.vmwareengine.v1.LocationMetadata.Capability[]; + + /** + * Creates a new LocationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns LocationMetadata instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ILocationMetadata): google.cloud.vmwareengine.v1.LocationMetadata; + + /** + * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.LocationMetadata.verify|verify} messages. + * @param message LocationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.LocationMetadata.verify|verify} messages. + * @param message LocationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.LocationMetadata; + + /** + * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.LocationMetadata; + + /** + * Verifies a LocationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.LocationMetadata; + + /** + * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. + * @param message LocationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LocationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LocationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace LocationMetadata { + + /** Capability enum. */ + enum Capability { + CAPABILITY_UNSPECIFIED = 0, + STRETCHED_CLUSTERS = 1 + } + } + + /** Properties of a DnsBindPermission. */ + interface IDnsBindPermission { + + /** DnsBindPermission name */ + name?: (string|null); + + /** DnsBindPermission principals */ + principals?: (google.cloud.vmwareengine.v1.IPrincipal[]|null); + } + + /** Represents a DnsBindPermission. */ + class DnsBindPermission implements IDnsBindPermission { + + /** + * Constructs a new DnsBindPermission. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IDnsBindPermission); + + /** DnsBindPermission name. */ + public name: string; + + /** DnsBindPermission principals. */ + public principals: google.cloud.vmwareengine.v1.IPrincipal[]; + + /** + * Creates a new DnsBindPermission instance using the specified properties. + * @param [properties] Properties to set + * @returns DnsBindPermission instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IDnsBindPermission): google.cloud.vmwareengine.v1.DnsBindPermission; + + /** + * Encodes the specified DnsBindPermission message. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsBindPermission.verify|verify} messages. + * @param message DnsBindPermission message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IDnsBindPermission, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DnsBindPermission message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsBindPermission.verify|verify} messages. + * @param message DnsBindPermission message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDnsBindPermission, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DnsBindPermission message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DnsBindPermission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DnsBindPermission; + + /** + * Decodes a DnsBindPermission message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DnsBindPermission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DnsBindPermission; + + /** + * Verifies a DnsBindPermission message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DnsBindPermission message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DnsBindPermission + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DnsBindPermission; + + /** + * Creates a plain object from a DnsBindPermission message. Also converts values to other types if specified. + * @param message DnsBindPermission + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.DnsBindPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DnsBindPermission to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DnsBindPermission + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Principal. */ + interface IPrincipal { + + /** Principal user */ + user?: (string|null); + + /** Principal serviceAccount */ + serviceAccount?: (string|null); + } + + /** Represents a Principal. */ + class Principal implements IPrincipal { + + /** + * Constructs a new Principal. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IPrincipal); + + /** Principal user. */ + public user?: (string|null); + + /** Principal serviceAccount. */ + public serviceAccount?: (string|null); + + /** Principal principal. */ + public principal?: ("user"|"serviceAccount"); + + /** + * Creates a new Principal instance using the specified properties. + * @param [properties] Properties to set + * @returns Principal instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IPrincipal): google.cloud.vmwareengine.v1.Principal; + + /** + * Encodes the specified Principal message. Does not implicitly {@link google.cloud.vmwareengine.v1.Principal.verify|verify} messages. + * @param message Principal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IPrincipal, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Principal message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Principal.verify|verify} messages. + * @param message Principal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPrincipal, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Principal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Principal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Principal; + + /** + * Decodes a Principal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Principal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Principal; + + /** + * Verifies a Principal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Principal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Principal + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Principal; + + /** + * Creates a plain object from a Principal message. Also converts values to other types if specified. + * @param message Principal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Principal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Principal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Principal + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + } + + /** Namespace longrunning. */ + namespace longrunning { + + /** Represents an Operations */ + class Operations extends $protobuf.rpc.Service { + + /** + * Constructs a new Operations 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 Operations 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): Operations; + + /** + * Calls ListOperations. + * @param request ListOperationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListOperationsResponse + */ + public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void; + + /** + * Calls ListOperations. + * @param request ListOperationsRequest message or plain object + * @returns Promise + */ + public listOperations(request: google.longrunning.IListOperationsRequest): Promise; + + /** + * Calls GetOperation. + * @param request GetOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void; + + /** + * Calls GetOperation. + * @param request GetOperationRequest message or plain object + * @returns Promise + */ + public getOperation(request: google.longrunning.IGetOperationRequest): Promise; + + /** + * Calls DeleteOperation. + * @param request DeleteOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void; + + /** + * Calls DeleteOperation. + * @param request DeleteOperationRequest message or plain object + * @returns Promise + */ + public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise; + + /** + * Calls CancelOperation. + * @param request CancelOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void; + + /** + * Calls CancelOperation. + * @param request CancelOperationRequest message or plain object + * @returns Promise + */ + public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise; + + /** + * Calls WaitOperation. + * @param request WaitOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void; + + /** + * Calls WaitOperation. + * @param request WaitOperationRequest message or plain object + * @returns Promise + */ + public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise; + } + + namespace Operations { + + /** + * Callback as used by {@link google.longrunning.Operations|listOperations}. + * @param error Error, if any + * @param [response] ListOperationsResponse + */ + type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; + + /** + * Callback as used by {@link google.longrunning.Operations|getOperation}. + * @param error Error, if any + * @param [response] Operation + */ + type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * @param error Error, if any + * @param [response] Operation + */ + type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } + + /** Properties of an Operation. */ + interface IOperation { + + /** Operation name */ + name?: (string|null); + + /** Operation metadata */ + metadata?: (google.protobuf.IAny|null); + + /** Operation done */ + done?: (boolean|null); + + /** Operation error */ + error?: (google.rpc.IStatus|null); + + /** Operation response */ + response?: (google.protobuf.IAny|null); + } + + /** Represents an Operation. */ + class Operation implements IOperation { + + /** + * Constructs a new Operation. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IOperation); + + /** Operation name. */ + public name: string; + + /** Operation metadata. */ + public metadata?: (google.protobuf.IAny|null); + + /** Operation done. */ + public done: boolean; + + /** Operation error. */ + public error?: (google.rpc.IStatus|null); + + /** Operation response. */ + public response?: (google.protobuf.IAny|null); + + /** Operation result. */ + public result?: ("error"|"response"); + + /** + * Creates a new Operation instance using the specified properties. + * @param [properties] Properties to set + * @returns Operation instance + */ + public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation; + + /** + * Verifies an Operation message. + * @param message Plain 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 Operation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Operation + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.Operation; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @param message Operation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Operation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Operation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetOperationRequest. */ + interface IGetOperationRequest { + + /** GetOperationRequest name */ + name?: (string|null); + } - /** Publishing codeownerGithubTeams. */ - public codeownerGithubTeams: string[]; + /** Represents a GetOperationRequest. */ + class GetOperationRequest implements IGetOperationRequest { - /** Publishing docTagPrefix. */ - public docTagPrefix: string; + /** + * Constructs a new GetOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IGetOperationRequest); - /** Publishing organization. */ - public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization); + /** GetOperationRequest name. */ + public name: string; - /** Publishing librarySettings. */ - public librarySettings: google.api.IClientLibrarySettings[]; + /** + * Creates a new GetOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetOperationRequest instance + */ + public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest; /** - * Creates a new Publishing instance using the specified properties. + * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * @param message GetOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * @param message GetOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest; + + /** + * Verifies a GetOperationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest; + + /** + * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * @param message GetOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetOperationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListOperationsRequest. */ + interface IListOperationsRequest { + + /** ListOperationsRequest name */ + name?: (string|null); + + /** ListOperationsRequest filter */ + filter?: (string|null); + + /** ListOperationsRequest pageSize */ + pageSize?: (number|null); + + /** ListOperationsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListOperationsRequest. */ + class ListOperationsRequest implements IListOperationsRequest { + + /** + * Constructs a new ListOperationsRequest. * @param [properties] Properties to set - * @returns Publishing instance */ - public static create(properties?: google.api.IPublishing): google.api.Publishing; + constructor(properties?: google.longrunning.IListOperationsRequest); + + /** ListOperationsRequest name. */ + public name: string; + + /** ListOperationsRequest filter. */ + public filter: string; + + /** ListOperationsRequest pageSize. */ + public pageSize: number; + + /** ListOperationsRequest pageToken. */ + public pageToken: string; /** - * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages. - * @param message Publishing message or plain object to encode + * Creates a new ListOperationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOperationsRequest instance + */ + public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest; + + /** + * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * @param message ListOperationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages. - * @param message Publishing message or plain object to encode + * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * @param message ListOperationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Publishing message from the specified reader or buffer. + * Decodes a ListOperationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOperationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOperationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest; + + /** + * Verifies a ListOperationsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOperationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest; + + /** + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * @param message ListOperationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOperationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListOperationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListOperationsResponse. */ + interface IListOperationsResponse { + + /** ListOperationsResponse operations */ + operations?: (google.longrunning.IOperation[]|null); + + /** ListOperationsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListOperationsResponse. */ + class ListOperationsResponse implements IListOperationsResponse { + + /** + * Constructs a new ListOperationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IListOperationsResponse); + + /** ListOperationsResponse operations. */ + public operations: google.longrunning.IOperation[]; + + /** ListOperationsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListOperationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOperationsResponse instance + */ + public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse; + + /** + * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * @param message ListOperationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * @param message ListOperationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Publishing + * @returns ListOperationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse; /** - * Decodes a Publishing message from the specified reader or buffer, length delimited. + * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Publishing + * @returns ListOperationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse; /** - * Verifies a Publishing message. + * Verifies a ListOperationsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Publishing message from a plain object. Also converts values to their respective internal types. + * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Publishing + * @returns ListOperationsResponse */ - public static fromObject(object: { [k: string]: any }): google.api.Publishing; + public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse; /** - * Creates a plain object from a Publishing message. Also converts values to other types if specified. - * @param message Publishing + * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * @param message ListOperationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Publishing to JSON. + * Converts this ListOperationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Publishing + * Gets the default type url for ListOperationsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a JavaSettings. */ - interface IJavaSettings { - - /** JavaSettings libraryPackage */ - libraryPackage?: (string|null); - - /** JavaSettings serviceClassNames */ - serviceClassNames?: ({ [k: string]: string }|null); + /** Properties of a CancelOperationRequest. */ + interface ICancelOperationRequest { - /** JavaSettings common */ - common?: (google.api.ICommonLanguageSettings|null); + /** CancelOperationRequest name */ + name?: (string|null); } - /** Represents a JavaSettings. */ - class JavaSettings implements IJavaSettings { + /** Represents a CancelOperationRequest. */ + class CancelOperationRequest implements ICancelOperationRequest { /** - * Constructs a new JavaSettings. + * Constructs a new CancelOperationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.api.IJavaSettings); - - /** JavaSettings libraryPackage. */ - public libraryPackage: string; - - /** JavaSettings serviceClassNames. */ - public serviceClassNames: { [k: string]: string }; + constructor(properties?: google.longrunning.ICancelOperationRequest); - /** JavaSettings common. */ - public common?: (google.api.ICommonLanguageSettings|null); + /** CancelOperationRequest name. */ + public name: string; /** - * Creates a new JavaSettings instance using the specified properties. + * Creates a new CancelOperationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns JavaSettings instance + * @returns CancelOperationRequest instance */ - public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings; + public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest; /** - * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. - * @param message JavaSettings message or plain object to encode + * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * @param message CancelOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. - * @param message JavaSettings message or plain object to encode + * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * @param message CancelOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a JavaSettings message from the specified reader or buffer. + * Decodes a CancelOperationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns JavaSettings + * @returns CancelOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest; /** - * Decodes a JavaSettings message from the specified reader or buffer, length delimited. + * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns JavaSettings + * @returns CancelOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest; /** - * Verifies a JavaSettings message. + * Verifies a CancelOperationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types. + * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns JavaSettings + * @returns CancelOperationRequest */ - public static fromObject(object: { [k: string]: any }): google.api.JavaSettings; + public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest; /** - * Creates a plain object from a JavaSettings message. Also converts values to other types if specified. - * @param message JavaSettings + * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * @param message CancelOperationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this JavaSettings to JSON. + * Converts this CancelOperationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for JavaSettings + * Gets the default type url for CancelOperationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CppSettings. */ - interface ICppSettings { + /** Properties of a DeleteOperationRequest. */ + interface IDeleteOperationRequest { - /** CppSettings common */ - common?: (google.api.ICommonLanguageSettings|null); + /** DeleteOperationRequest name */ + name?: (string|null); } - /** Represents a CppSettings. */ - class CppSettings implements ICppSettings { + /** Represents a DeleteOperationRequest. */ + class DeleteOperationRequest implements IDeleteOperationRequest { /** - * Constructs a new CppSettings. + * Constructs a new DeleteOperationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.api.ICppSettings); + constructor(properties?: google.longrunning.IDeleteOperationRequest); - /** CppSettings common. */ - public common?: (google.api.ICommonLanguageSettings|null); + /** DeleteOperationRequest name. */ + public name: string; /** - * Creates a new CppSettings instance using the specified properties. + * Creates a new DeleteOperationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CppSettings instance + * @returns DeleteOperationRequest instance */ - public static create(properties?: google.api.ICppSettings): google.api.CppSettings; + public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest; /** - * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. - * @param message CppSettings message or plain object to encode + * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * @param message DeleteOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. - * @param message CppSettings message or plain object to encode + * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * @param message DeleteOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CppSettings message from the specified reader or buffer. + * Decodes a DeleteOperationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CppSettings + * @returns DeleteOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest; /** - * Decodes a CppSettings message from the specified reader or buffer, length delimited. + * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CppSettings + * @returns DeleteOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest; /** - * Verifies a CppSettings message. + * Verifies a DeleteOperationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CppSettings message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CppSettings + * @returns DeleteOperationRequest */ - public static fromObject(object: { [k: string]: any }): google.api.CppSettings; + public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest; /** - * Creates a plain object from a CppSettings message. Also converts values to other types if specified. - * @param message CppSettings + * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified. + * @param message DeleteOperationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CppSettings to JSON. + * Converts this DeleteOperationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CppSettings + * Gets the default type url for DeleteOperationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PhpSettings. */ - interface IPhpSettings { + /** Properties of a WaitOperationRequest. */ + interface IWaitOperationRequest { - /** PhpSettings common */ - common?: (google.api.ICommonLanguageSettings|null); + /** WaitOperationRequest name */ + name?: (string|null); + + /** WaitOperationRequest timeout */ + timeout?: (google.protobuf.IDuration|null); } - /** Represents a PhpSettings. */ - class PhpSettings implements IPhpSettings { + /** Represents a WaitOperationRequest. */ + class WaitOperationRequest implements IWaitOperationRequest { /** - * Constructs a new PhpSettings. + * Constructs a new WaitOperationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.api.IPhpSettings); + constructor(properties?: google.longrunning.IWaitOperationRequest); - /** PhpSettings common. */ - public common?: (google.api.ICommonLanguageSettings|null); + /** WaitOperationRequest name. */ + public name: string; + + /** WaitOperationRequest timeout. */ + public timeout?: (google.protobuf.IDuration|null); /** - * Creates a new PhpSettings instance using the specified properties. + * Creates a new WaitOperationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PhpSettings instance + * @returns WaitOperationRequest instance */ - public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings; + public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest; /** - * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. - * @param message PhpSettings message or plain object to encode + * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * @param message WaitOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. - * @param message PhpSettings message or plain object to encode + * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * @param message WaitOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PhpSettings message from the specified reader or buffer. + * Decodes a WaitOperationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PhpSettings + * @returns WaitOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest; /** - * Decodes a PhpSettings message from the specified reader or buffer, length delimited. + * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PhpSettings + * @returns WaitOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest; /** - * Verifies a PhpSettings message. + * Verifies a WaitOperationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PhpSettings + * @returns WaitOperationRequest */ - public static fromObject(object: { [k: string]: any }): google.api.PhpSettings; + public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest; /** - * Creates a plain object from a PhpSettings message. Also converts values to other types if specified. - * @param message PhpSettings + * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified. + * @param message WaitOperationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PhpSettings to JSON. + * Converts this WaitOperationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PhpSettings + * Gets the default type url for WaitOperationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PythonSettings. */ - interface IPythonSettings { + /** Properties of an OperationInfo. */ + interface IOperationInfo { + + /** OperationInfo responseType */ + responseType?: (string|null); - /** PythonSettings common */ - common?: (google.api.ICommonLanguageSettings|null); + /** OperationInfo metadataType */ + metadataType?: (string|null); } - /** Represents a PythonSettings. */ - class PythonSettings implements IPythonSettings { + /** Represents an OperationInfo. */ + class OperationInfo implements IOperationInfo { /** - * Constructs a new PythonSettings. + * Constructs a new OperationInfo. * @param [properties] Properties to set */ - constructor(properties?: google.api.IPythonSettings); + constructor(properties?: google.longrunning.IOperationInfo); - /** PythonSettings common. */ - public common?: (google.api.ICommonLanguageSettings|null); + /** OperationInfo responseType. */ + public responseType: string; + + /** OperationInfo metadataType. */ + public metadataType: string; /** - * Creates a new PythonSettings instance using the specified properties. + * Creates a new OperationInfo instance using the specified properties. * @param [properties] Properties to set - * @returns PythonSettings instance + * @returns OperationInfo instance */ - public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings; + public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo; /** - * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. - * @param message PythonSettings message or plain object to encode + * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * @param message OperationInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. - * @param message PythonSettings message or plain object to encode + * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * @param message OperationInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PythonSettings message from the specified reader or buffer. + * Decodes an OperationInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PythonSettings + * @returns OperationInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo; /** - * Decodes a PythonSettings message from the specified reader or buffer, length delimited. + * Decodes an OperationInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PythonSettings + * @returns OperationInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo; /** - * Verifies a PythonSettings message. + * Verifies an OperationInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types. + * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PythonSettings + * @returns OperationInfo */ - public static fromObject(object: { [k: string]: any }): google.api.PythonSettings; + public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo; /** - * Creates a plain object from a PythonSettings message. Also converts values to other types if specified. - * @param message PythonSettings + * Creates a plain object from an OperationInfo message. Also converts values to other types if specified. + * @param message OperationInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PythonSettings to JSON. + * Converts this OperationInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PythonSettings + * Gets the default type url for OperationInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a NodeSettings. */ - interface INodeSettings { + /** Namespace api. */ + namespace api { - /** NodeSettings common */ - common?: (google.api.ICommonLanguageSettings|null); + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); } - /** Represents a NodeSettings. */ - class NodeSettings implements INodeSettings { + /** Represents a Http. */ + class Http implements IHttp { /** - * Constructs a new NodeSettings. + * Constructs a new Http. * @param [properties] Properties to set */ - constructor(properties?: google.api.INodeSettings); + constructor(properties?: google.api.IHttp); - /** NodeSettings common. */ - public common?: (google.api.ICommonLanguageSettings|null); + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; /** - * Creates a new NodeSettings instance using the specified properties. + * Creates a new Http instance using the specified properties. * @param [properties] Properties to set - * @returns NodeSettings instance + * @returns Http instance */ - public static create(properties?: google.api.INodeSettings): google.api.NodeSettings; + public static create(properties?: google.api.IHttp): google.api.Http; /** - * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. - * @param message NodeSettings message or plain object to encode + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. - * @param message NodeSettings message or plain object to encode + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeSettings message from the specified reader or buffer. + * Decodes a Http message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeSettings + * @returns Http * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; /** - * Decodes a NodeSettings message from the specified reader or buffer, length delimited. + * Decodes a Http message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodeSettings + * @returns Http * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http; /** - * Verifies a NodeSettings message. + * Verifies a Http message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a Http message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NodeSettings + * @returns Http */ - public static fromObject(object: { [k: string]: any }): google.api.NodeSettings; + public static fromObject(object: { [k: string]: any }): google.api.Http; /** - * Creates a plain object from a NodeSettings message. Also converts values to other types if specified. - * @param message NodeSettings + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodeSettings to JSON. + * Converts this Http to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NodeSettings + * Gets the default type url for Http * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DotnetSettings. */ - interface IDotnetSettings { + /** Properties of a HttpRule. */ + interface IHttpRule { - /** DotnetSettings common */ - common?: (google.api.ICommonLanguageSettings|null); + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); } - /** Represents a DotnetSettings. */ - class DotnetSettings implements IDotnetSettings { + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { /** - * Constructs a new DotnetSettings. + * Constructs a new HttpRule. * @param [properties] Properties to set */ - constructor(properties?: google.api.IDotnetSettings); + constructor(properties?: google.api.IHttpRule); - /** DotnetSettings common. */ - public common?: (google.api.ICommonLanguageSettings|null); + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get?: (string|null); + + /** HttpRule put. */ + public put?: (string|null); + + /** HttpRule post. */ + public post?: (string|null); + + /** HttpRule delete. */ + public delete?: (string|null); + + /** HttpRule patch. */ + public patch?: (string|null); + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); /** - * Creates a new DotnetSettings instance using the specified properties. + * Creates a new HttpRule instance using the specified properties. * @param [properties] Properties to set - * @returns DotnetSettings instance + * @returns HttpRule instance */ - public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings; + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; /** - * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. - * @param message DotnetSettings message or plain object to encode + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. - * @param message DotnetSettings message or plain object to encode + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DotnetSettings message from the specified reader or buffer. + * Decodes a HttpRule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DotnetSettings + * @returns HttpRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; /** - * Decodes a DotnetSettings message from the specified reader or buffer, length delimited. + * Decodes a HttpRule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DotnetSettings + * @returns HttpRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule; /** - * Verifies a DotnetSettings message. + * Verifies a HttpRule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types. + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DotnetSettings + * @returns HttpRule */ - public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings; + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; /** - * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified. - * @param message DotnetSettings + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DotnetSettings to JSON. + * Converts this HttpRule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DotnetSettings + * Gets the default type url for HttpRule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RubySettings. */ - interface IRubySettings { + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { - /** RubySettings common */ - common?: (google.api.ICommonLanguageSettings|null); + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); } - /** Represents a RubySettings. */ - class RubySettings implements IRubySettings { + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { /** - * Constructs a new RubySettings. + * Constructs a new CustomHttpPattern. * @param [properties] Properties to set */ - constructor(properties?: google.api.IRubySettings); + constructor(properties?: google.api.ICustomHttpPattern); - /** RubySettings common. */ - public common?: (google.api.ICommonLanguageSettings|null); + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; /** - * Creates a new RubySettings instance using the specified properties. + * Creates a new CustomHttpPattern instance using the specified properties. * @param [properties] Properties to set - * @returns RubySettings instance + * @returns CustomHttpPattern instance */ - public static create(properties?: google.api.IRubySettings): google.api.RubySettings; + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; /** - * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. - * @param message RubySettings message or plain object to encode + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. - * @param message RubySettings message or plain object to encode + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RubySettings message from the specified reader or buffer. + * Decodes a CustomHttpPattern message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RubySettings + * @returns CustomHttpPattern * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; /** - * Decodes a RubySettings message from the specified reader or buffer, length delimited. + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RubySettings + * @returns CustomHttpPattern * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern; /** - * Verifies a RubySettings message. + * Verifies a CustomHttpPattern message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RubySettings message from a plain object. Also converts values to their respective internal types. + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RubySettings + * @returns CustomHttpPattern */ - public static fromObject(object: { [k: string]: any }): google.api.RubySettings; + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; /** - * Creates a plain object from a RubySettings message. Also converts values to other types if specified. - * @param message RubySettings + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RubySettings to JSON. + * Converts this CustomHttpPattern to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RubySettings + * Gets the default type url for CustomHttpPattern * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GoSettings. */ - interface IGoSettings { + /** Properties of a CommonLanguageSettings. */ + interface ICommonLanguageSettings { - /** GoSettings common */ - common?: (google.api.ICommonLanguageSettings|null); + /** CommonLanguageSettings referenceDocsUri */ + referenceDocsUri?: (string|null); + + /** CommonLanguageSettings destinations */ + destinations?: (google.api.ClientLibraryDestination[]|null); } - /** Represents a GoSettings. */ - class GoSettings implements IGoSettings { + /** Represents a CommonLanguageSettings. */ + class CommonLanguageSettings implements ICommonLanguageSettings { /** - * Constructs a new GoSettings. + * Constructs a new CommonLanguageSettings. * @param [properties] Properties to set */ - constructor(properties?: google.api.IGoSettings); + constructor(properties?: google.api.ICommonLanguageSettings); - /** GoSettings common. */ - public common?: (google.api.ICommonLanguageSettings|null); + /** CommonLanguageSettings referenceDocsUri. */ + public referenceDocsUri: string; + + /** CommonLanguageSettings destinations. */ + public destinations: google.api.ClientLibraryDestination[]; /** - * Creates a new GoSettings instance using the specified properties. + * Creates a new CommonLanguageSettings instance using the specified properties. * @param [properties] Properties to set - * @returns GoSettings instance + * @returns CommonLanguageSettings instance */ - public static create(properties?: google.api.IGoSettings): google.api.GoSettings; + public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings; /** - * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. - * @param message GoSettings message or plain object to encode + * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. + * @param message CommonLanguageSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. - * @param message GoSettings message or plain object to encode + * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. + * @param message CommonLanguageSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GoSettings message from the specified reader or buffer. + * Decodes a CommonLanguageSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GoSettings + * @returns CommonLanguageSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings; /** - * Decodes a GoSettings message from the specified reader or buffer, length delimited. + * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GoSettings + * @returns CommonLanguageSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings; /** - * Verifies a GoSettings message. + * Verifies a CommonLanguageSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GoSettings message from a plain object. Also converts values to their respective internal types. + * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GoSettings + * @returns CommonLanguageSettings */ - public static fromObject(object: { [k: string]: any }): google.api.GoSettings; + public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings; /** - * Creates a plain object from a GoSettings message. Also converts values to other types if specified. - * @param message GoSettings + * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified. + * @param message CommonLanguageSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GoSettings to JSON. + * Converts this CommonLanguageSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GoSettings + * Gets the default type url for CommonLanguageSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MethodSettings. */ - interface IMethodSettings { + /** Properties of a ClientLibrarySettings. */ + interface IClientLibrarySettings { - /** MethodSettings selector */ - selector?: (string|null); + /** ClientLibrarySettings version */ + version?: (string|null); - /** MethodSettings longRunning */ - longRunning?: (google.api.MethodSettings.ILongRunning|null); + /** ClientLibrarySettings launchStage */ + launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null); + + /** ClientLibrarySettings restNumericEnums */ + restNumericEnums?: (boolean|null); + + /** ClientLibrarySettings javaSettings */ + javaSettings?: (google.api.IJavaSettings|null); + + /** ClientLibrarySettings cppSettings */ + cppSettings?: (google.api.ICppSettings|null); + + /** ClientLibrarySettings phpSettings */ + phpSettings?: (google.api.IPhpSettings|null); + + /** ClientLibrarySettings pythonSettings */ + pythonSettings?: (google.api.IPythonSettings|null); + + /** ClientLibrarySettings nodeSettings */ + nodeSettings?: (google.api.INodeSettings|null); + + /** ClientLibrarySettings dotnetSettings */ + dotnetSettings?: (google.api.IDotnetSettings|null); + + /** ClientLibrarySettings rubySettings */ + rubySettings?: (google.api.IRubySettings|null); + + /** ClientLibrarySettings goSettings */ + goSettings?: (google.api.IGoSettings|null); } - /** Represents a MethodSettings. */ - class MethodSettings implements IMethodSettings { + /** Represents a ClientLibrarySettings. */ + class ClientLibrarySettings implements IClientLibrarySettings { /** - * Constructs a new MethodSettings. + * Constructs a new ClientLibrarySettings. * @param [properties] Properties to set */ - constructor(properties?: google.api.IMethodSettings); + constructor(properties?: google.api.IClientLibrarySettings); - /** MethodSettings selector. */ - public selector: string; + /** ClientLibrarySettings version. */ + public version: string; - /** MethodSettings longRunning. */ - public longRunning?: (google.api.MethodSettings.ILongRunning|null); + /** ClientLibrarySettings launchStage. */ + public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage); + + /** ClientLibrarySettings restNumericEnums. */ + public restNumericEnums: boolean; + + /** ClientLibrarySettings javaSettings. */ + public javaSettings?: (google.api.IJavaSettings|null); + + /** ClientLibrarySettings cppSettings. */ + public cppSettings?: (google.api.ICppSettings|null); + + /** ClientLibrarySettings phpSettings. */ + public phpSettings?: (google.api.IPhpSettings|null); + + /** ClientLibrarySettings pythonSettings. */ + public pythonSettings?: (google.api.IPythonSettings|null); + + /** ClientLibrarySettings nodeSettings. */ + public nodeSettings?: (google.api.INodeSettings|null); + + /** ClientLibrarySettings dotnetSettings. */ + public dotnetSettings?: (google.api.IDotnetSettings|null); + + /** ClientLibrarySettings rubySettings. */ + public rubySettings?: (google.api.IRubySettings|null); + + /** ClientLibrarySettings goSettings. */ + public goSettings?: (google.api.IGoSettings|null); /** - * Creates a new MethodSettings instance using the specified properties. + * Creates a new ClientLibrarySettings instance using the specified properties. * @param [properties] Properties to set - * @returns MethodSettings instance + * @returns ClientLibrarySettings instance */ - public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings; + public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings; /** - * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. - * @param message MethodSettings message or plain object to encode + * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. + * @param message ClientLibrarySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. - * @param message MethodSettings message or plain object to encode + * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. + * @param message ClientLibrarySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodSettings message from the specified reader or buffer. + * Decodes a ClientLibrarySettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MethodSettings + * @returns ClientLibrarySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings; /** - * Decodes a MethodSettings message from the specified reader or buffer, length delimited. + * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MethodSettings + * @returns ClientLibrarySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings; /** - * Verifies a MethodSettings message. + * Verifies a ClientLibrarySettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types. + * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MethodSettings + * @returns ClientLibrarySettings */ - public static fromObject(object: { [k: string]: any }): google.api.MethodSettings; + public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings; /** - * Creates a plain object from a MethodSettings message. Also converts values to other types if specified. - * @param message MethodSettings + * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified. + * @param message ClientLibrarySettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MethodSettings to JSON. + * Converts this ClientLibrarySettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MethodSettings + * Gets the default type url for ClientLibrarySettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MethodSettings { + /** Properties of a Publishing. */ + interface IPublishing { - /** Properties of a LongRunning. */ - interface ILongRunning { + /** Publishing methodSettings */ + methodSettings?: (google.api.IMethodSettings[]|null); - /** LongRunning initialPollDelay */ - initialPollDelay?: (google.protobuf.IDuration|null); + /** Publishing newIssueUri */ + newIssueUri?: (string|null); - /** LongRunning pollDelayMultiplier */ - pollDelayMultiplier?: (number|null); + /** Publishing documentationUri */ + documentationUri?: (string|null); - /** LongRunning maxPollDelay */ - maxPollDelay?: (google.protobuf.IDuration|null); + /** Publishing apiShortName */ + apiShortName?: (string|null); - /** LongRunning totalPollTimeout */ - totalPollTimeout?: (google.protobuf.IDuration|null); - } + /** Publishing githubLabel */ + githubLabel?: (string|null); - /** Represents a LongRunning. */ - class LongRunning implements ILongRunning { + /** Publishing codeownerGithubTeams */ + codeownerGithubTeams?: (string[]|null); - /** - * Constructs a new LongRunning. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.MethodSettings.ILongRunning); + /** Publishing docTagPrefix */ + docTagPrefix?: (string|null); - /** LongRunning initialPollDelay. */ - public initialPollDelay?: (google.protobuf.IDuration|null); + /** Publishing organization */ + organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null); - /** LongRunning pollDelayMultiplier. */ - public pollDelayMultiplier: number; + /** Publishing librarySettings */ + librarySettings?: (google.api.IClientLibrarySettings[]|null); + } - /** LongRunning maxPollDelay. */ - public maxPollDelay?: (google.protobuf.IDuration|null); + /** Represents a Publishing. */ + class Publishing implements IPublishing { - /** LongRunning totalPollTimeout. */ - public totalPollTimeout?: (google.protobuf.IDuration|null); + /** + * Constructs a new Publishing. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IPublishing); - /** - * Creates a new LongRunning instance using the specified properties. - * @param [properties] Properties to set - * @returns LongRunning instance - */ - public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning; + /** Publishing methodSettings. */ + public methodSettings: google.api.IMethodSettings[]; - /** - * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. - * @param message LongRunning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer; + /** Publishing newIssueUri. */ + public newIssueUri: string; - /** - * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. - * @param message LongRunning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer; + /** Publishing documentationUri. */ + public documentationUri: string; - /** - * Decodes a LongRunning message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LongRunning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning; + /** Publishing apiShortName. */ + public apiShortName: string; - /** - * Decodes a LongRunning message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LongRunning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning; + /** Publishing githubLabel. */ + public githubLabel: string; - /** - * Verifies a LongRunning message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Publishing codeownerGithubTeams. */ + public codeownerGithubTeams: string[]; - /** - * Creates a LongRunning message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LongRunning - */ - public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning; + /** Publishing docTagPrefix. */ + public docTagPrefix: string; - /** - * Creates a plain object from a LongRunning message. Also converts values to other types if specified. - * @param message LongRunning - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Publishing organization. */ + public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization); - /** - * Converts this LongRunning to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Publishing librarySettings. */ + public librarySettings: google.api.IClientLibrarySettings[]; - /** - * Gets the default type url for LongRunning - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Creates a new Publishing instance using the specified properties. + * @param [properties] Properties to set + * @returns Publishing instance + */ + public static create(properties?: google.api.IPublishing): google.api.Publishing; - /** ClientLibraryOrganization enum. */ - enum ClientLibraryOrganization { - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0, - CLOUD = 1, - ADS = 2, - PHOTOS = 3, - STREET_VIEW = 4 - } + /** + * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages. + * @param message Publishing message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer; - /** ClientLibraryDestination enum. */ - enum ClientLibraryDestination { - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0, - GITHUB = 10, - PACKAGE_MANAGER = 20 - } + /** + * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages. + * @param message Publishing message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer; - /** LaunchStage enum. */ - enum LaunchStage { - LAUNCH_STAGE_UNSPECIFIED = 0, - UNIMPLEMENTED = 6, - PRELAUNCH = 7, - EARLY_ACCESS = 1, - ALPHA = 2, - BETA = 3, - GA = 4, - DEPRECATED = 5 - } + /** + * Decodes a Publishing message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Publishing + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing; - /** FieldBehavior enum. */ - enum FieldBehavior { - FIELD_BEHAVIOR_UNSPECIFIED = 0, - OPTIONAL = 1, - REQUIRED = 2, - OUTPUT_ONLY = 3, - INPUT_ONLY = 4, - IMMUTABLE = 5, - UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7 - } + /** + * Decodes a Publishing message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Publishing + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing; + + /** + * Verifies a Publishing message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a ResourceDescriptor. */ - interface IResourceDescriptor { + /** + * Creates a Publishing message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Publishing + */ + public static fromObject(object: { [k: string]: any }): google.api.Publishing; - /** ResourceDescriptor type */ - type?: (string|null); + /** + * Creates a plain object from a Publishing message. Also converts values to other types if specified. + * @param message Publishing + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ResourceDescriptor pattern */ - pattern?: (string[]|null); + /** + * Converts this Publishing to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ResourceDescriptor nameField */ - nameField?: (string|null); + /** + * Gets the default type url for Publishing + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ResourceDescriptor history */ - history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); + /** Properties of a JavaSettings. */ + interface IJavaSettings { - /** ResourceDescriptor plural */ - plural?: (string|null); + /** JavaSettings libraryPackage */ + libraryPackage?: (string|null); - /** ResourceDescriptor singular */ - singular?: (string|null); + /** JavaSettings serviceClassNames */ + serviceClassNames?: ({ [k: string]: string }|null); - /** ResourceDescriptor style */ - style?: (google.api.ResourceDescriptor.Style[]|null); + /** JavaSettings common */ + common?: (google.api.ICommonLanguageSettings|null); } - /** Represents a ResourceDescriptor. */ - class ResourceDescriptor implements IResourceDescriptor { + /** Represents a JavaSettings. */ + class JavaSettings implements IJavaSettings { /** - * Constructs a new ResourceDescriptor. + * Constructs a new JavaSettings. * @param [properties] Properties to set */ - constructor(properties?: google.api.IResourceDescriptor); - - /** ResourceDescriptor type. */ - public type: string; - - /** ResourceDescriptor pattern. */ - public pattern: string[]; - - /** ResourceDescriptor nameField. */ - public nameField: string; - - /** ResourceDescriptor history. */ - public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); + constructor(properties?: google.api.IJavaSettings); - /** ResourceDescriptor plural. */ - public plural: string; + /** JavaSettings libraryPackage. */ + public libraryPackage: string; - /** ResourceDescriptor singular. */ - public singular: string; + /** JavaSettings serviceClassNames. */ + public serviceClassNames: { [k: string]: string }; - /** ResourceDescriptor style. */ - public style: google.api.ResourceDescriptor.Style[]; + /** JavaSettings common. */ + public common?: (google.api.ICommonLanguageSettings|null); /** - * Creates a new ResourceDescriptor instance using the specified properties. + * Creates a new JavaSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceDescriptor instance + * @returns JavaSettings instance */ - public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; + public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings; /** - * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @param message ResourceDescriptor message or plain object to encode + * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. + * @param message JavaSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @param message ResourceDescriptor message or plain object to encode + * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. + * @param message JavaSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer. + * Decodes a JavaSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourceDescriptor + * @returns JavaSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * Decodes a JavaSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceDescriptor + * @returns JavaSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings; /** - * Verifies a ResourceDescriptor message. + * Verifies a JavaSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceDescriptor + * @returns JavaSettings */ - public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; + public static fromObject(object: { [k: string]: any }): google.api.JavaSettings; /** - * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. - * @param message ResourceDescriptor + * Creates a plain object from a JavaSettings message. Also converts values to other types if specified. + * @param message JavaSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceDescriptor to JSON. + * Converts this JavaSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourceDescriptor + * Gets the default type url for JavaSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ResourceDescriptor { - - /** History enum. */ - enum History { - HISTORY_UNSPECIFIED = 0, - ORIGINALLY_SINGLE_PATTERN = 1, - FUTURE_MULTI_PATTERN = 2 - } - - /** Style enum. */ - enum Style { - STYLE_UNSPECIFIED = 0, - DECLARATIVE_FRIENDLY = 1 - } - } - - /** Properties of a ResourceReference. */ - interface IResourceReference { - - /** ResourceReference type */ - type?: (string|null); + /** Properties of a CppSettings. */ + interface ICppSettings { - /** ResourceReference childType */ - childType?: (string|null); + /** CppSettings common */ + common?: (google.api.ICommonLanguageSettings|null); } - /** Represents a ResourceReference. */ - class ResourceReference implements IResourceReference { + /** Represents a CppSettings. */ + class CppSettings implements ICppSettings { /** - * Constructs a new ResourceReference. + * Constructs a new CppSettings. * @param [properties] Properties to set */ - constructor(properties?: google.api.IResourceReference); - - /** ResourceReference type. */ - public type: string; + constructor(properties?: google.api.ICppSettings); - /** ResourceReference childType. */ - public childType: string; + /** CppSettings common. */ + public common?: (google.api.ICommonLanguageSettings|null); /** - * Creates a new ResourceReference instance using the specified properties. + * Creates a new CppSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceReference instance + * @returns CppSettings instance */ - public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; + public static create(properties?: google.api.ICppSettings): google.api.CppSettings; /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @param message ResourceReference message or plain object to encode + * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. + * @param message CppSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @param message ResourceReference message or plain object to encode + * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. + * @param message CppSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceReference message from the specified reader or buffer. + * Decodes a CppSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourceReference + * @returns CppSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings; /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * Decodes a CppSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceReference + * @returns CppSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings; /** - * Verifies a ResourceReference message. + * Verifies a CppSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * Creates a CppSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceReference + * @returns CppSettings */ - public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; + public static fromObject(object: { [k: string]: any }): google.api.CppSettings; /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. - * @param message ResourceReference + * Creates a plain object from a CppSettings message. Also converts values to other types if specified. + * @param message CppSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceReference to JSON. + * Converts this CppSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourceReference + * Gets the default type url for CppSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Namespace protobuf. */ - namespace protobuf { - - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { + /** Properties of a PhpSettings. */ + interface IPhpSettings { - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); + /** PhpSettings common */ + common?: (google.api.ICommonLanguageSettings|null); } - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { + /** Represents a PhpSettings. */ + class PhpSettings implements IPhpSettings { /** - * Constructs a new FileDescriptorSet. + * Constructs a new PhpSettings. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileDescriptorSet); + constructor(properties?: google.api.IPhpSettings); - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; + /** PhpSettings common. */ + public common?: (google.api.ICommonLanguageSettings|null); /** - * Creates a new FileDescriptorSet instance using the specified properties. + * Creates a new PhpSettings instance using the specified properties. * @param [properties] Properties to set - * @returns FileDescriptorSet instance + * @returns PhpSettings instance */ - public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings; /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode + * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. + * @param message PhpSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode + * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. + * @param message PhpSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. + * Decodes a PhpSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileDescriptorSet + * @returns PhpSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * Decodes a PhpSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileDescriptorSet + * @returns PhpSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings; /** - * Verifies a FileDescriptorSet message. + * Verifies a PhpSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileDescriptorSet + * @returns PhpSettings */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + public static fromObject(object: { [k: string]: any }): google.api.PhpSettings; /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @param message FileDescriptorSet + * Creates a plain object from a PhpSettings message. Also converts values to other types if specified. + * @param message PhpSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileDescriptorSet to JSON. + * Converts this PhpSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FileDescriptorSet + * Gets the default type url for PhpSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { - - /** FileDescriptorProto name */ - name?: (string|null); - - /** FileDescriptorProto package */ - "package"?: (string|null); - - /** FileDescriptorProto dependency */ - dependency?: (string[]|null); - - /** FileDescriptorProto publicDependency */ - publicDependency?: (number[]|null); - - /** FileDescriptorProto weakDependency */ - weakDependency?: (number[]|null); - - /** FileDescriptorProto messageType */ - messageType?: (google.protobuf.IDescriptorProto[]|null); - - /** FileDescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** FileDescriptorProto service */ - service?: (google.protobuf.IServiceDescriptorProto[]|null); - - /** FileDescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** FileDescriptorProto options */ - options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo */ - sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax */ - syntax?: (string|null); + /** Properties of a PythonSettings. */ + interface IPythonSettings { - /** FileDescriptorProto edition */ - edition?: (string|null); + /** PythonSettings common */ + common?: (google.api.ICommonLanguageSettings|null); } - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { + /** Represents a PythonSettings. */ + class PythonSettings implements IPythonSettings { /** - * Constructs a new FileDescriptorProto. + * Constructs a new PythonSettings. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileDescriptorProto); - - /** FileDescriptorProto name. */ - public name: string; - - /** FileDescriptorProto package. */ - public package: string; - - /** FileDescriptorProto dependency. */ - public dependency: string[]; - - /** FileDescriptorProto publicDependency. */ - public publicDependency: number[]; - - /** FileDescriptorProto weakDependency. */ - public weakDependency: number[]; - - /** FileDescriptorProto messageType. */ - public messageType: google.protobuf.IDescriptorProto[]; - - /** FileDescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; - - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** FileDescriptorProto options. */ - public options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo. */ - public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax. */ - public syntax: string; + constructor(properties?: google.api.IPythonSettings); - /** FileDescriptorProto edition. */ - public edition: string; + /** PythonSettings common. */ + public common?: (google.api.ICommonLanguageSettings|null); /** - * Creates a new FileDescriptorProto instance using the specified properties. + * Creates a new PythonSettings instance using the specified properties. * @param [properties] Properties to set - * @returns FileDescriptorProto instance + * @returns PythonSettings instance */ - public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings; /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode + * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. + * @param message PythonSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode + * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. + * @param message PythonSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. + * Decodes a PythonSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileDescriptorProto + * @returns PythonSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a PythonSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileDescriptorProto + * @returns PythonSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings; /** - * Verifies a FileDescriptorProto message. + * Verifies a PythonSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileDescriptorProto + * @returns PythonSettings */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.api.PythonSettings; /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @param message FileDescriptorProto + * Creates a plain object from a PythonSettings message. Also converts values to other types if specified. + * @param message PythonSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileDescriptorProto to JSON. + * Converts this PythonSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FileDescriptorProto + * Gets the default type url for PythonSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { - - /** DescriptorProto name */ - name?: (string|null); - - /** DescriptorProto field */ - field?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto nestedType */ - nestedType?: (google.protobuf.IDescriptorProto[]|null); - - /** DescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** DescriptorProto extensionRange */ - extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - - /** DescriptorProto oneofDecl */ - oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); - - /** DescriptorProto options */ - options?: (google.protobuf.IMessageOptions|null); - - /** DescriptorProto reservedRange */ - reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + /** Properties of a NodeSettings. */ + interface INodeSettings { - /** DescriptorProto reservedName */ - reservedName?: (string[]|null); + /** NodeSettings common */ + common?: (google.api.ICommonLanguageSettings|null); } - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { + /** Represents a NodeSettings. */ + class NodeSettings implements INodeSettings { /** - * Constructs a new DescriptorProto. + * Constructs a new NodeSettings. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IDescriptorProto); - - /** DescriptorProto name. */ - public name: string; - - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto nestedType. */ - public nestedType: google.protobuf.IDescriptorProto[]; - - /** DescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** DescriptorProto extensionRange. */ - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; - - /** DescriptorProto options. */ - public options?: (google.protobuf.IMessageOptions|null); - - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + constructor(properties?: google.api.INodeSettings); - /** DescriptorProto reservedName. */ - public reservedName: string[]; + /** NodeSettings common. */ + public common?: (google.api.ICommonLanguageSettings|null); /** - * Creates a new DescriptorProto instance using the specified properties. + * Creates a new NodeSettings instance using the specified properties. * @param [properties] Properties to set - * @returns DescriptorProto instance + * @returns NodeSettings instance */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + public static create(properties?: google.api.INodeSettings): google.api.NodeSettings; /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode + * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * @param message NodeSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode + * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * @param message NodeSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DescriptorProto message from the specified reader or buffer. + * Decodes a NodeSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DescriptorProto + * @returns NodeSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings; /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a NodeSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DescriptorProto + * @returns NodeSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings; /** - * Verifies a DescriptorProto message. + * Verifies a NodeSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; - - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @param message DescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DescriptorProto to JSON. - * @returns JSON object + * @returns NodeSettings */ - public toJSON(): { [k: string]: any }; + public static fromObject(object: { [k: string]: any }): google.api.NodeSettings; /** - * Gets the default type url for DescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace DescriptorProto { - - /** Properties of an ExtensionRange. */ - interface IExtensionRange { - - /** ExtensionRange start */ - start?: (number|null); - - /** ExtensionRange end */ - end?: (number|null); - - /** ExtensionRange options */ - options?: (google.protobuf.IExtensionRangeOptions|null); - } - - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { - - /** - * Constructs a new ExtensionRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); - - /** ExtensionRange start. */ - public start: number; - - /** ExtensionRange end. */ - public end: number; - - /** ExtensionRange options. */ - public options?: (google.protobuf.IExtensionRangeOptions|null); - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Verifies an ExtensionRange message. - * @param message Plain 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 ExtensionRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExtensionRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @param message ExtensionRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExtensionRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExtensionRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReservedRange. */ - interface IReservedRange { - - /** ReservedRange start */ - start?: (number|null); - - /** ReservedRange end */ - end?: (number|null); - } - - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { - - /** - * Constructs a new ReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); - - /** ReservedRange start. */ - public start: number; - - /** ReservedRange end. */ - public end: number; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ReservedRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Verifies a ReservedRange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReservedRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @param message ReservedRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + * Creates a plain object from a NodeSettings message. Also converts values to other types if specified. + * @param message NodeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this NodeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ReservedRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for NodeSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExtensionRangeOptions. */ - interface IExtensionRangeOptions { + /** Properties of a DotnetSettings. */ + interface IDotnetSettings { - /** ExtensionRangeOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** DotnetSettings common */ + common?: (google.api.ICommonLanguageSettings|null); } - /** Represents an ExtensionRangeOptions. */ - class ExtensionRangeOptions implements IExtensionRangeOptions { + /** Represents a DotnetSettings. */ + class DotnetSettings implements IDotnetSettings { /** - * Constructs a new ExtensionRangeOptions. + * Constructs a new DotnetSettings. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IExtensionRangeOptions); + constructor(properties?: google.api.IDotnetSettings); - /** ExtensionRangeOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** DotnetSettings common. */ + public common?: (google.api.ICommonLanguageSettings|null); /** - * Creates a new ExtensionRangeOptions instance using the specified properties. + * Creates a new DotnetSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ExtensionRangeOptions instance + * @returns DotnetSettings instance */ - public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings; /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode + * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. + * @param message DotnetSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode + * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. + * @param message DotnetSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * Decodes a DotnetSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExtensionRangeOptions + * @returns DotnetSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * Decodes a DotnetSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExtensionRangeOptions + * @returns DotnetSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings; /** - * Verifies an ExtensionRangeOptions message. + * Verifies a DotnetSettings message. * @param message Plain 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 ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExtensionRangeOptions + * @returns DotnetSettings */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings; /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @param message ExtensionRangeOptions + * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified. + * @param message DotnetSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExtensionRangeOptions to JSON. + * Converts this DotnetSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExtensionRangeOptions + * Gets the default type url for DotnetSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { - - /** FieldDescriptorProto name */ - name?: (string|null); - - /** FieldDescriptorProto number */ - number?: (number|null); - - /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); - - /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); - - /** FieldDescriptorProto typeName */ - typeName?: (string|null); - - /** FieldDescriptorProto extendee */ - extendee?: (string|null); - - /** FieldDescriptorProto defaultValue */ - defaultValue?: (string|null); - - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: (number|null); - - /** FieldDescriptorProto jsonName */ - jsonName?: (string|null); - - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); + /** Properties of a RubySettings. */ + interface IRubySettings { - /** FieldDescriptorProto proto3Optional */ - proto3Optional?: (boolean|null); + /** RubySettings common */ + common?: (google.api.ICommonLanguageSettings|null); } - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { + /** Represents a RubySettings. */ + class RubySettings implements IRubySettings { /** - * Constructs a new FieldDescriptorProto. + * Constructs a new RubySettings. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFieldDescriptorProto); - - /** FieldDescriptorProto name. */ - public name: string; - - /** FieldDescriptorProto number. */ - public number: number; - - /** FieldDescriptorProto label. */ - public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); - - /** FieldDescriptorProto type. */ - public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); - - /** FieldDescriptorProto typeName. */ - public typeName: string; - - /** FieldDescriptorProto extendee. */ - public extendee: string; - - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; - - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; - - /** FieldDescriptorProto jsonName. */ - public jsonName: string; - - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); + constructor(properties?: google.api.IRubySettings); - /** FieldDescriptorProto proto3Optional. */ - public proto3Optional: boolean; + /** RubySettings common. */ + public common?: (google.api.ICommonLanguageSettings|null); /** - * Creates a new FieldDescriptorProto instance using the specified properties. + * Creates a new RubySettings instance using the specified properties. * @param [properties] Properties to set - * @returns FieldDescriptorProto instance + * @returns RubySettings instance */ - public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + public static create(properties?: google.api.IRubySettings): google.api.RubySettings; /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode + * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * @param message RubySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode + * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * @param message RubySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * Decodes a RubySettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FieldDescriptorProto + * @returns RubySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a RubySettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldDescriptorProto + * @returns RubySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings; /** - * Verifies a FieldDescriptorProto message. + * Verifies a RubySettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a RubySettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldDescriptorProto + * @returns RubySettings */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.api.RubySettings; /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @param message FieldDescriptorProto + * Creates a plain object from a RubySettings message. Also converts values to other types if specified. + * @param message RubySettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FieldDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Gets the default type url for FieldDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace FieldDescriptorProto { - - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18 - } + * Converts this RubySettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 - } + /** + * Gets the default type url for RubySettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { - - /** OneofDescriptorProto name */ - name?: (string|null); + /** Properties of a GoSettings. */ + interface IGoSettings { - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); + /** GoSettings common */ + common?: (google.api.ICommonLanguageSettings|null); } - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { + /** Represents a GoSettings. */ + class GoSettings implements IGoSettings { /** - * Constructs a new OneofDescriptorProto. + * Constructs a new GoSettings. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); - - /** OneofDescriptorProto name. */ - public name: string; + constructor(properties?: google.api.IGoSettings); - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); + /** GoSettings common. */ + public common?: (google.api.ICommonLanguageSettings|null); /** - * Creates a new OneofDescriptorProto instance using the specified properties. + * Creates a new GoSettings instance using the specified properties. * @param [properties] Properties to set - * @returns OneofDescriptorProto instance + * @returns GoSettings instance */ - public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + public static create(properties?: google.api.IGoSettings): google.api.GoSettings; /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode + * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. + * @param message GoSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode + * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. + * @param message GoSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * Decodes a GoSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OneofDescriptorProto + * @returns GoSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a GoSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OneofDescriptorProto + * @returns GoSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings; /** - * Verifies an OneofDescriptorProto message. + * Verifies a GoSettings message. * @param message Plain 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a GoSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofDescriptorProto + * @returns GoSettings */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.api.GoSettings; /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @param message OneofDescriptorProto + * Creates a plain object from a GoSettings message. Also converts values to other types if specified. + * @param message GoSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofDescriptorProto to JSON. + * Converts this GoSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OneofDescriptorProto + * Gets the default type url for GoSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { - - /** EnumDescriptorProto name */ - name?: (string|null); - - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); + /** Properties of a MethodSettings. */ + interface IMethodSettings { - /** EnumDescriptorProto reservedRange */ - reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + /** MethodSettings selector */ + selector?: (string|null); - /** EnumDescriptorProto reservedName */ - reservedName?: (string[]|null); + /** MethodSettings longRunning */ + longRunning?: (google.api.MethodSettings.ILongRunning|null); } - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { + /** Represents a MethodSettings. */ + class MethodSettings implements IMethodSettings { /** - * Constructs a new EnumDescriptorProto. + * Constructs a new MethodSettings. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); - - /** EnumDescriptorProto name. */ - public name: string; - - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; - - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); + constructor(properties?: google.api.IMethodSettings); - /** EnumDescriptorProto reservedRange. */ - public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + /** MethodSettings selector. */ + public selector: string; - /** EnumDescriptorProto reservedName. */ - public reservedName: string[]; + /** MethodSettings longRunning. */ + public longRunning?: (google.api.MethodSettings.ILongRunning|null); /** - * Creates a new EnumDescriptorProto instance using the specified properties. + * Creates a new MethodSettings instance using the specified properties. * @param [properties] Properties to set - * @returns EnumDescriptorProto instance + * @returns MethodSettings instance */ - public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode + * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. + * @param message MethodSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode + * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. + * @param message MethodSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes a MethodSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumDescriptorProto + * @returns MethodSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a MethodSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumDescriptorProto + * @returns MethodSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings; /** - * Verifies an EnumDescriptorProto message. + * Verifies a MethodSettings message. * @param message Plain 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumDescriptorProto + * @returns MethodSettings */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.api.MethodSettings; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @param message EnumDescriptorProto + * Creates a plain object from a MethodSettings message. Also converts values to other types if specified. + * @param message MethodSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this MethodSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnumDescriptorProto + * Gets the default type url for MethodSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace EnumDescriptorProto { + namespace MethodSettings { - /** Properties of an EnumReservedRange. */ - interface IEnumReservedRange { + /** Properties of a LongRunning. */ + interface ILongRunning { - /** EnumReservedRange start */ - start?: (number|null); + /** LongRunning initialPollDelay */ + initialPollDelay?: (google.protobuf.IDuration|null); - /** EnumReservedRange end */ - end?: (number|null); + /** LongRunning pollDelayMultiplier */ + pollDelayMultiplier?: (number|null); + + /** LongRunning maxPollDelay */ + maxPollDelay?: (google.protobuf.IDuration|null); + + /** LongRunning totalPollTimeout */ + totalPollTimeout?: (google.protobuf.IDuration|null); } - /** Represents an EnumReservedRange. */ - class EnumReservedRange implements IEnumReservedRange { + /** Represents a LongRunning. */ + class LongRunning implements ILongRunning { /** - * Constructs a new EnumReservedRange. + * Constructs a new LongRunning. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + constructor(properties?: google.api.MethodSettings.ILongRunning); - /** EnumReservedRange start. */ - public start: number; + /** LongRunning initialPollDelay. */ + public initialPollDelay?: (google.protobuf.IDuration|null); - /** EnumReservedRange end. */ - public end: number; + /** LongRunning pollDelayMultiplier. */ + public pollDelayMultiplier: number; + + /** LongRunning maxPollDelay. */ + public maxPollDelay?: (google.protobuf.IDuration|null); + + /** LongRunning totalPollTimeout. */ + public totalPollTimeout?: (google.protobuf.IDuration|null); /** - * Creates a new EnumReservedRange instance using the specified properties. + * Creates a new LongRunning instance using the specified properties. * @param [properties] Properties to set - * @returns EnumReservedRange instance + * @returns LongRunning instance */ - public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning; /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode + * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. + * @param message LongRunning message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode + * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. + * @param message LongRunning message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumReservedRange message from the specified reader or buffer. + * Decodes a LongRunning message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumReservedRange + * @returns LongRunning * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning; /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * Decodes a LongRunning message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumReservedRange + * @returns LongRunning * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning; /** - * Verifies an EnumReservedRange message. + * Verifies a LongRunning message. * @param message Plain 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 EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * Creates a LongRunning message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumReservedRange + * @returns LongRunning */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning; /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @param message EnumReservedRange + * Creates a plain object from a LongRunning message. Also converts values to other types if specified. + * @param message LongRunning * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumReservedRange to JSON. + * Converts this LongRunning to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnumReservedRange + * Gets the default type url for LongRunning * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -11961,3618 +18600,4190 @@ export namespace google { } } - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { + /** ClientLibraryOrganization enum. */ + enum ClientLibraryOrganization { + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0, + CLOUD = 1, + ADS = 2, + PHOTOS = 3, + STREET_VIEW = 4 + } - /** EnumValueDescriptorProto name */ - name?: (string|null); + /** ClientLibraryDestination enum. */ + enum ClientLibraryDestination { + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0, + GITHUB = 10, + PACKAGE_MANAGER = 20 + } - /** EnumValueDescriptorProto number */ - number?: (number|null); + /** LaunchStage enum. */ + enum LaunchStage { + LAUNCH_STAGE_UNSPECIFIED = 0, + UNIMPLEMENTED = 6, + PRELAUNCH = 7, + EARLY_ACCESS = 1, + ALPHA = 2, + BETA = 3, + GA = 4, + DEPRECATED = 5 + } - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 } - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + /** Properties of a ResourceDescriptor. */ + interface IResourceDescriptor { + + /** ResourceDescriptor type */ + type?: (string|null); + + /** ResourceDescriptor pattern */ + pattern?: (string[]|null); + + /** ResourceDescriptor nameField */ + nameField?: (string|null); + + /** ResourceDescriptor history */ + history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); + + /** ResourceDescriptor plural */ + plural?: (string|null); + + /** ResourceDescriptor singular */ + singular?: (string|null); + + /** ResourceDescriptor style */ + style?: (google.api.ResourceDescriptor.Style[]|null); + } + + /** Represents a ResourceDescriptor. */ + class ResourceDescriptor implements IResourceDescriptor { /** - * Constructs a new EnumValueDescriptorProto. + * Constructs a new ResourceDescriptor. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + constructor(properties?: google.api.IResourceDescriptor); - /** EnumValueDescriptorProto name. */ - public name: string; + /** ResourceDescriptor type. */ + public type: string; - /** EnumValueDescriptorProto number. */ - public number: number; + /** ResourceDescriptor pattern. */ + public pattern: string[]; - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); + /** ResourceDescriptor nameField. */ + public nameField: string; + + /** ResourceDescriptor history. */ + public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); + + /** ResourceDescriptor plural. */ + public plural: string; + + /** ResourceDescriptor singular. */ + public singular: string; + + /** ResourceDescriptor style. */ + public style: google.api.ResourceDescriptor.Style[]; /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. + * Creates a new ResourceDescriptor instance using the specified properties. * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance + * @returns ResourceDescriptor instance */ - public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * Decodes a ResourceDescriptor message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumValueDescriptorProto + * @returns ResourceDescriptor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumValueDescriptorProto + * @returns ResourceDescriptor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor; /** - * Verifies an EnumValueDescriptorProto message. + * Verifies a ResourceDescriptor message. * @param message Plain 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumValueDescriptorProto + * @returns ResourceDescriptor */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @param message EnumValueDescriptorProto + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @param message ResourceDescriptor * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueDescriptorProto to JSON. + * Converts this ResourceDescriptor to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnumValueDescriptorProto + * Gets the default type url for ResourceDescriptor * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { + namespace ResourceDescriptor { - /** ServiceDescriptorProto name */ - name?: (string|null); + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); + /** Style enum. */ + enum Style { + STYLE_UNSPECIFIED = 0, + DECLARATIVE_FRIENDLY = 1 + } + } - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); + /** Properties of a ResourceReference. */ + interface IResourceReference { + + /** ResourceReference type */ + type?: (string|null); + + /** ResourceReference childType */ + childType?: (string|null); } - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { + /** Represents a ResourceReference. */ + class ResourceReference implements IResourceReference { /** - * Constructs a new ServiceDescriptorProto. + * Constructs a new ResourceReference. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); - - /** ServiceDescriptorProto name. */ - public name: string; + constructor(properties?: google.api.IResourceReference); - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; + /** ResourceReference type. */ + public type: string; - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); + /** ResourceReference childType. */ + public childType: string; /** - * Creates a new ServiceDescriptorProto instance using the specified properties. + * Creates a new ResourceReference instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance + * @returns ResourceReference instance */ - public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * Decodes a ResourceReference message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceDescriptorProto + * @returns ResourceReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceDescriptorProto + * @returns ResourceReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference; /** - * Verifies a ServiceDescriptorProto message. + * Verifies a ResourceReference message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceDescriptorProto + * @returns ResourceReference */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @param message ServiceDescriptorProto + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @param message ResourceReference * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this ResourceReference to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceDescriptorProto + * Gets the default type url for ResourceReference * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { - - /** MethodDescriptorProto name */ - name?: (string|null); - - /** MethodDescriptorProto inputType */ - inputType?: (string|null); - - /** MethodDescriptorProto outputType */ - outputType?: (string|null); - - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); + /** Namespace protobuf. */ + namespace protobuf { - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: (boolean|null); + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: (boolean|null); + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); } - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { /** - * Constructs a new MethodDescriptorProto. + * Constructs a new FileDescriptorSet. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMethodDescriptorProto); - - /** MethodDescriptorProto name. */ - public name: string; - - /** MethodDescriptorProto inputType. */ - public inputType: string; - - /** MethodDescriptorProto outputType. */ - public outputType: string; - - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); - - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; + constructor(properties?: google.protobuf.IFileDescriptorSet); - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; /** - * Creates a new MethodDescriptorProto instance using the specified properties. + * Creates a new FileDescriptorSet instance using the specified properties. * @param [properties] Properties to set - * @returns MethodDescriptorProto instance + * @returns FileDescriptorSet instance */ - public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * Decodes a FileDescriptorSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MethodDescriptorProto + * @returns FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MethodDescriptorProto + * @returns FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; /** - * Verifies a MethodDescriptorProto message. + * Verifies a FileDescriptorSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MethodDescriptorProto + * @returns FileDescriptorSet */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @param message MethodDescriptorProto + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MethodDescriptorProto to JSON. + * Converts this FileDescriptorSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MethodDescriptorProto + * Gets the default type url for FileDescriptorSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FileOptions. */ - interface IFileOptions { - - /** FileOptions javaPackage */ - javaPackage?: (string|null); - - /** FileOptions javaOuterClassname */ - javaOuterClassname?: (string|null); - - /** FileOptions javaMultipleFiles */ - javaMultipleFiles?: (boolean|null); - - /** FileOptions javaGenerateEqualsAndHash */ - javaGenerateEqualsAndHash?: (boolean|null); - - /** FileOptions javaStringCheckUtf8 */ - javaStringCheckUtf8?: (boolean|null); - - /** FileOptions optimizeFor */ - optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); - - /** FileOptions goPackage */ - goPackage?: (string|null); - - /** FileOptions ccGenericServices */ - ccGenericServices?: (boolean|null); - - /** FileOptions javaGenericServices */ - javaGenericServices?: (boolean|null); + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { - /** FileOptions pyGenericServices */ - pyGenericServices?: (boolean|null); + /** FileDescriptorProto name */ + name?: (string|null); - /** FileOptions phpGenericServices */ - phpGenericServices?: (boolean|null); + /** FileDescriptorProto package */ + "package"?: (string|null); - /** FileOptions deprecated */ - deprecated?: (boolean|null); + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); - /** FileOptions ccEnableArenas */ - ccEnableArenas?: (boolean|null); + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); - /** FileOptions objcClassPrefix */ - objcClassPrefix?: (string|null); + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); - /** FileOptions csharpNamespace */ - csharpNamespace?: (string|null); + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); - /** FileOptions swiftPrefix */ - swiftPrefix?: (string|null); + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - /** FileOptions phpClassPrefix */ - phpClassPrefix?: (string|null); + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); - /** FileOptions phpNamespace */ - phpNamespace?: (string|null); + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); - /** FileOptions phpMetadataNamespace */ - phpMetadataNamespace?: (string|null); + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); - /** FileOptions rubyPackage */ - rubyPackage?: (string|null); + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - /** FileOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** FileDescriptorProto syntax */ + syntax?: (string|null); - /** FileOptions .google.api.resourceDefinition */ - ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); + /** FileDescriptorProto edition */ + edition?: (string|null); } - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { /** - * Constructs a new FileOptions. + * Constructs a new FileDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileOptions); - - /** FileOptions javaPackage. */ - public javaPackage: string; - - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; - - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; - - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; - - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; - - /** FileOptions optimizeFor. */ - public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); - - /** FileOptions goPackage. */ - public goPackage: string; - - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; - - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; + constructor(properties?: google.protobuf.IFileDescriptorProto); - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; + /** FileDescriptorProto name. */ + public name: string; - /** FileOptions phpGenericServices. */ - public phpGenericServices: boolean; + /** FileDescriptorProto package. */ + public package: string; - /** FileOptions deprecated. */ - public deprecated: boolean; + /** FileDescriptorProto dependency. */ + public dependency: string[]; - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; - /** FileOptions swiftPrefix. */ - public swiftPrefix: string; + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; - /** FileOptions phpClassPrefix. */ - public phpClassPrefix: string; + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; - /** FileOptions phpNamespace. */ - public phpNamespace: string; + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; - /** FileOptions phpMetadataNamespace. */ - public phpMetadataNamespace: string; + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); - /** FileOptions rubyPackage. */ - public rubyPackage: string; + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - /** FileOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** FileDescriptorProto edition. */ + public edition: string; /** - * Creates a new FileOptions instance using the specified properties. + * Creates a new FileDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns FileOptions instance + * @returns FileDescriptorProto instance */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileOptions message from the specified reader or buffer. + * Decodes a FileDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileOptions + * @returns FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileOptions + * @returns FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; /** - * Verifies a FileOptions message. + * Verifies a FileDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileOptions + * @returns FileDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @param message FileOptions + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileOptions to JSON. + * Converts this FileDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FileOptions + * Gets the default type url for FileDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FileOptions { + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 - } - } + /** DescriptorProto name */ + name?: (string|null); - /** Properties of a MessageOptions. */ - interface IMessageOptions { + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: (boolean|null); + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: (boolean|null); + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); - /** MessageOptions deprecated */ - deprecated?: (boolean|null); + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - /** MessageOptions mapEntry */ - mapEntry?: (boolean|null); + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - /** MessageOptions deprecatedLegacyJsonFieldConflicts */ - deprecatedLegacyJsonFieldConflicts?: (boolean|null); + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); - /** MessageOptions .google.api.resource */ - ".google.api.resource"?: (google.api.IResourceDescriptor|null); + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); } - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { /** - * Constructs a new MessageOptions. + * Constructs a new DescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMessageOptions); + constructor(properties?: google.protobuf.IDescriptorProto); - /** MessageOptions messageSetWireFormat. */ - public messageSetWireFormat: boolean; + /** DescriptorProto name. */ + public name: string; - /** MessageOptions noStandardDescriptorAccessor. */ - public noStandardDescriptorAccessor: boolean; + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; - /** MessageOptions deprecated. */ - public deprecated: boolean; + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; - /** MessageOptions mapEntry. */ - public mapEntry: boolean; + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; - /** MessageOptions deprecatedLegacyJsonFieldConflicts. */ - public deprecatedLegacyJsonFieldConflicts: boolean; + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; /** - * Creates a new MessageOptions instance using the specified properties. + * Creates a new DescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns MessageOptions instance + * @returns DescriptorProto instance */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * Decodes a DescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MessageOptions + * @returns DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MessageOptions + * @returns DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); - /** - * Verifies a MessageOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; - /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @param message MessageOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this MessageOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; - /** - * Gets the default type url for MessageOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; - /** Properties of a FieldOptions. */ - interface IFieldOptions { + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; - /** FieldOptions packed */ - packed?: (boolean|null); + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FieldOptions lazy */ - lazy?: (boolean|null); + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FieldOptions unverifiedLazy */ - unverifiedLazy?: (boolean|null); + /** Properties of a ReservedRange. */ + interface IReservedRange { - /** FieldOptions deprecated */ - deprecated?: (boolean|null); + /** ReservedRange start */ + start?: (number|null); - /** FieldOptions weak */ - weak?: (boolean|null); + /** ReservedRange end */ + end?: (number|null); + } - /** FieldOptions debugRedact */ - debugRedact?: (boolean|null); + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { - /** FieldOptions retention */ - retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null); + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); - /** FieldOptions target */ - target?: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType|null); + /** ReservedRange start. */ + public start: number; - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** ReservedRange end. */ + public end: number; - /** FieldOptions .google.api.fieldBehavior */ - ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; - /** FieldOptions .google.api.resourceReference */ - ".google.api.resourceReference"?: (google.api.IResourceReference|null); - } + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new FieldOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldOptions); + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; - /** FieldOptions ctype. */ - public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; - /** FieldOptions packed. */ - public packed: boolean; + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FieldOptions jstype. */ - public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; - /** FieldOptions lazy. */ - public lazy: boolean; + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FieldOptions unverifiedLazy. */ - public unverifiedLazy: boolean; + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FieldOptions deprecated. */ - public deprecated: boolean; + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** FieldOptions weak. */ - public weak: boolean; + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { - /** FieldOptions debugRedact. */ - public debugRedact: boolean; + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** FieldOptions retention. */ - public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention); + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { - /** FieldOptions target. */ - public target: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType); + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); - /** FieldOptions uninterpretedOption. */ + /** ExtensionRangeOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new FieldOptions instance using the specified properties. + * Creates a new ExtensionRangeOptions instance using the specified properties. * @param [properties] Properties to set - * @returns FieldOptions instance + * @returns ExtensionRangeOptions instance */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FieldOptions + * @returns ExtensionRangeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldOptions + * @returns ExtensionRangeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; /** - * Verifies a FieldOptions message. + * Verifies an ExtensionRangeOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldOptions + * @returns ExtensionRangeOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @param message FieldOptions + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldOptions to JSON. + * Converts this ExtensionRangeOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FieldOptions + * Gets the default type url for ExtensionRangeOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FieldOptions { + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 - } + /** FieldDescriptorProto name */ + name?: (string|null); - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 - } + /** FieldDescriptorProto number */ + number?: (number|null); - /** OptionRetention enum. */ - enum OptionRetention { - RETENTION_UNKNOWN = 0, - RETENTION_RUNTIME = 1, - RETENTION_SOURCE = 2 - } + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); - /** OptionTargetType enum. */ - enum OptionTargetType { - TARGET_TYPE_UNKNOWN = 0, - TARGET_TYPE_FILE = 1, - TARGET_TYPE_EXTENSION_RANGE = 2, - TARGET_TYPE_MESSAGE = 3, - TARGET_TYPE_FIELD = 4, - TARGET_TYPE_ONEOF = 5, - TARGET_TYPE_ENUM = 6, - TARGET_TYPE_ENUM_ENTRY = 7, - TARGET_TYPE_SERVICE = 8, - TARGET_TYPE_METHOD = 9 - } - } + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); - /** Properties of an OneofOptions. */ - interface IOneofOptions { + /** FieldDescriptorProto typeName */ + typeName?: (string|null); - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); } - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { /** - * Constructs a new OneofOptions. + * Constructs a new FieldDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofOptions); + constructor(properties?: google.protobuf.IFieldDescriptorProto); - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); + + /** FieldDescriptorProto type. */ + public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; /** - * Creates a new OneofOptions instance using the specified properties. + * Creates a new FieldDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns OneofOptions instance + * @returns FieldDescriptorProto instance */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OneofOptions + * @returns FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OneofOptions + * @returns FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; /** - * Verifies an OneofOptions message. + * Verifies a FieldDescriptorProto message. * @param message Plain 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 OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofOptions + * @returns FieldDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @param message OneofOptions + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofOptions to JSON. + * Converts this FieldDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OneofOptions + * Gets the default type url for FieldDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnumOptions. */ - interface IEnumOptions { + namespace FieldDescriptorProto { - /** EnumOptions allowAlias */ - allowAlias?: (boolean|null); + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } - /** EnumOptions deprecated */ - deprecated?: (boolean|null); + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } - /** EnumOptions deprecatedLegacyJsonFieldConflicts */ - deprecatedLegacyJsonFieldConflicts?: (boolean|null); + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); } - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { /** - * Constructs a new EnumOptions. + * Constructs a new OneofDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumOptions); - - /** EnumOptions allowAlias. */ - public allowAlias: boolean; - - /** EnumOptions deprecated. */ - public deprecated: boolean; + constructor(properties?: google.protobuf.IOneofDescriptorProto); - /** EnumOptions deprecatedLegacyJsonFieldConflicts. */ - public deprecatedLegacyJsonFieldConflicts: boolean; + /** OneofDescriptorProto name. */ + public name: string; - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); /** - * Creates a new EnumOptions instance using the specified properties. + * Creates a new OneofDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns EnumOptions instance + * @returns OneofDescriptorProto instance */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * Decodes an OneofDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumOptions + * @returns OneofDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumOptions + * @returns OneofDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; /** - * Verifies an EnumOptions message. + * Verifies an OneofDescriptorProto message. * @param message Plain 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 EnumOptions message from a plain object. Also converts values to their respective internal types. + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumOptions + * @returns OneofDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @param message EnumOptions + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumOptions to JSON. + * Converts this OneofDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnumOptions + * Gets the default type url for OneofDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); + /** EnumDescriptorProto name */ + name?: (string|null); - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); } - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { /** - * Constructs a new EnumValueOptions. + * Constructs a new EnumDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueOptions); + constructor(properties?: google.protobuf.IEnumDescriptorProto); - /** EnumValueOptions deprecated. */ - public deprecated: boolean; + /** EnumDescriptorProto name. */ + public name: string; - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; /** - * Creates a new EnumValueOptions instance using the specified properties. + * Creates a new EnumDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns EnumValueOptions instance + * @returns EnumDescriptorProto instance */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumValueOptions + * @returns EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumValueOptions + * @returns EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; /** - * Verifies an EnumValueOptions message. + * Verifies an EnumDescriptorProto message. * @param message Plain 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 EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumValueOptions + * @returns EnumDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @param message EnumValueOptions + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueOptions to JSON. + * Converts this EnumDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for EnumValueOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for EnumDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EnumDescriptorProto { + + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { + + /** EnumReservedRange start */ + start?: (number|null); + + /** EnumReservedRange end */ + end?: (number|null); + } + + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { + + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + + /** EnumReservedRange start. */ + public start: number; + + /** EnumReservedRange end. */ + public end: number; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Verifies an EnumReservedRange message. + * @param message Plain 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 EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a ServiceOptions. */ - interface IServiceOptions { + /** + * Gets the default type url for EnumReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** EnumValueDescriptorProto name */ + name?: (string|null); - /** ServiceOptions .google.api.defaultHost */ - ".google.api.defaultHost"?: (string|null); + /** EnumValueDescriptorProto number */ + number?: (number|null); - /** ServiceOptions .google.api.oauthScopes */ - ".google.api.oauthScopes"?: (string|null); + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); } - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { /** - * Constructs a new ServiceOptions. + * Constructs a new EnumValueDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceOptions); + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - /** ServiceOptions deprecated. */ - public deprecated: boolean; + /** EnumValueDescriptorProto name. */ + public name: string; - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); /** - * Creates a new ServiceOptions instance using the specified properties. + * Creates a new EnumValueDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceOptions instance + * @returns EnumValueDescriptorProto instance */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceOptions + * @returns EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceOptions + * @returns EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; /** - * Verifies a ServiceOptions message. + * Verifies an EnumValueDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceOptions + * @returns EnumValueDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @param message ServiceOptions + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceOptions to JSON. + * Converts this EnumValueDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceOptions + * Gets the default type url for EnumValueDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MethodOptions. */ - interface IMethodOptions { - - /** MethodOptions deprecated */ - deprecated?: (boolean|null); - - /** MethodOptions idempotencyLevel */ - idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); - - /** MethodOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { - /** MethodOptions .google.api.http */ - ".google.api.http"?: (google.api.IHttpRule|null); + /** ServiceDescriptorProto name */ + name?: (string|null); - /** MethodOptions .google.api.methodSignature */ - ".google.api.methodSignature"?: (string[]|null); + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); - /** MethodOptions .google.longrunning.operationInfo */ - ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null); + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); } - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { /** - * Constructs a new MethodOptions. + * Constructs a new ServiceDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMethodOptions); + constructor(properties?: google.protobuf.IServiceDescriptorProto); - /** MethodOptions deprecated. */ - public deprecated: boolean; + /** ServiceDescriptorProto name. */ + public name: string; - /** MethodOptions idempotencyLevel. */ - public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); /** - * Creates a new MethodOptions instance using the specified properties. + * Creates a new ServiceDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns MethodOptions instance + * @returns ServiceDescriptorProto instance */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodOptions message from the specified reader or buffer. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MethodOptions + * @returns ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MethodOptions + * @returns ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; /** - * Verifies a MethodOptions message. + * Verifies a ServiceDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MethodOptions + * @returns ServiceDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @param message MethodOptions + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MethodOptions to JSON. + * Converts this ServiceDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MethodOptions + * Gets the default type url for ServiceDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MethodOptions { - - /** IdempotencyLevel enum. */ - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - NO_SIDE_EFFECTS = 1, - IDEMPOTENT = 2 - } - } - - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { - - /** UninterpretedOption name */ - name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { - /** UninterpretedOption identifierValue */ - identifierValue?: (string|null); + /** MethodDescriptorProto name */ + name?: (string|null); - /** UninterpretedOption positiveIntValue */ - positiveIntValue?: (number|Long|string|null); + /** MethodDescriptorProto inputType */ + inputType?: (string|null); - /** UninterpretedOption negativeIntValue */ - negativeIntValue?: (number|Long|string|null); + /** MethodDescriptorProto outputType */ + outputType?: (string|null); - /** UninterpretedOption doubleValue */ - doubleValue?: (number|null); + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); - /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|string|null); + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); - /** UninterpretedOption aggregateValue */ - aggregateValue?: (string|null); + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); } - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { /** - * Constructs a new UninterpretedOption. + * Constructs a new MethodDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IUninterpretedOption); - - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; + constructor(properties?: google.protobuf.IMethodDescriptorProto); - /** UninterpretedOption identifierValue. */ - public identifierValue: string; + /** MethodDescriptorProto name. */ + public name: string; - /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: (number|Long|string); + /** MethodDescriptorProto inputType. */ + public inputType: string; - /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: (number|Long|string); + /** MethodDescriptorProto outputType. */ + public outputType: string; - /** UninterpretedOption doubleValue. */ - public doubleValue: number; + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); - /** UninterpretedOption stringValue. */ - public stringValue: (Uint8Array|string); + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; /** - * Creates a new UninterpretedOption instance using the specified properties. + * Creates a new MethodDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns UninterpretedOption instance + * @returns MethodDescriptorProto instance */ - public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UninterpretedOption + * @returns MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UninterpretedOption + * @returns MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; /** - * Verifies an UninterpretedOption message. + * Verifies a MethodDescriptorProto message. * @param message Plain 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 UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UninterpretedOption + * @returns MethodDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @param message UninterpretedOption + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UninterpretedOption to JSON. + * Converts this MethodDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UninterpretedOption + * Gets the default type url for MethodDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace UninterpretedOption { + /** Properties of a FileOptions. */ + interface IFileOptions { - /** Properties of a NamePart. */ - interface INamePart { + /** FileOptions javaPackage */ + javaPackage?: (string|null); - /** NamePart namePart */ - namePart: string; + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); - /** NamePart isExtension */ - isExtension: boolean; - } + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); - /** Represents a NamePart. */ - class NamePart implements INamePart { + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); - /** - * Constructs a new NamePart. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); - /** NamePart namePart. */ - public namePart: string; + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); - /** NamePart isExtension. */ - public isExtension: boolean; + /** FileOptions goPackage */ + goPackage?: (string|null); - /** - * Creates a new NamePart instance using the specified properties. - * @param [properties] Properties to set - * @returns NamePart instance - */ - public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; + /** FileOptions deprecated */ + deprecated?: (boolean|null); - /** - * Verifies a NamePart message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NamePart - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @param message NamePart - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); - /** - * Converts this NamePart to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); - /** - * Gets the default type url for NamePart - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FileOptions .google.api.resourceDefinition */ + ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); } - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); - } + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { + /** FileOptions phpNamespace. */ + public phpNamespace: string; - /** - * Constructs a new SourceCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ISourceCodeInfo); + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new SourceCodeInfo instance using the specified properties. + * Creates a new FileOptions instance using the specified properties. * @param [properties] Properties to set - * @returns SourceCodeInfo instance + * @returns FileOptions instance */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SourceCodeInfo + * @returns FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceCodeInfo + * @returns FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; /** - * Verifies a SourceCodeInfo message. + * Verifies a FileOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceCodeInfo + * @returns FileOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @param message SourceCodeInfo + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this FileOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SourceCodeInfo + * Gets the default type url for FileOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SourceCodeInfo { - - /** Properties of a Location. */ - interface ILocation { - - /** Location path */ - path?: (number[]|null); - - /** Location span */ - span?: (number[]|null); - - /** Location leadingComments */ - leadingComments?: (string|null); - - /** Location trailingComments */ - trailingComments?: (string|null); + namespace FileOptions { - /** Location leadingDetachedComments */ - leadingDetachedComments?: (string[]|null); + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 } + } - /** Represents a Location. */ - class Location implements ILocation { - - /** - * Constructs a new Location. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); - - /** Location path. */ - public path: number[]; - - /** Location span. */ - public span: number[]; - - /** Location leadingComments. */ - public leadingComments: string; - - /** Location trailingComments. */ - public trailingComments: string; - - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; + /** Properties of a MessageOptions. */ + interface IMessageOptions { - /** - * Creates a new Location instance using the specified properties. - * @param [properties] Properties to set - * @returns Location instance - */ - public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** MessageOptions deprecated */ + deprecated?: (boolean|null); - /** - * Decodes a Location message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + /** MessageOptions deprecatedLegacyJsonFieldConflicts */ + deprecatedLegacyJsonFieldConflicts?: (boolean|null); - /** - * Verifies a Location message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Location - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + /** MessageOptions .google.api.resource */ + ".google.api.resource"?: (google.api.IResourceDescriptor|null); + } - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @param message Location - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { - /** - * Converts this Location to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); - /** - * Gets the default type url for Location - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); - } + /** MessageOptions deprecated. */ + public deprecated: boolean; - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { + /** MessageOptions mapEntry. */ + public mapEntry: boolean; - /** - * Constructs a new GeneratedCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); + /** MessageOptions deprecatedLegacyJsonFieldConflicts. */ + public deprecatedLegacyJsonFieldConflicts: boolean; - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new GeneratedCodeInfo instance using the specified properties. + * Creates a new MessageOptions instance using the specified properties. * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance + * @returns MessageOptions instance */ - public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GeneratedCodeInfo + * @returns MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GeneratedCodeInfo + * @returns MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; /** - * Verifies a GeneratedCodeInfo message. + * Verifies a MessageOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GeneratedCodeInfo + * @returns MessageOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. - * @param message GeneratedCodeInfo + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this MessageOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GeneratedCodeInfo + * Gets the default type url for MessageOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace GeneratedCodeInfo { - - /** Properties of an Annotation. */ - interface IAnnotation { - - /** Annotation path */ - path?: (number[]|null); - - /** Annotation sourceFile */ - sourceFile?: (string|null); - - /** Annotation begin */ - begin?: (number|null); - - /** Annotation end */ - end?: (number|null); - - /** Annotation semantic */ - semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); - } + /** Properties of a FieldOptions. */ + interface IFieldOptions { - /** Represents an Annotation. */ - class Annotation implements IAnnotation { + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); - /** - * Constructs a new Annotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + /** FieldOptions packed */ + packed?: (boolean|null); - /** Annotation path. */ - public path: number[]; + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); - /** Annotation sourceFile. */ - public sourceFile: string; + /** FieldOptions lazy */ + lazy?: (boolean|null); - /** Annotation begin. */ - public begin: number; + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); - /** Annotation end. */ - public end: number; + /** FieldOptions deprecated */ + deprecated?: (boolean|null); - /** Annotation semantic. */ - public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); + /** FieldOptions weak */ + weak?: (boolean|null); - /** - * Creates a new Annotation instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotation instance - */ - public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + /** FieldOptions debugRedact */ + debugRedact?: (boolean|null); - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldOptions retention */ + retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null); - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldOptions target */ + target?: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType|null); - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); - /** - * Verifies an Annotation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** FieldOptions .google.api.resourceReference */ + ".google.api.resourceReference"?: (google.api.IResourceReference|null); + } - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Annotation - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @param message Annotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); - /** - * Converts this Annotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FieldOptions ctype. */ + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); - /** - * Gets the default type url for Annotation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FieldOptions packed. */ + public packed: boolean; - namespace Annotation { + /** FieldOptions jstype. */ + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); - /** Semantic enum. */ - enum Semantic { - NONE = 0, - SET = 1, - ALIAS = 2 - } - } - } + /** FieldOptions lazy. */ + public lazy: boolean; - /** Properties of a Duration. */ - interface IDuration { + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; - /** Duration seconds */ - seconds?: (number|Long|string|null); + /** FieldOptions deprecated. */ + public deprecated: boolean; - /** Duration nanos */ - nanos?: (number|null); - } + /** FieldOptions weak. */ + public weak: boolean; - /** Represents a Duration. */ - class Duration implements IDuration { + /** FieldOptions debugRedact. */ + public debugRedact: boolean; - /** - * Constructs a new Duration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDuration); + /** FieldOptions retention. */ + public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention); - /** Duration seconds. */ - public seconds: (number|Long|string); + /** FieldOptions target. */ + public target: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType); - /** Duration nanos. */ - public nanos: number; + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new Duration instance using the specified properties. + * Creates a new FieldOptions instance using the specified properties. * @param [properties] Properties to set - * @returns Duration instance + * @returns FieldOptions instance */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a FieldOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Duration + * @returns FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Duration + * @returns FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; /** - * Verifies a Duration message. + * Verifies a FieldOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Duration + * @returns FieldOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Duration to JSON. + * Converts this FieldOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Duration + * Gets the default type url for FieldOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Timestamp. */ - interface ITimestamp { + namespace FieldOptions { - /** Timestamp seconds */ - seconds?: (number|Long|string|null); + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } - /** Timestamp nanos */ - nanos?: (number|null); + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + + /** OptionRetention enum. */ + enum OptionRetention { + RETENTION_UNKNOWN = 0, + RETENTION_RUNTIME = 1, + RETENTION_SOURCE = 2 + } + + /** OptionTargetType enum. */ + enum OptionTargetType { + TARGET_TYPE_UNKNOWN = 0, + TARGET_TYPE_FILE = 1, + TARGET_TYPE_EXTENSION_RANGE = 2, + TARGET_TYPE_MESSAGE = 3, + TARGET_TYPE_FIELD = 4, + TARGET_TYPE_ONEOF = 5, + TARGET_TYPE_ENUM = 6, + TARGET_TYPE_ENUM_ENTRY = 7, + TARGET_TYPE_SERVICE = 8, + TARGET_TYPE_METHOD = 9 + } } - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { /** - * Constructs a new Timestamp. + * Constructs a new OneofOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ITimestamp); - - /** Timestamp seconds. */ - public seconds: (number|Long|string); + constructor(properties?: google.protobuf.IOneofOptions); - /** Timestamp nanos. */ - public nanos: number; + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new Timestamp instance using the specified properties. + * Creates a new OneofOptions instance using the specified properties. * @param [properties] Properties to set - * @returns Timestamp instance + * @returns OneofOptions instance */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes an OneofOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Timestamp + * @returns OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Timestamp + * @returns OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; /** - * Verifies a Timestamp message. + * Verifies an OneofOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Timestamp + * @returns OneofOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @param message Timestamp + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Timestamp to JSON. + * Converts this OneofOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Timestamp + * Gets the default type url for OneofOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Any. */ - interface IAny { + /** Properties of an EnumOptions. */ + interface IEnumOptions { - /** Any type_url */ - type_url?: (string|null); + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); - /** Any value */ - value?: (Uint8Array|string|null); + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions deprecatedLegacyJsonFieldConflicts */ + deprecatedLegacyJsonFieldConflicts?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents an Any. */ - class Any implements IAny { + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { /** - * Constructs a new Any. + * Constructs a new EnumOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IAny); + constructor(properties?: google.protobuf.IEnumOptions); - /** Any type_url. */ - public type_url: string; + /** EnumOptions allowAlias. */ + public allowAlias: boolean; - /** Any value. */ - public value: (Uint8Array|string); + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions deprecatedLegacyJsonFieldConflicts. */ + public deprecatedLegacyJsonFieldConflicts: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new Any instance using the specified properties. + * Creates a new EnumOptions instance using the specified properties. * @param [properties] Properties to set - * @returns Any instance + * @returns EnumOptions instance */ - public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes an EnumOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Any + * @returns EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Any + * @returns EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; /** - * Verifies an Any message. + * Verifies an EnumOptions message. * @param message Plain 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 Any message from a plain object. Also converts values to their respective internal types. + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Any + * @returns EnumOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. - * @param message Any + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Any to JSON. + * Converts this EnumOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Any + * Gets the default type url for EnumOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Empty. */ - interface IEmpty { + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents an Empty. */ - class Empty implements IEmpty { + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { /** - * Constructs a new Empty. + * Constructs a new EnumValueOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEmpty); + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new Empty instance using the specified properties. + * Creates a new EnumValueOptions instance using the specified properties. * @param [properties] Properties to set - * @returns Empty instance + * @returns EnumValueOptions instance */ - public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; /** - * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Empty message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Empty + * @returns EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; /** - * Decodes an Empty message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Empty + * @returns EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; /** - * Verifies an Empty message. + * Verifies an EnumValueOptions message. * @param message Plain 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 Empty message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Empty + * @returns EnumValueOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. - * @param message Empty + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Empty to JSON. + * Converts this EnumValueOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Empty + * Gets the default type url for EnumValueOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FieldMask. */ - interface IFieldMask { + /** Properties of a ServiceOptions. */ + interface IServiceOptions { - /** FieldMask paths */ - paths?: (string[]|null); + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); } - /** Represents a FieldMask. */ - class FieldMask implements IFieldMask { + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { /** - * Constructs a new FieldMask. + * Constructs a new ServiceOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFieldMask); + constructor(properties?: google.protobuf.IServiceOptions); - /** FieldMask paths. */ - public paths: string[]; + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new FieldMask instance using the specified properties. + * Creates a new ServiceOptions instance using the specified properties. * @param [properties] Properties to set - * @returns FieldMask instance + * @returns ServiceOptions instance */ - public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldMask message from the specified reader or buffer. + * Decodes a ServiceOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FieldMask + * @returns ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldMask + * @returns ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; /** - * Verifies a FieldMask message. + * Verifies a ServiceOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldMask + * @returns ServiceOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @param message FieldMask + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldMask to JSON. + * Converts this ServiceOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FieldMask + * Gets the default type url for ServiceOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Namespace longrunning. */ - namespace longrunning { + /** Properties of a MethodOptions. */ + interface IMethodOptions { - /** Represents an Operations */ - class Operations extends $protobuf.rpc.Service { + /** MethodOptions deprecated */ + deprecated?: (boolean|null); - /** - * Constructs a new Operations 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); + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); - /** - * Creates new Operations 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): Operations; + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Calls ListOperations. - * @param request ListOperationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListOperationsResponse - */ - public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void; + /** MethodOptions .google.longrunning.operationInfo */ + ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null); - /** - * Calls ListOperations. - * @param request ListOperationsRequest message or plain object - * @returns Promise - */ - public listOperations(request: google.longrunning.IListOperationsRequest): Promise; + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); - /** - * Calls GetOperation. - * @param request GetOperationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void; + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { /** - * Calls GetOperation. - * @param request GetOperationRequest message or plain object - * @returns Promise + * Constructs a new MethodOptions. + * @param [properties] Properties to set */ - public getOperation(request: google.longrunning.IGetOperationRequest): Promise; + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Calls DeleteOperation. - * @param request DeleteOperationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance */ - public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void; + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; /** - * Calls DeleteOperation. - * @param request DeleteOperationRequest message or plain object - * @returns Promise + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise; + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelOperation. - * @param request CancelOperationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void; + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelOperation. - * @param request CancelOperationRequest message or plain object - * @returns Promise + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; /** - * Calls WaitOperation. - * @param request WaitOperationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; /** - * Calls WaitOperation. - * @param request WaitOperationRequest message or plain object - * @returns Promise + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise; - } - - namespace Operations { + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.longrunning.Operations|listOperations}. - * @param error Error, if any - * @param [response] ListOperationsResponse + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions */ - type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; /** - * Callback as used by {@link google.longrunning.Operations|getOperation}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object */ - type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.longrunning.Operations|deleteOperation}. - * @param error Error, if any - * @param [response] Empty + * Converts this MethodOptions to JSON. + * @returns JSON object */ - type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.longrunning.Operations|cancelOperation}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.longrunning.Operations|waitOperation}. - * @param error Error, if any - * @param [response] Operation - */ - type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + namespace MethodOptions { + + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } } - /** Properties of an Operation. */ - interface IOperation { + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { - /** Operation name */ - name?: (string|null); + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - /** Operation metadata */ - metadata?: (google.protobuf.IAny|null); + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); - /** Operation done */ - done?: (boolean|null); + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|string|null); - /** Operation error */ - error?: (google.rpc.IStatus|null); + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|string|null); - /** Operation response */ - response?: (google.protobuf.IAny|null); + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|string|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); } - /** Represents an Operation. */ - class Operation implements IOperation { + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { /** - * Constructs a new Operation. + * Constructs a new UninterpretedOption. * @param [properties] Properties to set */ - constructor(properties?: google.longrunning.IOperation); + constructor(properties?: google.protobuf.IUninterpretedOption); - /** Operation name. */ - public name: string; + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; - /** Operation metadata. */ - public metadata?: (google.protobuf.IAny|null); + /** UninterpretedOption identifierValue. */ + public identifierValue: string; - /** Operation done. */ - public done: boolean; + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long|string); - /** Operation error. */ - public error?: (google.rpc.IStatus|null); + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long|string); - /** Operation response. */ - public response?: (google.protobuf.IAny|null); + /** UninterpretedOption doubleValue. */ + public doubleValue: number; - /** Operation result. */ - public result?: ("error"|"response"); + /** UninterpretedOption stringValue. */ + public stringValue: (Uint8Array|string); + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; /** - * Creates a new Operation instance using the specified properties. + * Creates a new UninterpretedOption instance using the specified properties. * @param [properties] Properties to set - * @returns Operation instance + * @returns UninterpretedOption instance */ - public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation; + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; /** - * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. - * @param message Operation message or plain object to encode + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. - * @param message Operation message or plain object to encode + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Operation message from the specified reader or buffer. + * Decodes an UninterpretedOption message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Operation + * @returns UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; /** - * Decodes an Operation message from the specified reader or buffer, length delimited. + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Operation + * @returns UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; /** - * Verifies an Operation message. + * Verifies an UninterpretedOption message. * @param message Plain 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 Operation message from a plain object. Also converts values to their respective internal types. + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Operation + * @returns UninterpretedOption */ - public static fromObject(object: { [k: string]: any }): google.longrunning.Operation; + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; /** - * Creates a plain object from an Operation message. Also converts values to other types if specified. - * @param message Operation + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Operation to JSON. + * Converts this UninterpretedOption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Operation + * Gets the default type url for UninterpretedOption * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetOperationRequest. */ - interface IGetOperationRequest { + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { - /** GetOperationRequest name */ - name?: (string|null); + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); } - /** Represents a GetOperationRequest. */ - class GetOperationRequest implements IGetOperationRequest { + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { /** - * Constructs a new GetOperationRequest. + * Constructs a new SourceCodeInfo. * @param [properties] Properties to set */ - constructor(properties?: google.longrunning.IGetOperationRequest); + constructor(properties?: google.protobuf.ISourceCodeInfo); - /** GetOperationRequest name. */ - public name: string; + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; /** - * Creates a new GetOperationRequest instance using the specified properties. + * Creates a new SourceCodeInfo instance using the specified properties. * @param [properties] Properties to set - * @returns GetOperationRequest instance + * @returns SourceCodeInfo instance */ - public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest; + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; /** - * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. - * @param message GetOperationRequest message or plain object to encode + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. - * @param message GetOperationRequest message or plain object to encode + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetOperationRequest message from the specified reader or buffer. + * Decodes a SourceCodeInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetOperationRequest + * @returns SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; /** - * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetOperationRequest + * @returns SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; /** - * Verifies a GetOperationRequest message. + * Verifies a SourceCodeInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetOperationRequest + * @returns SourceCodeInfo */ - public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest; + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; /** - * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. - * @param message GetOperationRequest + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetOperationRequest to JSON. + * Converts this SourceCodeInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetOperationRequest + * Gets the default type url for SourceCodeInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListOperationsRequest. */ - interface IListOperationsRequest { + namespace SourceCodeInfo { - /** ListOperationsRequest name */ - name?: (string|null); + /** Properties of a Location. */ + interface ILocation { - /** ListOperationsRequest filter */ - filter?: (string|null); + /** Location path */ + path?: (number[]|null); - /** ListOperationsRequest pageSize */ - pageSize?: (number|null); + /** Location span */ + span?: (number[]|null); - /** ListOperationsRequest pageToken */ - pageToken?: (string|null); + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ListOperationsRequest. */ - class ListOperationsRequest implements IListOperationsRequest { + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { /** - * Constructs a new ListOperationsRequest. + * Constructs a new GeneratedCodeInfo. * @param [properties] Properties to set */ - constructor(properties?: google.longrunning.IListOperationsRequest); - - /** ListOperationsRequest name. */ - public name: string; - - /** ListOperationsRequest filter. */ - public filter: string; - - /** ListOperationsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.protobuf.IGeneratedCodeInfo); - /** ListOperationsRequest pageToken. */ - public pageToken: string; + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; /** - * Creates a new ListOperationsRequest instance using the specified properties. + * Creates a new GeneratedCodeInfo instance using the specified properties. * @param [properties] Properties to set - * @returns ListOperationsRequest instance + * @returns GeneratedCodeInfo instance */ - public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest; + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; /** - * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. - * @param message ListOperationsRequest message or plain object to encode + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. - * @param message ListOperationsRequest message or plain object to encode + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListOperationsRequest + * @returns GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListOperationsRequest + * @returns GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; /** - * Verifies a ListOperationsRequest message. + * Verifies a GeneratedCodeInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListOperationsRequest + * @returns GeneratedCodeInfo */ - public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest; + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; /** - * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. - * @param message ListOperationsRequest + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListOperationsRequest to JSON. + * Converts this GeneratedCodeInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListOperationsRequest + * Gets the default type url for GeneratedCodeInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListOperationsResponse. */ - interface IListOperationsResponse { + namespace GeneratedCodeInfo { - /** ListOperationsResponse operations */ - operations?: (google.longrunning.IOperation[]|null); + /** Properties of an Annotation. */ + interface IAnnotation { - /** ListOperationsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** Annotation semantic. */ + public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain 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 Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Annotation { + + /** Semantic enum. */ + enum Semantic { + NONE = 0, + SET = 1, + ALIAS = 2 + } + } } - /** Represents a ListOperationsResponse. */ - class ListOperationsResponse implements IListOperationsResponse { + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (number|Long|string|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { /** - * Constructs a new ListOperationsResponse. + * Constructs a new Duration. * @param [properties] Properties to set */ - constructor(properties?: google.longrunning.IListOperationsResponse); + constructor(properties?: google.protobuf.IDuration); - /** ListOperationsResponse operations. */ - public operations: google.longrunning.IOperation[]; + /** Duration seconds. */ + public seconds: (number|Long|string); - /** ListOperationsResponse nextPageToken. */ - public nextPageToken: string; + /** Duration nanos. */ + public nanos: number; /** - * Creates a new ListOperationsResponse instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @param [properties] Properties to set - * @returns ListOperationsResponse instance + * @returns Duration instance */ - public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse; + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; /** - * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. - * @param message ListOperationsResponse message or plain object to encode + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. - * @param message ListOperationsResponse message or plain object to encode + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListOperationsResponse + * @returns Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListOperationsResponse + * @returns Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; /** - * Verifies a ListOperationsResponse message. + * Verifies a Duration message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListOperationsResponse + * @returns Duration */ - public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse; + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; /** - * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. - * @param message ListOperationsResponse + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListOperationsResponse to JSON. + * Converts this Duration to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListOperationsResponse + * Gets the default type url for Duration * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelOperationRequest. */ - interface ICancelOperationRequest { + /** Properties of an Any. */ + interface IAny { - /** CancelOperationRequest name */ - name?: (string|null); + /** Any type_url */ + type_url?: (string|null); + + /** Any value */ + value?: (Uint8Array|string|null); } - /** Represents a CancelOperationRequest. */ - class CancelOperationRequest implements ICancelOperationRequest { + /** Represents an Any. */ + class Any implements IAny { /** - * Constructs a new CancelOperationRequest. + * Constructs a new Any. * @param [properties] Properties to set */ - constructor(properties?: google.longrunning.ICancelOperationRequest); + constructor(properties?: google.protobuf.IAny); - /** CancelOperationRequest name. */ - public name: string; + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: (Uint8Array|string); /** - * Creates a new CancelOperationRequest instance using the specified properties. + * Creates a new Any instance using the specified properties. * @param [properties] Properties to set - * @returns CancelOperationRequest instance + * @returns Any instance */ - public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest; + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; /** - * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. - * @param message CancelOperationRequest message or plain object to encode + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. - * @param message CancelOperationRequest message or plain object to encode + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelOperationRequest + * @returns Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelOperationRequest + * @returns Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; /** - * Verifies a CancelOperationRequest message. + * Verifies an Any message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelOperationRequest + * @returns Any */ - public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest; + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; /** - * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. - * @param message CancelOperationRequest + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelOperationRequest to JSON. + * Converts this Any to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelOperationRequest + * Gets the default type url for Any * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteOperationRequest. */ - interface IDeleteOperationRequest { - - /** DeleteOperationRequest name */ - name?: (string|null); + /** Properties of an Empty. */ + interface IEmpty { } - /** Represents a DeleteOperationRequest. */ - class DeleteOperationRequest implements IDeleteOperationRequest { + /** Represents an Empty. */ + class Empty implements IEmpty { /** - * Constructs a new DeleteOperationRequest. + * Constructs a new Empty. * @param [properties] Properties to set */ - constructor(properties?: google.longrunning.IDeleteOperationRequest); - - /** DeleteOperationRequest name. */ - public name: string; + constructor(properties?: google.protobuf.IEmpty); /** - * Creates a new DeleteOperationRequest instance using the specified properties. + * Creates a new Empty instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteOperationRequest instance + * @returns Empty instance */ - public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest; + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; /** - * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. - * @param message DeleteOperationRequest message or plain object to encode + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. - * @param message DeleteOperationRequest message or plain object to encode + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteOperationRequest message from the specified reader or buffer. + * Decodes an Empty message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteOperationRequest + * @returns Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty; /** - * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited. + * Decodes an Empty message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteOperationRequest + * @returns Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty; /** - * Verifies a DeleteOperationRequest message. + * Verifies an Empty message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteOperationRequest + * @returns Empty */ - public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest; + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; /** - * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified. - * @param message DeleteOperationRequest + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @param message Empty * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteOperationRequest to JSON. + * Converts this Empty to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteOperationRequest + * Gets the default type url for Empty * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WaitOperationRequest. */ - interface IWaitOperationRequest { + /** Properties of a Timestamp. */ + interface ITimestamp { - /** WaitOperationRequest name */ - name?: (string|null); + /** Timestamp seconds */ + seconds?: (number|Long|string|null); - /** WaitOperationRequest timeout */ - timeout?: (google.protobuf.IDuration|null); + /** Timestamp nanos */ + nanos?: (number|null); } - /** Represents a WaitOperationRequest. */ - class WaitOperationRequest implements IWaitOperationRequest { + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { /** - * Constructs a new WaitOperationRequest. + * Constructs a new Timestamp. * @param [properties] Properties to set */ - constructor(properties?: google.longrunning.IWaitOperationRequest); + constructor(properties?: google.protobuf.ITimestamp); - /** WaitOperationRequest name. */ - public name: string; + /** Timestamp seconds. */ + public seconds: (number|Long|string); - /** WaitOperationRequest timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** Timestamp nanos. */ + public nanos: number; /** - * Creates a new WaitOperationRequest instance using the specified properties. + * Creates a new Timestamp instance using the specified properties. * @param [properties] Properties to set - * @returns WaitOperationRequest instance + * @returns Timestamp instance */ - public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest; + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; /** - * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. - * @param message WaitOperationRequest message or plain object to encode + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. - * @param message WaitOperationRequest message or plain object to encode + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WaitOperationRequest message from the specified reader or buffer. + * Decodes a Timestamp message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WaitOperationRequest + * @returns Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; /** - * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WaitOperationRequest + * @returns Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp; /** - * Verifies a WaitOperationRequest message. + * Verifies a Timestamp message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WaitOperationRequest + * @returns Timestamp */ - public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest; + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; /** - * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified. - * @param message WaitOperationRequest + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WaitOperationRequest to JSON. + * Converts this Timestamp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WaitOperationRequest + * Gets the default type url for Timestamp * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an OperationInfo. */ - interface IOperationInfo { - - /** OperationInfo responseType */ - responseType?: (string|null); + /** Properties of a FieldMask. */ + interface IFieldMask { - /** OperationInfo metadataType */ - metadataType?: (string|null); + /** FieldMask paths */ + paths?: (string[]|null); } - /** Represents an OperationInfo. */ - class OperationInfo implements IOperationInfo { + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { /** - * Constructs a new OperationInfo. + * Constructs a new FieldMask. * @param [properties] Properties to set */ - constructor(properties?: google.longrunning.IOperationInfo); - - /** OperationInfo responseType. */ - public responseType: string; + constructor(properties?: google.protobuf.IFieldMask); - /** OperationInfo metadataType. */ - public metadataType: string; + /** FieldMask paths. */ + public paths: string[]; /** - * Creates a new OperationInfo instance using the specified properties. + * Creates a new FieldMask instance using the specified properties. * @param [properties] Properties to set - * @returns OperationInfo instance + * @returns FieldMask instance */ - public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo; + public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; /** - * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. - * @param message OperationInfo message or plain object to encode + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. - * @param message OperationInfo message or plain object to encode + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OperationInfo message from the specified reader or buffer. + * Decodes a FieldMask message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OperationInfo + * @returns FieldMask * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; /** - * Decodes an OperationInfo message from the specified reader or buffer, length delimited. + * Decodes a FieldMask message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OperationInfo + * @returns FieldMask * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; /** - * Verifies an OperationInfo message. + * Verifies a FieldMask message. * @param message Plain 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 OperationInfo message from a plain object. Also converts values to their respective internal types. + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OperationInfo + * @returns FieldMask */ - public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; /** - * Creates a plain object from an OperationInfo message. Also converts values to other types if specified. - * @param message OperationInfo + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @param message FieldMask * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OperationInfo to JSON. + * Converts this FieldMask to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OperationInfo + * Gets the default type url for FieldMask * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ diff --git a/packages/google-cloud-vmwareengine/protos/protos.js b/packages/google-cloud-vmwareengine/protos/protos.js index 8471f7b83d4..b388f5ca176 100644 --- a/packages/google-cloud-vmwareengine/protos/protos.js +++ b/packages/google-cloud-vmwareengine/protos/protos.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -462,2301 +462,2109 @@ */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listSubnets}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNodes}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ListSubnetsCallback + * @typedef ListNodesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.ListSubnetsResponse} [response] ListSubnetsResponse + * @param {google.cloud.vmwareengine.v1.ListNodesResponse} [response] ListNodesResponse */ /** - * Calls ListSubnets. - * @function listSubnets + * Calls ListNodes. + * @function listNodes * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} request ListSubnetsRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListSubnetsCallback} callback Node-style callback called with the error, if any, and ListSubnetsResponse + * @param {google.cloud.vmwareengine.v1.IListNodesRequest} request ListNodesRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListNodesCallback} callback Node-style callback called with the error, if any, and ListNodesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.listSubnets = function listSubnets(request, callback) { - return this.rpcCall(listSubnets, $root.google.cloud.vmwareengine.v1.ListSubnetsRequest, $root.google.cloud.vmwareengine.v1.ListSubnetsResponse, request, callback); - }, "name", { value: "ListSubnets" }); + Object.defineProperty(VmwareEngine.prototype.listNodes = function listNodes(request, callback) { + return this.rpcCall(listNodes, $root.google.cloud.vmwareengine.v1.ListNodesRequest, $root.google.cloud.vmwareengine.v1.ListNodesResponse, request, callback); + }, "name", { value: "ListNodes" }); /** - * Calls ListSubnets. - * @function listSubnets + * Calls ListNodes. + * @function listNodes * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} request ListSubnetsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IListNodesRequest} request ListNodesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getSubnet}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNode}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef GetSubnetCallback + * @typedef GetNodeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.Subnet} [response] Subnet + * @param {google.cloud.vmwareengine.v1.Node} [response] Node */ /** - * Calls GetSubnet. - * @function getSubnet + * Calls GetNode. + * @function getNode * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest} request GetSubnetRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetSubnetCallback} callback Node-style callback called with the error, if any, and Subnet + * @param {google.cloud.vmwareengine.v1.IGetNodeRequest} request GetNodeRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetNodeCallback} callback Node-style callback called with the error, if any, and Node * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.getSubnet = function getSubnet(request, callback) { - return this.rpcCall(getSubnet, $root.google.cloud.vmwareengine.v1.GetSubnetRequest, $root.google.cloud.vmwareengine.v1.Subnet, request, callback); - }, "name", { value: "GetSubnet" }); + Object.defineProperty(VmwareEngine.prototype.getNode = function getNode(request, callback) { + return this.rpcCall(getNode, $root.google.cloud.vmwareengine.v1.GetNodeRequest, $root.google.cloud.vmwareengine.v1.Node, request, callback); + }, "name", { value: "GetNode" }); /** - * Calls GetSubnet. - * @function getSubnet + * Calls GetNode. + * @function getNode * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest} request GetSubnetRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IGetNodeRequest} request GetNodeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateSubnet}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listExternalAddresses}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef UpdateSubnetCallback + * @typedef ListExternalAddressesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.vmwareengine.v1.ListExternalAddressesResponse} [response] ListExternalAddressesResponse */ /** - * Calls UpdateSubnet. - * @function updateSubnet + * Calls ListExternalAddresses. + * @function listExternalAddresses * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest} request UpdateSubnetRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnetCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesRequest} request ListExternalAddressesRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddressesCallback} callback Node-style callback called with the error, if any, and ListExternalAddressesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.updateSubnet = function updateSubnet(request, callback) { - return this.rpcCall(updateSubnet, $root.google.cloud.vmwareengine.v1.UpdateSubnetRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateSubnet" }); + Object.defineProperty(VmwareEngine.prototype.listExternalAddresses = function listExternalAddresses(request, callback) { + return this.rpcCall(listExternalAddresses, $root.google.cloud.vmwareengine.v1.ListExternalAddressesRequest, $root.google.cloud.vmwareengine.v1.ListExternalAddressesResponse, request, callback); + }, "name", { value: "ListExternalAddresses" }); /** - * Calls UpdateSubnet. - * @function updateSubnet + * Calls ListExternalAddresses. + * @function listExternalAddresses * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest} request UpdateSubnetRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesRequest} request ListExternalAddressesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNodeTypes}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|fetchNetworkPolicyExternalAddresses}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ListNodeTypesCallback + * @typedef FetchNetworkPolicyExternalAddressesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.ListNodeTypesResponse} [response] ListNodeTypesResponse + * @param {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse} [response] FetchNetworkPolicyExternalAddressesResponse */ /** - * Calls ListNodeTypes. - * @function listNodeTypes + * Calls FetchNetworkPolicyExternalAddresses. + * @function fetchNetworkPolicyExternalAddresses * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} request ListNodeTypesRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypesCallback} callback Node-style callback called with the error, if any, and ListNodeTypesResponse + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest} request FetchNetworkPolicyExternalAddressesRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddressesCallback} callback Node-style callback called with the error, if any, and FetchNetworkPolicyExternalAddressesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.listNodeTypes = function listNodeTypes(request, callback) { - return this.rpcCall(listNodeTypes, $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest, $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse, request, callback); - }, "name", { value: "ListNodeTypes" }); + Object.defineProperty(VmwareEngine.prototype.fetchNetworkPolicyExternalAddresses = function fetchNetworkPolicyExternalAddresses(request, callback) { + return this.rpcCall(fetchNetworkPolicyExternalAddresses, $root.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest, $root.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse, request, callback); + }, "name", { value: "FetchNetworkPolicyExternalAddresses" }); /** - * Calls ListNodeTypes. - * @function listNodeTypes + * Calls FetchNetworkPolicyExternalAddresses. + * @function fetchNetworkPolicyExternalAddresses * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} request ListNodeTypesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest} request FetchNetworkPolicyExternalAddressesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNodeType}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getExternalAddress}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef GetNodeTypeCallback + * @typedef GetExternalAddressCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.NodeType} [response] NodeType + * @param {google.cloud.vmwareengine.v1.ExternalAddress} [response] ExternalAddress */ /** - * Calls GetNodeType. - * @function getNodeType + * Calls GetExternalAddress. + * @function getExternalAddress * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} request GetNodeTypeRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetNodeTypeCallback} callback Node-style callback called with the error, if any, and NodeType + * @param {google.cloud.vmwareengine.v1.IGetExternalAddressRequest} request GetExternalAddressRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddressCallback} callback Node-style callback called with the error, if any, and ExternalAddress * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.getNodeType = function getNodeType(request, callback) { - return this.rpcCall(getNodeType, $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest, $root.google.cloud.vmwareengine.v1.NodeType, request, callback); - }, "name", { value: "GetNodeType" }); + Object.defineProperty(VmwareEngine.prototype.getExternalAddress = function getExternalAddress(request, callback) { + return this.rpcCall(getExternalAddress, $root.google.cloud.vmwareengine.v1.GetExternalAddressRequest, $root.google.cloud.vmwareengine.v1.ExternalAddress, request, callback); + }, "name", { value: "GetExternalAddress" }); /** - * Calls GetNodeType. - * @function getNodeType + * Calls GetExternalAddress. + * @function getExternalAddress * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} request GetNodeTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IGetExternalAddressRequest} request GetExternalAddressRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|showNsxCredentials}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createExternalAddress}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ShowNsxCredentialsCallback + * @typedef CreateExternalAddressCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.Credentials} [response] Credentials + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls ShowNsxCredentials. - * @function showNsxCredentials + * Calls CreateExternalAddress. + * @function createExternalAddress * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} request ShowNsxCredentialsRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentialsCallback} callback Node-style callback called with the error, if any, and Credentials + * @param {google.cloud.vmwareengine.v1.ICreateExternalAddressRequest} request CreateExternalAddressRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddressCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.showNsxCredentials = function showNsxCredentials(request, callback) { - return this.rpcCall(showNsxCredentials, $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, $root.google.cloud.vmwareengine.v1.Credentials, request, callback); - }, "name", { value: "ShowNsxCredentials" }); + Object.defineProperty(VmwareEngine.prototype.createExternalAddress = function createExternalAddress(request, callback) { + return this.rpcCall(createExternalAddress, $root.google.cloud.vmwareengine.v1.CreateExternalAddressRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateExternalAddress" }); /** - * Calls ShowNsxCredentials. - * @function showNsxCredentials + * Calls CreateExternalAddress. + * @function createExternalAddress * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} request ShowNsxCredentialsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.ICreateExternalAddressRequest} request CreateExternalAddressRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|showVcenterCredentials}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateExternalAddress}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ShowVcenterCredentialsCallback + * @typedef UpdateExternalAddressCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.Credentials} [response] Credentials + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls ShowVcenterCredentials. - * @function showVcenterCredentials + * Calls UpdateExternalAddress. + * @function updateExternalAddress * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} request ShowVcenterCredentialsRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentialsCallback} callback Node-style callback called with the error, if any, and Credentials + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest} request UpdateExternalAddressRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddressCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.showVcenterCredentials = function showVcenterCredentials(request, callback) { - return this.rpcCall(showVcenterCredentials, $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, $root.google.cloud.vmwareengine.v1.Credentials, request, callback); - }, "name", { value: "ShowVcenterCredentials" }); + Object.defineProperty(VmwareEngine.prototype.updateExternalAddress = function updateExternalAddress(request, callback) { + return this.rpcCall(updateExternalAddress, $root.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateExternalAddress" }); /** - * Calls ShowVcenterCredentials. - * @function showVcenterCredentials + * Calls UpdateExternalAddress. + * @function updateExternalAddress * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} request ShowVcenterCredentialsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest} request UpdateExternalAddressRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|resetNsxCredentials}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteExternalAddress}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ResetNsxCredentialsCallback + * @typedef DeleteExternalAddressCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls ResetNsxCredentials. - * @function resetNsxCredentials + * Calls DeleteExternalAddress. + * @function deleteExternalAddress * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} request ResetNsxCredentialsRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentialsCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest} request DeleteExternalAddressRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddressCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.resetNsxCredentials = function resetNsxCredentials(request, callback) { - return this.rpcCall(resetNsxCredentials, $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ResetNsxCredentials" }); + Object.defineProperty(VmwareEngine.prototype.deleteExternalAddress = function deleteExternalAddress(request, callback) { + return this.rpcCall(deleteExternalAddress, $root.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteExternalAddress" }); /** - * Calls ResetNsxCredentials. - * @function resetNsxCredentials + * Calls DeleteExternalAddress. + * @function deleteExternalAddress * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} request ResetNsxCredentialsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest} request DeleteExternalAddressRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|resetVcenterCredentials}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listSubnets}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ResetVcenterCredentialsCallback + * @typedef ListSubnetsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.vmwareengine.v1.ListSubnetsResponse} [response] ListSubnetsResponse */ /** - * Calls ResetVcenterCredentials. - * @function resetVcenterCredentials + * Calls ListSubnets. + * @function listSubnets * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} request ResetVcenterCredentialsRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentialsCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} request ListSubnetsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListSubnetsCallback} callback Node-style callback called with the error, if any, and ListSubnetsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.resetVcenterCredentials = function resetVcenterCredentials(request, callback) { - return this.rpcCall(resetVcenterCredentials, $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ResetVcenterCredentials" }); + Object.defineProperty(VmwareEngine.prototype.listSubnets = function listSubnets(request, callback) { + return this.rpcCall(listSubnets, $root.google.cloud.vmwareengine.v1.ListSubnetsRequest, $root.google.cloud.vmwareengine.v1.ListSubnetsResponse, request, callback); + }, "name", { value: "ListSubnets" }); /** - * Calls ResetVcenterCredentials. - * @function resetVcenterCredentials + * Calls ListSubnets. + * @function listSubnets * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} request ResetVcenterCredentialsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} request ListSubnetsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createHcxActivationKey}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getSubnet}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef CreateHcxActivationKeyCallback + * @typedef GetSubnetCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.vmwareengine.v1.Subnet} [response] Subnet */ /** - * Calls CreateHcxActivationKey. - * @function createHcxActivationKey + * Calls GetSubnet. + * @function getSubnet * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} request CreateHcxActivationKeyRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest} request GetSubnetRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetSubnetCallback} callback Node-style callback called with the error, if any, and Subnet * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.createHcxActivationKey = function createHcxActivationKey(request, callback) { - return this.rpcCall(createHcxActivationKey, $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateHcxActivationKey" }); + Object.defineProperty(VmwareEngine.prototype.getSubnet = function getSubnet(request, callback) { + return this.rpcCall(getSubnet, $root.google.cloud.vmwareengine.v1.GetSubnetRequest, $root.google.cloud.vmwareengine.v1.Subnet, request, callback); + }, "name", { value: "GetSubnet" }); /** - * Calls CreateHcxActivationKey. - * @function createHcxActivationKey + * Calls GetSubnet. + * @function getSubnet * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} request CreateHcxActivationKeyRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest} request GetSubnetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listHcxActivationKeys}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateSubnet}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ListHcxActivationKeysCallback + * @typedef UpdateSubnetCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} [response] ListHcxActivationKeysResponse + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls ListHcxActivationKeys. - * @function listHcxActivationKeys + * Calls UpdateSubnet. + * @function updateSubnet * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} request ListHcxActivationKeysRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeysCallback} callback Node-style callback called with the error, if any, and ListHcxActivationKeysResponse + * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest} request UpdateSubnetRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnetCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.listHcxActivationKeys = function listHcxActivationKeys(request, callback) { - return this.rpcCall(listHcxActivationKeys, $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse, request, callback); - }, "name", { value: "ListHcxActivationKeys" }); + Object.defineProperty(VmwareEngine.prototype.updateSubnet = function updateSubnet(request, callback) { + return this.rpcCall(updateSubnet, $root.google.cloud.vmwareengine.v1.UpdateSubnetRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateSubnet" }); /** - * Calls ListHcxActivationKeys. - * @function listHcxActivationKeys + * Calls UpdateSubnet. + * @function updateSubnet * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} request ListHcxActivationKeysRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest} request UpdateSubnetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getHcxActivationKey}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listExternalAccessRules}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef GetHcxActivationKeyCallback + * @typedef ListExternalAccessRulesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.HcxActivationKey} [response] HcxActivationKey + * @param {google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse} [response] ListExternalAccessRulesResponse */ /** - * Calls GetHcxActivationKey. - * @function getHcxActivationKey + * Calls ListExternalAccessRules. + * @function listExternalAccessRules * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} request GetHcxActivationKeyRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKeyCallback} callback Node-style callback called with the error, if any, and HcxActivationKey + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest} request ListExternalAccessRulesRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRulesCallback} callback Node-style callback called with the error, if any, and ListExternalAccessRulesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.getHcxActivationKey = function getHcxActivationKey(request, callback) { - return this.rpcCall(getHcxActivationKey, $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, $root.google.cloud.vmwareengine.v1.HcxActivationKey, request, callback); - }, "name", { value: "GetHcxActivationKey" }); + Object.defineProperty(VmwareEngine.prototype.listExternalAccessRules = function listExternalAccessRules(request, callback) { + return this.rpcCall(listExternalAccessRules, $root.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest, $root.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse, request, callback); + }, "name", { value: "ListExternalAccessRules" }); /** - * Calls GetHcxActivationKey. - * @function getHcxActivationKey + * Calls ListExternalAccessRules. + * @function listExternalAccessRules * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} request GetHcxActivationKeyRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest} request ListExternalAccessRulesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNetworkPolicy}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getExternalAccessRule}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef GetNetworkPolicyCallback + * @typedef GetExternalAccessRuleCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.NetworkPolicy} [response] NetworkPolicy + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule} [response] ExternalAccessRule */ /** - * Calls GetNetworkPolicy. - * @function getNetworkPolicy + * Calls GetExternalAccessRule. + * @function getExternalAccessRule * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} request GetNetworkPolicyRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicyCallback} callback Node-style callback called with the error, if any, and NetworkPolicy + * @param {google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest} request GetExternalAccessRuleRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRuleCallback} callback Node-style callback called with the error, if any, and ExternalAccessRule * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.getNetworkPolicy = function getNetworkPolicy(request, callback) { - return this.rpcCall(getNetworkPolicy, $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, $root.google.cloud.vmwareengine.v1.NetworkPolicy, request, callback); - }, "name", { value: "GetNetworkPolicy" }); + Object.defineProperty(VmwareEngine.prototype.getExternalAccessRule = function getExternalAccessRule(request, callback) { + return this.rpcCall(getExternalAccessRule, $root.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest, $root.google.cloud.vmwareengine.v1.ExternalAccessRule, request, callback); + }, "name", { value: "GetExternalAccessRule" }); /** - * Calls GetNetworkPolicy. - * @function getNetworkPolicy + * Calls GetExternalAccessRule. + * @function getExternalAccessRule * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} request GetNetworkPolicyRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest} request GetExternalAccessRuleRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNetworkPolicies}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createExternalAccessRule}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ListNetworkPoliciesCallback + * @typedef CreateExternalAccessRuleCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} [response] ListNetworkPoliciesResponse + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls ListNetworkPolicies. - * @function listNetworkPolicies + * Calls CreateExternalAccessRule. + * @function createExternalAccessRule * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} request ListNetworkPoliciesRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPoliciesCallback} callback Node-style callback called with the error, if any, and ListNetworkPoliciesResponse + * @param {google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest} request CreateExternalAccessRuleRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRuleCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.listNetworkPolicies = function listNetworkPolicies(request, callback) { - return this.rpcCall(listNetworkPolicies, $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse, request, callback); - }, "name", { value: "ListNetworkPolicies" }); + Object.defineProperty(VmwareEngine.prototype.createExternalAccessRule = function createExternalAccessRule(request, callback) { + return this.rpcCall(createExternalAccessRule, $root.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateExternalAccessRule" }); /** - * Calls ListNetworkPolicies. - * @function listNetworkPolicies + * Calls CreateExternalAccessRule. + * @function createExternalAccessRule * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} request ListNetworkPoliciesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest} request CreateExternalAccessRuleRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createNetworkPolicy}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateExternalAccessRule}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef CreateNetworkPolicyCallback + * @typedef UpdateExternalAccessRuleCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls CreateNetworkPolicy. - * @function createNetworkPolicy + * Calls UpdateExternalAccessRule. + * @function updateExternalAccessRule * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} request CreateNetworkPolicyRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest} request UpdateExternalAccessRuleRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRuleCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.createNetworkPolicy = function createNetworkPolicy(request, callback) { - return this.rpcCall(createNetworkPolicy, $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateNetworkPolicy" }); + Object.defineProperty(VmwareEngine.prototype.updateExternalAccessRule = function updateExternalAccessRule(request, callback) { + return this.rpcCall(updateExternalAccessRule, $root.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateExternalAccessRule" }); /** - * Calls CreateNetworkPolicy. - * @function createNetworkPolicy + * Calls UpdateExternalAccessRule. + * @function updateExternalAccessRule * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} request CreateNetworkPolicyRequest message or plain object + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest} request UpdateExternalAccessRuleRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateNetworkPolicy}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteExternalAccessRule}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef UpdateNetworkPolicyCallback + * @typedef DeleteExternalAccessRuleCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls UpdateNetworkPolicy. - * @function updateNetworkPolicy + * Calls DeleteExternalAccessRule. + * @function deleteExternalAccessRule * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} request UpdateNetworkPolicyRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest} request DeleteExternalAccessRuleRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRuleCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.updateNetworkPolicy = function updateNetworkPolicy(request, callback) { - return this.rpcCall(updateNetworkPolicy, $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateNetworkPolicy" }); + Object.defineProperty(VmwareEngine.prototype.deleteExternalAccessRule = function deleteExternalAccessRule(request, callback) { + return this.rpcCall(deleteExternalAccessRule, $root.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteExternalAccessRule" }); /** - * Calls UpdateNetworkPolicy. - * @function updateNetworkPolicy + * Calls DeleteExternalAccessRule. + * @function deleteExternalAccessRule * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} request UpdateNetworkPolicyRequest message or plain object + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest} request DeleteExternalAccessRuleRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteNetworkPolicy}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listLoggingServers}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef DeleteNetworkPolicyCallback + * @typedef ListLoggingServersCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.vmwareengine.v1.ListLoggingServersResponse} [response] ListLoggingServersResponse */ /** - * Calls DeleteNetworkPolicy. - * @function deleteNetworkPolicy + * Calls ListLoggingServers. + * @function listLoggingServers * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} request DeleteNetworkPolicyRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IListLoggingServersRequest} request ListLoggingServersRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServersCallback} callback Node-style callback called with the error, if any, and ListLoggingServersResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.deleteNetworkPolicy = function deleteNetworkPolicy(request, callback) { - return this.rpcCall(deleteNetworkPolicy, $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteNetworkPolicy" }); + Object.defineProperty(VmwareEngine.prototype.listLoggingServers = function listLoggingServers(request, callback) { + return this.rpcCall(listLoggingServers, $root.google.cloud.vmwareengine.v1.ListLoggingServersRequest, $root.google.cloud.vmwareengine.v1.ListLoggingServersResponse, request, callback); + }, "name", { value: "ListLoggingServers" }); /** - * Calls DeleteNetworkPolicy. - * @function deleteNetworkPolicy + * Calls ListLoggingServers. + * @function listLoggingServers * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} request DeleteNetworkPolicyRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IListLoggingServersRequest} request ListLoggingServersRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createVmwareEngineNetwork}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getLoggingServer}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef CreateVmwareEngineNetworkCallback + * @typedef GetLoggingServerCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.vmwareengine.v1.LoggingServer} [response] LoggingServer */ /** - * Calls CreateVmwareEngineNetwork. - * @function createVmwareEngineNetwork + * Calls GetLoggingServer. + * @function getLoggingServer * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} request CreateVmwareEngineNetworkRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IGetLoggingServerRequest} request GetLoggingServerRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServerCallback} callback Node-style callback called with the error, if any, and LoggingServer * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.createVmwareEngineNetwork = function createVmwareEngineNetwork(request, callback) { - return this.rpcCall(createVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateVmwareEngineNetwork" }); + Object.defineProperty(VmwareEngine.prototype.getLoggingServer = function getLoggingServer(request, callback) { + return this.rpcCall(getLoggingServer, $root.google.cloud.vmwareengine.v1.GetLoggingServerRequest, $root.google.cloud.vmwareengine.v1.LoggingServer, request, callback); + }, "name", { value: "GetLoggingServer" }); /** - * Calls CreateVmwareEngineNetwork. - * @function createVmwareEngineNetwork + * Calls GetLoggingServer. + * @function getLoggingServer * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} request CreateVmwareEngineNetworkRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IGetLoggingServerRequest} request GetLoggingServerRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateVmwareEngineNetwork}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createLoggingServer}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef UpdateVmwareEngineNetworkCallback + * @typedef CreateLoggingServerCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls UpdateVmwareEngineNetwork. - * @function updateVmwareEngineNetwork + * Calls CreateLoggingServer. + * @function createLoggingServer * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} request UpdateVmwareEngineNetworkRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.ICreateLoggingServerRequest} request CreateLoggingServerRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServerCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.updateVmwareEngineNetwork = function updateVmwareEngineNetwork(request, callback) { - return this.rpcCall(updateVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateVmwareEngineNetwork" }); + Object.defineProperty(VmwareEngine.prototype.createLoggingServer = function createLoggingServer(request, callback) { + return this.rpcCall(createLoggingServer, $root.google.cloud.vmwareengine.v1.CreateLoggingServerRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateLoggingServer" }); /** - * Calls UpdateVmwareEngineNetwork. - * @function updateVmwareEngineNetwork + * Calls CreateLoggingServer. + * @function createLoggingServer * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} request UpdateVmwareEngineNetworkRequest message or plain object + * @param {google.cloud.vmwareengine.v1.ICreateLoggingServerRequest} request CreateLoggingServerRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteVmwareEngineNetwork}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateLoggingServer}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef DeleteVmwareEngineNetworkCallback + * @typedef UpdateLoggingServerCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls DeleteVmwareEngineNetwork. - * @function deleteVmwareEngineNetwork + * Calls UpdateLoggingServer. + * @function updateLoggingServer * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} request DeleteVmwareEngineNetworkRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest} request UpdateLoggingServerRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServerCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.deleteVmwareEngineNetwork = function deleteVmwareEngineNetwork(request, callback) { - return this.rpcCall(deleteVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteVmwareEngineNetwork" }); + Object.defineProperty(VmwareEngine.prototype.updateLoggingServer = function updateLoggingServer(request, callback) { + return this.rpcCall(updateLoggingServer, $root.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateLoggingServer" }); /** - * Calls DeleteVmwareEngineNetwork. - * @function deleteVmwareEngineNetwork + * Calls UpdateLoggingServer. + * @function updateLoggingServer * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} request DeleteVmwareEngineNetworkRequest message or plain object + * @param {google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest} request UpdateLoggingServerRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getVmwareEngineNetwork}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteLoggingServer}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef GetVmwareEngineNetworkCallback + * @typedef DeleteLoggingServerCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} [response] VmwareEngineNetwork + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls GetVmwareEngineNetwork. - * @function getVmwareEngineNetwork + * Calls DeleteLoggingServer. + * @function deleteLoggingServer * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} request GetVmwareEngineNetworkRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and VmwareEngineNetwork + * @param {google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest} request DeleteLoggingServerRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServerCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.getVmwareEngineNetwork = function getVmwareEngineNetwork(request, callback) { - return this.rpcCall(getVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork, request, callback); - }, "name", { value: "GetVmwareEngineNetwork" }); + Object.defineProperty(VmwareEngine.prototype.deleteLoggingServer = function deleteLoggingServer(request, callback) { + return this.rpcCall(deleteLoggingServer, $root.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteLoggingServer" }); /** - * Calls GetVmwareEngineNetwork. - * @function getVmwareEngineNetwork + * Calls DeleteLoggingServer. + * @function deleteLoggingServer * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} request GetVmwareEngineNetworkRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest} request DeleteLoggingServerRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listVmwareEngineNetworks}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNodeTypes}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ListVmwareEngineNetworksCallback + * @typedef ListNodeTypesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} [response] ListVmwareEngineNetworksResponse + * @param {google.cloud.vmwareengine.v1.ListNodeTypesResponse} [response] ListNodeTypesResponse */ /** - * Calls ListVmwareEngineNetworks. - * @function listVmwareEngineNetworks + * Calls ListNodeTypes. + * @function listNodeTypes * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} request ListVmwareEngineNetworksRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworksCallback} callback Node-style callback called with the error, if any, and ListVmwareEngineNetworksResponse + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} request ListNodeTypesRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypesCallback} callback Node-style callback called with the error, if any, and ListNodeTypesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.listVmwareEngineNetworks = function listVmwareEngineNetworks(request, callback) { - return this.rpcCall(listVmwareEngineNetworks, $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse, request, callback); - }, "name", { value: "ListVmwareEngineNetworks" }); + Object.defineProperty(VmwareEngine.prototype.listNodeTypes = function listNodeTypes(request, callback) { + return this.rpcCall(listNodeTypes, $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest, $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse, request, callback); + }, "name", { value: "ListNodeTypes" }); /** - * Calls ListVmwareEngineNetworks. - * @function listVmwareEngineNetworks + * Calls ListNodeTypes. + * @function listNodeTypes * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} request ListVmwareEngineNetworksRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} request ListNodeTypesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createPrivateConnection}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNodeType}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef CreatePrivateConnectionCallback + * @typedef GetNodeTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.vmwareengine.v1.NodeType} [response] NodeType */ /** - * Calls CreatePrivateConnection. - * @function createPrivateConnection + * Calls GetNodeType. + * @function getNodeType * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest} request CreatePrivateConnectionRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateConnectionCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} request GetNodeTypeRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetNodeTypeCallback} callback Node-style callback called with the error, if any, and NodeType * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.createPrivateConnection = function createPrivateConnection(request, callback) { - return this.rpcCall(createPrivateConnection, $root.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreatePrivateConnection" }); + Object.defineProperty(VmwareEngine.prototype.getNodeType = function getNodeType(request, callback) { + return this.rpcCall(getNodeType, $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest, $root.google.cloud.vmwareengine.v1.NodeType, request, callback); + }, "name", { value: "GetNodeType" }); /** - * Calls CreatePrivateConnection. - * @function createPrivateConnection + * Calls GetNodeType. + * @function getNodeType * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest} request CreatePrivateConnectionRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} request GetNodeTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getPrivateConnection}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|showNsxCredentials}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef GetPrivateConnectionCallback + * @typedef ShowNsxCredentialsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.PrivateConnection} [response] PrivateConnection + * @param {google.cloud.vmwareengine.v1.Credentials} [response] Credentials */ /** - * Calls GetPrivateConnection. - * @function getPrivateConnection + * Calls ShowNsxCredentials. + * @function showNsxCredentials * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest} request GetPrivateConnectionRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateConnectionCallback} callback Node-style callback called with the error, if any, and PrivateConnection + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} request ShowNsxCredentialsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentialsCallback} callback Node-style callback called with the error, if any, and Credentials * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.getPrivateConnection = function getPrivateConnection(request, callback) { - return this.rpcCall(getPrivateConnection, $root.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest, $root.google.cloud.vmwareengine.v1.PrivateConnection, request, callback); - }, "name", { value: "GetPrivateConnection" }); + Object.defineProperty(VmwareEngine.prototype.showNsxCredentials = function showNsxCredentials(request, callback) { + return this.rpcCall(showNsxCredentials, $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, $root.google.cloud.vmwareengine.v1.Credentials, request, callback); + }, "name", { value: "ShowNsxCredentials" }); /** - * Calls GetPrivateConnection. - * @function getPrivateConnection + * Calls ShowNsxCredentials. + * @function showNsxCredentials * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest} request GetPrivateConnectionRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} request ShowNsxCredentialsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPrivateConnections}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|showVcenterCredentials}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ListPrivateConnectionsCallback + * @typedef ShowVcenterCredentialsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} [response] ListPrivateConnectionsResponse + * @param {google.cloud.vmwareengine.v1.Credentials} [response] Credentials */ /** - * Calls ListPrivateConnections. - * @function listPrivateConnections + * Calls ShowVcenterCredentials. + * @function showVcenterCredentials * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest} request ListPrivateConnectionsRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionsCallback} callback Node-style callback called with the error, if any, and ListPrivateConnectionsResponse + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} request ShowVcenterCredentialsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentialsCallback} callback Node-style callback called with the error, if any, and Credentials * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.listPrivateConnections = function listPrivateConnections(request, callback) { - return this.rpcCall(listPrivateConnections, $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest, $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse, request, callback); - }, "name", { value: "ListPrivateConnections" }); + Object.defineProperty(VmwareEngine.prototype.showVcenterCredentials = function showVcenterCredentials(request, callback) { + return this.rpcCall(showVcenterCredentials, $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, $root.google.cloud.vmwareengine.v1.Credentials, request, callback); + }, "name", { value: "ShowVcenterCredentials" }); /** - * Calls ListPrivateConnections. - * @function listPrivateConnections + * Calls ShowVcenterCredentials. + * @function showVcenterCredentials * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest} request ListPrivateConnectionsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} request ShowVcenterCredentialsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updatePrivateConnection}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|resetNsxCredentials}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef UpdatePrivateConnectionCallback + * @typedef ResetNsxCredentialsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls UpdatePrivateConnection. - * @function updatePrivateConnection + * Calls ResetNsxCredentials. + * @function resetNsxCredentials * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest} request UpdatePrivateConnectionRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateConnectionCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} request ResetNsxCredentialsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentialsCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.updatePrivateConnection = function updatePrivateConnection(request, callback) { - return this.rpcCall(updatePrivateConnection, $root.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdatePrivateConnection" }); + Object.defineProperty(VmwareEngine.prototype.resetNsxCredentials = function resetNsxCredentials(request, callback) { + return this.rpcCall(resetNsxCredentials, $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ResetNsxCredentials" }); /** - * Calls UpdatePrivateConnection. - * @function updatePrivateConnection + * Calls ResetNsxCredentials. + * @function resetNsxCredentials * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest} request UpdatePrivateConnectionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} request ResetNsxCredentialsRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deletePrivateConnection}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|resetVcenterCredentials}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef DeletePrivateConnectionCallback + * @typedef ResetVcenterCredentialsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls DeletePrivateConnection. - * @function deletePrivateConnection + * Calls ResetVcenterCredentials. + * @function resetVcenterCredentials * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest} request DeletePrivateConnectionRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateConnectionCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} request ResetVcenterCredentialsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentialsCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.deletePrivateConnection = function deletePrivateConnection(request, callback) { - return this.rpcCall(deletePrivateConnection, $root.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeletePrivateConnection" }); + Object.defineProperty(VmwareEngine.prototype.resetVcenterCredentials = function resetVcenterCredentials(request, callback) { + return this.rpcCall(resetVcenterCredentials, $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ResetVcenterCredentials" }); /** - * Calls DeletePrivateConnection. - * @function deletePrivateConnection + * Calls ResetVcenterCredentials. + * @function resetVcenterCredentials * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest} request DeletePrivateConnectionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} request ResetVcenterCredentialsRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPrivateConnectionPeeringRoutes}. + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getDnsForwarding}. * @memberof google.cloud.vmwareengine.v1.VmwareEngine - * @typedef ListPrivateConnectionPeeringRoutesCallback + * @typedef GetDnsForwardingCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} [response] ListPrivateConnectionPeeringRoutesResponse + * @param {google.cloud.vmwareengine.v1.DnsForwarding} [response] DnsForwarding */ /** - * Calls ListPrivateConnectionPeeringRoutes. - * @function listPrivateConnectionPeeringRoutes + * Calls GetDnsForwarding. + * @function getDnsForwarding * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest} request ListPrivateConnectionPeeringRoutesRequest message or plain object - * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutesCallback} callback Node-style callback called with the error, if any, and ListPrivateConnectionPeeringRoutesResponse + * @param {google.cloud.vmwareengine.v1.IGetDnsForwardingRequest} request GetDnsForwardingRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwardingCallback} callback Node-style callback called with the error, if any, and DnsForwarding * @returns {undefined} * @variation 1 */ - Object.defineProperty(VmwareEngine.prototype.listPrivateConnectionPeeringRoutes = function listPrivateConnectionPeeringRoutes(request, callback) { - return this.rpcCall(listPrivateConnectionPeeringRoutes, $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest, $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse, request, callback); - }, "name", { value: "ListPrivateConnectionPeeringRoutes" }); + Object.defineProperty(VmwareEngine.prototype.getDnsForwarding = function getDnsForwarding(request, callback) { + return this.rpcCall(getDnsForwarding, $root.google.cloud.vmwareengine.v1.GetDnsForwardingRequest, $root.google.cloud.vmwareengine.v1.DnsForwarding, request, callback); + }, "name", { value: "GetDnsForwarding" }); /** - * Calls ListPrivateConnectionPeeringRoutes. - * @function listPrivateConnectionPeeringRoutes + * Calls GetDnsForwarding. + * @function getDnsForwarding * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest} request ListPrivateConnectionPeeringRoutesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.vmwareengine.v1.IGetDnsForwardingRequest} request GetDnsForwardingRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return VmwareEngine; - })(); - - v1.ListPrivateCloudsRequest = (function() { - /** - * Properties of a ListPrivateCloudsRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface IListPrivateCloudsRequest - * @property {string|null} [parent] ListPrivateCloudsRequest parent - * @property {number|null} [pageSize] ListPrivateCloudsRequest pageSize - * @property {string|null} [pageToken] ListPrivateCloudsRequest pageToken - * @property {string|null} [filter] ListPrivateCloudsRequest filter - * @property {string|null} [orderBy] ListPrivateCloudsRequest orderBy + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateDnsForwarding}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef UpdateDnsForwardingCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new ListPrivateCloudsRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListPrivateCloudsRequest. - * @implements IListPrivateCloudsRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set + * Calls UpdateDnsForwarding. + * @function updateDnsForwarding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest} request UpdateDnsForwardingRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwardingCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function ListPrivateCloudsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(VmwareEngine.prototype.updateDnsForwarding = function updateDnsForwarding(request, callback) { + return this.rpcCall(updateDnsForwarding, $root.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateDnsForwarding" }); /** - * ListPrivateCloudsRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * Calls UpdateDnsForwarding. + * @function updateDnsForwarding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest} request UpdateDnsForwardingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsRequest.prototype.parent = ""; /** - * ListPrivateCloudsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @instance + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNetworkPeering}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef GetNetworkPeeringCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.NetworkPeering} [response] NetworkPeering */ - ListPrivateCloudsRequest.prototype.pageSize = 0; /** - * ListPrivateCloudsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * Calls GetNetworkPeering. + * @function getNetworkPeering + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest} request GetNetworkPeeringRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeeringCallback} callback Node-style callback called with the error, if any, and NetworkPeering + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsRequest.prototype.pageToken = ""; + Object.defineProperty(VmwareEngine.prototype.getNetworkPeering = function getNetworkPeering(request, callback) { + return this.rpcCall(getNetworkPeering, $root.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest, $root.google.cloud.vmwareengine.v1.NetworkPeering, request, callback); + }, "name", { value: "GetNetworkPeering" }); /** - * ListPrivateCloudsRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * Calls GetNetworkPeering. + * @function getNetworkPeering + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest} request GetNetworkPeeringRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsRequest.prototype.filter = ""; /** - * ListPrivateCloudsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNetworkPeerings}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef ListNetworkPeeringsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse} [response] ListNetworkPeeringsResponse + */ + + /** + * Calls ListNetworkPeerings. + * @function listNetworkPeerings + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest} request ListNetworkPeeringsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeeringsCallback} callback Node-style callback called with the error, if any, and ListNetworkPeeringsResponse + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsRequest.prototype.orderBy = ""; + Object.defineProperty(VmwareEngine.prototype.listNetworkPeerings = function listNetworkPeerings(request, callback) { + return this.rpcCall(listNetworkPeerings, $root.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest, $root.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse, request, callback); + }, "name", { value: "ListNetworkPeerings" }); /** - * Creates a new ListPrivateCloudsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest instance + * Calls ListNetworkPeerings. + * @function listNetworkPeerings + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest} request ListNetworkPeeringsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsRequest.create = function create(properties) { - return new ListPrivateCloudsRequest(properties); - }; /** - * Encodes the specified ListPrivateCloudsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createNetworkPeering}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef CreateNetworkPeeringCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListPrivateCloudsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); - return writer; - }; /** - * Encodes the specified ListPrivateCloudsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateNetworkPeering. + * @function createNetworkPeering + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest} request CreateNetworkPeeringRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeeringCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(VmwareEngine.prototype.createNetworkPeering = function createNetworkPeering(request, callback) { + return this.rpcCall(createNetworkPeering, $root.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateNetworkPeering" }); /** - * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateNetworkPeering. + * @function createNetworkPeering + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest} request CreateNetworkPeeringRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteNetworkPeering}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef DeleteNetworkPeeringCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListPrivateCloudsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListPrivateCloudsRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls DeleteNetworkPeering. + * @function deleteNetworkPeering + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest} request DeleteNetworkPeeringRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeeringCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - return null; - }; + Object.defineProperty(VmwareEngine.prototype.deleteNetworkPeering = function deleteNetworkPeering(request, callback) { + return this.rpcCall(deleteNetworkPeering, $root.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteNetworkPeering" }); /** - * Creates a ListPrivateCloudsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest + * Calls DeleteNetworkPeering. + * @function deleteNetworkPeering + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest} request DeleteNetworkPeeringRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - return message; - }; /** - * Creates a plain object from a ListPrivateCloudsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} message ListPrivateCloudsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateNetworkPeering}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef UpdateNetworkPeeringCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListPrivateCloudsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - return object; - }; /** - * Converts this ListPrivateCloudsRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * Calls UpdateNetworkPeering. + * @function updateNetworkPeering + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @returns {Object.} JSON object + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest} request UpdateNetworkPeeringRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeeringCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(VmwareEngine.prototype.updateNetworkPeering = function updateNetworkPeering(request, callback) { + return this.rpcCall(updateNetworkPeering, $root.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateNetworkPeering" }); /** - * Gets the default type url for ListPrivateCloudsRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls UpdateNetworkPeering. + * @function updateNetworkPeering + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest} request UpdateNetworkPeeringRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsRequest"; - }; - - return ListPrivateCloudsRequest; - })(); - - v1.ListPrivateCloudsResponse = (function() { /** - * Properties of a ListPrivateCloudsResponse. - * @memberof google.cloud.vmwareengine.v1 - * @interface IListPrivateCloudsResponse - * @property {Array.|null} [privateClouds] ListPrivateCloudsResponse privateClouds - * @property {string|null} [nextPageToken] ListPrivateCloudsResponse nextPageToken - * @property {Array.|null} [unreachable] ListPrivateCloudsResponse unreachable + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPeeringRoutes}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef ListPeeringRoutesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ListPeeringRoutesResponse} [response] ListPeeringRoutesResponse */ /** - * Constructs a new ListPrivateCloudsResponse. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListPrivateCloudsResponse. - * @implements IListPrivateCloudsResponse - * @constructor - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set + * Calls ListPeeringRoutes. + * @function listPeeringRoutes + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesRequest} request ListPeeringRoutesRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutesCallback} callback Node-style callback called with the error, if any, and ListPeeringRoutesResponse + * @returns {undefined} + * @variation 1 */ - function ListPrivateCloudsResponse(properties) { - this.privateClouds = []; - this.unreachable = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(VmwareEngine.prototype.listPeeringRoutes = function listPeeringRoutes(request, callback) { + return this.rpcCall(listPeeringRoutes, $root.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest, $root.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse, request, callback); + }, "name", { value: "ListPeeringRoutes" }); /** - * ListPrivateCloudsResponse privateClouds. - * @member {Array.} privateClouds - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * Calls ListPeeringRoutes. + * @function listPeeringRoutes + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesRequest} request ListPeeringRoutesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsResponse.prototype.privateClouds = $util.emptyArray; /** - * ListPrivateCloudsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @instance + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createHcxActivationKey}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef CreateHcxActivationKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListPrivateCloudsResponse.prototype.nextPageToken = ""; /** - * ListPrivateCloudsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * Calls CreateHcxActivationKey. + * @function createHcxActivationKey + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} request CreateHcxActivationKeyRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsResponse.prototype.unreachable = $util.emptyArray; + Object.defineProperty(VmwareEngine.prototype.createHcxActivationKey = function createHcxActivationKey(request, callback) { + return this.rpcCall(createHcxActivationKey, $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateHcxActivationKey" }); /** - * Creates a new ListPrivateCloudsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse instance + * Calls CreateHcxActivationKey. + * @function createHcxActivationKey + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} request CreateHcxActivationKeyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsResponse.create = function create(properties) { - return new ListPrivateCloudsResponse(properties); - }; /** - * Encodes the specified ListPrivateCloudsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listHcxActivationKeys}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef ListHcxActivationKeysCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} [response] ListHcxActivationKeysResponse */ - ListPrivateCloudsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.privateClouds != null && message.privateClouds.length) - for (var i = 0; i < message.privateClouds.length; ++i) - $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateClouds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); - return writer; - }; /** - * Encodes the specified ListPrivateCloudsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListHcxActivationKeys. + * @function listHcxActivationKeys + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} request ListHcxActivationKeysRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeysCallback} callback Node-style callback called with the error, if any, and ListHcxActivationKeysResponse + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(VmwareEngine.prototype.listHcxActivationKeys = function listHcxActivationKeys(request, callback) { + return this.rpcCall(listHcxActivationKeys, $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse, request, callback); + }, "name", { value: "ListHcxActivationKeys" }); /** - * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListHcxActivationKeys. + * @function listHcxActivationKeys + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} request ListHcxActivationKeysRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.privateClouds && message.privateClouds.length)) - message.privateClouds = []; - message.privateClouds.push($root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getHcxActivationKey}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef GetHcxActivationKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.HcxActivationKey} [response] HcxActivationKey */ - ListPrivateCloudsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListPrivateCloudsResponse message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetHcxActivationKey. + * @function getHcxActivationKey + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} request GetHcxActivationKeyRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKeyCallback} callback Node-style callback called with the error, if any, and HcxActivationKey + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.privateClouds != null && message.hasOwnProperty("privateClouds")) { - if (!Array.isArray(message.privateClouds)) - return "privateClouds: array expected"; - for (var i = 0; i < message.privateClouds.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateClouds[i]); - if (error) - return "privateClouds." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } - return null; - }; + Object.defineProperty(VmwareEngine.prototype.getHcxActivationKey = function getHcxActivationKey(request, callback) { + return this.rpcCall(getHcxActivationKey, $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, $root.google.cloud.vmwareengine.v1.HcxActivationKey, request, callback); + }, "name", { value: "GetHcxActivationKey" }); /** - * Creates a ListPrivateCloudsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse + * Calls GetHcxActivationKey. + * @function getHcxActivationKey + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} request GetHcxActivationKeyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) - return object; - var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); - if (object.privateClouds) { - if (!Array.isArray(object.privateClouds)) - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: array expected"); - message.privateClouds = []; - for (var i = 0; i < object.privateClouds.length; ++i) { - if (typeof object.privateClouds[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: object expected"); - message.privateClouds[i] = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateClouds[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } - return message; - }; /** - * Creates a plain object from a ListPrivateCloudsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} message ListPrivateCloudsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNetworkPolicy}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef GetNetworkPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.NetworkPolicy} [response] NetworkPolicy */ - ListPrivateCloudsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.privateClouds = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.privateClouds && message.privateClouds.length) { - object.privateClouds = []; - for (var j = 0; j < message.privateClouds.length; ++j) - object.privateClouds[j] = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateClouds[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } - return object; - }; /** - * Converts this ListPrivateCloudsResponse to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * Calls GetNetworkPolicy. + * @function getNetworkPolicy + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @returns {Object.} JSON object + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} request GetNetworkPolicyRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicyCallback} callback Node-style callback called with the error, if any, and NetworkPolicy + * @returns {undefined} + * @variation 1 */ - ListPrivateCloudsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(VmwareEngine.prototype.getNetworkPolicy = function getNetworkPolicy(request, callback) { + return this.rpcCall(getNetworkPolicy, $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, $root.google.cloud.vmwareengine.v1.NetworkPolicy, request, callback); + }, "name", { value: "GetNetworkPolicy" }); /** - * Gets the default type url for ListPrivateCloudsResponse - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls GetNetworkPolicy. + * @function getNetworkPolicy + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} request GetNetworkPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPrivateCloudsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsResponse"; - }; - return ListPrivateCloudsResponse; - })(); + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNetworkPolicies}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef ListNetworkPoliciesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} [response] ListNetworkPoliciesResponse + */ - v1.GetPrivateCloudRequest = (function() { + /** + * Calls ListNetworkPolicies. + * @function listNetworkPolicies + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} request ListNetworkPoliciesRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPoliciesCallback} callback Node-style callback called with the error, if any, and ListNetworkPoliciesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.listNetworkPolicies = function listNetworkPolicies(request, callback) { + return this.rpcCall(listNetworkPolicies, $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse, request, callback); + }, "name", { value: "ListNetworkPolicies" }); /** - * Properties of a GetPrivateCloudRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface IGetPrivateCloudRequest - * @property {string|null} [name] GetPrivateCloudRequest name + * Calls ListNetworkPolicies. + * @function listNetworkPolicies + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} request ListNetworkPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new GetPrivateCloudRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetPrivateCloudRequest. - * @implements IGetPrivateCloudRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createNetworkPolicy}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef CreateNetworkPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function GetPrivateCloudRequest(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]]; - } /** - * GetPrivateCloudRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * Calls CreateNetworkPolicy. + * @function createNetworkPolicy + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} request CreateNetworkPolicyRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - GetPrivateCloudRequest.prototype.name = ""; + Object.defineProperty(VmwareEngine.prototype.createNetworkPolicy = function createNetworkPolicy(request, callback) { + return this.rpcCall(createNetworkPolicy, $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateNetworkPolicy" }); /** - * Creates a new GetPrivateCloudRequest instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest instance + * Calls CreateNetworkPolicy. + * @function createNetworkPolicy + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} request CreateNetworkPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetPrivateCloudRequest.create = function create(properties) { - return new GetPrivateCloudRequest(properties); - }; /** - * Encodes the specified GetPrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateNetworkPolicy}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef UpdateNetworkPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - GetPrivateCloudRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified GetPrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls UpdateNetworkPolicy. + * @function updateNetworkPolicy + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} request UpdateNetworkPolicyRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - GetPrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(VmwareEngine.prototype.updateNetworkPolicy = function updateNetworkPolicy(request, callback) { + return this.rpcCall(updateNetworkPolicy, $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateNetworkPolicy" }); /** - * Decodes a GetPrivateCloudRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateNetworkPolicy. + * @function updateNetworkPolicy + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} request UpdateNetworkPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetPrivateCloudRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a GetPrivateCloudRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteNetworkPolicy}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef DeleteNetworkPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - GetPrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a GetPrivateCloudRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls DeleteNetworkPolicy. + * @function deleteNetworkPolicy + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} request DeleteNetworkPolicyRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - GetPrivateCloudRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(VmwareEngine.prototype.deleteNetworkPolicy = function deleteNetworkPolicy(request, callback) { + return this.rpcCall(deleteNetworkPolicy, $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteNetworkPolicy" }); /** - * Creates a GetPrivateCloudRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest + * Calls DeleteNetworkPolicy. + * @function deleteNetworkPolicy + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} request DeleteNetworkPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetPrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetPrivateCloudRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} message GetPrivateCloudRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listManagementDnsZoneBindings}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef ListManagementDnsZoneBindingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse} [response] ListManagementDnsZoneBindingsResponse */ - GetPrivateCloudRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; /** - * Converts this GetPrivateCloudRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * Calls ListManagementDnsZoneBindings. + * @function listManagementDnsZoneBindings + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @returns {Object.} JSON object + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest} request ListManagementDnsZoneBindingsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindingsCallback} callback Node-style callback called with the error, if any, and ListManagementDnsZoneBindingsResponse + * @returns {undefined} + * @variation 1 */ - GetPrivateCloudRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(VmwareEngine.prototype.listManagementDnsZoneBindings = function listManagementDnsZoneBindings(request, callback) { + return this.rpcCall(listManagementDnsZoneBindings, $root.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest, $root.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse, request, callback); + }, "name", { value: "ListManagementDnsZoneBindings" }); /** - * Gets the default type url for GetPrivateCloudRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListManagementDnsZoneBindings. + * @function listManagementDnsZoneBindings + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest} request ListManagementDnsZoneBindingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetPrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetPrivateCloudRequest"; - }; - return GetPrivateCloudRequest; - })(); + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getManagementDnsZoneBinding}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef GetManagementDnsZoneBindingCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} [response] ManagementDnsZoneBinding + */ - v1.CreatePrivateCloudRequest = (function() { + /** + * Calls GetManagementDnsZoneBinding. + * @function getManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest} request GetManagementDnsZoneBindingRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBindingCallback} callback Node-style callback called with the error, if any, and ManagementDnsZoneBinding + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.getManagementDnsZoneBinding = function getManagementDnsZoneBinding(request, callback) { + return this.rpcCall(getManagementDnsZoneBinding, $root.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest, $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, request, callback); + }, "name", { value: "GetManagementDnsZoneBinding" }); /** - * Properties of a CreatePrivateCloudRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface ICreatePrivateCloudRequest - * @property {string|null} [parent] CreatePrivateCloudRequest parent - * @property {string|null} [privateCloudId] CreatePrivateCloudRequest privateCloudId - * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] CreatePrivateCloudRequest privateCloud - * @property {string|null} [requestId] CreatePrivateCloudRequest requestId - * @property {boolean|null} [validateOnly] CreatePrivateCloudRequest validateOnly + * Calls GetManagementDnsZoneBinding. + * @function getManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest} request GetManagementDnsZoneBindingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CreatePrivateCloudRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreatePrivateCloudRequest. - * @implements ICreatePrivateCloudRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createManagementDnsZoneBinding}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef CreateManagementDnsZoneBindingCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function CreatePrivateCloudRequest(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]]; - } /** - * CreatePrivateCloudRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * Calls CreateManagementDnsZoneBinding. + * @function createManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest} request CreateManagementDnsZoneBindingRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateManagementDnsZoneBindingCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreatePrivateCloudRequest.prototype.parent = ""; + Object.defineProperty(VmwareEngine.prototype.createManagementDnsZoneBinding = function createManagementDnsZoneBinding(request, callback) { + return this.rpcCall(createManagementDnsZoneBinding, $root.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateManagementDnsZoneBinding" }); /** - * CreatePrivateCloudRequest privateCloudId. - * @member {string} privateCloudId - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * Calls CreateManagementDnsZoneBinding. + * @function createManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest} request CreateManagementDnsZoneBindingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePrivateCloudRequest.prototype.privateCloudId = ""; /** - * CreatePrivateCloudRequest privateCloud. - * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @instance + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateManagementDnsZoneBinding}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef UpdateManagementDnsZoneBindingCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreatePrivateCloudRequest.prototype.privateCloud = null; /** - * CreatePrivateCloudRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * Calls UpdateManagementDnsZoneBinding. + * @function updateManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest} request UpdateManagementDnsZoneBindingRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBindingCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreatePrivateCloudRequest.prototype.requestId = ""; + Object.defineProperty(VmwareEngine.prototype.updateManagementDnsZoneBinding = function updateManagementDnsZoneBinding(request, callback) { + return this.rpcCall(updateManagementDnsZoneBinding, $root.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateManagementDnsZoneBinding" }); /** - * CreatePrivateCloudRequest validateOnly. - * @member {boolean} validateOnly - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * Calls UpdateManagementDnsZoneBinding. + * @function updateManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest} request UpdateManagementDnsZoneBindingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePrivateCloudRequest.prototype.validateOnly = false; /** - * Creates a new CreatePrivateCloudRequest instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest instance + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteManagementDnsZoneBinding}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef DeleteManagementDnsZoneBindingCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreatePrivateCloudRequest.create = function create(properties) { - return new CreatePrivateCloudRequest(properties); - }; /** - * Encodes the specified CreatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteManagementDnsZoneBinding. + * @function deleteManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest} request DeleteManagementDnsZoneBindingRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBindingCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreatePrivateCloudRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.privateCloudId != null && Object.hasOwnProperty.call(message, "privateCloudId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.privateCloudId); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); - if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly); - return writer; - }; + Object.defineProperty(VmwareEngine.prototype.deleteManagementDnsZoneBinding = function deleteManagementDnsZoneBinding(request, callback) { + return this.rpcCall(deleteManagementDnsZoneBinding, $root.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteManagementDnsZoneBinding" }); /** - * Encodes the specified CreatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteManagementDnsZoneBinding. + * @function deleteManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest} request DeleteManagementDnsZoneBindingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|repairManagementDnsZoneBinding}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef RepairManagementDnsZoneBindingCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreatePrivateCloudRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.privateCloudId = reader.string(); - break; - } - case 3: { - message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32()); - break; - } - case 4: { - message.requestId = reader.string(); - break; - } - case 5: { - message.validateOnly = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls RepairManagementDnsZoneBinding. + * @function repairManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest} request RepairManagementDnsZoneBindingRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.RepairManagementDnsZoneBindingCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(VmwareEngine.prototype.repairManagementDnsZoneBinding = function repairManagementDnsZoneBinding(request, callback) { + return this.rpcCall(repairManagementDnsZoneBinding, $root.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RepairManagementDnsZoneBinding" }); /** - * Verifies a CreatePrivateCloudRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls RepairManagementDnsZoneBinding. + * @function repairManagementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest} request RepairManagementDnsZoneBindingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePrivateCloudRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId")) - if (!$util.isString(message.privateCloudId)) - return "privateCloudId: string expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) { - var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud); - if (error) - return "privateCloud." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - if (typeof message.validateOnly !== "boolean") - return "validateOnly: boolean expected"; - return null; - }; /** - * Creates a CreatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createVmwareEngineNetwork}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef CreateVmwareEngineNetworkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreatePrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.privateCloudId != null) - message.privateCloudId = String(object.privateCloudId); - if (object.privateCloud != null) { - if (typeof object.privateCloud !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.privateCloud: object expected"); - message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud); - } - if (object.requestId != null) - message.requestId = String(object.requestId); - if (object.validateOnly != null) - message.validateOnly = Boolean(object.validateOnly); - return message; - }; /** - * Creates a plain object from a CreatePrivateCloudRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} message CreatePrivateCloudRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls CreateVmwareEngineNetwork. + * @function createVmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} request CreateVmwareEngineNetworkRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreatePrivateCloudRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.privateCloudId = ""; - object.privateCloud = null; - object.requestId = ""; - object.validateOnly = false; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId")) - object.privateCloudId = message.privateCloudId; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - object.validateOnly = message.validateOnly; - return object; - }; + Object.defineProperty(VmwareEngine.prototype.createVmwareEngineNetwork = function createVmwareEngineNetwork(request, callback) { + return this.rpcCall(createVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateVmwareEngineNetwork" }); /** - * Converts this CreatePrivateCloudRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * Calls CreateVmwareEngineNetwork. + * @function createVmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @returns {Object.} JSON object + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} request CreateVmwareEngineNetworkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePrivateCloudRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for CreatePrivateCloudRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateVmwareEngineNetwork}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef UpdateVmwareEngineNetworkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreatePrivateCloudRequest"; - }; - return CreatePrivateCloudRequest; - })(); + /** + * Calls UpdateVmwareEngineNetwork. + * @function updateVmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} request UpdateVmwareEngineNetworkRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.updateVmwareEngineNetwork = function updateVmwareEngineNetwork(request, callback) { + return this.rpcCall(updateVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateVmwareEngineNetwork" }); - v1.UpdatePrivateCloudRequest = (function() { + /** + * Calls UpdateVmwareEngineNetwork. + * @function updateVmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} request UpdateVmwareEngineNetworkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Properties of an UpdatePrivateCloudRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdatePrivateCloudRequest - * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] UpdatePrivateCloudRequest privateCloud - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePrivateCloudRequest updateMask - * @property {string|null} [requestId] UpdatePrivateCloudRequest requestId + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteVmwareEngineNetwork}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef DeleteVmwareEngineNetworkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new UpdatePrivateCloudRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdatePrivateCloudRequest. - * @implements IUpdatePrivateCloudRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set + * Calls DeleteVmwareEngineNetwork. + * @function deleteVmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} request DeleteVmwareEngineNetworkRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function UpdatePrivateCloudRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(VmwareEngine.prototype.deleteVmwareEngineNetwork = function deleteVmwareEngineNetwork(request, callback) { + return this.rpcCall(deleteVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteVmwareEngineNetwork" }); /** - * UpdatePrivateCloudRequest privateCloud. - * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * Calls DeleteVmwareEngineNetwork. + * @function deleteVmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} request DeleteVmwareEngineNetworkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePrivateCloudRequest.prototype.privateCloud = null; /** - * UpdatePrivateCloudRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getVmwareEngineNetwork}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef GetVmwareEngineNetworkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} [response] VmwareEngineNetwork + */ + + /** + * Calls GetVmwareEngineNetwork. + * @function getVmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} request GetVmwareEngineNetworkRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and VmwareEngineNetwork + * @returns {undefined} + * @variation 1 */ - UpdatePrivateCloudRequest.prototype.updateMask = null; + Object.defineProperty(VmwareEngine.prototype.getVmwareEngineNetwork = function getVmwareEngineNetwork(request, callback) { + return this.rpcCall(getVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork, request, callback); + }, "name", { value: "GetVmwareEngineNetwork" }); /** - * UpdatePrivateCloudRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * Calls GetVmwareEngineNetwork. + * @function getVmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} request GetVmwareEngineNetworkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePrivateCloudRequest.prototype.requestId = ""; /** - * Creates a new UpdatePrivateCloudRequest instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest instance + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listVmwareEngineNetworks}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef ListVmwareEngineNetworksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} [response] ListVmwareEngineNetworksResponse */ - UpdatePrivateCloudRequest.create = function create(properties) { - return new UpdatePrivateCloudRequest(properties); - }; /** - * Encodes the specified UpdatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListVmwareEngineNetworks. + * @function listVmwareEngineNetworks + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} request ListVmwareEngineNetworksRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworksCallback} callback Node-style callback called with the error, if any, and ListVmwareEngineNetworksResponse + * @returns {undefined} + * @variation 1 */ - UpdatePrivateCloudRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); - return writer; - }; + Object.defineProperty(VmwareEngine.prototype.listVmwareEngineNetworks = function listVmwareEngineNetworks(request, callback) { + return this.rpcCall(listVmwareEngineNetworks, $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse, request, callback); + }, "name", { value: "ListVmwareEngineNetworks" }); /** - * Encodes the specified UpdatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListVmwareEngineNetworks. + * @function listVmwareEngineNetworks + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} request ListVmwareEngineNetworksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createPrivateConnection}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef CreatePrivateConnectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - UpdatePrivateCloudRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { - message.requestId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreatePrivateConnection. + * @function createPrivateConnection + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest} request CreatePrivateConnectionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateConnectionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - UpdatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(VmwareEngine.prototype.createPrivateConnection = function createPrivateConnection(request, callback) { + return this.rpcCall(createPrivateConnection, $root.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreatePrivateConnection" }); /** - * Verifies an UpdatePrivateCloudRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreatePrivateConnection. + * @function createPrivateConnection + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest} request CreatePrivateConnectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePrivateCloudRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) { - var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud); - if (error) - return "privateCloud." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - return null; - }; /** - * Creates an UpdatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getPrivateConnection}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef GetPrivateConnectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.PrivateConnection} [response] PrivateConnection */ - UpdatePrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); - if (object.privateCloud != null) { - if (typeof object.privateCloud !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.privateCloud: object expected"); - message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.requestId != null) - message.requestId = String(object.requestId); - return message; - }; /** - * Creates a plain object from an UpdatePrivateCloudRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} message UpdatePrivateCloudRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetPrivateConnection. + * @function getPrivateConnection + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest} request GetPrivateConnectionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateConnectionCallback} callback Node-style callback called with the error, if any, and PrivateConnection + * @returns {undefined} + * @variation 1 */ - UpdatePrivateCloudRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.privateCloud = null; - object.updateMask = null; - object.requestId = ""; - } - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; - return object; - }; + Object.defineProperty(VmwareEngine.prototype.getPrivateConnection = function getPrivateConnection(request, callback) { + return this.rpcCall(getPrivateConnection, $root.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest, $root.google.cloud.vmwareengine.v1.PrivateConnection, request, callback); + }, "name", { value: "GetPrivateConnection" }); /** - * Converts this UpdatePrivateCloudRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * Calls GetPrivateConnection. + * @function getPrivateConnection + * @memberof google.cloud.vmwareengine.v1.VmwareEngine * @instance - * @returns {Object.} JSON object + * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest} request GetPrivateConnectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePrivateCloudRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for UpdatePrivateCloudRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPrivateConnections}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef ListPrivateConnectionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} [response] ListPrivateConnectionsResponse */ - UpdatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest"; - }; - return UpdatePrivateCloudRequest; + /** + * Calls ListPrivateConnections. + * @function listPrivateConnections + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest} request ListPrivateConnectionsRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionsCallback} callback Node-style callback called with the error, if any, and ListPrivateConnectionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.listPrivateConnections = function listPrivateConnections(request, callback) { + return this.rpcCall(listPrivateConnections, $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest, $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse, request, callback); + }, "name", { value: "ListPrivateConnections" }); + + /** + * Calls ListPrivateConnections. + * @function listPrivateConnections + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest} request ListPrivateConnectionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updatePrivateConnection}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef UpdatePrivateConnectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdatePrivateConnection. + * @function updatePrivateConnection + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest} request UpdatePrivateConnectionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateConnectionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.updatePrivateConnection = function updatePrivateConnection(request, callback) { + return this.rpcCall(updatePrivateConnection, $root.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdatePrivateConnection" }); + + /** + * Calls UpdatePrivateConnection. + * @function updatePrivateConnection + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest} request UpdatePrivateConnectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deletePrivateConnection}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef DeletePrivateConnectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeletePrivateConnection. + * @function deletePrivateConnection + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest} request DeletePrivateConnectionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateConnectionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.deletePrivateConnection = function deletePrivateConnection(request, callback) { + return this.rpcCall(deletePrivateConnection, $root.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePrivateConnection" }); + + /** + * Calls DeletePrivateConnection. + * @function deletePrivateConnection + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest} request DeletePrivateConnectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPrivateConnectionPeeringRoutes}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef ListPrivateConnectionPeeringRoutesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} [response] ListPrivateConnectionPeeringRoutesResponse + */ + + /** + * Calls ListPrivateConnectionPeeringRoutes. + * @function listPrivateConnectionPeeringRoutes + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest} request ListPrivateConnectionPeeringRoutesRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutesCallback} callback Node-style callback called with the error, if any, and ListPrivateConnectionPeeringRoutesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.listPrivateConnectionPeeringRoutes = function listPrivateConnectionPeeringRoutes(request, callback) { + return this.rpcCall(listPrivateConnectionPeeringRoutes, $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest, $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse, request, callback); + }, "name", { value: "ListPrivateConnectionPeeringRoutes" }); + + /** + * Calls ListPrivateConnectionPeeringRoutes. + * @function listPrivateConnectionPeeringRoutes + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest} request ListPrivateConnectionPeeringRoutesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|grantDnsBindPermission}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef GrantDnsBindPermissionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls GrantDnsBindPermission. + * @function grantDnsBindPermission + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest} request GrantDnsBindPermissionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermissionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.grantDnsBindPermission = function grantDnsBindPermission(request, callback) { + return this.rpcCall(grantDnsBindPermission, $root.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "GrantDnsBindPermission" }); + + /** + * Calls GrantDnsBindPermission. + * @function grantDnsBindPermission + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest} request GrantDnsBindPermissionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getDnsBindPermission}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef GetDnsBindPermissionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.vmwareengine.v1.DnsBindPermission} [response] DnsBindPermission + */ + + /** + * Calls GetDnsBindPermission. + * @function getDnsBindPermission + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest} request GetDnsBindPermissionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermissionCallback} callback Node-style callback called with the error, if any, and DnsBindPermission + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.getDnsBindPermission = function getDnsBindPermission(request, callback) { + return this.rpcCall(getDnsBindPermission, $root.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest, $root.google.cloud.vmwareengine.v1.DnsBindPermission, request, callback); + }, "name", { value: "GetDnsBindPermission" }); + + /** + * Calls GetDnsBindPermission. + * @function getDnsBindPermission + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest} request GetDnsBindPermissionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|revokeDnsBindPermission}. + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @typedef RevokeDnsBindPermissionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls RevokeDnsBindPermission. + * @function revokeDnsBindPermission + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest} request RevokeDnsBindPermissionRequest message or plain object + * @param {google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermissionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VmwareEngine.prototype.revokeDnsBindPermission = function revokeDnsBindPermission(request, callback) { + return this.rpcCall(revokeDnsBindPermission, $root.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RevokeDnsBindPermission" }); + + /** + * Calls RevokeDnsBindPermission. + * @function revokeDnsBindPermission + * @memberof google.cloud.vmwareengine.v1.VmwareEngine + * @instance + * @param {google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest} request RevokeDnsBindPermissionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return VmwareEngine; })(); - v1.DeletePrivateCloudRequest = (function() { + v1.ListPrivateCloudsRequest = (function() { /** - * Properties of a DeletePrivateCloudRequest. + * Properties of a ListPrivateCloudsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IDeletePrivateCloudRequest - * @property {string|null} [name] DeletePrivateCloudRequest name - * @property {string|null} [requestId] DeletePrivateCloudRequest requestId - * @property {boolean|null} [force] DeletePrivateCloudRequest force - * @property {number|null} [delayHours] DeletePrivateCloudRequest delayHours + * @interface IListPrivateCloudsRequest + * @property {string|null} [parent] ListPrivateCloudsRequest parent + * @property {number|null} [pageSize] ListPrivateCloudsRequest pageSize + * @property {string|null} [pageToken] ListPrivateCloudsRequest pageToken + * @property {string|null} [filter] ListPrivateCloudsRequest filter + * @property {string|null} [orderBy] ListPrivateCloudsRequest orderBy */ /** - * Constructs a new DeletePrivateCloudRequest. + * Constructs a new ListPrivateCloudsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeletePrivateCloudRequest. - * @implements IDeletePrivateCloudRequest + * @classdesc Represents a ListPrivateCloudsRequest. + * @implements IListPrivateCloudsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set */ - function DeletePrivateCloudRequest(properties) { + function ListPrivateCloudsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2764,131 +2572,131 @@ } /** - * DeletePrivateCloudRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * ListPrivateCloudsRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - DeletePrivateCloudRequest.prototype.name = ""; + ListPrivateCloudsRequest.prototype.parent = ""; /** - * DeletePrivateCloudRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * ListPrivateCloudsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - DeletePrivateCloudRequest.prototype.requestId = ""; + ListPrivateCloudsRequest.prototype.pageSize = 0; /** - * DeletePrivateCloudRequest force. - * @member {boolean} force - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * ListPrivateCloudsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - DeletePrivateCloudRequest.prototype.force = false; + ListPrivateCloudsRequest.prototype.pageToken = ""; /** - * DeletePrivateCloudRequest delayHours. - * @member {number|null|undefined} delayHours - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * ListPrivateCloudsRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - DeletePrivateCloudRequest.prototype.delayHours = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListPrivateCloudsRequest.prototype.filter = ""; /** - * DeletePrivateCloudRequest _delayHours. - * @member {"delayHours"|undefined} _delayHours - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * ListPrivateCloudsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - Object.defineProperty(DeletePrivateCloudRequest.prototype, "_delayHours", { - get: $util.oneOfGetter($oneOfFields = ["delayHours"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListPrivateCloudsRequest.prototype.orderBy = ""; /** - * Creates a new DeletePrivateCloudRequest instance using the specified properties. + * Creates a new ListPrivateCloudsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest instance + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest instance */ - DeletePrivateCloudRequest.create = function create(properties) { - return new DeletePrivateCloudRequest(properties); + ListPrivateCloudsRequest.create = function create(properties) { + return new ListPrivateCloudsRequest(properties); }; /** - * Encodes the specified DeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. + * Encodes the specified ListPrivateCloudsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePrivateCloudRequest.encode = function encode(message, writer) { + ListPrivateCloudsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); - if (message.delayHours != null && Object.hasOwnProperty.call(message, "delayHours")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.delayHours); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified DeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. + * Encodes the specified ListPrivateCloudsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPrivateCloudsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer. + * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePrivateCloudRequest.decode = function decode(reader, length) { + ListPrivateCloudsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.requestId = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.force = reader.bool(); + message.pageToken = reader.string(); break; } case 4: { - message.delayHours = reader.int32(); + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -2900,153 +2708,159 @@ }; /** - * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + ListPrivateCloudsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePrivateCloudRequest message. + * Verifies a ListPrivateCloudsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePrivateCloudRequest.verify = function verify(message) { + ListPrivateCloudsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.delayHours != null && message.hasOwnProperty("delayHours")) { - properties._delayHours = 1; - if (!$util.isInteger(message.delayHours)) - return "delayHours: integer expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a DeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPrivateCloudsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest */ - DeletePrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) + ListPrivateCloudsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); - if (object.force != null) - message.force = Boolean(object.force); - if (object.delayHours != null) - message.delayHours = object.delayHours | 0; + var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a DeletePrivateCloudRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPrivateCloudsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static - * @param {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} message DeletePrivateCloudRequest + * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} message ListPrivateCloudsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePrivateCloudRequest.toObject = function toObject(message, options) { + ListPrivateCloudsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.requestId = ""; - object.force = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.delayHours != null && message.hasOwnProperty("delayHours")) { - object.delayHours = message.delayHours; - if (options.oneofs) - object._delayHours = "delayHours"; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this DeletePrivateCloudRequest to JSON. + * Converts this ListPrivateCloudsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance * @returns {Object.} JSON object */ - DeletePrivateCloudRequest.prototype.toJSON = function toJSON() { + ListPrivateCloudsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePrivateCloudRequest + * Gets the default type url for ListPrivateCloudsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPrivateCloudsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeletePrivateCloudRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsRequest"; }; - return DeletePrivateCloudRequest; + return ListPrivateCloudsRequest; })(); - v1.UndeletePrivateCloudRequest = (function() { + v1.ListPrivateCloudsResponse = (function() { /** - * Properties of an UndeletePrivateCloudRequest. + * Properties of a ListPrivateCloudsResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IUndeletePrivateCloudRequest - * @property {string|null} [name] UndeletePrivateCloudRequest name - * @property {string|null} [requestId] UndeletePrivateCloudRequest requestId + * @interface IListPrivateCloudsResponse + * @property {Array.|null} [privateClouds] ListPrivateCloudsResponse privateClouds + * @property {string|null} [nextPageToken] ListPrivateCloudsResponse nextPageToken + * @property {Array.|null} [unreachable] ListPrivateCloudsResponse unreachable */ /** - * Constructs a new UndeletePrivateCloudRequest. + * Constructs a new ListPrivateCloudsResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UndeletePrivateCloudRequest. - * @implements IUndeletePrivateCloudRequest + * @classdesc Represents a ListPrivateCloudsResponse. + * @implements IListPrivateCloudsResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set */ - function UndeletePrivateCloudRequest(properties) { + function ListPrivateCloudsResponse(properties) { + this.privateClouds = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3054,89 +2868,109 @@ } /** - * UndeletePrivateCloudRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * ListPrivateCloudsResponse privateClouds. + * @member {Array.} privateClouds + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @instance */ - UndeletePrivateCloudRequest.prototype.name = ""; + ListPrivateCloudsResponse.prototype.privateClouds = $util.emptyArray; /** - * UndeletePrivateCloudRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * ListPrivateCloudsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @instance */ - UndeletePrivateCloudRequest.prototype.requestId = ""; + ListPrivateCloudsResponse.prototype.nextPageToken = ""; /** - * Creates a new UndeletePrivateCloudRequest instance using the specified properties. + * ListPrivateCloudsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @instance + */ + ListPrivateCloudsResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListPrivateCloudsResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static - * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest instance + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse instance */ - UndeletePrivateCloudRequest.create = function create(properties) { - return new UndeletePrivateCloudRequest(properties); + ListPrivateCloudsResponse.create = function create(properties) { + return new ListPrivateCloudsResponse(properties); }; /** - * Encodes the specified UndeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. + * Encodes the specified ListPrivateCloudsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static - * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeletePrivateCloudRequest.encode = function encode(message, writer) { + ListPrivateCloudsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.privateClouds != null && message.privateClouds.length) + for (var i = 0; i < message.privateClouds.length; ++i) + $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateClouds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified UndeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. + * Encodes the specified ListPrivateCloudsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static - * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPrivateCloudsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer. + * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeletePrivateCloudRequest.decode = function decode(reader, length) { + ListPrivateCloudsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.privateClouds && message.privateClouds.length)) + message.privateClouds = []; + message.privateClouds.push($root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32())); break; } case 2: { - message.requestId = reader.string(); + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -3148,135 +2982,169 @@ }; /** - * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + ListPrivateCloudsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeletePrivateCloudRequest message. + * Verifies a ListPrivateCloudsResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeletePrivateCloudRequest.verify = function verify(message) { + ListPrivateCloudsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.privateClouds != null && message.hasOwnProperty("privateClouds")) { + if (!Array.isArray(message.privateClouds)) + return "privateClouds: array expected"; + for (var i = 0; i < message.privateClouds.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateClouds[i]); + if (error) + return "privateClouds." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates an UndeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPrivateCloudsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse */ - UndeletePrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) + ListPrivateCloudsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); + if (object.privateClouds) { + if (!Array.isArray(object.privateClouds)) + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: array expected"); + message.privateClouds = []; + for (var i = 0; i < object.privateClouds.length; ++i) { + if (typeof object.privateClouds[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: object expected"); + message.privateClouds[i] = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateClouds[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from an UndeletePrivateCloudRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPrivateCloudsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static - * @param {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} message UndeletePrivateCloudRequest + * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} message ListPrivateCloudsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeletePrivateCloudRequest.toObject = function toObject(message, options) { + ListPrivateCloudsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.requestId = ""; + if (options.arrays || options.defaults) { + object.privateClouds = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.privateClouds && message.privateClouds.length) { + object.privateClouds = []; + for (var j = 0; j < message.privateClouds.length; ++j) + object.privateClouds[j] = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateClouds[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; return object; }; /** - * Converts this UndeletePrivateCloudRequest to JSON. + * Converts this ListPrivateCloudsResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @instance * @returns {Object.} JSON object */ - UndeletePrivateCloudRequest.prototype.toJSON = function toJSON() { + ListPrivateCloudsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndeletePrivateCloudRequest + * Gets the default type url for ListPrivateCloudsResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPrivateCloudsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsResponse"; }; - return UndeletePrivateCloudRequest; + return ListPrivateCloudsResponse; })(); - v1.ListClustersRequest = (function() { + v1.GetPrivateCloudRequest = (function() { /** - * Properties of a ListClustersRequest. + * Properties of a GetPrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListClustersRequest - * @property {string|null} [parent] ListClustersRequest parent - * @property {number|null} [pageSize] ListClustersRequest pageSize - * @property {string|null} [pageToken] ListClustersRequest pageToken - * @property {string|null} [filter] ListClustersRequest filter - * @property {string|null} [orderBy] ListClustersRequest orderBy + * @interface IGetPrivateCloudRequest + * @property {string|null} [name] GetPrivateCloudRequest name */ /** - * Constructs a new ListClustersRequest. + * Constructs a new GetPrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListClustersRequest. - * @implements IListClustersRequest + * @classdesc Represents a GetPrivateCloudRequest. + * @implements IGetPrivateCloudRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set */ - function ListClustersRequest(properties) { + function GetPrivateCloudRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3284,131 +3152,75 @@ } /** - * ListClustersRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest - * @instance - */ - ListClustersRequest.prototype.parent = ""; - - /** - * ListClustersRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest - * @instance - */ - ListClustersRequest.prototype.pageSize = 0; - - /** - * ListClustersRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest - * @instance - */ - ListClustersRequest.prototype.pageToken = ""; - - /** - * ListClustersRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest - * @instance - */ - ListClustersRequest.prototype.filter = ""; - - /** - * ListClustersRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * GetPrivateCloudRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @instance */ - ListClustersRequest.prototype.orderBy = ""; + GetPrivateCloudRequest.prototype.name = ""; /** - * Creates a new ListClustersRequest instance using the specified properties. + * Creates a new GetPrivateCloudRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest instance + * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest instance */ - ListClustersRequest.create = function create(properties) { - return new ListClustersRequest(properties); + GetPrivateCloudRequest.create = function create(properties) { + return new GetPrivateCloudRequest(properties); }; /** - * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified GetPrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encode = function encode(message, writer) { + GetPrivateCloudRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified GetPrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer. + * Decodes a GetPrivateCloudRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest + * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decode = function decode(reader, length) { + GetPrivateCloudRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.name = reader.string(); break; } default: @@ -3420,159 +3232,126 @@ }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPrivateCloudRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest + * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { + GetPrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersRequest message. + * Verifies a GetPrivateCloudRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersRequest.verify = function verify(message) { + GetPrivateCloudRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest + * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest */ - ListClustersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersRequest) + GetPrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPrivateCloudRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.ListClustersRequest} message ListClustersRequest + * @param {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} message GetPrivateCloudRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersRequest.toObject = function toObject(message, options) { + GetPrivateCloudRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListClustersRequest to JSON. + * Converts this GetPrivateCloudRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @instance * @returns {Object.} JSON object */ - ListClustersRequest.prototype.toJSON = function toJSON() { + GetPrivateCloudRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListClustersRequest + * Gets the default type url for GetPrivateCloudRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListClustersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetPrivateCloudRequest"; }; - return ListClustersRequest; + return GetPrivateCloudRequest; })(); - v1.ListClustersResponse = (function() { + v1.CreatePrivateCloudRequest = (function() { /** - * Properties of a ListClustersResponse. + * Properties of a CreatePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListClustersResponse - * @property {Array.|null} [clusters] ListClustersResponse clusters - * @property {string|null} [nextPageToken] ListClustersResponse nextPageToken - * @property {Array.|null} [unreachable] ListClustersResponse unreachable + * @interface ICreatePrivateCloudRequest + * @property {string|null} [parent] CreatePrivateCloudRequest parent + * @property {string|null} [privateCloudId] CreatePrivateCloudRequest privateCloudId + * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] CreatePrivateCloudRequest privateCloud + * @property {string|null} [requestId] CreatePrivateCloudRequest requestId + * @property {boolean|null} [validateOnly] CreatePrivateCloudRequest validateOnly */ /** - * Constructs a new ListClustersResponse. + * Constructs a new CreatePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListClustersResponse. - * @implements IListClustersResponse + * @classdesc Represents a CreatePrivateCloudRequest. + * @implements ICreatePrivateCloudRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set */ - function ListClustersResponse(properties) { - this.clusters = []; - this.unreachable = []; + function CreatePrivateCloudRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3580,109 +3359,131 @@ } /** - * ListClustersResponse clusters. - * @member {Array.} clusters - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * CreatePrivateCloudRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @instance */ - ListClustersResponse.prototype.clusters = $util.emptyArray; + CreatePrivateCloudRequest.prototype.parent = ""; /** - * ListClustersResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * CreatePrivateCloudRequest privateCloudId. + * @member {string} privateCloudId + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @instance */ - ListClustersResponse.prototype.nextPageToken = ""; + CreatePrivateCloudRequest.prototype.privateCloudId = ""; /** - * ListClustersResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse - * @instance - */ - ListClustersResponse.prototype.unreachable = $util.emptyArray; + * CreatePrivateCloudRequest privateCloud. + * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + */ + CreatePrivateCloudRequest.prototype.privateCloud = null; /** - * Creates a new ListClustersResponse instance using the specified properties. + * CreatePrivateCloudRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + */ + CreatePrivateCloudRequest.prototype.requestId = ""; + + /** + * CreatePrivateCloudRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + */ + CreatePrivateCloudRequest.prototype.validateOnly = false; + + /** + * Creates a new CreatePrivateCloudRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse instance + * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest instance */ - ListClustersResponse.create = function create(properties) { - return new ListClustersResponse(properties); + CreatePrivateCloudRequest.create = function create(properties) { + return new CreatePrivateCloudRequest(properties); }; /** - * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified CreatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encode = function encode(message, writer) { + CreatePrivateCloudRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clusters != null && message.clusters.length) - for (var i = 0; i < message.clusters.length; ++i) - $root.google.cloud.vmwareengine.v1.Cluster.encode(message.clusters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.privateCloudId != null && Object.hasOwnProperty.call(message, "privateCloudId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.privateCloudId); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly); return writer; }; /** - * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified CreatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer. + * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse + * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decode = function decode(reader, length) { + CreatePrivateCloudRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.clusters && message.clusters.length)) - message.clusters = []; - message.clusters.push($root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.privateCloudId = reader.string(); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + case 5: { + message.validateOnly = reader.bool(); break; } default: @@ -3694,169 +3495,162 @@ }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. + * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse + * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { + CreatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersResponse message. + * Verifies a CreatePrivateCloudRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersResponse.verify = function verify(message) { + CreatePrivateCloudRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.clusters != null && message.hasOwnProperty("clusters")) { - if (!Array.isArray(message.clusters)) - return "clusters: array expected"; - for (var i = 0; i < message.clusters.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.clusters[i]); - if (error) - return "clusters." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId")) + if (!$util.isString(message.privateCloudId)) + return "privateCloudId: string expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) { + var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud); + if (error) + return "privateCloud." + error; } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; return null; }; /** - * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse + * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest */ - ListClustersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersResponse) + CreatePrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse(); - if (object.clusters) { - if (!Array.isArray(object.clusters)) - throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: array expected"); - message.clusters = []; - for (var i = 0; i < object.clusters.length; ++i) { - if (typeof object.clusters[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: object expected"); - message.clusters[i] = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.clusters[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + var message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.privateCloudId != null) + message.privateCloudId = String(object.privateCloudId); + if (object.privateCloud != null) { + if (typeof object.privateCloud !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.privateCloud: object expected"); + message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud); } + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreatePrivateCloudRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.ListClustersResponse} message ListClustersResponse + * @param {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} message CreatePrivateCloudRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersResponse.toObject = function toObject(message, options) { + CreatePrivateCloudRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.clusters = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.clusters && message.clusters.length) { - object.clusters = []; - for (var j = 0; j < message.clusters.length; ++j) - object.clusters[j] = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.clusters[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.parent = ""; + object.privateCloudId = ""; + object.privateCloud = null; + object.requestId = ""; + object.validateOnly = false; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId")) + object.privateCloudId = message.privateCloudId; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; return object; }; /** - * Converts this ListClustersResponse to JSON. + * Converts this CreatePrivateCloudRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @instance * @returns {Object.} JSON object */ - ListClustersResponse.prototype.toJSON = function toJSON() { + CreatePrivateCloudRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListClustersResponse + * Gets the default type url for CreatePrivateCloudRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListClustersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreatePrivateCloudRequest"; }; - return ListClustersResponse; + return CreatePrivateCloudRequest; })(); - v1.GetClusterRequest = (function() { + v1.UpdatePrivateCloudRequest = (function() { /** - * Properties of a GetClusterRequest. + * Properties of an UpdatePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetClusterRequest - * @property {string|null} [name] GetClusterRequest name + * @interface IUpdatePrivateCloudRequest + * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] UpdatePrivateCloudRequest privateCloud + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePrivateCloudRequest updateMask + * @property {string|null} [requestId] UpdatePrivateCloudRequest requestId */ /** - * Constructs a new GetClusterRequest. + * Constructs a new UpdatePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetClusterRequest. - * @implements IGetClusterRequest + * @classdesc Represents an UpdatePrivateCloudRequest. + * @implements IUpdatePrivateCloudRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set */ - function GetClusterRequest(properties) { + function UpdatePrivateCloudRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3864,75 +3658,103 @@ } /** - * GetClusterRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * UpdatePrivateCloudRequest privateCloud. + * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @instance */ - GetClusterRequest.prototype.name = ""; + UpdatePrivateCloudRequest.prototype.privateCloud = null; /** - * Creates a new GetClusterRequest instance using the specified properties. + * UpdatePrivateCloudRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @instance + */ + UpdatePrivateCloudRequest.prototype.updateMask = null; + + /** + * UpdatePrivateCloudRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @instance + */ + UpdatePrivateCloudRequest.prototype.requestId = ""; + + /** + * Creates a new UpdatePrivateCloudRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest instance + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest instance */ - GetClusterRequest.create = function create(properties) { - return new GetClusterRequest(properties); + UpdatePrivateCloudRequest.create = function create(properties) { + return new UpdatePrivateCloudRequest(properties); }; /** - * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. + * Encodes the specified UpdatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetClusterRequest.encode = function encode(message, writer) { + UpdatePrivateCloudRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. + * Encodes the specified UpdatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetClusterRequest message from the specified reader or buffer. + * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetClusterRequest.decode = function decode(reader, length) { + UpdatePrivateCloudRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); break; } default: @@ -3944,126 +3766,152 @@ }; /** - * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetClusterRequest.decodeDelimited = function decodeDelimited(reader) { + UpdatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetClusterRequest message. + * Verifies an UpdatePrivateCloudRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetClusterRequest.verify = function verify(message) { + UpdatePrivateCloudRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) { + var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud); + if (error) + return "privateCloud." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest */ - GetClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetClusterRequest) + UpdatePrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); + if (object.privateCloud != null) { + if (typeof object.privateCloud !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.privateCloud: object expected"); + message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdatePrivateCloudRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.GetClusterRequest} message GetClusterRequest + * @param {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} message UpdatePrivateCloudRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetClusterRequest.toObject = function toObject(message, options) { + UpdatePrivateCloudRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.privateCloud = null; + object.updateMask = null; + object.requestId = ""; + } + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this GetClusterRequest to JSON. + * Converts this UpdatePrivateCloudRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @instance * @returns {Object.} JSON object */ - GetClusterRequest.prototype.toJSON = function toJSON() { + UpdatePrivateCloudRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetClusterRequest + * Gets the default type url for UpdatePrivateCloudRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetClusterRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest"; }; - return GetClusterRequest; + return UpdatePrivateCloudRequest; })(); - v1.CreateClusterRequest = (function() { + v1.DeletePrivateCloudRequest = (function() { /** - * Properties of a CreateClusterRequest. + * Properties of a DeletePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreateClusterRequest - * @property {string|null} [parent] CreateClusterRequest parent - * @property {string|null} [clusterId] CreateClusterRequest clusterId - * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] CreateClusterRequest cluster - * @property {string|null} [requestId] CreateClusterRequest requestId - * @property {boolean|null} [validateOnly] CreateClusterRequest validateOnly + * @interface IDeletePrivateCloudRequest + * @property {string|null} [name] DeletePrivateCloudRequest name + * @property {string|null} [requestId] DeletePrivateCloudRequest requestId + * @property {boolean|null} [force] DeletePrivateCloudRequest force + * @property {number|null} [delayHours] DeletePrivateCloudRequest delayHours */ /** - * Constructs a new CreateClusterRequest. + * Constructs a new DeletePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreateClusterRequest. - * @implements ICreateClusterRequest + * @classdesc Represents a DeletePrivateCloudRequest. + * @implements IDeletePrivateCloudRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set */ - function CreateClusterRequest(properties) { + function DeletePrivateCloudRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4071,131 +3919,131 @@ } /** - * CreateClusterRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * DeletePrivateCloudRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @instance */ - CreateClusterRequest.prototype.parent = ""; + DeletePrivateCloudRequest.prototype.name = ""; /** - * CreateClusterRequest clusterId. - * @member {string} clusterId - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * DeletePrivateCloudRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @instance */ - CreateClusterRequest.prototype.clusterId = ""; + DeletePrivateCloudRequest.prototype.requestId = ""; /** - * CreateClusterRequest cluster. - * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * DeletePrivateCloudRequest force. + * @member {boolean} force + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @instance */ - CreateClusterRequest.prototype.cluster = null; + DeletePrivateCloudRequest.prototype.force = false; /** - * CreateClusterRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * DeletePrivateCloudRequest delayHours. + * @member {number|null|undefined} delayHours + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @instance */ - CreateClusterRequest.prototype.requestId = ""; + DeletePrivateCloudRequest.prototype.delayHours = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CreateClusterRequest validateOnly. - * @member {boolean} validateOnly - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * DeletePrivateCloudRequest _delayHours. + * @member {"delayHours"|undefined} _delayHours + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @instance */ - CreateClusterRequest.prototype.validateOnly = false; + Object.defineProperty(DeletePrivateCloudRequest.prototype, "_delayHours", { + get: $util.oneOfGetter($oneOfFields = ["delayHours"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CreateClusterRequest instance using the specified properties. + * Creates a new DeletePrivateCloudRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest instance + * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest instance */ - CreateClusterRequest.create = function create(properties) { - return new CreateClusterRequest(properties); + DeletePrivateCloudRequest.create = function create(properties) { + return new DeletePrivateCloudRequest(properties); }; /** - * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. + * Encodes the specified DeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateClusterRequest.encode = function encode(message, writer) { + DeletePrivateCloudRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); - if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.delayHours != null && Object.hasOwnProperty.call(message, "delayHours")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.delayHours); return writer; }; /** - * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. + * Encodes the specified DeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer. + * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateClusterRequest.decode = function decode(reader, length) { + DeletePrivateCloudRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.clusterId = reader.string(); + message.requestId = reader.string(); break; } case 3: { - message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32()); + message.force = reader.bool(); break; } case 4: { - message.requestId = reader.string(); - break; - } - case 5: { - message.validateOnly = reader.bool(); + message.delayHours = reader.int32(); break; } default: @@ -4207,163 +4055,153 @@ }; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + DeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateClusterRequest message. + * Verifies a DeletePrivateCloudRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateClusterRequest.verify = function verify(message) { + DeletePrivateCloudRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster); - if (error) - return "cluster." + error; - } + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - if (typeof message.validateOnly !== "boolean") - return "validateOnly: boolean expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.delayHours != null && message.hasOwnProperty("delayHours")) { + properties._delayHours = 1; + if (!$util.isInteger(message.delayHours)) + return "delayHours: integer expected"; + } return null; }; /** - * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest */ - CreateClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreateClusterRequest) + DeletePrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreateClusterRequest.cluster: object expected"); - message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster); - } + var message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); + if (object.name != null) + message.name = String(object.name); if (object.requestId != null) message.requestId = String(object.requestId); - if (object.validateOnly != null) - message.validateOnly = Boolean(object.validateOnly); + if (object.force != null) + message.force = Boolean(object.force); + if (object.delayHours != null) + message.delayHours = object.delayHours | 0; return message; }; /** - * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeletePrivateCloudRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.CreateClusterRequest} message CreateClusterRequest + * @param {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} message DeletePrivateCloudRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateClusterRequest.toObject = function toObject(message, options) { + DeletePrivateCloudRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.clusterId = ""; - object.cluster = null; + object.name = ""; object.requestId = ""; - object.validateOnly = false; + object.force = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - object.validateOnly = message.validateOnly; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.delayHours != null && message.hasOwnProperty("delayHours")) { + object.delayHours = message.delayHours; + if (options.oneofs) + object._delayHours = "delayHours"; + } return object; }; /** - * Converts this CreateClusterRequest to JSON. + * Converts this DeletePrivateCloudRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @instance * @returns {Object.} JSON object */ - CreateClusterRequest.prototype.toJSON = function toJSON() { + DeletePrivateCloudRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateClusterRequest + * Gets the default type url for DeletePrivateCloudRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateClusterRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeletePrivateCloudRequest"; }; - return CreateClusterRequest; + return DeletePrivateCloudRequest; })(); - v1.UpdateClusterRequest = (function() { + v1.UndeletePrivateCloudRequest = (function() { /** - * Properties of an UpdateClusterRequest. + * Properties of an UndeletePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdateClusterRequest - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateClusterRequest updateMask - * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] UpdateClusterRequest cluster - * @property {string|null} [requestId] UpdateClusterRequest requestId - * @property {boolean|null} [validateOnly] UpdateClusterRequest validateOnly + * @interface IUndeletePrivateCloudRequest + * @property {string|null} [name] UndeletePrivateCloudRequest name + * @property {string|null} [requestId] UndeletePrivateCloudRequest requestId */ /** - * Constructs a new UpdateClusterRequest. + * Constructs a new UndeletePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdateClusterRequest. - * @implements IUpdateClusterRequest + * @classdesc Represents an UndeletePrivateCloudRequest. + * @implements IUndeletePrivateCloudRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set */ - function UpdateClusterRequest(properties) { + function UndeletePrivateCloudRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4371,119 +4209,91 @@ } /** - * UpdateClusterRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest - * @instance - */ - UpdateClusterRequest.prototype.updateMask = null; - - /** - * UpdateClusterRequest cluster. - * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * UndeletePrivateCloudRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @instance */ - UpdateClusterRequest.prototype.cluster = null; + UndeletePrivateCloudRequest.prototype.name = ""; /** - * UpdateClusterRequest requestId. + * UndeletePrivateCloudRequest requestId. * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest - * @instance - */ - UpdateClusterRequest.prototype.requestId = ""; - - /** - * UpdateClusterRequest validateOnly. - * @member {boolean} validateOnly - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @instance */ - UpdateClusterRequest.prototype.validateOnly = false; + UndeletePrivateCloudRequest.prototype.requestId = ""; /** - * Creates a new UpdateClusterRequest instance using the specified properties. + * Creates a new UndeletePrivateCloudRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest instance + * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest instance */ - UpdateClusterRequest.create = function create(properties) { - return new UpdateClusterRequest(properties); + UndeletePrivateCloudRequest.create = function create(properties) { + return new UndeletePrivateCloudRequest(properties); }; /** - * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. + * Encodes the specified UndeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateClusterRequest.encode = function encode(message, writer) { + UndeletePrivateCloudRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); - if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. + * Encodes the specified UndeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + UndeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer. + * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateClusterRequest.decode = function decode(reader, length) { + UndeletePrivateCloudRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32()); - break; - } - case 3: { message.requestId = reader.string(); break; } - case 4: { - message.validateOnly = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -4493,158 +4303,135 @@ }; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. + * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + UndeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateClusterRequest message. + * Verifies an UndeletePrivateCloudRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateClusterRequest.verify = function verify(message) { + UndeletePrivateCloudRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster); - if (error) - return "cluster." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - if (typeof message.validateOnly !== "boolean") - return "validateOnly: boolean expected"; return null; }; /** - * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest */ - UpdateClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateClusterRequest) + UndeletePrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest(); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.cluster: object expected"); - message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster); - } + var message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); + if (object.name != null) + message.name = String(object.name); if (object.requestId != null) message.requestId = String(object.requestId); - if (object.validateOnly != null) - message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from an UndeletePrivateCloudRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.UpdateClusterRequest} message UpdateClusterRequest + * @param {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} message UndeletePrivateCloudRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateClusterRequest.toObject = function toObject(message, options) { + UndeletePrivateCloudRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.updateMask = null; - object.cluster = null; + object.name = ""; object.requestId = ""; - object.validateOnly = false; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - object.validateOnly = message.validateOnly; return object; }; /** - * Converts this UpdateClusterRequest to JSON. + * Converts this UndeletePrivateCloudRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @instance * @returns {Object.} JSON object */ - UpdateClusterRequest.prototype.toJSON = function toJSON() { + UndeletePrivateCloudRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateClusterRequest + * Gets the default type url for UndeletePrivateCloudRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateClusterRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest"; }; - return UpdateClusterRequest; + return UndeletePrivateCloudRequest; })(); - v1.DeleteClusterRequest = (function() { + v1.ListClustersRequest = (function() { /** - * Properties of a DeleteClusterRequest. + * Properties of a ListClustersRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IDeleteClusterRequest - * @property {string|null} [name] DeleteClusterRequest name - * @property {string|null} [requestId] DeleteClusterRequest requestId + * @interface IListClustersRequest + * @property {string|null} [parent] ListClustersRequest parent + * @property {number|null} [pageSize] ListClustersRequest pageSize + * @property {string|null} [pageToken] ListClustersRequest pageToken + * @property {string|null} [filter] ListClustersRequest filter + * @property {string|null} [orderBy] ListClustersRequest orderBy */ /** - * Constructs a new DeleteClusterRequest. + * Constructs a new ListClustersRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeleteClusterRequest. - * @implements IDeleteClusterRequest + * @classdesc Represents a ListClustersRequest. + * @implements IListClustersRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set */ - function DeleteClusterRequest(properties) { + function ListClustersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4652,331 +4439,131 @@ } /** - * DeleteClusterRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * ListClustersRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @instance */ - DeleteClusterRequest.prototype.name = ""; + ListClustersRequest.prototype.parent = ""; /** - * DeleteClusterRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * ListClustersRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @instance */ - DeleteClusterRequest.prototype.requestId = ""; + ListClustersRequest.prototype.pageSize = 0; /** - * Creates a new DeleteClusterRequest instance using the specified properties. + * ListClustersRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.pageToken = ""; + + /** + * ListClustersRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.filter = ""; + + /** + * ListClustersRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.orderBy = ""; + + /** + * Creates a new ListClustersRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest instance + * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest instance */ - DeleteClusterRequest.create = function create(properties) { - return new DeleteClusterRequest(properties); + ListClustersRequest.create = function create(properties) { + return new ListClustersRequest(properties); }; /** - * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. + * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteClusterRequest.encode = function encode(message, writer) { + ListClustersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. + * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * Decodes a ListClustersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteClusterRequest.decode = function decode(reader, length) { + ListClustersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.requestId = reader.string(); + message.pageSize = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteClusterRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteClusterRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - return null; - }; - - /** - * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest - */ - DeleteClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteClusterRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); - return message; - }; - - /** - * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest - * @static - * @param {google.cloud.vmwareengine.v1.DeleteClusterRequest} message DeleteClusterRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteClusterRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.requestId = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; - return object; - }; - - /** - * Converts this DeleteClusterRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteClusterRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DeleteClusterRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteClusterRequest"; - }; - - return DeleteClusterRequest; - })(); - - v1.ListSubnetsRequest = (function() { - - /** - * Properties of a ListSubnetsRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface IListSubnetsRequest - * @property {string|null} [parent] ListSubnetsRequest parent - * @property {number|null} [pageSize] ListSubnetsRequest pageSize - * @property {string|null} [pageToken] ListSubnetsRequest pageToken - */ - - /** - * Constructs a new ListSubnetsRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListSubnetsRequest. - * @implements IListSubnetsRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set - */ - function ListSubnetsRequest(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]]; - } - - /** - * ListSubnetsRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest - * @instance - */ - ListSubnetsRequest.prototype.parent = ""; - - /** - * ListSubnetsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest - * @instance - */ - ListSubnetsRequest.prototype.pageSize = 0; - - /** - * ListSubnetsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest - * @instance - */ - ListSubnetsRequest.prototype.pageToken = ""; - - /** - * Creates a new ListSubnetsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest instance - */ - ListSubnetsRequest.create = function create(properties) { - return new ListSubnetsRequest(properties); - }; - - /** - * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListSubnetsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - return writer; - }; - - /** - * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListSubnetsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListSubnetsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListSubnetsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); + case 3: { + message.pageToken = reader.string(); break; } - case 2: { - message.pageSize = reader.int32(); + case 4: { + message.filter = reader.string(); break; } - case 3: { - message.pageToken = reader.string(); + case 5: { + message.orderBy = reader.string(); break; } default: @@ -4988,30 +4575,30 @@ }; /** - * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest + * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSubnetsRequest.decodeDelimited = function decodeDelimited(reader) { + ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSubnetsRequest message. + * Verifies a ListClustersRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSubnetsRequest.verify = function verify(message) { + ListClustersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -5023,40 +4610,50 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest + * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest */ - ListSubnetsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsRequest) + ListClustersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest(); + var message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static - * @param {google.cloud.vmwareengine.v1.ListSubnetsRequest} message ListSubnetsRequest + * @param {google.cloud.vmwareengine.v1.ListClustersRequest} message ListClustersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSubnetsRequest.toObject = function toObject(message, options) { + ListClustersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -5064,6 +4661,8 @@ object.parent = ""; object.pageSize = 0; object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -5071,59 +4670,63 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this ListSubnetsRequest to JSON. + * Converts this ListClustersRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @instance * @returns {Object.} JSON object */ - ListSubnetsRequest.prototype.toJSON = function toJSON() { + ListClustersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSubnetsRequest + * Gets the default type url for ListClustersRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSubnetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListClustersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersRequest"; }; - return ListSubnetsRequest; + return ListClustersRequest; })(); - v1.ListSubnetsResponse = (function() { + v1.ListClustersResponse = (function() { /** - * Properties of a ListSubnetsResponse. + * Properties of a ListClustersResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IListSubnetsResponse - * @property {Array.|null} [subnets] ListSubnetsResponse subnets - * @property {string|null} [nextPageToken] ListSubnetsResponse nextPageToken - * @property {Array.|null} [unreachable] ListSubnetsResponse unreachable + * @interface IListClustersResponse + * @property {Array.|null} [clusters] ListClustersResponse clusters + * @property {string|null} [nextPageToken] ListClustersResponse nextPageToken + * @property {Array.|null} [unreachable] ListClustersResponse unreachable */ /** - * Constructs a new ListSubnetsResponse. + * Constructs a new ListClustersResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListSubnetsResponse. - * @implements IListSubnetsResponse + * @classdesc Represents a ListClustersResponse. + * @implements IListClustersResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set */ - function ListSubnetsResponse(properties) { - this.subnets = []; + function ListClustersResponse(properties) { + this.clusters = []; this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -5132,56 +4735,56 @@ } /** - * ListSubnetsResponse subnets. - * @member {Array.} subnets - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * ListClustersResponse clusters. + * @member {Array.} clusters + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @instance */ - ListSubnetsResponse.prototype.subnets = $util.emptyArray; + ListClustersResponse.prototype.clusters = $util.emptyArray; /** - * ListSubnetsResponse nextPageToken. + * ListClustersResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @instance */ - ListSubnetsResponse.prototype.nextPageToken = ""; + ListClustersResponse.prototype.nextPageToken = ""; /** - * ListSubnetsResponse unreachable. + * ListClustersResponse unreachable. * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @instance */ - ListSubnetsResponse.prototype.unreachable = $util.emptyArray; + ListClustersResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new ListSubnetsResponse instance using the specified properties. + * Creates a new ListClustersResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse instance + * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse instance */ - ListSubnetsResponse.create = function create(properties) { - return new ListSubnetsResponse(properties); + ListClustersResponse.create = function create(properties) { + return new ListClustersResponse(properties); }; /** - * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. + * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSubnetsResponse.encode = function encode(message, writer) { + ListClustersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.subnets != null && message.subnets.length) - for (var i = 0; i < message.subnets.length; ++i) - $root.google.cloud.vmwareengine.v1.Subnet.encode(message.subnets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clusters != null && message.clusters.length) + for (var i = 0; i < message.clusters.length; ++i) + $root.google.cloud.vmwareengine.v1.Cluster.encode(message.clusters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); if (message.unreachable != null && message.unreachable.length) @@ -5191,40 +4794,40 @@ }; /** - * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. + * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSubnetsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSubnetsResponse message from the specified reader or buffer. + * Decodes a ListClustersResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse + * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSubnetsResponse.decode = function decode(reader, length) { + ListClustersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.subnets && message.subnets.length)) - message.subnets = []; - message.subnets.push($root.google.cloud.vmwareengine.v1.Subnet.decode(reader, reader.uint32())); + if (!(message.clusters && message.clusters.length)) + message.clusters = []; + message.clusters.push($root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32())); break; } case 2: { @@ -5246,39 +4849,39 @@ }; /** - * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse + * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSubnetsResponse.decodeDelimited = function decodeDelimited(reader) { + ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSubnetsResponse message. + * Verifies a ListClustersResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSubnetsResponse.verify = function verify(message) { + ListClustersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.subnets != null && message.hasOwnProperty("subnets")) { - if (!Array.isArray(message.subnets)) - return "subnets: array expected"; - for (var i = 0; i < message.subnets.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.Subnet.verify(message.subnets[i]); + if (message.clusters != null && message.hasOwnProperty("clusters")) { + if (!Array.isArray(message.clusters)) + return "clusters: array expected"; + for (var i = 0; i < message.clusters.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.clusters[i]); if (error) - return "subnets." + error; + return "clusters." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -5295,32 +4898,32 @@ }; /** - * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse + * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse */ - ListSubnetsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsResponse) + ListClustersResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse(); - if (object.subnets) { - if (!Array.isArray(object.subnets)) - throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: array expected"); - message.subnets = []; - for (var i = 0; i < object.subnets.length; ++i) { - if (typeof object.subnets[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: object expected"); - message.subnets[i] = $root.google.cloud.vmwareengine.v1.Subnet.fromObject(object.subnets[i]); + var message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse(); + if (object.clusters) { + if (!Array.isArray(object.clusters)) + throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: array expected"); + message.clusters = []; + for (var i = 0; i < object.clusters.length; ++i) { + if (typeof object.clusters[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: object expected"); + message.clusters[i] = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.clusters[i]); } } if (object.nextPageToken != null) message.nextPageToken = String(object.nextPageToken); if (object.unreachable) { if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.unreachable: array expected"); + throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.unreachable: array expected"); message.unreachable = []; for (var i = 0; i < object.unreachable.length; ++i) message.unreachable[i] = String(object.unreachable[i]); @@ -5329,28 +4932,28 @@ }; /** - * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static - * @param {google.cloud.vmwareengine.v1.ListSubnetsResponse} message ListSubnetsResponse + * @param {google.cloud.vmwareengine.v1.ListClustersResponse} message ListClustersResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSubnetsResponse.toObject = function toObject(message, options) { + ListClustersResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.subnets = []; + object.clusters = []; object.unreachable = []; } if (options.defaults) object.nextPageToken = ""; - if (message.subnets && message.subnets.length) { - object.subnets = []; - for (var j = 0; j < message.subnets.length; ++j) - object.subnets[j] = $root.google.cloud.vmwareengine.v1.Subnet.toObject(message.subnets[j], options); + if (message.clusters && message.clusters.length) { + object.clusters = []; + for (var j = 0; j < message.clusters.length; ++j) + object.clusters[j] = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.clusters[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -5363,52 +4966,52 @@ }; /** - * Converts this ListSubnetsResponse to JSON. + * Converts this ListClustersResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @instance * @returns {Object.} JSON object */ - ListSubnetsResponse.prototype.toJSON = function toJSON() { + ListClustersResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSubnetsResponse + * Gets the default type url for ListClustersResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSubnetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListClustersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersResponse"; }; - return ListSubnetsResponse; + return ListClustersResponse; })(); - v1.GetSubnetRequest = (function() { + v1.GetClusterRequest = (function() { /** - * Properties of a GetSubnetRequest. + * Properties of a GetClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetSubnetRequest - * @property {string|null} [name] GetSubnetRequest name + * @interface IGetClusterRequest + * @property {string|null} [name] GetClusterRequest name */ /** - * Constructs a new GetSubnetRequest. + * Constructs a new GetClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetSubnetRequest. - * @implements IGetSubnetRequest + * @classdesc Represents a GetClusterRequest. + * @implements IGetClusterRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set */ - function GetSubnetRequest(properties) { + function GetClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5416,35 +5019,35 @@ } /** - * GetSubnetRequest name. + * GetClusterRequest name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @instance */ - GetSubnetRequest.prototype.name = ""; + GetClusterRequest.prototype.name = ""; /** - * Creates a new GetSubnetRequest instance using the specified properties. + * Creates a new GetClusterRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetSubnetRequest} GetSubnetRequest instance - */ - GetSubnetRequest.create = function create(properties) { - return new GetSubnetRequest(properties); + * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest instance + */ + GetClusterRequest.create = function create(properties) { + return new GetClusterRequest(properties); }; /** - * Encodes the specified GetSubnetRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetSubnetRequest.verify|verify} messages. + * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest} message GetSubnetRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSubnetRequest.encode = function encode(message, writer) { + GetClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -5453,33 +5056,33 @@ }; /** - * Encodes the specified GetSubnetRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetSubnetRequest.verify|verify} messages. + * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest} message GetSubnetRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSubnetRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSubnetRequest message from the specified reader or buffer. + * Decodes a GetClusterRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetSubnetRequest} GetSubnetRequest + * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSubnetRequest.decode = function decode(reader, length) { + GetClusterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetSubnetRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -5496,30 +5099,30 @@ }; /** - * Decodes a GetSubnetRequest message from the specified reader or buffer, length delimited. + * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetSubnetRequest} GetSubnetRequest + * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSubnetRequest.decodeDelimited = function decodeDelimited(reader) { + GetClusterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSubnetRequest message. + * Verifies a GetClusterRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSubnetRequest.verify = function verify(message) { + GetClusterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -5529,32 +5132,32 @@ }; /** - * Creates a GetSubnetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetSubnetRequest} GetSubnetRequest + * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest */ - GetSubnetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetSubnetRequest) + GetClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetClusterRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetSubnetRequest(); + var message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetSubnetRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.GetSubnetRequest} message GetSubnetRequest + * @param {google.cloud.vmwareengine.v1.GetClusterRequest} message GetClusterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSubnetRequest.toObject = function toObject(message, options) { + GetClusterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -5566,53 +5169,56 @@ }; /** - * Converts this GetSubnetRequest to JSON. + * Converts this GetClusterRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @instance * @returns {Object.} JSON object */ - GetSubnetRequest.prototype.toJSON = function toJSON() { + GetClusterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSubnetRequest + * Gets the default type url for GetClusterRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSubnetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetSubnetRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetClusterRequest"; }; - return GetSubnetRequest; + return GetClusterRequest; })(); - v1.UpdateSubnetRequest = (function() { + v1.CreateClusterRequest = (function() { /** - * Properties of an UpdateSubnetRequest. + * Properties of a CreateClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdateSubnetRequest - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSubnetRequest updateMask - * @property {google.cloud.vmwareengine.v1.ISubnet|null} [subnet] UpdateSubnetRequest subnet + * @interface ICreateClusterRequest + * @property {string|null} [parent] CreateClusterRequest parent + * @property {string|null} [clusterId] CreateClusterRequest clusterId + * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] CreateClusterRequest cluster + * @property {string|null} [requestId] CreateClusterRequest requestId + * @property {boolean|null} [validateOnly] CreateClusterRequest validateOnly */ /** - * Constructs a new UpdateSubnetRequest. + * Constructs a new CreateClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdateSubnetRequest. - * @implements IUpdateSubnetRequest + * @classdesc Represents a CreateClusterRequest. + * @implements ICreateClusterRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set */ - function UpdateSubnetRequest(properties) { + function CreateClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5620,89 +5226,131 @@ } /** - * UpdateSubnetRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * CreateClusterRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @instance */ - UpdateSubnetRequest.prototype.updateMask = null; + CreateClusterRequest.prototype.parent = ""; /** - * UpdateSubnetRequest subnet. - * @member {google.cloud.vmwareengine.v1.ISubnet|null|undefined} subnet - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * CreateClusterRequest clusterId. + * @member {string} clusterId + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @instance */ - UpdateSubnetRequest.prototype.subnet = null; + CreateClusterRequest.prototype.clusterId = ""; /** - * Creates a new UpdateSubnetRequest instance using the specified properties. + * CreateClusterRequest cluster. + * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.cluster = null; + + /** + * CreateClusterRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.requestId = ""; + + /** + * CreateClusterRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.validateOnly = false; + + /** + * Creates a new CreateClusterRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdateSubnetRequest} UpdateSubnetRequest instance + * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest instance */ - UpdateSubnetRequest.create = function create(properties) { - return new UpdateSubnetRequest(properties); + CreateClusterRequest.create = function create(properties) { + return new CreateClusterRequest(properties); }; /** - * Encodes the specified UpdateSubnetRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateSubnetRequest.verify|verify} messages. + * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest} message UpdateSubnetRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSubnetRequest.encode = function encode(message, writer) { + CreateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.subnet != null && Object.hasOwnProperty.call(message, "subnet")) - $root.google.cloud.vmwareengine.v1.Subnet.encode(message.subnet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly); return writer; }; /** - * Encodes the specified UpdateSubnetRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateSubnetRequest.verify|verify} messages. + * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest} message UpdateSubnetRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSubnetRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSubnetRequest message from the specified reader or buffer. + * Decodes a CreateClusterRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdateSubnetRequest} UpdateSubnetRequest + * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSubnetRequest.decode = function decode(reader, length) { + CreateClusterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateSubnetRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.subnet = $root.google.cloud.vmwareengine.v1.Subnet.decode(reader, reader.uint32()); + message.clusterId = reader.string(); + break; + } + case 3: { + message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + case 5: { + message.validateOnly = reader.bool(); break; } default: @@ -5714,147 +5362,163 @@ }; /** - * Decodes an UpdateSubnetRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdateSubnetRequest} UpdateSubnetRequest + * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSubnetRequest.decodeDelimited = function decodeDelimited(reader) { + CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSubnetRequest message. + * Verifies a CreateClusterRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSubnetRequest.verify = function verify(message) { + CreateClusterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.subnet != null && message.hasOwnProperty("subnet")) { - var error = $root.google.cloud.vmwareengine.v1.Subnet.verify(message.subnet); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster); if (error) - return "subnet." + error; + return "cluster." + error; } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; return null; }; /** - * Creates an UpdateSubnetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdateSubnetRequest} UpdateSubnetRequest + * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest */ - UpdateSubnetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateSubnetRequest) + CreateClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateClusterRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdateSubnetRequest(); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateSubnetRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.subnet != null) { - if (typeof object.subnet !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateSubnetRequest.subnet: object expected"); - message.subnet = $root.google.cloud.vmwareengine.v1.Subnet.fromObject(object.subnet); + var message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateClusterRequest.cluster: object expected"); + message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster); } + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from an UpdateSubnetRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.UpdateSubnetRequest} message UpdateSubnetRequest + * @param {google.cloud.vmwareengine.v1.CreateClusterRequest} message CreateClusterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSubnetRequest.toObject = function toObject(message, options) { + CreateClusterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.updateMask = null; - object.subnet = null; + object.parent = ""; + object.clusterId = ""; + object.cluster = null; + object.requestId = ""; + object.validateOnly = false; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.subnet != null && message.hasOwnProperty("subnet")) - object.subnet = $root.google.cloud.vmwareengine.v1.Subnet.toObject(message.subnet, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; return object; }; /** - * Converts this UpdateSubnetRequest to JSON. + * Converts this CreateClusterRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @instance * @returns {Object.} JSON object */ - UpdateSubnetRequest.prototype.toJSON = function toJSON() { + CreateClusterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateSubnetRequest + * Gets the default type url for CreateClusterRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateSubnetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateSubnetRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateClusterRequest"; }; - return UpdateSubnetRequest; + return CreateClusterRequest; })(); - v1.OperationMetadata = (function() { + v1.UpdateClusterRequest = (function() { /** - * Properties of an OperationMetadata. + * Properties of an UpdateClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IOperationMetadata - * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime - * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime - * @property {string|null} [target] OperationMetadata target - * @property {string|null} [verb] OperationMetadata verb - * @property {string|null} [statusMessage] OperationMetadata statusMessage - * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation - * @property {string|null} [apiVersion] OperationMetadata apiVersion + * @interface IUpdateClusterRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateClusterRequest updateMask + * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] UpdateClusterRequest cluster + * @property {string|null} [requestId] UpdateClusterRequest requestId + * @property {boolean|null} [validateOnly] UpdateClusterRequest validateOnly */ /** - * Constructs a new OperationMetadata. + * Constructs a new UpdateClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an OperationMetadata. - * @implements IOperationMetadata + * @classdesc Represents an UpdateClusterRequest. + * @implements IUpdateClusterRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set */ - function OperationMetadata(properties) { + function UpdateClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5862,159 +5526,117 @@ } /** - * OperationMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.createTime = null; - - /** - * OperationMetadata endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.vmwareengine.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.endTime = null; - - /** - * OperationMetadata target. - * @member {string} target - * @memberof google.cloud.vmwareengine.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.target = ""; - - /** - * OperationMetadata verb. - * @member {string} verb - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * UpdateClusterRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance */ - OperationMetadata.prototype.verb = ""; + UpdateClusterRequest.prototype.updateMask = null; /** - * OperationMetadata statusMessage. - * @member {string} statusMessage - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * UpdateClusterRequest cluster. + * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance */ - OperationMetadata.prototype.statusMessage = ""; + UpdateClusterRequest.prototype.cluster = null; /** - * OperationMetadata requestedCancellation. - * @member {boolean} requestedCancellation - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * UpdateClusterRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance */ - OperationMetadata.prototype.requestedCancellation = false; + UpdateClusterRequest.prototype.requestId = ""; /** - * OperationMetadata apiVersion. - * @member {string} apiVersion - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * UpdateClusterRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance */ - OperationMetadata.prototype.apiVersion = ""; + UpdateClusterRequest.prototype.validateOnly = false; /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new UpdateClusterRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata instance + * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest instance */ - OperationMetadata.create = function create(properties) { - return new OperationMetadata(properties); + UpdateClusterRequest.create = function create(properties) { + return new UpdateClusterRequest(properties); }; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encode = function encode(message, writer) { + UpdateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); - if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); - if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly); return writer; }; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes an UpdateClusterRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decode = function decode(reader, length) { + UpdateClusterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.OperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 2: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32()); break; } case 3: { - message.target = reader.string(); + message.requestId = reader.string(); break; } case 4: { - message.verb = reader.string(); - break; - } - case 5: { - message.statusMessage = reader.string(); - break; - } - case 6: { - message.requestedCancellation = reader.bool(); - break; - } - case 7: { - message.apiVersion = reader.string(); + message.validateOnly = reader.bool(); break; } default: @@ -6026,184 +5648,158 @@ }; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OperationMetadata message. + * Verifies an UpdateClusterRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OperationMetadata.verify = function verify(message) { + UpdateClusterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "createTime." + error; + return "updateMask." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster); if (error) - return "endTime." + error; + return "cluster." + error; } - if (message.target != null && message.hasOwnProperty("target")) - if (!$util.isString(message.target)) - return "target: string expected"; - if (message.verb != null && message.hasOwnProperty("verb")) - if (!$util.isString(message.verb)) - return "verb: string expected"; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - if (typeof message.requestedCancellation !== "boolean") - return "requestedCancellation: boolean expected"; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - if (!$util.isString(message.apiVersion)) - return "apiVersion: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; return null; }; /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest */ - OperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.OperationMetadata) + UpdateClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateClusterRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.OperationMetadata(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.OperationMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.OperationMetadata.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.cluster: object expected"); + message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster); } - if (object.target != null) - message.target = String(object.target); - if (object.verb != null) - message.verb = String(object.verb); - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.requestedCancellation != null) - message.requestedCancellation = Boolean(object.requestedCancellation); - if (object.apiVersion != null) - message.apiVersion = String(object.apiVersion); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.OperationMetadata} message OperationMetadata + * @param {google.cloud.vmwareengine.v1.UpdateClusterRequest} message UpdateClusterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OperationMetadata.toObject = function toObject(message, options) { + UpdateClusterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.createTime = null; - object.endTime = null; - object.target = ""; - object.verb = ""; - object.statusMessage = ""; - object.requestedCancellation = false; - object.apiVersion = ""; + object.updateMask = null; + object.cluster = null; + object.requestId = ""; + object.validateOnly = false; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = message.target; - if (message.verb != null && message.hasOwnProperty("verb")) - object.verb = message.verb; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - object.requestedCancellation = message.requestedCancellation; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - object.apiVersion = message.apiVersion; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; return object; }; /** - * Converts this OperationMetadata to JSON. + * Converts this UpdateClusterRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance * @returns {Object.} JSON object */ - OperationMetadata.prototype.toJSON = function toJSON() { + UpdateClusterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for UpdateClusterRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.OperationMetadata"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateClusterRequest"; }; - return OperationMetadata; + return UpdateClusterRequest; })(); - v1.ListNodeTypesRequest = (function() { + v1.DeleteClusterRequest = (function() { /** - * Properties of a ListNodeTypesRequest. + * Properties of a DeleteClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListNodeTypesRequest - * @property {string|null} [parent] ListNodeTypesRequest parent - * @property {number|null} [pageSize] ListNodeTypesRequest pageSize - * @property {string|null} [pageToken] ListNodeTypesRequest pageToken - * @property {string|null} [filter] ListNodeTypesRequest filter + * @interface IDeleteClusterRequest + * @property {string|null} [name] DeleteClusterRequest name + * @property {string|null} [requestId] DeleteClusterRequest requestId */ /** - * Constructs a new ListNodeTypesRequest. + * Constructs a new DeleteClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListNodeTypesRequest. - * @implements IListNodeTypesRequest + * @classdesc Represents a DeleteClusterRequest. + * @implements IDeleteClusterRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set */ - function ListNodeTypesRequest(properties) { + function DeleteClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6211,59 +5807,279 @@ } /** - * ListNodeTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * DeleteClusterRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @instance */ - ListNodeTypesRequest.prototype.parent = ""; + DeleteClusterRequest.prototype.name = ""; /** - * ListNodeTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * DeleteClusterRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @instance */ - ListNodeTypesRequest.prototype.pageSize = 0; + DeleteClusterRequest.prototype.requestId = ""; /** - * ListNodeTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * Creates a new DeleteClusterRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest instance + */ + DeleteClusterRequest.create = function create(properties) { + return new DeleteClusterRequest(properties); + }; + + /** + * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteClusterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteClusterRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteClusterRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteClusterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest + */ + DeleteClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteClusterRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {google.cloud.vmwareengine.v1.DeleteClusterRequest} message DeleteClusterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteClusterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this DeleteClusterRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @instance + * @returns {Object.} JSON object */ - ListNodeTypesRequest.prototype.pageToken = ""; + DeleteClusterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ListNodeTypesRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * Gets the default type url for DeleteClusterRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteClusterRequest"; + }; + + return DeleteClusterRequest; + })(); + + v1.ListNodesRequest = (function() { + + /** + * Properties of a ListNodesRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListNodesRequest + * @property {string|null} [parent] ListNodesRequest parent + * @property {number|null} [pageSize] ListNodesRequest pageSize + * @property {string|null} [pageToken] ListNodesRequest pageToken + */ + + /** + * Constructs a new ListNodesRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListNodesRequest. + * @implements IListNodesRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IListNodesRequest=} [properties] Properties to set + */ + function ListNodesRequest(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]]; + } + + /** + * ListNodesRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @instance */ - ListNodeTypesRequest.prototype.filter = ""; + ListNodesRequest.prototype.parent = ""; /** - * Creates a new ListNodeTypesRequest instance using the specified properties. + * ListNodesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest + * @instance + */ + ListNodesRequest.prototype.pageSize = 0; + + /** + * ListNodesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest + * @instance + */ + ListNodesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListNodesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest instance + * @param {google.cloud.vmwareengine.v1.IListNodesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNodesRequest} ListNodesRequest instance */ - ListNodeTypesRequest.create = function create(properties) { - return new ListNodeTypesRequest(properties); + ListNodesRequest.create = function create(properties) { + return new ListNodesRequest(properties); }; /** - * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. + * Encodes the specified ListNodesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodesRequest} message ListNodesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodeTypesRequest.encode = function encode(message, writer) { + ListNodesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -6272,39 +6088,37 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. + * Encodes the specified ListNodesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodesRequest} message ListNodesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodeTypesRequest message from the specified reader or buffer. + * Decodes a ListNodesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest + * @returns {google.cloud.vmwareengine.v1.ListNodesRequest} ListNodesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodeTypesRequest.decode = function decode(reader, length) { + ListNodesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -6320,10 +6134,6 @@ message.pageToken = reader.string(); break; } - case 4: { - message.filter = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -6333,30 +6143,30 @@ }; /** - * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest + * @returns {google.cloud.vmwareengine.v1.ListNodesRequest} ListNodesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { + ListNodesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodeTypesRequest message. + * Verifies a ListNodesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodeTypesRequest.verify = function verify(message) { + ListNodesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -6368,45 +6178,40 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; return null; }; /** - * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest + * @returns {google.cloud.vmwareengine.v1.ListNodesRequest} ListNodesRequest */ - ListNodeTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest) + ListNodesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); + var message = new $root.google.cloud.vmwareengine.v1.ListNodesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static - * @param {google.cloud.vmwareengine.v1.ListNodeTypesRequest} message ListNodeTypesRequest + * @param {google.cloud.vmwareengine.v1.ListNodesRequest} message ListNodesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodeTypesRequest.toObject = function toObject(message, options) { + ListNodesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -6414,7 +6219,6 @@ object.parent = ""; object.pageSize = 0; object.pageToken = ""; - object.filter = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -6422,62 +6226,58 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; return object; }; /** - * Converts this ListNodeTypesRequest to JSON. + * Converts this ListNodesRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @instance * @returns {Object.} JSON object */ - ListNodeTypesRequest.prototype.toJSON = function toJSON() { + ListNodesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNodeTypesRequest + * Gets the default type url for ListNodesRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNodesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodesRequest"; }; - return ListNodeTypesRequest; + return ListNodesRequest; })(); - v1.ListNodeTypesResponse = (function() { + v1.ListNodesResponse = (function() { /** - * Properties of a ListNodeTypesResponse. + * Properties of a ListNodesResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IListNodeTypesResponse - * @property {Array.|null} [nodeTypes] ListNodeTypesResponse nodeTypes - * @property {string|null} [nextPageToken] ListNodeTypesResponse nextPageToken - * @property {Array.|null} [unreachable] ListNodeTypesResponse unreachable + * @interface IListNodesResponse + * @property {Array.|null} [nodes] ListNodesResponse nodes + * @property {string|null} [nextPageToken] ListNodesResponse nextPageToken */ /** - * Constructs a new ListNodeTypesResponse. + * Constructs a new ListNodesResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListNodeTypesResponse. - * @implements IListNodeTypesResponse + * @classdesc Represents a ListNodesResponse. + * @implements IListNodesResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListNodesResponse=} [properties] Properties to set */ - function ListNodeTypesResponse(properties) { - this.nodeTypes = []; - this.unreachable = []; + function ListNodesResponse(properties) { + this.nodes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6485,111 +6285,94 @@ } /** - * ListNodeTypesResponse nodeTypes. - * @member {Array.} nodeTypes - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * ListNodesResponse nodes. + * @member {Array.} nodes + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @instance */ - ListNodeTypesResponse.prototype.nodeTypes = $util.emptyArray; + ListNodesResponse.prototype.nodes = $util.emptyArray; /** - * ListNodeTypesResponse nextPageToken. + * ListNodesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse - * @instance - */ - ListNodeTypesResponse.prototype.nextPageToken = ""; - - /** - * ListNodeTypesResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @instance */ - ListNodeTypesResponse.prototype.unreachable = $util.emptyArray; + ListNodesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListNodeTypesResponse instance using the specified properties. + * Creates a new ListNodesResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse instance + * @param {google.cloud.vmwareengine.v1.IListNodesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNodesResponse} ListNodesResponse instance */ - ListNodeTypesResponse.create = function create(properties) { - return new ListNodeTypesResponse(properties); + ListNodesResponse.create = function create(properties) { + return new ListNodesResponse(properties); }; /** - * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. + * Encodes the specified ListNodesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodesResponse} message ListNodesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodeTypesResponse.encode = function encode(message, writer) { + ListNodesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodeTypes != null && message.nodeTypes.length) - for (var i = 0; i < message.nodeTypes.length; ++i) - $root.google.cloud.vmwareengine.v1.NodeType.encode(message.nodeTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nodes != null && message.nodes.length) + for (var i = 0; i < message.nodes.length; ++i) + $root.google.cloud.vmwareengine.v1.Node.encode(message.nodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. + * Encodes the specified ListNodesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodesResponse} message ListNodesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodeTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListNodesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodeTypesResponse message from the specified reader or buffer. + * Decodes a ListNodesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse + * @returns {google.cloud.vmwareengine.v1.ListNodesResponse} ListNodesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodeTypesResponse.decode = function decode(reader, length) { + ListNodesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.nodeTypes && message.nodeTypes.length)) - message.nodeTypes = []; - message.nodeTypes.push($root.google.cloud.vmwareengine.v1.NodeType.decode(reader, reader.uint32())); + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.google.cloud.vmwareengine.v1.Node.decode(reader, reader.uint32())); break; } case 2: { message.nextPageToken = reader.string(); break; } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -6599,169 +6382,148 @@ }; /** - * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNodesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse + * @returns {google.cloud.vmwareengine.v1.ListNodesResponse} ListNodesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodeTypesResponse.decodeDelimited = function decodeDelimited(reader) { + ListNodesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodeTypesResponse message. + * Verifies a ListNodesResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodeTypesResponse.verify = function verify(message) { + ListNodesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodeTypes != null && message.hasOwnProperty("nodeTypes")) { - if (!Array.isArray(message.nodeTypes)) - return "nodeTypes: array expected"; - for (var i = 0; i < message.nodeTypes.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.NodeType.verify(message.nodeTypes[i]); + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (var i = 0; i < message.nodes.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.Node.verify(message.nodes[i]); if (error) - return "nodeTypes." + error; + return "nodes." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) if (!$util.isString(message.nextPageToken)) return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } return null; }; /** - * Creates a ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse + * @returns {google.cloud.vmwareengine.v1.ListNodesResponse} ListNodesResponse */ - ListNodeTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse) + ListNodesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodesResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); - if (object.nodeTypes) { - if (!Array.isArray(object.nodeTypes)) - throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: array expected"); - message.nodeTypes = []; - for (var i = 0; i < object.nodeTypes.length; ++i) { - if (typeof object.nodeTypes[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: object expected"); - message.nodeTypes[i] = $root.google.cloud.vmwareengine.v1.NodeType.fromObject(object.nodeTypes[i]); + var message = new $root.google.cloud.vmwareengine.v1.ListNodesResponse(); + if (object.nodes) { + if (!Array.isArray(object.nodes)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNodesResponse.nodes: array expected"); + message.nodes = []; + for (var i = 0; i < object.nodes.length; ++i) { + if (typeof object.nodes[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListNodesResponse.nodes: object expected"); + message.nodes[i] = $root.google.cloud.vmwareengine.v1.Node.fromObject(object.nodes[i]); } } if (object.nextPageToken != null) message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } return message; }; /** - * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListNodesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static - * @param {google.cloud.vmwareengine.v1.ListNodeTypesResponse} message ListNodeTypesResponse + * @param {google.cloud.vmwareengine.v1.ListNodesResponse} message ListNodesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodeTypesResponse.toObject = function toObject(message, options) { + ListNodesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.nodeTypes = []; - object.unreachable = []; - } + if (options.arrays || options.defaults) + object.nodes = []; if (options.defaults) object.nextPageToken = ""; - if (message.nodeTypes && message.nodeTypes.length) { - object.nodeTypes = []; - for (var j = 0; j < message.nodeTypes.length; ++j) - object.nodeTypes[j] = $root.google.cloud.vmwareengine.v1.NodeType.toObject(message.nodeTypes[j], options); + if (message.nodes && message.nodes.length) { + object.nodes = []; + for (var j = 0; j < message.nodes.length; ++j) + object.nodes[j] = $root.google.cloud.vmwareengine.v1.Node.toObject(message.nodes[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } return object; }; /** - * Converts this ListNodeTypesResponse to JSON. + * Converts this ListNodesResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @instance * @returns {Object.} JSON object */ - ListNodeTypesResponse.prototype.toJSON = function toJSON() { + ListNodesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNodeTypesResponse + * Gets the default type url for ListNodesResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.ListNodesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNodeTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNodesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodesResponse"; }; - return ListNodeTypesResponse; + return ListNodesResponse; })(); - v1.GetNodeTypeRequest = (function() { + v1.GetNodeRequest = (function() { /** - * Properties of a GetNodeTypeRequest. + * Properties of a GetNodeRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetNodeTypeRequest - * @property {string|null} [name] GetNodeTypeRequest name + * @interface IGetNodeRequest + * @property {string|null} [name] GetNodeRequest name */ /** - * Constructs a new GetNodeTypeRequest. + * Constructs a new GetNodeRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetNodeTypeRequest. - * @implements IGetNodeTypeRequest + * @classdesc Represents a GetNodeRequest. + * @implements IGetNodeRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetNodeRequest=} [properties] Properties to set */ - function GetNodeTypeRequest(properties) { + function GetNodeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6769,35 +6531,35 @@ } /** - * GetNodeTypeRequest name. + * GetNodeRequest name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @instance */ - GetNodeTypeRequest.prototype.name = ""; + GetNodeRequest.prototype.name = ""; /** - * Creates a new GetNodeTypeRequest instance using the specified properties. + * Creates a new GetNodeRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest instance + * @param {google.cloud.vmwareengine.v1.IGetNodeRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetNodeRequest} GetNodeRequest instance */ - GetNodeTypeRequest.create = function create(properties) { - return new GetNodeTypeRequest(properties); + GetNodeRequest.create = function create(properties) { + return new GetNodeRequest(properties); }; /** - * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. + * Encodes the specified GetNodeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNodeRequest} message GetNodeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNodeTypeRequest.encode = function encode(message, writer) { + GetNodeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -6806,33 +6568,33 @@ }; /** - * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. + * Encodes the specified GetNodeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNodeRequest} message GetNodeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNodeTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNodeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNodeTypeRequest message from the specified reader or buffer. + * Decodes a GetNodeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest + * @returns {google.cloud.vmwareengine.v1.GetNodeRequest} GetNodeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodeTypeRequest.decode = function decode(reader, length) { + GetNodeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNodeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -6849,30 +6611,30 @@ }; /** - * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNodeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest + * @returns {google.cloud.vmwareengine.v1.GetNodeRequest} GetNodeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodeTypeRequest.decodeDelimited = function decodeDelimited(reader) { + GetNodeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNodeTypeRequest message. + * Verifies a GetNodeRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNodeTypeRequest.verify = function verify(message) { + GetNodeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -6882,32 +6644,32 @@ }; /** - * Creates a GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest + * @returns {google.cloud.vmwareengine.v1.GetNodeRequest} GetNodeRequest */ - GetNodeTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest) + GetNodeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetNodeRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); + var message = new $root.google.cloud.vmwareengine.v1.GetNodeRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNodeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static - * @param {google.cloud.vmwareengine.v1.GetNodeTypeRequest} message GetNodeTypeRequest + * @param {google.cloud.vmwareengine.v1.GetNodeRequest} message GetNodeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNodeTypeRequest.toObject = function toObject(message, options) { + GetNodeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -6919,52 +6681,56 @@ }; /** - * Converts this GetNodeTypeRequest to JSON. + * Converts this GetNodeRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @instance * @returns {Object.} JSON object */ - GetNodeTypeRequest.prototype.toJSON = function toJSON() { + GetNodeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetNodeTypeRequest + * Gets the default type url for GetNodeRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetNodeTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNodeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNodeTypeRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNodeRequest"; }; - return GetNodeTypeRequest; + return GetNodeRequest; })(); - v1.ShowNsxCredentialsRequest = (function() { + v1.ListExternalAddressesRequest = (function() { /** - * Properties of a ShowNsxCredentialsRequest. + * Properties of a ListExternalAddressesRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IShowNsxCredentialsRequest - * @property {string|null} [privateCloud] ShowNsxCredentialsRequest privateCloud + * @interface IListExternalAddressesRequest + * @property {string|null} [parent] ListExternalAddressesRequest parent + * @property {number|null} [pageSize] ListExternalAddressesRequest pageSize + * @property {string|null} [pageToken] ListExternalAddressesRequest pageToken + * @property {string|null} [filter] ListExternalAddressesRequest filter + * @property {string|null} [orderBy] ListExternalAddressesRequest orderBy */ /** - * Constructs a new ShowNsxCredentialsRequest. + * Constructs a new ListExternalAddressesRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ShowNsxCredentialsRequest. - * @implements IShowNsxCredentialsRequest + * @classdesc Represents a ListExternalAddressesRequest. + * @implements IListExternalAddressesRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesRequest=} [properties] Properties to set */ - function ShowNsxCredentialsRequest(properties) { + function ListExternalAddressesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6972,75 +6738,131 @@ } /** - * ShowNsxCredentialsRequest privateCloud. - * @member {string} privateCloud - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * ListExternalAddressesRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @instance */ - ShowNsxCredentialsRequest.prototype.privateCloud = ""; + ListExternalAddressesRequest.prototype.parent = ""; /** - * Creates a new ShowNsxCredentialsRequest instance using the specified properties. + * ListExternalAddressesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest + * @instance + */ + ListExternalAddressesRequest.prototype.pageSize = 0; + + /** + * ListExternalAddressesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest + * @instance + */ + ListExternalAddressesRequest.prototype.pageToken = ""; + + /** + * ListExternalAddressesRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest + * @instance + */ + ListExternalAddressesRequest.prototype.filter = ""; + + /** + * ListExternalAddressesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest + * @instance + */ + ListExternalAddressesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListExternalAddressesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest instance + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListExternalAddressesRequest} ListExternalAddressesRequest instance */ - ShowNsxCredentialsRequest.create = function create(properties) { - return new ShowNsxCredentialsRequest(properties); + ListExternalAddressesRequest.create = function create(properties) { + return new ListExternalAddressesRequest(properties); }; /** - * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. + * Encodes the specified ListExternalAddressesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAddressesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesRequest} message ListExternalAddressesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShowNsxCredentialsRequest.encode = function encode(message, writer) { + ListExternalAddressesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. + * Encodes the specified ListExternalAddressesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAddressesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesRequest} message ListExternalAddressesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShowNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExternalAddressesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer. + * Decodes a ListExternalAddressesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAddressesRequest} ListExternalAddressesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShowNsxCredentialsRequest.decode = function decode(reader, length) { + ListExternalAddressesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListExternalAddressesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -7052,122 +6874,159 @@ }; /** - * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExternalAddressesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAddressesRequest} ListExternalAddressesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShowNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + ListExternalAddressesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShowNsxCredentialsRequest message. + * Verifies a ListExternalAddressesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShowNsxCredentialsRequest.verify = function verify(message) { + ListExternalAddressesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - if (!$util.isString(message.privateCloud)) - return "privateCloud: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExternalAddressesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAddressesRequest} ListExternalAddressesRequest */ - ShowNsxCredentialsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) + ListExternalAddressesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListExternalAddressesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); - if (object.privateCloud != null) - message.privateCloud = String(object.privateCloud); + var message = new $root.google.cloud.vmwareengine.v1.ListExternalAddressesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExternalAddressesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static - * @param {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} message ShowNsxCredentialsRequest + * @param {google.cloud.vmwareengine.v1.ListExternalAddressesRequest} message ListExternalAddressesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShowNsxCredentialsRequest.toObject = function toObject(message, options) { + ListExternalAddressesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.privateCloud = ""; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = message.privateCloud; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this ShowNsxCredentialsRequest to JSON. + * Converts this ListExternalAddressesRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @instance * @returns {Object.} JSON object */ - ShowNsxCredentialsRequest.prototype.toJSON = function toJSON() { + ListExternalAddressesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShowNsxCredentialsRequest + * Gets the default type url for ListExternalAddressesRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShowNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExternalAddressesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListExternalAddressesRequest"; }; - return ShowNsxCredentialsRequest; + return ListExternalAddressesRequest; })(); - v1.ShowVcenterCredentialsRequest = (function() { + v1.ListExternalAddressesResponse = (function() { /** - * Properties of a ShowVcenterCredentialsRequest. + * Properties of a ListExternalAddressesResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IShowVcenterCredentialsRequest - * @property {string|null} [privateCloud] ShowVcenterCredentialsRequest privateCloud + * @interface IListExternalAddressesResponse + * @property {Array.|null} [externalAddresses] ListExternalAddressesResponse externalAddresses + * @property {string|null} [nextPageToken] ListExternalAddressesResponse nextPageToken + * @property {Array.|null} [unreachable] ListExternalAddressesResponse unreachable */ /** - * Constructs a new ShowVcenterCredentialsRequest. + * Constructs a new ListExternalAddressesResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ShowVcenterCredentialsRequest. - * @implements IShowVcenterCredentialsRequest + * @classdesc Represents a ListExternalAddressesResponse. + * @implements IListExternalAddressesResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesResponse=} [properties] Properties to set */ - function ShowVcenterCredentialsRequest(properties) { + function ListExternalAddressesResponse(properties) { + this.externalAddresses = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7175,75 +7034,109 @@ } /** - * ShowVcenterCredentialsRequest privateCloud. - * @member {string} privateCloud - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * ListExternalAddressesResponse externalAddresses. + * @member {Array.} externalAddresses + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @instance */ - ShowVcenterCredentialsRequest.prototype.privateCloud = ""; + ListExternalAddressesResponse.prototype.externalAddresses = $util.emptyArray; /** - * Creates a new ShowVcenterCredentialsRequest instance using the specified properties. + * ListExternalAddressesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse + * @instance + */ + ListExternalAddressesResponse.prototype.nextPageToken = ""; + + /** + * ListExternalAddressesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse + * @instance + */ + ListExternalAddressesResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListExternalAddressesResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest instance + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListExternalAddressesResponse} ListExternalAddressesResponse instance */ - ShowVcenterCredentialsRequest.create = function create(properties) { - return new ShowVcenterCredentialsRequest(properties); + ListExternalAddressesResponse.create = function create(properties) { + return new ListExternalAddressesResponse(properties); }; /** - * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. + * Encodes the specified ListExternalAddressesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAddressesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesResponse} message ListExternalAddressesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShowVcenterCredentialsRequest.encode = function encode(message, writer) { + ListExternalAddressesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.externalAddresses != null && message.externalAddresses.length) + for (var i = 0; i < message.externalAddresses.length; ++i) + $root.google.cloud.vmwareengine.v1.ExternalAddress.encode(message.externalAddresses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. + * Encodes the specified ListExternalAddressesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAddressesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListExternalAddressesResponse} message ListExternalAddressesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShowVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExternalAddressesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer. + * Decodes a ListExternalAddressesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAddressesResponse} ListExternalAddressesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShowVcenterCredentialsRequest.decode = function decode(reader, length) { + ListExternalAddressesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListExternalAddressesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = reader.string(); + if (!(message.externalAddresses && message.externalAddresses.length)) + message.externalAddresses = []; + message.externalAddresses.push($root.google.cloud.vmwareengine.v1.ExternalAddress.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -7255,123 +7148,171 @@ }; /** - * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExternalAddressesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAddressesResponse} ListExternalAddressesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShowVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + ListExternalAddressesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShowVcenterCredentialsRequest message. + * Verifies a ListExternalAddressesResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShowVcenterCredentialsRequest.verify = function verify(message) { + ListExternalAddressesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - if (!$util.isString(message.privateCloud)) - return "privateCloud: string expected"; + if (message.externalAddresses != null && message.hasOwnProperty("externalAddresses")) { + if (!Array.isArray(message.externalAddresses)) + return "externalAddresses: array expected"; + for (var i = 0; i < message.externalAddresses.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAddress.verify(message.externalAddresses[i]); + if (error) + return "externalAddresses." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExternalAddressesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAddressesResponse} ListExternalAddressesResponse */ - ShowVcenterCredentialsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) + ListExternalAddressesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListExternalAddressesResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); - if (object.privateCloud != null) - message.privateCloud = String(object.privateCloud); + var message = new $root.google.cloud.vmwareengine.v1.ListExternalAddressesResponse(); + if (object.externalAddresses) { + if (!Array.isArray(object.externalAddresses)) + throw TypeError(".google.cloud.vmwareengine.v1.ListExternalAddressesResponse.externalAddresses: array expected"); + message.externalAddresses = []; + for (var i = 0; i < object.externalAddresses.length; ++i) { + if (typeof object.externalAddresses[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListExternalAddressesResponse.externalAddresses: object expected"); + message.externalAddresses[i] = $root.google.cloud.vmwareengine.v1.ExternalAddress.fromObject(object.externalAddresses[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListExternalAddressesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExternalAddressesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static - * @param {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest + * @param {google.cloud.vmwareengine.v1.ListExternalAddressesResponse} message ListExternalAddressesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShowVcenterCredentialsRequest.toObject = function toObject(message, options) { + ListExternalAddressesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.externalAddresses = []; + object.unreachable = []; + } if (options.defaults) - object.privateCloud = ""; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = message.privateCloud; + object.nextPageToken = ""; + if (message.externalAddresses && message.externalAddresses.length) { + object.externalAddresses = []; + for (var j = 0; j < message.externalAddresses.length; ++j) + object.externalAddresses[j] = $root.google.cloud.vmwareengine.v1.ExternalAddress.toObject(message.externalAddresses[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } return object; }; /** - * Converts this ShowVcenterCredentialsRequest to JSON. + * Converts this ListExternalAddressesResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @instance * @returns {Object.} JSON object */ - ShowVcenterCredentialsRequest.prototype.toJSON = function toJSON() { + ListExternalAddressesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShowVcenterCredentialsRequest + * Gets the default type url for ListExternalAddressesResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAddressesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShowVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExternalAddressesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListExternalAddressesResponse"; }; - return ShowVcenterCredentialsRequest; + return ListExternalAddressesResponse; })(); - v1.ResetNsxCredentialsRequest = (function() { + v1.FetchNetworkPolicyExternalAddressesRequest = (function() { /** - * Properties of a ResetNsxCredentialsRequest. + * Properties of a FetchNetworkPolicyExternalAddressesRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IResetNsxCredentialsRequest - * @property {string|null} [privateCloud] ResetNsxCredentialsRequest privateCloud - * @property {string|null} [requestId] ResetNsxCredentialsRequest requestId + * @interface IFetchNetworkPolicyExternalAddressesRequest + * @property {string|null} [networkPolicy] FetchNetworkPolicyExternalAddressesRequest networkPolicy + * @property {number|null} [pageSize] FetchNetworkPolicyExternalAddressesRequest pageSize + * @property {string|null} [pageToken] FetchNetworkPolicyExternalAddressesRequest pageToken */ /** - * Constructs a new ResetNsxCredentialsRequest. + * Constructs a new FetchNetworkPolicyExternalAddressesRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ResetNsxCredentialsRequest. - * @implements IResetNsxCredentialsRequest + * @classdesc Represents a FetchNetworkPolicyExternalAddressesRequest. + * @implements IFetchNetworkPolicyExternalAddressesRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest=} [properties] Properties to set */ - function ResetNsxCredentialsRequest(properties) { + function FetchNetworkPolicyExternalAddressesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7379,89 +7320,103 @@ } /** - * ResetNsxCredentialsRequest privateCloud. - * @member {string} privateCloud - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * FetchNetworkPolicyExternalAddressesRequest networkPolicy. + * @member {string} networkPolicy + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @instance */ - ResetNsxCredentialsRequest.prototype.privateCloud = ""; + FetchNetworkPolicyExternalAddressesRequest.prototype.networkPolicy = ""; /** - * ResetNsxCredentialsRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * FetchNetworkPolicyExternalAddressesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @instance */ - ResetNsxCredentialsRequest.prototype.requestId = ""; + FetchNetworkPolicyExternalAddressesRequest.prototype.pageSize = 0; /** - * Creates a new ResetNsxCredentialsRequest instance using the specified properties. + * FetchNetworkPolicyExternalAddressesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + * @instance + */ + FetchNetworkPolicyExternalAddressesRequest.prototype.pageToken = ""; + + /** + * Creates a new FetchNetworkPolicyExternalAddressesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest instance + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest} FetchNetworkPolicyExternalAddressesRequest instance */ - ResetNsxCredentialsRequest.create = function create(properties) { - return new ResetNsxCredentialsRequest(properties); + FetchNetworkPolicyExternalAddressesRequest.create = function create(properties) { + return new FetchNetworkPolicyExternalAddressesRequest(properties); }; /** - * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * Encodes the specified FetchNetworkPolicyExternalAddressesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest} message FetchNetworkPolicyExternalAddressesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetNsxCredentialsRequest.encode = function encode(message, writer) { + FetchNetworkPolicyExternalAddressesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.networkPolicy); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * Encodes the specified FetchNetworkPolicyExternalAddressesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest} message FetchNetworkPolicyExternalAddressesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchNetworkPolicyExternalAddressesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer. + * Decodes a FetchNetworkPolicyExternalAddressesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest} FetchNetworkPolicyExternalAddressesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetNsxCredentialsRequest.decode = function decode(reader, length) { + FetchNetworkPolicyExternalAddressesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = reader.string(); + message.networkPolicy = reader.string(); break; } case 2: { - message.requestId = reader.string(); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -7473,132 +7428,141 @@ }; /** - * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchNetworkPolicyExternalAddressesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest} FetchNetworkPolicyExternalAddressesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + FetchNetworkPolicyExternalAddressesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetNsxCredentialsRequest message. + * Verifies a FetchNetworkPolicyExternalAddressesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetNsxCredentialsRequest.verify = function verify(message) { + FetchNetworkPolicyExternalAddressesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - if (!$util.isString(message.privateCloud)) - return "privateCloud: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + if (!$util.isString(message.networkPolicy)) + return "networkPolicy: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchNetworkPolicyExternalAddressesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest} FetchNetworkPolicyExternalAddressesRequest */ - ResetNsxCredentialsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) + FetchNetworkPolicyExternalAddressesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); - if (object.privateCloud != null) - message.privateCloud = String(object.privateCloud); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest(); + if (object.networkPolicy != null) + message.networkPolicy = String(object.networkPolicy); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchNetworkPolicyExternalAddressesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static - * @param {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} message ResetNsxCredentialsRequest + * @param {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest} message FetchNetworkPolicyExternalAddressesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetNsxCredentialsRequest.toObject = function toObject(message, options) { + FetchNetworkPolicyExternalAddressesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.privateCloud = ""; - object.requestId = ""; + object.networkPolicy = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = message.privateCloud; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = message.networkPolicy; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ResetNsxCredentialsRequest to JSON. + * Converts this FetchNetworkPolicyExternalAddressesRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @instance * @returns {Object.} JSON object */ - ResetNsxCredentialsRequest.prototype.toJSON = function toJSON() { + FetchNetworkPolicyExternalAddressesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetNsxCredentialsRequest + * Gets the default type url for FetchNetworkPolicyExternalAddressesRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchNetworkPolicyExternalAddressesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest"; }; - return ResetNsxCredentialsRequest; + return FetchNetworkPolicyExternalAddressesRequest; })(); - v1.ResetVcenterCredentialsRequest = (function() { + v1.FetchNetworkPolicyExternalAddressesResponse = (function() { /** - * Properties of a ResetVcenterCredentialsRequest. + * Properties of a FetchNetworkPolicyExternalAddressesResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IResetVcenterCredentialsRequest - * @property {string|null} [privateCloud] ResetVcenterCredentialsRequest privateCloud - * @property {string|null} [requestId] ResetVcenterCredentialsRequest requestId + * @interface IFetchNetworkPolicyExternalAddressesResponse + * @property {Array.|null} [externalAddresses] FetchNetworkPolicyExternalAddressesResponse externalAddresses + * @property {string|null} [nextPageToken] FetchNetworkPolicyExternalAddressesResponse nextPageToken */ /** - * Constructs a new ResetVcenterCredentialsRequest. + * Constructs a new FetchNetworkPolicyExternalAddressesResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ResetVcenterCredentialsRequest. - * @implements IResetVcenterCredentialsRequest + * @classdesc Represents a FetchNetworkPolicyExternalAddressesResponse. + * @implements IFetchNetworkPolicyExternalAddressesResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse=} [properties] Properties to set */ - function ResetVcenterCredentialsRequest(properties) { + function FetchNetworkPolicyExternalAddressesResponse(properties) { + this.externalAddresses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7606,89 +7570,92 @@ } /** - * ResetVcenterCredentialsRequest privateCloud. - * @member {string} privateCloud - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * FetchNetworkPolicyExternalAddressesResponse externalAddresses. + * @member {Array.} externalAddresses + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @instance */ - ResetVcenterCredentialsRequest.prototype.privateCloud = ""; + FetchNetworkPolicyExternalAddressesResponse.prototype.externalAddresses = $util.emptyArray; /** - * ResetVcenterCredentialsRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * FetchNetworkPolicyExternalAddressesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @instance */ - ResetVcenterCredentialsRequest.prototype.requestId = ""; + FetchNetworkPolicyExternalAddressesResponse.prototype.nextPageToken = ""; /** - * Creates a new ResetVcenterCredentialsRequest instance using the specified properties. + * Creates a new FetchNetworkPolicyExternalAddressesResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest instance + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse} FetchNetworkPolicyExternalAddressesResponse instance */ - ResetVcenterCredentialsRequest.create = function create(properties) { - return new ResetVcenterCredentialsRequest(properties); + FetchNetworkPolicyExternalAddressesResponse.create = function create(properties) { + return new FetchNetworkPolicyExternalAddressesResponse(properties); }; /** - * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. + * Encodes the specified FetchNetworkPolicyExternalAddressesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse} message FetchNetworkPolicyExternalAddressesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetVcenterCredentialsRequest.encode = function encode(message, writer) { + FetchNetworkPolicyExternalAddressesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.externalAddresses != null && message.externalAddresses.length) + for (var i = 0; i < message.externalAddresses.length; ++i) + $root.google.cloud.vmwareengine.v1.ExternalAddress.encode(message.externalAddresses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. + * Encodes the specified FetchNetworkPolicyExternalAddressesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse} message FetchNetworkPolicyExternalAddressesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchNetworkPolicyExternalAddressesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer. + * Decodes a FetchNetworkPolicyExternalAddressesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse} FetchNetworkPolicyExternalAddressesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetVcenterCredentialsRequest.decode = function decode(reader, length) { + FetchNetworkPolicyExternalAddressesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = reader.string(); + if (!(message.externalAddresses && message.externalAddresses.length)) + message.externalAddresses = []; + message.externalAddresses.push($root.google.cloud.vmwareengine.v1.ExternalAddress.decode(reader, reader.uint32())); break; } case 2: { - message.requestId = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -7700,135 +7667,148 @@ }; /** - * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchNetworkPolicyExternalAddressesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse} FetchNetworkPolicyExternalAddressesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + FetchNetworkPolicyExternalAddressesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetVcenterCredentialsRequest message. + * Verifies a FetchNetworkPolicyExternalAddressesResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetVcenterCredentialsRequest.verify = function verify(message) { + FetchNetworkPolicyExternalAddressesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - if (!$util.isString(message.privateCloud)) - return "privateCloud: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.externalAddresses != null && message.hasOwnProperty("externalAddresses")) { + if (!Array.isArray(message.externalAddresses)) + return "externalAddresses: array expected"; + for (var i = 0; i < message.externalAddresses.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAddress.verify(message.externalAddresses[i]); + if (error) + return "externalAddresses." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchNetworkPolicyExternalAddressesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse} FetchNetworkPolicyExternalAddressesResponse */ - ResetVcenterCredentialsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) + FetchNetworkPolicyExternalAddressesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); - if (object.privateCloud != null) - message.privateCloud = String(object.privateCloud); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse(); + if (object.externalAddresses) { + if (!Array.isArray(object.externalAddresses)) + throw TypeError(".google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.externalAddresses: array expected"); + message.externalAddresses = []; + for (var i = 0; i < object.externalAddresses.length; ++i) { + if (typeof object.externalAddresses[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.externalAddresses: object expected"); + message.externalAddresses[i] = $root.google.cloud.vmwareengine.v1.ExternalAddress.fromObject(object.externalAddresses[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchNetworkPolicyExternalAddressesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static - * @param {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest + * @param {google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse} message FetchNetworkPolicyExternalAddressesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetVcenterCredentialsRequest.toObject = function toObject(message, options) { + FetchNetworkPolicyExternalAddressesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.privateCloud = ""; - object.requestId = ""; + if (options.arrays || options.defaults) + object.externalAddresses = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.externalAddresses && message.externalAddresses.length) { + object.externalAddresses = []; + for (var j = 0; j < message.externalAddresses.length; ++j) + object.externalAddresses[j] = $root.google.cloud.vmwareengine.v1.ExternalAddress.toObject(message.externalAddresses[j], options); } - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = message.privateCloud; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ResetVcenterCredentialsRequest to JSON. + * Converts this FetchNetworkPolicyExternalAddressesResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @instance * @returns {Object.} JSON object */ - ResetVcenterCredentialsRequest.prototype.toJSON = function toJSON() { + FetchNetworkPolicyExternalAddressesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetVcenterCredentialsRequest + * Gets the default type url for FetchNetworkPolicyExternalAddressesResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchNetworkPolicyExternalAddressesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse"; }; - return ResetVcenterCredentialsRequest; + return FetchNetworkPolicyExternalAddressesResponse; })(); - v1.ListHcxActivationKeysResponse = (function() { + v1.GetExternalAddressRequest = (function() { /** - * Properties of a ListHcxActivationKeysResponse. + * Properties of a GetExternalAddressRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListHcxActivationKeysResponse - * @property {Array.|null} [hcxActivationKeys] ListHcxActivationKeysResponse hcxActivationKeys - * @property {string|null} [nextPageToken] ListHcxActivationKeysResponse nextPageToken - * @property {Array.|null} [unreachable] ListHcxActivationKeysResponse unreachable + * @interface IGetExternalAddressRequest + * @property {string|null} [name] GetExternalAddressRequest name */ /** - * Constructs a new ListHcxActivationKeysResponse. + * Constructs a new GetExternalAddressRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListHcxActivationKeysResponse. - * @implements IListHcxActivationKeysResponse + * @classdesc Represents a GetExternalAddressRequest. + * @implements IGetExternalAddressRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetExternalAddressRequest=} [properties] Properties to set */ - function ListHcxActivationKeysResponse(properties) { - this.hcxActivationKeys = []; - this.unreachable = []; + function GetExternalAddressRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7836,109 +7816,75 @@ } /** - * ListHcxActivationKeysResponse hcxActivationKeys. - * @member {Array.} hcxActivationKeys - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse - * @instance - */ - ListHcxActivationKeysResponse.prototype.hcxActivationKeys = $util.emptyArray; - - /** - * ListHcxActivationKeysResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse - * @instance - */ - ListHcxActivationKeysResponse.prototype.nextPageToken = ""; - - /** - * ListHcxActivationKeysResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * GetExternalAddressRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @instance */ - ListHcxActivationKeysResponse.prototype.unreachable = $util.emptyArray; + GetExternalAddressRequest.prototype.name = ""; /** - * Creates a new ListHcxActivationKeysResponse instance using the specified properties. + * Creates a new GetExternalAddressRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse instance + * @param {google.cloud.vmwareengine.v1.IGetExternalAddressRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetExternalAddressRequest} GetExternalAddressRequest instance */ - ListHcxActivationKeysResponse.create = function create(properties) { - return new ListHcxActivationKeysResponse(properties); + GetExternalAddressRequest.create = function create(properties) { + return new GetExternalAddressRequest(properties); }; /** - * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * Encodes the specified GetExternalAddressRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetExternalAddressRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetExternalAddressRequest} message GetExternalAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHcxActivationKeysResponse.encode = function encode(message, writer) { + GetExternalAddressRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hcxActivationKeys != null && message.hcxActivationKeys.length) - for (var i = 0; i < message.hcxActivationKeys.length; ++i) - $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * Encodes the specified GetExternalAddressRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetExternalAddressRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetExternalAddressRequest} message GetExternalAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHcxActivationKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetExternalAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer. + * Decodes a GetExternalAddressRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + * @returns {google.cloud.vmwareengine.v1.GetExternalAddressRequest} GetExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHcxActivationKeysResponse.decode = function decode(reader, length) { + GetExternalAddressRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetExternalAddressRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.hcxActivationKeys && message.hcxActivationKeys.length)) - message.hcxActivationKeys = []; - message.hcxActivationKeys.push($root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.name = reader.string(); break; } default: @@ -7950,171 +7896,125 @@ }; /** - * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited. + * Decodes a GetExternalAddressRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + * @returns {google.cloud.vmwareengine.v1.GetExternalAddressRequest} GetExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHcxActivationKeysResponse.decodeDelimited = function decodeDelimited(reader) { + GetExternalAddressRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHcxActivationKeysResponse message. + * Verifies a GetExternalAddressRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHcxActivationKeysResponse.verify = function verify(message) { + GetExternalAddressRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hcxActivationKeys != null && message.hasOwnProperty("hcxActivationKeys")) { - if (!Array.isArray(message.hcxActivationKeys)) - return "hcxActivationKeys: array expected"; - for (var i = 0; i < message.hcxActivationKeys.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKeys[i]); - if (error) - return "hcxActivationKeys." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetExternalAddressRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + * @returns {google.cloud.vmwareengine.v1.GetExternalAddressRequest} GetExternalAddressRequest */ - ListHcxActivationKeysResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) + GetExternalAddressRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetExternalAddressRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); - if (object.hcxActivationKeys) { - if (!Array.isArray(object.hcxActivationKeys)) - throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: array expected"); - message.hcxActivationKeys = []; - for (var i = 0; i < object.hcxActivationKeys.length; ++i) { - if (typeof object.hcxActivationKeys[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: object expected"); - message.hcxActivationKeys[i] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKeys[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.vmwareengine.v1.GetExternalAddressRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetExternalAddressRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} message ListHcxActivationKeysResponse + * @param {google.cloud.vmwareengine.v1.GetExternalAddressRequest} message GetExternalAddressRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHcxActivationKeysResponse.toObject = function toObject(message, options) { + GetExternalAddressRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.hcxActivationKeys = []; - object.unreachable = []; - } if (options.defaults) - object.nextPageToken = ""; - if (message.hcxActivationKeys && message.hcxActivationKeys.length) { - object.hcxActivationKeys = []; - for (var j = 0; j < message.hcxActivationKeys.length; ++j) - object.hcxActivationKeys[j] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKeys[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListHcxActivationKeysResponse to JSON. + * Converts this GetExternalAddressRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @instance * @returns {Object.} JSON object */ - ListHcxActivationKeysResponse.prototype.toJSON = function toJSON() { + GetExternalAddressRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHcxActivationKeysResponse + * Gets the default type url for GetExternalAddressRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.GetExternalAddressRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHcxActivationKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetExternalAddressRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetExternalAddressRequest"; }; - return ListHcxActivationKeysResponse; + return GetExternalAddressRequest; })(); - v1.ListHcxActivationKeysRequest = (function() { + v1.CreateExternalAddressRequest = (function() { /** - * Properties of a ListHcxActivationKeysRequest. + * Properties of a CreateExternalAddressRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListHcxActivationKeysRequest - * @property {string|null} [parent] ListHcxActivationKeysRequest parent - * @property {number|null} [pageSize] ListHcxActivationKeysRequest pageSize - * @property {string|null} [pageToken] ListHcxActivationKeysRequest pageToken + * @interface ICreateExternalAddressRequest + * @property {string|null} [parent] CreateExternalAddressRequest parent + * @property {google.cloud.vmwareengine.v1.IExternalAddress|null} [externalAddress] CreateExternalAddressRequest externalAddress + * @property {string|null} [externalAddressId] CreateExternalAddressRequest externalAddressId + * @property {string|null} [requestId] CreateExternalAddressRequest requestId */ /** - * Constructs a new ListHcxActivationKeysRequest. + * Constructs a new CreateExternalAddressRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListHcxActivationKeysRequest. - * @implements IListHcxActivationKeysRequest + * @classdesc Represents a CreateExternalAddressRequest. + * @implements ICreateExternalAddressRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateExternalAddressRequest=} [properties] Properties to set */ - function ListHcxActivationKeysRequest(properties) { + function CreateExternalAddressRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8122,90 +8022,100 @@ } /** - * ListHcxActivationKeysRequest parent. + * CreateExternalAddressRequest parent. * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @instance */ - ListHcxActivationKeysRequest.prototype.parent = ""; + CreateExternalAddressRequest.prototype.parent = ""; /** - * ListHcxActivationKeysRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * CreateExternalAddressRequest externalAddress. + * @member {google.cloud.vmwareengine.v1.IExternalAddress|null|undefined} externalAddress + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @instance */ - ListHcxActivationKeysRequest.prototype.pageSize = 0; + CreateExternalAddressRequest.prototype.externalAddress = null; /** - * ListHcxActivationKeysRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * CreateExternalAddressRequest externalAddressId. + * @member {string} externalAddressId + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @instance */ - ListHcxActivationKeysRequest.prototype.pageToken = ""; + CreateExternalAddressRequest.prototype.externalAddressId = ""; /** - * Creates a new ListHcxActivationKeysRequest instance using the specified properties. + * CreateExternalAddressRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest + * @instance + */ + CreateExternalAddressRequest.prototype.requestId = ""; + + /** + * Creates a new CreateExternalAddressRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest instance + * @param {google.cloud.vmwareengine.v1.ICreateExternalAddressRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateExternalAddressRequest} CreateExternalAddressRequest instance */ - ListHcxActivationKeysRequest.create = function create(properties) { - return new ListHcxActivationKeysRequest(properties); + CreateExternalAddressRequest.create = function create(properties) { + return new CreateExternalAddressRequest(properties); }; /** - * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. + * Encodes the specified CreateExternalAddressRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateExternalAddressRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateExternalAddressRequest} message CreateExternalAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHcxActivationKeysRequest.encode = function encode(message, writer) { + CreateExternalAddressRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.externalAddress != null && Object.hasOwnProperty.call(message, "externalAddress")) + $root.google.cloud.vmwareengine.v1.ExternalAddress.encode(message.externalAddress, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.externalAddressId != null && Object.hasOwnProperty.call(message, "externalAddressId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalAddressId); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. + * Encodes the specified CreateExternalAddressRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateExternalAddressRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateExternalAddressRequest} message CreateExternalAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHcxActivationKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExternalAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer. + * Decodes a CreateExternalAddressRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest + * @returns {google.cloud.vmwareengine.v1.CreateExternalAddressRequest} CreateExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHcxActivationKeysRequest.decode = function decode(reader, length) { + CreateExternalAddressRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateExternalAddressRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8214,11 +8124,15 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.externalAddress = $root.google.cloud.vmwareengine.v1.ExternalAddress.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); + message.externalAddressId = reader.string(); + break; + } + case 4: { + message.requestId = reader.string(); break; } default: @@ -8230,139 +8144,154 @@ }; /** - * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExternalAddressRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest + * @returns {google.cloud.vmwareengine.v1.CreateExternalAddressRequest} CreateExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHcxActivationKeysRequest.decodeDelimited = function decodeDelimited(reader) { + CreateExternalAddressRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHcxActivationKeysRequest message. + * Verifies a CreateExternalAddressRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHcxActivationKeysRequest.verify = function verify(message) { + CreateExternalAddressRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.externalAddress != null && message.hasOwnProperty("externalAddress")) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAddress.verify(message.externalAddress); + if (error) + return "externalAddress." + error; + } + if (message.externalAddressId != null && message.hasOwnProperty("externalAddressId")) + if (!$util.isString(message.externalAddressId)) + return "externalAddressId: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExternalAddressRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest + * @returns {google.cloud.vmwareengine.v1.CreateExternalAddressRequest} CreateExternalAddressRequest */ - ListHcxActivationKeysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) + CreateExternalAddressRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateExternalAddressRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); + var message = new $root.google.cloud.vmwareengine.v1.CreateExternalAddressRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + if (object.externalAddress != null) { + if (typeof object.externalAddress !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateExternalAddressRequest.externalAddress: object expected"); + message.externalAddress = $root.google.cloud.vmwareengine.v1.ExternalAddress.fromObject(object.externalAddress); + } + if (object.externalAddressId != null) + message.externalAddressId = String(object.externalAddressId); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExternalAddressRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} message ListHcxActivationKeysRequest + * @param {google.cloud.vmwareengine.v1.CreateExternalAddressRequest} message CreateExternalAddressRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHcxActivationKeysRequest.toObject = function toObject(message, options) { + CreateExternalAddressRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.externalAddress = null; + object.externalAddressId = ""; + object.requestId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.externalAddress != null && message.hasOwnProperty("externalAddress")) + object.externalAddress = $root.google.cloud.vmwareengine.v1.ExternalAddress.toObject(message.externalAddress, options); + if (message.externalAddressId != null && message.hasOwnProperty("externalAddressId")) + object.externalAddressId = message.externalAddressId; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListHcxActivationKeysRequest to JSON. + * Converts this CreateExternalAddressRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @instance * @returns {Object.} JSON object */ - ListHcxActivationKeysRequest.prototype.toJSON = function toJSON() { + CreateExternalAddressRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHcxActivationKeysRequest + * Gets the default type url for CreateExternalAddressRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAddressRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHcxActivationKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateExternalAddressRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateExternalAddressRequest"; }; - return ListHcxActivationKeysRequest; + return CreateExternalAddressRequest; })(); - v1.GetHcxActivationKeyRequest = (function() { + v1.UpdateExternalAddressRequest = (function() { /** - * Properties of a GetHcxActivationKeyRequest. + * Properties of an UpdateExternalAddressRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetHcxActivationKeyRequest - * @property {string|null} [name] GetHcxActivationKeyRequest name + * @interface IUpdateExternalAddressRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExternalAddressRequest updateMask + * @property {google.cloud.vmwareengine.v1.IExternalAddress|null} [externalAddress] UpdateExternalAddressRequest externalAddress + * @property {string|null} [requestId] UpdateExternalAddressRequest requestId */ /** - * Constructs a new GetHcxActivationKeyRequest. + * Constructs a new UpdateExternalAddressRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetHcxActivationKeyRequest. - * @implements IGetHcxActivationKeyRequest + * @classdesc Represents an UpdateExternalAddressRequest. + * @implements IUpdateExternalAddressRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest=} [properties] Properties to set */ - function GetHcxActivationKeyRequest(properties) { + function UpdateExternalAddressRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8370,75 +8299,103 @@ } /** - * GetHcxActivationKeyRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * UpdateExternalAddressRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @instance */ - GetHcxActivationKeyRequest.prototype.name = ""; + UpdateExternalAddressRequest.prototype.updateMask = null; /** - * Creates a new GetHcxActivationKeyRequest instance using the specified properties. + * UpdateExternalAddressRequest externalAddress. + * @member {google.cloud.vmwareengine.v1.IExternalAddress|null|undefined} externalAddress + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest + * @instance + */ + UpdateExternalAddressRequest.prototype.externalAddress = null; + + /** + * UpdateExternalAddressRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest + * @instance + */ + UpdateExternalAddressRequest.prototype.requestId = ""; + + /** + * Creates a new UpdateExternalAddressRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest instance + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateExternalAddressRequest} UpdateExternalAddressRequest instance */ - GetHcxActivationKeyRequest.create = function create(properties) { - return new GetHcxActivationKeyRequest(properties); + UpdateExternalAddressRequest.create = function create(properties) { + return new UpdateExternalAddressRequest(properties); }; /** - * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. + * Encodes the specified UpdateExternalAddressRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest} message UpdateExternalAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHcxActivationKeyRequest.encode = function encode(message, writer) { + UpdateExternalAddressRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.externalAddress != null && Object.hasOwnProperty.call(message, "externalAddress")) + $root.google.cloud.vmwareengine.v1.ExternalAddress.encode(message.externalAddress, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. + * Encodes the specified UpdateExternalAddressRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest} message UpdateExternalAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExternalAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer. + * Decodes an UpdateExternalAddressRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.UpdateExternalAddressRequest} UpdateExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHcxActivationKeyRequest.decode = function decode(reader, length) { + UpdateExternalAddressRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 2: { + message.externalAddress = $root.google.cloud.vmwareengine.v1.ExternalAddress.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); break; } default: @@ -8450,125 +8407,150 @@ }; /** - * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExternalAddressRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.UpdateExternalAddressRequest} UpdateExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateExternalAddressRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetHcxActivationKeyRequest message. + * Verifies an UpdateExternalAddressRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetHcxActivationKeyRequest.verify = function verify(message) { + UpdateExternalAddressRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.externalAddress != null && message.hasOwnProperty("externalAddress")) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAddress.verify(message.externalAddress); + if (error) + return "externalAddress." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExternalAddressRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.UpdateExternalAddressRequest} UpdateExternalAddressRequest */ - GetHcxActivationKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) + UpdateExternalAddressRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.externalAddress != null) { + if (typeof object.externalAddress !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.externalAddress: object expected"); + message.externalAddress = $root.google.cloud.vmwareengine.v1.ExternalAddress.fromObject(object.externalAddress); + } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExternalAddressRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} message GetHcxActivationKeyRequest + * @param {google.cloud.vmwareengine.v1.UpdateExternalAddressRequest} message UpdateExternalAddressRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetHcxActivationKeyRequest.toObject = function toObject(message, options) { + UpdateExternalAddressRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.updateMask = null; + object.externalAddress = null; + object.requestId = ""; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.externalAddress != null && message.hasOwnProperty("externalAddress")) + object.externalAddress = $root.google.cloud.vmwareengine.v1.ExternalAddress.toObject(message.externalAddress, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this GetHcxActivationKeyRequest to JSON. + * Converts this UpdateExternalAddressRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @instance * @returns {Object.} JSON object */ - GetHcxActivationKeyRequest.prototype.toJSON = function toJSON() { + UpdateExternalAddressRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetHcxActivationKeyRequest + * Gets the default type url for UpdateExternalAddressRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAddressRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateExternalAddressRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateExternalAddressRequest"; }; - return GetHcxActivationKeyRequest; + return UpdateExternalAddressRequest; })(); - v1.CreateHcxActivationKeyRequest = (function() { + v1.DeleteExternalAddressRequest = (function() { /** - * Properties of a CreateHcxActivationKeyRequest. + * Properties of a DeleteExternalAddressRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreateHcxActivationKeyRequest - * @property {string|null} [parent] CreateHcxActivationKeyRequest parent - * @property {google.cloud.vmwareengine.v1.IHcxActivationKey|null} [hcxActivationKey] CreateHcxActivationKeyRequest hcxActivationKey - * @property {string|null} [hcxActivationKeyId] CreateHcxActivationKeyRequest hcxActivationKeyId - * @property {string|null} [requestId] CreateHcxActivationKeyRequest requestId + * @interface IDeleteExternalAddressRequest + * @property {string|null} [name] DeleteExternalAddressRequest name + * @property {string|null} [requestId] DeleteExternalAddressRequest requestId */ /** - * Constructs a new CreateHcxActivationKeyRequest. + * Constructs a new DeleteExternalAddressRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreateHcxActivationKeyRequest. - * @implements ICreateHcxActivationKeyRequest + * @classdesc Represents a DeleteExternalAddressRequest. + * @implements IDeleteExternalAddressRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest=} [properties] Properties to set */ - function CreateHcxActivationKeyRequest(properties) { + function DeleteExternalAddressRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8576,116 +8558,88 @@ } /** - * CreateHcxActivationKeyRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest - * @instance - */ - CreateHcxActivationKeyRequest.prototype.parent = ""; - - /** - * CreateHcxActivationKeyRequest hcxActivationKey. - * @member {google.cloud.vmwareengine.v1.IHcxActivationKey|null|undefined} hcxActivationKey - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest - * @instance - */ - CreateHcxActivationKeyRequest.prototype.hcxActivationKey = null; - - /** - * CreateHcxActivationKeyRequest hcxActivationKeyId. - * @member {string} hcxActivationKeyId - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * DeleteExternalAddressRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @instance */ - CreateHcxActivationKeyRequest.prototype.hcxActivationKeyId = ""; + DeleteExternalAddressRequest.prototype.name = ""; /** - * CreateHcxActivationKeyRequest requestId. + * DeleteExternalAddressRequest requestId. * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @instance */ - CreateHcxActivationKeyRequest.prototype.requestId = ""; + DeleteExternalAddressRequest.prototype.requestId = ""; /** - * Creates a new CreateHcxActivationKeyRequest instance using the specified properties. + * Creates a new DeleteExternalAddressRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest instance + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteExternalAddressRequest} DeleteExternalAddressRequest instance */ - CreateHcxActivationKeyRequest.create = function create(properties) { - return new CreateHcxActivationKeyRequest(properties); + DeleteExternalAddressRequest.create = function create(properties) { + return new DeleteExternalAddressRequest(properties); }; /** - * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. + * Encodes the specified DeleteExternalAddressRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest} message DeleteExternalAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHcxActivationKeyRequest.encode = function encode(message, writer) { + DeleteExternalAddressRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.hcxActivationKey != null && Object.hasOwnProperty.call(message, "hcxActivationKey")) - $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.hcxActivationKeyId != null && Object.hasOwnProperty.call(message, "hcxActivationKeyId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.hcxActivationKeyId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. + * Encodes the specified DeleteExternalAddressRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest} message DeleteExternalAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExternalAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer. + * Decodes a DeleteExternalAddressRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.DeleteExternalAddressRequest} DeleteExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHcxActivationKeyRequest.decode = function decode(reader, length) { + DeleteExternalAddressRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32()); - break; - } - case 3: { - message.hcxActivationKeyId = reader.string(); - break; - } - case 4: { message.requestId = reader.string(); break; } @@ -8698,43 +8652,35 @@ }; /** - * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExternalAddressRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.DeleteExternalAddressRequest} DeleteExternalAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteExternalAddressRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateHcxActivationKeyRequest message. + * Verifies a DeleteExternalAddressRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateHcxActivationKeyRequest.verify = function verify(message) { + DeleteExternalAddressRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) { - var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKey); - if (error) - return "hcxActivationKey." + error; - } - if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId")) - if (!$util.isString(message.hcxActivationKeyId)) - return "hcxActivationKeyId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; @@ -8742,112 +8688,97 @@ }; /** - * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExternalAddressRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.DeleteExternalAddressRequest} DeleteExternalAddressRequest */ - CreateHcxActivationKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) + DeleteExternalAddressRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.hcxActivationKey != null) { - if (typeof object.hcxActivationKey !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.hcxActivationKey: object expected"); - message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKey); - } - if (object.hcxActivationKeyId != null) - message.hcxActivationKeyId = String(object.hcxActivationKeyId); + var message = new $root.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest(); + if (object.name != null) + message.name = String(object.name); if (object.requestId != null) message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteExternalAddressRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static - * @param {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest + * @param {google.cloud.vmwareengine.v1.DeleteExternalAddressRequest} message DeleteExternalAddressRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateHcxActivationKeyRequest.toObject = function toObject(message, options) { + DeleteExternalAddressRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.hcxActivationKey = null; - object.hcxActivationKeyId = ""; + object.name = ""; object.requestId = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) - object.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKey, options); - if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId")) - object.hcxActivationKeyId = message.hcxActivationKeyId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; return object; }; /** - * Converts this CreateHcxActivationKeyRequest to JSON. + * Converts this DeleteExternalAddressRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @instance * @returns {Object.} JSON object */ - CreateHcxActivationKeyRequest.prototype.toJSON = function toJSON() { + DeleteExternalAddressRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateHcxActivationKeyRequest + * Gets the default type url for DeleteExternalAddressRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAddressRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteExternalAddressRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteExternalAddressRequest"; }; - return CreateHcxActivationKeyRequest; + return DeleteExternalAddressRequest; })(); - v1.ListNetworkPoliciesRequest = (function() { + v1.ListSubnetsRequest = (function() { /** - * Properties of a ListNetworkPoliciesRequest. + * Properties of a ListSubnetsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListNetworkPoliciesRequest - * @property {string|null} [parent] ListNetworkPoliciesRequest parent - * @property {number|null} [pageSize] ListNetworkPoliciesRequest pageSize - * @property {string|null} [pageToken] ListNetworkPoliciesRequest pageToken - * @property {string|null} [filter] ListNetworkPoliciesRequest filter - * @property {string|null} [orderBy] ListNetworkPoliciesRequest orderBy + * @interface IListSubnetsRequest + * @property {string|null} [parent] ListSubnetsRequest parent + * @property {number|null} [pageSize] ListSubnetsRequest pageSize + * @property {string|null} [pageToken] ListSubnetsRequest pageToken */ /** - * Constructs a new ListNetworkPoliciesRequest. + * Constructs a new ListSubnetsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListNetworkPoliciesRequest. - * @implements IListNetworkPoliciesRequest + * @classdesc Represents a ListSubnetsRequest. + * @implements IListSubnetsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set */ - function ListNetworkPoliciesRequest(properties) { + function ListSubnetsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8855,67 +8786,51 @@ } /** - * ListNetworkPoliciesRequest parent. + * ListSubnetsRequest parent. * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @instance */ - ListNetworkPoliciesRequest.prototype.parent = ""; + ListSubnetsRequest.prototype.parent = ""; /** - * ListNetworkPoliciesRequest pageSize. + * ListSubnetsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @instance */ - ListNetworkPoliciesRequest.prototype.pageSize = 0; + ListSubnetsRequest.prototype.pageSize = 0; /** - * ListNetworkPoliciesRequest pageToken. + * ListSubnetsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @instance - */ - ListNetworkPoliciesRequest.prototype.pageToken = ""; - - /** - * ListNetworkPoliciesRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @instance - */ - ListNetworkPoliciesRequest.prototype.filter = ""; - - /** - * ListNetworkPoliciesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @instance */ - ListNetworkPoliciesRequest.prototype.orderBy = ""; + ListSubnetsRequest.prototype.pageToken = ""; /** - * Creates a new ListNetworkPoliciesRequest instance using the specified properties. + * Creates a new ListSubnetsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest instance + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest instance */ - ListNetworkPoliciesRequest.create = function create(properties) { - return new ListNetworkPoliciesRequest(properties); + ListSubnetsRequest.create = function create(properties) { + return new ListSubnetsRequest(properties); }; /** - * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. + * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} message ListNetworkPoliciesRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkPoliciesRequest.encode = function encode(message, writer) { + ListSubnetsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -8924,41 +8839,37 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. + * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} message ListNetworkPoliciesRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSubnetsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer. + * Decodes a ListSubnetsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest + * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkPoliciesRequest.decode = function decode(reader, length) { + ListSubnetsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8974,14 +8885,6 @@ message.pageToken = reader.string(); break; } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -8991,30 +8894,30 @@ }; /** - * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest + * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListSubnetsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNetworkPoliciesRequest message. + * Verifies a ListSubnetsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNetworkPoliciesRequest.verify = function verify(message) { + ListSubnetsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -9026,50 +8929,40 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest + * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest */ - ListNetworkPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) + ListSubnetsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); + var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static - * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} message ListNetworkPoliciesRequest + * @param {google.cloud.vmwareengine.v1.ListSubnetsRequest} message ListSubnetsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNetworkPoliciesRequest.toObject = function toObject(message, options) { + ListSubnetsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -9077,8 +8970,6 @@ object.parent = ""; object.pageSize = 0; object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -9086,63 +8977,59 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListNetworkPoliciesRequest to JSON. + * Converts this ListSubnetsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @instance * @returns {Object.} JSON object */ - ListNetworkPoliciesRequest.prototype.toJSON = function toJSON() { + ListSubnetsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNetworkPoliciesRequest + * Gets the default type url for ListSubnetsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSubnetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsRequest"; }; - return ListNetworkPoliciesRequest; + return ListSubnetsRequest; })(); - v1.ListNetworkPoliciesResponse = (function() { + v1.ListSubnetsResponse = (function() { /** - * Properties of a ListNetworkPoliciesResponse. + * Properties of a ListSubnetsResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IListNetworkPoliciesResponse - * @property {Array.|null} [networkPolicies] ListNetworkPoliciesResponse networkPolicies - * @property {string|null} [nextPageToken] ListNetworkPoliciesResponse nextPageToken - * @property {Array.|null} [unreachable] ListNetworkPoliciesResponse unreachable + * @interface IListSubnetsResponse + * @property {Array.|null} [subnets] ListSubnetsResponse subnets + * @property {string|null} [nextPageToken] ListSubnetsResponse nextPageToken + * @property {Array.|null} [unreachable] ListSubnetsResponse unreachable */ /** - * Constructs a new ListNetworkPoliciesResponse. + * Constructs a new ListSubnetsResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListNetworkPoliciesResponse. - * @implements IListNetworkPoliciesResponse + * @classdesc Represents a ListSubnetsResponse. + * @implements IListSubnetsResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set */ - function ListNetworkPoliciesResponse(properties) { - this.networkPolicies = []; + function ListSubnetsResponse(properties) { + this.subnets = []; this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -9151,56 +9038,56 @@ } /** - * ListNetworkPoliciesResponse networkPolicies. - * @member {Array.} networkPolicies - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * ListSubnetsResponse subnets. + * @member {Array.} subnets + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @instance */ - ListNetworkPoliciesResponse.prototype.networkPolicies = $util.emptyArray; + ListSubnetsResponse.prototype.subnets = $util.emptyArray; /** - * ListNetworkPoliciesResponse nextPageToken. + * ListSubnetsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @instance */ - ListNetworkPoliciesResponse.prototype.nextPageToken = ""; + ListSubnetsResponse.prototype.nextPageToken = ""; /** - * ListNetworkPoliciesResponse unreachable. + * ListSubnetsResponse unreachable. * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @instance */ - ListNetworkPoliciesResponse.prototype.unreachable = $util.emptyArray; + ListSubnetsResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new ListNetworkPoliciesResponse instance using the specified properties. + * Creates a new ListSubnetsResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse instance + * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse instance */ - ListNetworkPoliciesResponse.create = function create(properties) { - return new ListNetworkPoliciesResponse(properties); + ListSubnetsResponse.create = function create(properties) { + return new ListSubnetsResponse(properties); }; /** - * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse} message ListNetworkPoliciesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkPoliciesResponse.encode = function encode(message, writer) { + ListSubnetsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.networkPolicies != null && message.networkPolicies.length) - for (var i = 0; i < message.networkPolicies.length; ++i) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicies[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subnets != null && message.subnets.length) + for (var i = 0; i < message.subnets.length; ++i) + $root.google.cloud.vmwareengine.v1.Subnet.encode(message.subnets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); if (message.unreachable != null && message.unreachable.length) @@ -9210,40 +9097,40 @@ }; /** - * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse} message ListNetworkPoliciesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkPoliciesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListSubnetsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer. + * Decodes a ListSubnetsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkPoliciesResponse.decode = function decode(reader, length) { + ListSubnetsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.networkPolicies && message.networkPolicies.length)) - message.networkPolicies = []; - message.networkPolicies.push($root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32())); + if (!(message.subnets && message.subnets.length)) + message.subnets = []; + message.subnets.push($root.google.cloud.vmwareengine.v1.Subnet.decode(reader, reader.uint32())); break; } case 2: { @@ -9265,39 +9152,39 @@ }; /** - * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkPoliciesResponse.decodeDelimited = function decodeDelimited(reader) { + ListSubnetsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNetworkPoliciesResponse message. + * Verifies a ListSubnetsResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNetworkPoliciesResponse.verify = function verify(message) { + ListSubnetsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.networkPolicies != null && message.hasOwnProperty("networkPolicies")) { - if (!Array.isArray(message.networkPolicies)) - return "networkPolicies: array expected"; - for (var i = 0; i < message.networkPolicies.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicies[i]); + if (message.subnets != null && message.hasOwnProperty("subnets")) { + if (!Array.isArray(message.subnets)) + return "subnets: array expected"; + for (var i = 0; i < message.subnets.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.Subnet.verify(message.subnets[i]); if (error) - return "networkPolicies." + error; + return "subnets." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -9314,32 +9201,32 @@ }; /** - * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse */ - ListNetworkPoliciesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) + ListSubnetsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); - if (object.networkPolicies) { - if (!Array.isArray(object.networkPolicies)) - throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.networkPolicies: array expected"); - message.networkPolicies = []; - for (var i = 0; i < object.networkPolicies.length; ++i) { - if (typeof object.networkPolicies[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.networkPolicies: object expected"); - message.networkPolicies[i] = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicies[i]); + var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse(); + if (object.subnets) { + if (!Array.isArray(object.subnets)) + throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: array expected"); + message.subnets = []; + for (var i = 0; i < object.subnets.length; ++i) { + if (typeof object.subnets[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: object expected"); + message.subnets[i] = $root.google.cloud.vmwareengine.v1.Subnet.fromObject(object.subnets[i]); } } if (object.nextPageToken != null) message.nextPageToken = String(object.nextPageToken); if (object.unreachable) { if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.unreachable: array expected"); + throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.unreachable: array expected"); message.unreachable = []; for (var i = 0; i < object.unreachable.length; ++i) message.unreachable[i] = String(object.unreachable[i]); @@ -9348,28 +9235,28 @@ }; /** - * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static - * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} message ListNetworkPoliciesResponse + * @param {google.cloud.vmwareengine.v1.ListSubnetsResponse} message ListSubnetsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNetworkPoliciesResponse.toObject = function toObject(message, options) { + ListSubnetsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.networkPolicies = []; + object.subnets = []; object.unreachable = []; } if (options.defaults) object.nextPageToken = ""; - if (message.networkPolicies && message.networkPolicies.length) { - object.networkPolicies = []; - for (var j = 0; j < message.networkPolicies.length; ++j) - object.networkPolicies[j] = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicies[j], options); + if (message.subnets && message.subnets.length) { + object.subnets = []; + for (var j = 0; j < message.subnets.length; ++j) + object.subnets[j] = $root.google.cloud.vmwareengine.v1.Subnet.toObject(message.subnets[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -9382,52 +9269,52 @@ }; /** - * Converts this ListNetworkPoliciesResponse to JSON. + * Converts this ListSubnetsResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @instance * @returns {Object.} JSON object */ - ListNetworkPoliciesResponse.prototype.toJSON = function toJSON() { + ListSubnetsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNetworkPoliciesResponse + * Gets the default type url for ListSubnetsResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNetworkPoliciesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSubnetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsResponse"; }; - return ListNetworkPoliciesResponse; + return ListSubnetsResponse; })(); - v1.GetNetworkPolicyRequest = (function() { + v1.GetSubnetRequest = (function() { /** - * Properties of a GetNetworkPolicyRequest. + * Properties of a GetSubnetRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetNetworkPolicyRequest - * @property {string|null} [name] GetNetworkPolicyRequest name + * @interface IGetSubnetRequest + * @property {string|null} [name] GetSubnetRequest name */ /** - * Constructs a new GetNetworkPolicyRequest. + * Constructs a new GetSubnetRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetNetworkPolicyRequest. - * @implements IGetNetworkPolicyRequest + * @classdesc Represents a GetSubnetRequest. + * @implements IGetSubnetRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest=} [properties] Properties to set */ - function GetNetworkPolicyRequest(properties) { + function GetSubnetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9435,35 +9322,35 @@ } /** - * GetNetworkPolicyRequest name. + * GetSubnetRequest name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @instance */ - GetNetworkPolicyRequest.prototype.name = ""; + GetSubnetRequest.prototype.name = ""; /** - * Creates a new GetNetworkPolicyRequest instance using the specified properties. + * Creates a new GetSubnetRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest instance + * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetSubnetRequest} GetSubnetRequest instance */ - GetNetworkPolicyRequest.create = function create(properties) { - return new GetNetworkPolicyRequest(properties); + GetSubnetRequest.create = function create(properties) { + return new GetSubnetRequest(properties); }; /** - * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified GetSubnetRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetSubnetRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} message GetNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest} message GetSubnetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNetworkPolicyRequest.encode = function encode(message, writer) { + GetSubnetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -9472,33 +9359,33 @@ }; /** - * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified GetSubnetRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetSubnetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} message GetNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetSubnetRequest} message GetSubnetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSubnetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a GetSubnetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.GetSubnetRequest} GetSubnetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNetworkPolicyRequest.decode = function decode(reader, length) { + GetSubnetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetSubnetRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9515,30 +9402,30 @@ }; /** - * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSubnetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.GetSubnetRequest} GetSubnetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + GetSubnetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNetworkPolicyRequest message. + * Verifies a GetSubnetRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNetworkPolicyRequest.verify = function verify(message) { + GetSubnetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -9548,32 +9435,32 @@ }; /** - * Creates a GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSubnetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.GetSubnetRequest} GetSubnetRequest */ - GetNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) + GetSubnetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetSubnetRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); + var message = new $root.google.cloud.vmwareengine.v1.GetSubnetRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSubnetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static - * @param {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} message GetNetworkPolicyRequest + * @param {google.cloud.vmwareengine.v1.GetSubnetRequest} message GetSubnetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNetworkPolicyRequest.toObject = function toObject(message, options) { + GetSubnetRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -9585,54 +9472,53 @@ }; /** - * Converts this GetNetworkPolicyRequest to JSON. + * Converts this GetSubnetRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @instance * @returns {Object.} JSON object */ - GetNetworkPolicyRequest.prototype.toJSON = function toJSON() { + GetSubnetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetNetworkPolicyRequest + * Gets the default type url for GetSubnetRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.GetSubnetRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSubnetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNetworkPolicyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetSubnetRequest"; }; - return GetNetworkPolicyRequest; + return GetSubnetRequest; })(); - v1.UpdateNetworkPolicyRequest = (function() { + v1.UpdateSubnetRequest = (function() { /** - * Properties of an UpdateNetworkPolicyRequest. + * Properties of an UpdateSubnetRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdateNetworkPolicyRequest - * @property {google.cloud.vmwareengine.v1.INetworkPolicy|null} [networkPolicy] UpdateNetworkPolicyRequest networkPolicy - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateNetworkPolicyRequest updateMask - * @property {string|null} [requestId] UpdateNetworkPolicyRequest requestId + * @interface IUpdateSubnetRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSubnetRequest updateMask + * @property {google.cloud.vmwareengine.v1.ISubnet|null} [subnet] UpdateSubnetRequest subnet */ /** - * Constructs a new UpdateNetworkPolicyRequest. + * Constructs a new UpdateSubnetRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdateNetworkPolicyRequest. - * @implements IUpdateNetworkPolicyRequest + * @classdesc Represents an UpdateSubnetRequest. + * @implements IUpdateSubnetRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest=} [properties] Properties to set */ - function UpdateNetworkPolicyRequest(properties) { + function UpdateSubnetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9640,103 +9526,89 @@ } /** - * UpdateNetworkPolicyRequest networkPolicy. - * @member {google.cloud.vmwareengine.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest - * @instance - */ - UpdateNetworkPolicyRequest.prototype.networkPolicy = null; - - /** - * UpdateNetworkPolicyRequest updateMask. + * UpdateSubnetRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @instance */ - UpdateNetworkPolicyRequest.prototype.updateMask = null; + UpdateSubnetRequest.prototype.updateMask = null; /** - * UpdateNetworkPolicyRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * UpdateSubnetRequest subnet. + * @member {google.cloud.vmwareengine.v1.ISubnet|null|undefined} subnet + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @instance */ - UpdateNetworkPolicyRequest.prototype.requestId = ""; + UpdateSubnetRequest.prototype.subnet = null; /** - * Creates a new UpdateNetworkPolicyRequest instance using the specified properties. + * Creates a new UpdateSubnetRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest instance + * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateSubnetRequest} UpdateSubnetRequest instance */ - UpdateNetworkPolicyRequest.create = function create(properties) { - return new UpdateNetworkPolicyRequest(properties); + UpdateSubnetRequest.create = function create(properties) { + return new UpdateSubnetRequest(properties); }; /** - * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified UpdateSubnetRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateSubnetRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest} message UpdateSubnetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateNetworkPolicyRequest.encode = function encode(message, writer) { + UpdateSubnetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subnet != null && Object.hasOwnProperty.call(message, "subnet")) + $root.google.cloud.vmwareengine.v1.Subnet.encode(message.subnet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified UpdateSubnetRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateSubnetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateSubnetRequest} message UpdateSubnetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSubnetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer. + * Decodes an UpdateSubnetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.UpdateSubnetRequest} UpdateSubnetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateNetworkPolicyRequest.decode = function decode(reader, length) { + UpdateSubnetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateSubnetRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32()); - break; - } - case 2: { message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } - case 3: { - message.requestId = reader.string(); + case 2: { + message.subnet = $root.google.cloud.vmwareengine.v1.Subnet.decode(reader, reader.uint32()); break; } default: @@ -9748,152 +9620,145 @@ }; /** - * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSubnetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.UpdateSubnetRequest} UpdateSubnetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateSubnetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateNetworkPolicyRequest message. + * Verifies an UpdateSubnetRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateNetworkPolicyRequest.verify = function verify(message) { + UpdateSubnetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicy); - if (error) - return "networkPolicy." + error; - } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) return "updateMask." + error; } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.subnet != null && message.hasOwnProperty("subnet")) { + var error = $root.google.cloud.vmwareengine.v1.Subnet.verify(message.subnet); + if (error) + return "subnet." + error; + } return null; }; /** - * Creates an UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSubnetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.UpdateSubnetRequest} UpdateSubnetRequest */ - UpdateNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) + UpdateSubnetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateSubnetRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); - if (object.networkPolicy != null) { - if (typeof object.networkPolicy !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.networkPolicy: object expected"); - message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicy); - } + var message = new $root.google.cloud.vmwareengine.v1.UpdateSubnetRequest(); if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.updateMask: object expected"); + throw TypeError(".google.cloud.vmwareengine.v1.UpdateSubnetRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.subnet != null) { + if (typeof object.subnet !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateSubnetRequest.subnet: object expected"); + message.subnet = $root.google.cloud.vmwareengine.v1.Subnet.fromObject(object.subnet); + } return message; }; /** - * Creates a plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSubnetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static - * @param {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest + * @param {google.cloud.vmwareengine.v1.UpdateSubnetRequest} message UpdateSubnetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateNetworkPolicyRequest.toObject = function toObject(message, options) { + UpdateSubnetRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.networkPolicy = null; object.updateMask = null; - object.requestId = ""; + object.subnet = null; } - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - object.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicy, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.subnet != null && message.hasOwnProperty("subnet")) + object.subnet = $root.google.cloud.vmwareengine.v1.Subnet.toObject(message.subnet, options); return object; }; /** - * Converts this UpdateNetworkPolicyRequest to JSON. + * Converts this UpdateSubnetRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @instance * @returns {Object.} JSON object */ - UpdateNetworkPolicyRequest.prototype.toJSON = function toJSON() { + UpdateSubnetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateNetworkPolicyRequest + * Gets the default type url for UpdateSubnetRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.UpdateSubnetRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateSubnetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateSubnetRequest"; }; - return UpdateNetworkPolicyRequest; + return UpdateSubnetRequest; })(); - v1.CreateNetworkPolicyRequest = (function() { + v1.ListExternalAccessRulesRequest = (function() { /** - * Properties of a CreateNetworkPolicyRequest. + * Properties of a ListExternalAccessRulesRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreateNetworkPolicyRequest - * @property {string|null} [parent] CreateNetworkPolicyRequest parent - * @property {string|null} [networkPolicyId] CreateNetworkPolicyRequest networkPolicyId - * @property {google.cloud.vmwareengine.v1.INetworkPolicy|null} [networkPolicy] CreateNetworkPolicyRequest networkPolicy - * @property {string|null} [requestId] CreateNetworkPolicyRequest requestId + * @interface IListExternalAccessRulesRequest + * @property {string|null} [parent] ListExternalAccessRulesRequest parent + * @property {number|null} [pageSize] ListExternalAccessRulesRequest pageSize + * @property {string|null} [pageToken] ListExternalAccessRulesRequest pageToken + * @property {string|null} [filter] ListExternalAccessRulesRequest filter + * @property {string|null} [orderBy] ListExternalAccessRulesRequest orderBy */ /** - * Constructs a new CreateNetworkPolicyRequest. + * Constructs a new ListExternalAccessRulesRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreateNetworkPolicyRequest. - * @implements ICreateNetworkPolicyRequest + * @classdesc Represents a ListExternalAccessRulesRequest. + * @implements IListExternalAccessRulesRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest=} [properties] Properties to set */ - function CreateNetworkPolicyRequest(properties) { + function ListExternalAccessRulesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9901,100 +9766,110 @@ } /** - * CreateNetworkPolicyRequest parent. + * ListExternalAccessRulesRequest parent. * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @instance */ - CreateNetworkPolicyRequest.prototype.parent = ""; + ListExternalAccessRulesRequest.prototype.parent = ""; /** - * CreateNetworkPolicyRequest networkPolicyId. - * @member {string} networkPolicyId - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * ListExternalAccessRulesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @instance */ - CreateNetworkPolicyRequest.prototype.networkPolicyId = ""; + ListExternalAccessRulesRequest.prototype.pageSize = 0; /** - * CreateNetworkPolicyRequest networkPolicy. - * @member {google.cloud.vmwareengine.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * ListExternalAccessRulesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @instance */ - CreateNetworkPolicyRequest.prototype.networkPolicy = null; + ListExternalAccessRulesRequest.prototype.pageToken = ""; /** - * CreateNetworkPolicyRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * ListExternalAccessRulesRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @instance */ - CreateNetworkPolicyRequest.prototype.requestId = ""; + ListExternalAccessRulesRequest.prototype.filter = ""; /** - * Creates a new CreateNetworkPolicyRequest instance using the specified properties. + * ListExternalAccessRulesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest + * @instance + */ + ListExternalAccessRulesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListExternalAccessRulesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest instance + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest} ListExternalAccessRulesRequest instance */ - CreateNetworkPolicyRequest.create = function create(properties) { - return new CreateNetworkPolicyRequest(properties); + ListExternalAccessRulesRequest.create = function create(properties) { + return new ListExternalAccessRulesRequest(properties); }; /** - * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified ListExternalAccessRulesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} message CreateNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest} message ListExternalAccessRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNetworkPolicyRequest.encode = function encode(message, writer) { + ListExternalAccessRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.networkPolicyId != null && Object.hasOwnProperty.call(message, "networkPolicyId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.networkPolicyId); - if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified ListExternalAccessRulesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} message CreateNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest} message ListExternalAccessRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExternalAccessRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a ListExternalAccessRulesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest} ListExternalAccessRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNetworkPolicyRequest.decode = function decode(reader, length) { + ListExternalAccessRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10003,15 +9878,19 @@ break; } case 2: { - message.networkPolicyId = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; } case 4: { - message.requestId = reader.string(); + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -10023,153 +9902,159 @@ }; /** - * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExternalAccessRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest} ListExternalAccessRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + ListExternalAccessRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateNetworkPolicyRequest message. + * Verifies a ListExternalAccessRulesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateNetworkPolicyRequest.verify = function verify(message) { + ListExternalAccessRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.networkPolicyId != null && message.hasOwnProperty("networkPolicyId")) - if (!$util.isString(message.networkPolicyId)) - return "networkPolicyId: string expected"; - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicy); - if (error) - return "networkPolicy." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExternalAccessRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest} ListExternalAccessRulesRequest */ - CreateNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) + ListExternalAccessRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); + var message = new $root.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.networkPolicyId != null) - message.networkPolicyId = String(object.networkPolicyId); - if (object.networkPolicy != null) { - if (typeof object.networkPolicy !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.networkPolicy: object expected"); - message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicy); - } - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExternalAccessRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static - * @param {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} message CreateNetworkPolicyRequest + * @param {google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest} message ListExternalAccessRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateNetworkPolicyRequest.toObject = function toObject(message, options) { + ListExternalAccessRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.networkPolicyId = ""; - object.networkPolicy = null; - object.requestId = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.networkPolicyId != null && message.hasOwnProperty("networkPolicyId")) - object.networkPolicyId = message.networkPolicyId; - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - object.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicy, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this CreateNetworkPolicyRequest to JSON. + * Converts this ListExternalAccessRulesRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @instance * @returns {Object.} JSON object */ - CreateNetworkPolicyRequest.prototype.toJSON = function toJSON() { + ListExternalAccessRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateNetworkPolicyRequest + * Gets the default type url for ListExternalAccessRulesRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExternalAccessRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest"; }; - return CreateNetworkPolicyRequest; + return ListExternalAccessRulesRequest; })(); - v1.DeleteNetworkPolicyRequest = (function() { + v1.ListExternalAccessRulesResponse = (function() { /** - * Properties of a DeleteNetworkPolicyRequest. + * Properties of a ListExternalAccessRulesResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IDeleteNetworkPolicyRequest - * @property {string|null} [name] DeleteNetworkPolicyRequest name - * @property {string|null} [requestId] DeleteNetworkPolicyRequest requestId + * @interface IListExternalAccessRulesResponse + * @property {Array.|null} [externalAccessRules] ListExternalAccessRulesResponse externalAccessRules + * @property {string|null} [nextPageToken] ListExternalAccessRulesResponse nextPageToken + * @property {Array.|null} [unreachable] ListExternalAccessRulesResponse unreachable */ /** - * Constructs a new DeleteNetworkPolicyRequest. + * Constructs a new ListExternalAccessRulesResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeleteNetworkPolicyRequest. - * @implements IDeleteNetworkPolicyRequest + * @classdesc Represents a ListExternalAccessRulesResponse. + * @implements IListExternalAccessRulesResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse=} [properties] Properties to set */ - function DeleteNetworkPolicyRequest(properties) { + function ListExternalAccessRulesResponse(properties) { + this.externalAccessRules = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10177,89 +10062,109 @@ } /** - * DeleteNetworkPolicyRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * ListExternalAccessRulesResponse externalAccessRules. + * @member {Array.} externalAccessRules + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @instance */ - DeleteNetworkPolicyRequest.prototype.name = ""; + ListExternalAccessRulesResponse.prototype.externalAccessRules = $util.emptyArray; /** - * DeleteNetworkPolicyRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * ListExternalAccessRulesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @instance */ - DeleteNetworkPolicyRequest.prototype.requestId = ""; + ListExternalAccessRulesResponse.prototype.nextPageToken = ""; /** - * Creates a new DeleteNetworkPolicyRequest instance using the specified properties. + * ListExternalAccessRulesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse + * @instance + */ + ListExternalAccessRulesResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListExternalAccessRulesResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest instance + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse} ListExternalAccessRulesResponse instance */ - DeleteNetworkPolicyRequest.create = function create(properties) { - return new DeleteNetworkPolicyRequest(properties); + ListExternalAccessRulesResponse.create = function create(properties) { + return new ListExternalAccessRulesResponse(properties); }; /** - * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified ListExternalAccessRulesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse} message ListExternalAccessRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNetworkPolicyRequest.encode = function encode(message, writer) { + ListExternalAccessRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.externalAccessRules != null && message.externalAccessRules.length) + for (var i = 0; i < message.externalAccessRules.length; ++i) + $root.google.cloud.vmwareengine.v1.ExternalAccessRule.encode(message.externalAccessRules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified ListExternalAccessRulesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse} message ListExternalAccessRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExternalAccessRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a ListExternalAccessRulesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse} ListExternalAccessRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNetworkPolicyRequest.decode = function decode(reader, length) { + ListExternalAccessRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.externalAccessRules && message.externalAccessRules.length)) + message.externalAccessRules = []; + message.externalAccessRules.push($root.google.cloud.vmwareengine.v1.ExternalAccessRule.decode(reader, reader.uint32())); break; } case 2: { - message.requestId = reader.string(); + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -10271,134 +10176,169 @@ }; /** - * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExternalAccessRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse} ListExternalAccessRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + ListExternalAccessRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteNetworkPolicyRequest message. + * Verifies a ListExternalAccessRulesResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteNetworkPolicyRequest.verify = function verify(message) { + ListExternalAccessRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - return null; - }; - - /** - * Creates a DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + if (message.externalAccessRules != null && message.hasOwnProperty("externalAccessRules")) { + if (!Array.isArray(message.externalAccessRules)) + return "externalAccessRules: array expected"; + for (var i = 0; i < message.externalAccessRules.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.verify(message.externalAccessRules[i]); + if (error) + return "externalAccessRules." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListExternalAccessRulesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse} ListExternalAccessRulesResponse */ - DeleteNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) + ListExternalAccessRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse(); + if (object.externalAccessRules) { + if (!Array.isArray(object.externalAccessRules)) + throw TypeError(".google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.externalAccessRules: array expected"); + message.externalAccessRules = []; + for (var i = 0; i < object.externalAccessRules.length; ++i) { + if (typeof object.externalAccessRules[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.externalAccessRules: object expected"); + message.externalAccessRules[i] = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.fromObject(object.externalAccessRules[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExternalAccessRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static - * @param {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest + * @param {google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse} message ListExternalAccessRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteNetworkPolicyRequest.toObject = function toObject(message, options) { + ListExternalAccessRulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.requestId = ""; + if (options.arrays || options.defaults) { + object.externalAccessRules = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.externalAccessRules && message.externalAccessRules.length) { + object.externalAccessRules = []; + for (var j = 0; j < message.externalAccessRules.length; ++j) + object.externalAccessRules[j] = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.toObject(message.externalAccessRules[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; return object; }; /** - * Converts this DeleteNetworkPolicyRequest to JSON. + * Converts this ListExternalAccessRulesResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @instance * @returns {Object.} JSON object */ - DeleteNetworkPolicyRequest.prototype.toJSON = function toJSON() { + ListExternalAccessRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteNetworkPolicyRequest + * Gets the default type url for ListExternalAccessRulesResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExternalAccessRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse"; }; - return DeleteNetworkPolicyRequest; + return ListExternalAccessRulesResponse; })(); - v1.CreateVmwareEngineNetworkRequest = (function() { + v1.GetExternalAccessRuleRequest = (function() { /** - * Properties of a CreateVmwareEngineNetworkRequest. + * Properties of a GetExternalAccessRuleRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreateVmwareEngineNetworkRequest - * @property {string|null} [parent] CreateVmwareEngineNetworkRequest parent - * @property {string|null} [vmwareEngineNetworkId] CreateVmwareEngineNetworkRequest vmwareEngineNetworkId - * @property {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null} [vmwareEngineNetwork] CreateVmwareEngineNetworkRequest vmwareEngineNetwork - * @property {string|null} [requestId] CreateVmwareEngineNetworkRequest requestId + * @interface IGetExternalAccessRuleRequest + * @property {string|null} [name] GetExternalAccessRuleRequest name */ /** - * Constructs a new CreateVmwareEngineNetworkRequest. + * Constructs a new GetExternalAccessRuleRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreateVmwareEngineNetworkRequest. - * @implements ICreateVmwareEngineNetworkRequest + * @classdesc Represents a GetExternalAccessRuleRequest. + * @implements IGetExternalAccessRuleRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest=} [properties] Properties to set */ - function CreateVmwareEngineNetworkRequest(properties) { + function GetExternalAccessRuleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10406,117 +10346,75 @@ } /** - * CreateVmwareEngineNetworkRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest - * @instance - */ - CreateVmwareEngineNetworkRequest.prototype.parent = ""; - - /** - * CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. - * @member {string} vmwareEngineNetworkId - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest - * @instance - */ - CreateVmwareEngineNetworkRequest.prototype.vmwareEngineNetworkId = ""; - - /** - * CreateVmwareEngineNetworkRequest vmwareEngineNetwork. - * @member {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null|undefined} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest - * @instance - */ - CreateVmwareEngineNetworkRequest.prototype.vmwareEngineNetwork = null; - - /** - * CreateVmwareEngineNetworkRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * GetExternalAccessRuleRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @instance */ - CreateVmwareEngineNetworkRequest.prototype.requestId = ""; + GetExternalAccessRuleRequest.prototype.name = ""; /** - * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new GetExternalAccessRuleRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest instance + * @param {google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest} GetExternalAccessRuleRequest instance */ - CreateVmwareEngineNetworkRequest.create = function create(properties) { - return new CreateVmwareEngineNetworkRequest(properties); + GetExternalAccessRuleRequest.create = function create(properties) { + return new GetExternalAccessRuleRequest(properties); }; /** - * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified GetExternalAccessRuleRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest} message GetExternalAccessRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVmwareEngineNetworkRequest.encode = function encode(message, writer) { + GetExternalAccessRuleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.vmwareEngineNetworkId != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.vmwareEngineNetworkId); - if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetwork, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified GetExternalAccessRuleRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest} message GetExternalAccessRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetExternalAccessRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a GetExternalAccessRuleRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest} GetExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVmwareEngineNetworkRequest.decode = function decode(reader, length) { + GetExternalAccessRuleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.vmwareEngineNetworkId = reader.string(); - break; - } - case 3: { - message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32()); - break; - } - case 4: { - message.requestId = reader.string(); + message.name = reader.string(); break; } default: @@ -10528,154 +10426,125 @@ }; /** - * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExternalAccessRuleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest} GetExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + GetExternalAccessRuleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateVmwareEngineNetworkRequest message. + * Verifies a GetExternalAccessRuleRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateVmwareEngineNetworkRequest.verify = function verify(message) { + GetExternalAccessRuleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.vmwareEngineNetworkId != null && message.hasOwnProperty("vmwareEngineNetworkId")) - if (!$util.isString(message.vmwareEngineNetworkId)) - return "vmwareEngineNetworkId: string expected"; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { - var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetwork); - if (error) - return "vmwareEngineNetwork." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExternalAccessRuleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest} GetExternalAccessRuleRequest */ - CreateVmwareEngineNetworkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) + GetExternalAccessRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.vmwareEngineNetworkId != null) - message.vmwareEngineNetworkId = String(object.vmwareEngineNetworkId); - if (object.vmwareEngineNetwork != null) { - if (typeof object.vmwareEngineNetwork !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.vmwareEngineNetwork: object expected"); - message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetwork); - } - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetExternalAccessRuleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest + * @param {google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest} message GetExternalAccessRuleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + GetExternalAccessRuleRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.vmwareEngineNetworkId = ""; - object.vmwareEngineNetwork = null; - object.requestId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.vmwareEngineNetworkId != null && message.hasOwnProperty("vmwareEngineNetworkId")) - object.vmwareEngineNetworkId = message.vmwareEngineNetworkId; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetwork, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateVmwareEngineNetworkRequest to JSON. + * Converts this GetExternalAccessRuleRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @instance * @returns {Object.} JSON object */ - CreateVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + GetExternalAccessRuleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateVmwareEngineNetworkRequest + * Gets the default type url for GetExternalAccessRuleRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetExternalAccessRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest"; }; - return CreateVmwareEngineNetworkRequest; + return GetExternalAccessRuleRequest; })(); - v1.UpdateVmwareEngineNetworkRequest = (function() { + v1.CreateExternalAccessRuleRequest = (function() { /** - * Properties of an UpdateVmwareEngineNetworkRequest. + * Properties of a CreateExternalAccessRuleRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdateVmwareEngineNetworkRequest - * @property {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null} [vmwareEngineNetwork] UpdateVmwareEngineNetworkRequest vmwareEngineNetwork - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVmwareEngineNetworkRequest updateMask - * @property {string|null} [requestId] UpdateVmwareEngineNetworkRequest requestId + * @interface ICreateExternalAccessRuleRequest + * @property {string|null} [parent] CreateExternalAccessRuleRequest parent + * @property {google.cloud.vmwareengine.v1.IExternalAccessRule|null} [externalAccessRule] CreateExternalAccessRuleRequest externalAccessRule + * @property {string|null} [externalAccessRuleId] CreateExternalAccessRuleRequest externalAccessRuleId + * @property {string|null} [requestId] CreateExternalAccessRuleRequest requestId */ /** - * Constructs a new UpdateVmwareEngineNetworkRequest. + * Constructs a new CreateExternalAccessRuleRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdateVmwareEngineNetworkRequest. - * @implements IUpdateVmwareEngineNetworkRequest + * @classdesc Represents a CreateExternalAccessRuleRequest. + * @implements ICreateExternalAccessRuleRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest=} [properties] Properties to set */ - function UpdateVmwareEngineNetworkRequest(properties) { + function CreateExternalAccessRuleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10683,102 +10552,116 @@ } /** - * UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. - * @member {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null|undefined} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * CreateExternalAccessRuleRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @instance */ - UpdateVmwareEngineNetworkRequest.prototype.vmwareEngineNetwork = null; + CreateExternalAccessRuleRequest.prototype.parent = ""; /** - * UpdateVmwareEngineNetworkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * CreateExternalAccessRuleRequest externalAccessRule. + * @member {google.cloud.vmwareengine.v1.IExternalAccessRule|null|undefined} externalAccessRule + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @instance */ - UpdateVmwareEngineNetworkRequest.prototype.updateMask = null; + CreateExternalAccessRuleRequest.prototype.externalAccessRule = null; /** - * UpdateVmwareEngineNetworkRequest requestId. + * CreateExternalAccessRuleRequest externalAccessRuleId. + * @member {string} externalAccessRuleId + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest + * @instance + */ + CreateExternalAccessRuleRequest.prototype.externalAccessRuleId = ""; + + /** + * CreateExternalAccessRuleRequest requestId. * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @instance */ - UpdateVmwareEngineNetworkRequest.prototype.requestId = ""; + CreateExternalAccessRuleRequest.prototype.requestId = ""; /** - * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new CreateExternalAccessRuleRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest instance + * @param {google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest} CreateExternalAccessRuleRequest instance */ - UpdateVmwareEngineNetworkRequest.create = function create(properties) { - return new UpdateVmwareEngineNetworkRequest(properties); + CreateExternalAccessRuleRequest.create = function create(properties) { + return new CreateExternalAccessRuleRequest(properties); }; /** - * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified CreateExternalAccessRuleRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest} message CreateExternalAccessRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVmwareEngineNetworkRequest.encode = function encode(message, writer) { + CreateExternalAccessRuleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetwork, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.externalAccessRule != null && Object.hasOwnProperty.call(message, "externalAccessRule")) + $root.google.cloud.vmwareengine.v1.ExternalAccessRule.encode(message.externalAccessRule, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.externalAccessRuleId != null && Object.hasOwnProperty.call(message, "externalAccessRuleId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalAccessRuleId); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified CreateExternalAccessRuleRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest} message CreateExternalAccessRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExternalAccessRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a CreateExternalAccessRuleRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest} CreateExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVmwareEngineNetworkRequest.decode = function decode(reader, length) { + CreateExternalAccessRuleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.externalAccessRule = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.decode(reader, reader.uint32()); break; } case 3: { + message.externalAccessRuleId = reader.string(); + break; + } + case 4: { message.requestId = reader.string(); break; } @@ -10791,42 +10674,43 @@ }; /** - * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExternalAccessRuleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest} CreateExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + CreateExternalAccessRuleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateVmwareEngineNetworkRequest message. + * Verifies a CreateExternalAccessRuleRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateVmwareEngineNetworkRequest.verify = function verify(message) { + CreateExternalAccessRuleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { - var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetwork); - if (error) - return "vmwareEngineNetwork." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.externalAccessRule != null && message.hasOwnProperty("externalAccessRule")) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.verify(message.externalAccessRule); if (error) - return "updateMask." + error; + return "externalAccessRule." + error; } + if (message.externalAccessRuleId != null && message.hasOwnProperty("externalAccessRuleId")) + if (!$util.isString(message.externalAccessRuleId)) + return "externalAccessRuleId: string expected"; if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; @@ -10834,108 +10718,110 @@ }; /** - * Creates an UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExternalAccessRuleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest} CreateExternalAccessRuleRequest */ - UpdateVmwareEngineNetworkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) + CreateExternalAccessRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); - if (object.vmwareEngineNetwork != null) { - if (typeof object.vmwareEngineNetwork !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.vmwareEngineNetwork: object expected"); - message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetwork); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.externalAccessRule != null) { + if (typeof object.externalAccessRule !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.externalAccessRule: object expected"); + message.externalAccessRule = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.fromObject(object.externalAccessRule); } + if (object.externalAccessRuleId != null) + message.externalAccessRuleId = String(object.externalAccessRuleId); if (object.requestId != null) message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExternalAccessRuleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest + * @param {google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest} message CreateExternalAccessRuleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + CreateExternalAccessRuleRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.vmwareEngineNetwork = null; - object.updateMask = null; + object.parent = ""; + object.externalAccessRule = null; + object.externalAccessRuleId = ""; object.requestId = ""; } - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetwork, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.externalAccessRule != null && message.hasOwnProperty("externalAccessRule")) + object.externalAccessRule = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.toObject(message.externalAccessRule, options); + if (message.externalAccessRuleId != null && message.hasOwnProperty("externalAccessRuleId")) + object.externalAccessRuleId = message.externalAccessRuleId; if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; return object; }; /** - * Converts this UpdateVmwareEngineNetworkRequest to JSON. + * Converts this CreateExternalAccessRuleRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @instance * @returns {Object.} JSON object */ - UpdateVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + CreateExternalAccessRuleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateVmwareEngineNetworkRequest + * Gets the default type url for CreateExternalAccessRuleRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateExternalAccessRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest"; }; - return UpdateVmwareEngineNetworkRequest; + return CreateExternalAccessRuleRequest; })(); - v1.DeleteVmwareEngineNetworkRequest = (function() { + v1.UpdateExternalAccessRuleRequest = (function() { /** - * Properties of a DeleteVmwareEngineNetworkRequest. + * Properties of an UpdateExternalAccessRuleRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IDeleteVmwareEngineNetworkRequest - * @property {string|null} [name] DeleteVmwareEngineNetworkRequest name - * @property {string|null} [requestId] DeleteVmwareEngineNetworkRequest requestId - * @property {string|null} [etag] DeleteVmwareEngineNetworkRequest etag + * @interface IUpdateExternalAccessRuleRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExternalAccessRuleRequest updateMask + * @property {google.cloud.vmwareengine.v1.IExternalAccessRule|null} [externalAccessRule] UpdateExternalAccessRuleRequest externalAccessRule + * @property {string|null} [requestId] UpdateExternalAccessRuleRequest requestId */ /** - * Constructs a new DeleteVmwareEngineNetworkRequest. + * Constructs a new UpdateExternalAccessRuleRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeleteVmwareEngineNetworkRequest. - * @implements IDeleteVmwareEngineNetworkRequest + * @classdesc Represents an UpdateExternalAccessRuleRequest. + * @implements IUpdateExternalAccessRuleRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest=} [properties] Properties to set */ - function DeleteVmwareEngineNetworkRequest(properties) { + function UpdateExternalAccessRuleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10943,103 +10829,103 @@ } /** - * DeleteVmwareEngineNetworkRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * UpdateExternalAccessRuleRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @instance */ - DeleteVmwareEngineNetworkRequest.prototype.name = ""; + UpdateExternalAccessRuleRequest.prototype.updateMask = null; /** - * DeleteVmwareEngineNetworkRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * UpdateExternalAccessRuleRequest externalAccessRule. + * @member {google.cloud.vmwareengine.v1.IExternalAccessRule|null|undefined} externalAccessRule + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @instance */ - DeleteVmwareEngineNetworkRequest.prototype.requestId = ""; + UpdateExternalAccessRuleRequest.prototype.externalAccessRule = null; /** - * DeleteVmwareEngineNetworkRequest etag. - * @member {string} etag - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * UpdateExternalAccessRuleRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @instance */ - DeleteVmwareEngineNetworkRequest.prototype.etag = ""; + UpdateExternalAccessRuleRequest.prototype.requestId = ""; /** - * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new UpdateExternalAccessRuleRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest instance + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest} UpdateExternalAccessRuleRequest instance */ - DeleteVmwareEngineNetworkRequest.create = function create(properties) { - return new DeleteVmwareEngineNetworkRequest(properties); + UpdateExternalAccessRuleRequest.create = function create(properties) { + return new UpdateExternalAccessRuleRequest(properties); }; /** - * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified UpdateExternalAccessRuleRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest} message UpdateExternalAccessRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVmwareEngineNetworkRequest.encode = function encode(message, writer) { + UpdateExternalAccessRuleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.externalAccessRule != null && Object.hasOwnProperty.call(message, "externalAccessRule")) + $root.google.cloud.vmwareengine.v1.ExternalAccessRule.encode(message.externalAccessRule, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified UpdateExternalAccessRuleRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest} message UpdateExternalAccessRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExternalAccessRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes an UpdateExternalAccessRuleRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest} UpdateExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVmwareEngineNetworkRequest.decode = function decode(reader, length) { + UpdateExternalAccessRuleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 2: { - message.requestId = reader.string(); + message.externalAccessRule = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.decode(reader, reader.uint32()); break; } case 3: { - message.etag = reader.string(); + message.requestId = reader.string(); break; } default: @@ -11051,139 +10937,150 @@ }; /** - * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExternalAccessRuleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest} UpdateExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateExternalAccessRuleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteVmwareEngineNetworkRequest message. + * Verifies an UpdateExternalAccessRuleRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteVmwareEngineNetworkRequest.verify = function verify(message) { + UpdateExternalAccessRuleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.externalAccessRule != null && message.hasOwnProperty("externalAccessRule")) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.verify(message.externalAccessRule); + if (error) + return "externalAccessRule." + error; + } if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; return null; }; /** - * Creates a DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExternalAccessRuleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest} UpdateExternalAccessRuleRequest */ - DeleteVmwareEngineNetworkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) + UpdateExternalAccessRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.externalAccessRule != null) { + if (typeof object.externalAccessRule !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.externalAccessRule: object expected"); + message.externalAccessRule = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.fromObject(object.externalAccessRule); + } if (object.requestId != null) message.requestId = String(object.requestId); - if (object.etag != null) - message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExternalAccessRuleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest + * @param {google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest} message UpdateExternalAccessRuleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + UpdateExternalAccessRuleRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; + object.updateMask = null; + object.externalAccessRule = null; object.requestId = ""; - object.etag = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.externalAccessRule != null && message.hasOwnProperty("externalAccessRule")) + object.externalAccessRule = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.toObject(message.externalAccessRule, options); if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; return object; }; /** - * Converts this DeleteVmwareEngineNetworkRequest to JSON. + * Converts this UpdateExternalAccessRuleRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @instance * @returns {Object.} JSON object */ - DeleteVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + UpdateExternalAccessRuleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteVmwareEngineNetworkRequest + * Gets the default type url for UpdateExternalAccessRuleRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateExternalAccessRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest"; }; - return DeleteVmwareEngineNetworkRequest; + return UpdateExternalAccessRuleRequest; })(); - v1.GetVmwareEngineNetworkRequest = (function() { + v1.DeleteExternalAccessRuleRequest = (function() { /** - * Properties of a GetVmwareEngineNetworkRequest. + * Properties of a DeleteExternalAccessRuleRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetVmwareEngineNetworkRequest - * @property {string|null} [name] GetVmwareEngineNetworkRequest name + * @interface IDeleteExternalAccessRuleRequest + * @property {string|null} [name] DeleteExternalAccessRuleRequest name + * @property {string|null} [requestId] DeleteExternalAccessRuleRequest requestId */ /** - * Constructs a new GetVmwareEngineNetworkRequest. + * Constructs a new DeleteExternalAccessRuleRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetVmwareEngineNetworkRequest. - * @implements IGetVmwareEngineNetworkRequest + * @classdesc Represents a DeleteExternalAccessRuleRequest. + * @implements IDeleteExternalAccessRuleRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest=} [properties] Properties to set */ - function GetVmwareEngineNetworkRequest(properties) { + function DeleteExternalAccessRuleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11191,70 +11088,80 @@ } /** - * GetVmwareEngineNetworkRequest name. + * DeleteExternalAccessRuleRequest name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @instance */ - GetVmwareEngineNetworkRequest.prototype.name = ""; + DeleteExternalAccessRuleRequest.prototype.name = ""; /** - * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties. + * DeleteExternalAccessRuleRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest + * @instance + */ + DeleteExternalAccessRuleRequest.prototype.requestId = ""; + + /** + * Creates a new DeleteExternalAccessRuleRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest instance + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest} DeleteExternalAccessRuleRequest instance */ - GetVmwareEngineNetworkRequest.create = function create(properties) { - return new GetVmwareEngineNetworkRequest(properties); + DeleteExternalAccessRuleRequest.create = function create(properties) { + return new DeleteExternalAccessRuleRequest(properties); }; /** - * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified DeleteExternalAccessRuleRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest} message DeleteExternalAccessRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVmwareEngineNetworkRequest.encode = function encode(message, writer) { + DeleteExternalAccessRuleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified DeleteExternalAccessRuleRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest} message DeleteExternalAccessRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExternalAccessRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a DeleteExternalAccessRuleRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest} DeleteExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVmwareEngineNetworkRequest.decode = function decode(reader, length) { + DeleteExternalAccessRuleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11262,6 +11169,10 @@ message.name = reader.string(); break; } + case 2: { + message.requestId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -11271,126 +11182,135 @@ }; /** - * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExternalAccessRuleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest} DeleteExternalAccessRuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteExternalAccessRuleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVmwareEngineNetworkRequest message. + * Verifies a DeleteExternalAccessRuleRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVmwareEngineNetworkRequest.verify = function verify(message) { + DeleteExternalAccessRuleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExternalAccessRuleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest} DeleteExternalAccessRuleRequest */ - GetVmwareEngineNetworkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) + DeleteExternalAccessRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); + var message = new $root.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest(); if (object.name != null) message.name = String(object.name); - return message; + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; }; /** - * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteExternalAccessRuleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static - * @param {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest + * @param {google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest} message DeleteExternalAccessRuleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + DeleteExternalAccessRuleRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.requestId = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this GetVmwareEngineNetworkRequest to JSON. + * Converts this DeleteExternalAccessRuleRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @instance * @returns {Object.} JSON object */ - GetVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + DeleteExternalAccessRuleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVmwareEngineNetworkRequest + * Gets the default type url for DeleteExternalAccessRuleRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteExternalAccessRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest"; }; - return GetVmwareEngineNetworkRequest; + return DeleteExternalAccessRuleRequest; })(); - v1.ListVmwareEngineNetworksRequest = (function() { + v1.ListLoggingServersRequest = (function() { /** - * Properties of a ListVmwareEngineNetworksRequest. + * Properties of a ListLoggingServersRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListVmwareEngineNetworksRequest - * @property {string|null} [parent] ListVmwareEngineNetworksRequest parent - * @property {number|null} [pageSize] ListVmwareEngineNetworksRequest pageSize - * @property {string|null} [pageToken] ListVmwareEngineNetworksRequest pageToken - * @property {string|null} [filter] ListVmwareEngineNetworksRequest filter - * @property {string|null} [orderBy] ListVmwareEngineNetworksRequest orderBy + * @interface IListLoggingServersRequest + * @property {string|null} [parent] ListLoggingServersRequest parent + * @property {number|null} [pageSize] ListLoggingServersRequest pageSize + * @property {string|null} [pageToken] ListLoggingServersRequest pageToken + * @property {string|null} [filter] ListLoggingServersRequest filter + * @property {string|null} [orderBy] ListLoggingServersRequest orderBy */ /** - * Constructs a new ListVmwareEngineNetworksRequest. + * Constructs a new ListLoggingServersRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListVmwareEngineNetworksRequest. - * @implements IListVmwareEngineNetworksRequest + * @classdesc Represents a ListLoggingServersRequest. + * @implements IListLoggingServersRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListLoggingServersRequest=} [properties] Properties to set */ - function ListVmwareEngineNetworksRequest(properties) { + function ListLoggingServersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11398,67 +11318,67 @@ } /** - * ListVmwareEngineNetworksRequest parent. + * ListLoggingServersRequest parent. * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @instance */ - ListVmwareEngineNetworksRequest.prototype.parent = ""; + ListLoggingServersRequest.prototype.parent = ""; /** - * ListVmwareEngineNetworksRequest pageSize. + * ListLoggingServersRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @instance */ - ListVmwareEngineNetworksRequest.prototype.pageSize = 0; + ListLoggingServersRequest.prototype.pageSize = 0; /** - * ListVmwareEngineNetworksRequest pageToken. + * ListLoggingServersRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @instance */ - ListVmwareEngineNetworksRequest.prototype.pageToken = ""; + ListLoggingServersRequest.prototype.pageToken = ""; /** - * ListVmwareEngineNetworksRequest filter. + * ListLoggingServersRequest filter. * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @instance */ - ListVmwareEngineNetworksRequest.prototype.filter = ""; + ListLoggingServersRequest.prototype.filter = ""; /** - * ListVmwareEngineNetworksRequest orderBy. + * ListLoggingServersRequest orderBy. * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @instance */ - ListVmwareEngineNetworksRequest.prototype.orderBy = ""; + ListLoggingServersRequest.prototype.orderBy = ""; /** - * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties. + * Creates a new ListLoggingServersRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest instance + * @param {google.cloud.vmwareengine.v1.IListLoggingServersRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListLoggingServersRequest} ListLoggingServersRequest instance */ - ListVmwareEngineNetworksRequest.create = function create(properties) { - return new ListVmwareEngineNetworksRequest(properties); + ListLoggingServersRequest.create = function create(properties) { + return new ListLoggingServersRequest(properties); }; /** - * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * Encodes the specified ListLoggingServersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListLoggingServersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListLoggingServersRequest} message ListLoggingServersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVmwareEngineNetworksRequest.encode = function encode(message, writer) { + ListLoggingServersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -11475,33 +11395,33 @@ }; /** - * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * Encodes the specified ListLoggingServersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListLoggingServersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListLoggingServersRequest} message ListLoggingServersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVmwareEngineNetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListLoggingServersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer. + * Decodes a ListLoggingServersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest + * @returns {google.cloud.vmwareengine.v1.ListLoggingServersRequest} ListLoggingServersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVmwareEngineNetworksRequest.decode = function decode(reader, length) { + ListLoggingServersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListLoggingServersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11534,30 +11454,30 @@ }; /** - * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListLoggingServersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest + * @returns {google.cloud.vmwareengine.v1.ListLoggingServersRequest} ListLoggingServersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVmwareEngineNetworksRequest.decodeDelimited = function decodeDelimited(reader) { + ListLoggingServersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVmwareEngineNetworksRequest message. + * Verifies a ListLoggingServersRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVmwareEngineNetworksRequest.verify = function verify(message) { + ListLoggingServersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -11579,17 +11499,17 @@ }; /** - * Creates a ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListLoggingServersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest + * @returns {google.cloud.vmwareengine.v1.ListLoggingServersRequest} ListLoggingServersRequest */ - ListVmwareEngineNetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) + ListLoggingServersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListLoggingServersRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); + var message = new $root.google.cloud.vmwareengine.v1.ListLoggingServersRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -11604,15 +11524,15 @@ }; /** - * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListLoggingServersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static - * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest + * @param {google.cloud.vmwareengine.v1.ListLoggingServersRequest} message ListLoggingServersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVmwareEngineNetworksRequest.toObject = function toObject(message, options) { + ListLoggingServersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -11637,55 +11557,55 @@ }; /** - * Converts this ListVmwareEngineNetworksRequest to JSON. + * Converts this ListLoggingServersRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @instance * @returns {Object.} JSON object */ - ListVmwareEngineNetworksRequest.prototype.toJSON = function toJSON() { + ListLoggingServersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVmwareEngineNetworksRequest + * Gets the default type url for ListLoggingServersRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVmwareEngineNetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListLoggingServersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListLoggingServersRequest"; }; - return ListVmwareEngineNetworksRequest; + return ListLoggingServersRequest; })(); - v1.ListVmwareEngineNetworksResponse = (function() { + v1.ListLoggingServersResponse = (function() { /** - * Properties of a ListVmwareEngineNetworksResponse. + * Properties of a ListLoggingServersResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IListVmwareEngineNetworksResponse - * @property {Array.|null} [vmwareEngineNetworks] ListVmwareEngineNetworksResponse vmwareEngineNetworks - * @property {string|null} [nextPageToken] ListVmwareEngineNetworksResponse nextPageToken - * @property {Array.|null} [unreachable] ListVmwareEngineNetworksResponse unreachable + * @interface IListLoggingServersResponse + * @property {Array.|null} [loggingServers] ListLoggingServersResponse loggingServers + * @property {string|null} [nextPageToken] ListLoggingServersResponse nextPageToken + * @property {Array.|null} [unreachable] ListLoggingServersResponse unreachable */ /** - * Constructs a new ListVmwareEngineNetworksResponse. + * Constructs a new ListLoggingServersResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListVmwareEngineNetworksResponse. - * @implements IListVmwareEngineNetworksResponse + * @classdesc Represents a ListLoggingServersResponse. + * @implements IListLoggingServersResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListLoggingServersResponse=} [properties] Properties to set */ - function ListVmwareEngineNetworksResponse(properties) { - this.vmwareEngineNetworks = []; + function ListLoggingServersResponse(properties) { + this.loggingServers = []; this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -11694,56 +11614,56 @@ } /** - * ListVmwareEngineNetworksResponse vmwareEngineNetworks. - * @member {Array.} vmwareEngineNetworks - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * ListLoggingServersResponse loggingServers. + * @member {Array.} loggingServers + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @instance */ - ListVmwareEngineNetworksResponse.prototype.vmwareEngineNetworks = $util.emptyArray; + ListLoggingServersResponse.prototype.loggingServers = $util.emptyArray; /** - * ListVmwareEngineNetworksResponse nextPageToken. + * ListLoggingServersResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @instance */ - ListVmwareEngineNetworksResponse.prototype.nextPageToken = ""; + ListLoggingServersResponse.prototype.nextPageToken = ""; /** - * ListVmwareEngineNetworksResponse unreachable. + * ListLoggingServersResponse unreachable. * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @instance */ - ListVmwareEngineNetworksResponse.prototype.unreachable = $util.emptyArray; + ListLoggingServersResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties. + * Creates a new ListLoggingServersResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse instance + * @param {google.cloud.vmwareengine.v1.IListLoggingServersResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListLoggingServersResponse} ListLoggingServersResponse instance */ - ListVmwareEngineNetworksResponse.create = function create(properties) { - return new ListVmwareEngineNetworksResponse(properties); + ListLoggingServersResponse.create = function create(properties) { + return new ListLoggingServersResponse(properties); }; /** - * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. + * Encodes the specified ListLoggingServersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListLoggingServersResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListLoggingServersResponse} message ListLoggingServersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVmwareEngineNetworksResponse.encode = function encode(message, writer) { + ListLoggingServersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vmwareEngineNetworks != null && message.vmwareEngineNetworks.length) - for (var i = 0; i < message.vmwareEngineNetworks.length; ++i) - $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetworks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.loggingServers != null && message.loggingServers.length) + for (var i = 0; i < message.loggingServers.length; ++i) + $root.google.cloud.vmwareengine.v1.LoggingServer.encode(message.loggingServers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); if (message.unreachable != null && message.unreachable.length) @@ -11753,40 +11673,40 @@ }; /** - * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. + * Encodes the specified ListLoggingServersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListLoggingServersResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListLoggingServersResponse} message ListLoggingServersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVmwareEngineNetworksResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListLoggingServersResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer. + * Decodes a ListLoggingServersResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse + * @returns {google.cloud.vmwareengine.v1.ListLoggingServersResponse} ListLoggingServersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVmwareEngineNetworksResponse.decode = function decode(reader, length) { + ListLoggingServersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListLoggingServersResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.vmwareEngineNetworks && message.vmwareEngineNetworks.length)) - message.vmwareEngineNetworks = []; - message.vmwareEngineNetworks.push($root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32())); + if (!(message.loggingServers && message.loggingServers.length)) + message.loggingServers = []; + message.loggingServers.push($root.google.cloud.vmwareengine.v1.LoggingServer.decode(reader, reader.uint32())); break; } case 2: { @@ -11808,39 +11728,39 @@ }; /** - * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited. + * Decodes a ListLoggingServersResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse + * @returns {google.cloud.vmwareengine.v1.ListLoggingServersResponse} ListLoggingServersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVmwareEngineNetworksResponse.decodeDelimited = function decodeDelimited(reader) { + ListLoggingServersResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVmwareEngineNetworksResponse message. + * Verifies a ListLoggingServersResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVmwareEngineNetworksResponse.verify = function verify(message) { + ListLoggingServersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vmwareEngineNetworks != null && message.hasOwnProperty("vmwareEngineNetworks")) { - if (!Array.isArray(message.vmwareEngineNetworks)) - return "vmwareEngineNetworks: array expected"; - for (var i = 0; i < message.vmwareEngineNetworks.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetworks[i]); + if (message.loggingServers != null && message.hasOwnProperty("loggingServers")) { + if (!Array.isArray(message.loggingServers)) + return "loggingServers: array expected"; + for (var i = 0; i < message.loggingServers.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.LoggingServer.verify(message.loggingServers[i]); if (error) - return "vmwareEngineNetworks." + error; + return "loggingServers." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -11857,32 +11777,32 @@ }; /** - * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListLoggingServersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse + * @returns {google.cloud.vmwareengine.v1.ListLoggingServersResponse} ListLoggingServersResponse */ - ListVmwareEngineNetworksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) + ListLoggingServersResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListLoggingServersResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); - if (object.vmwareEngineNetworks) { - if (!Array.isArray(object.vmwareEngineNetworks)) - throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.vmwareEngineNetworks: array expected"); - message.vmwareEngineNetworks = []; - for (var i = 0; i < object.vmwareEngineNetworks.length; ++i) { - if (typeof object.vmwareEngineNetworks[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.vmwareEngineNetworks: object expected"); - message.vmwareEngineNetworks[i] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetworks[i]); + var message = new $root.google.cloud.vmwareengine.v1.ListLoggingServersResponse(); + if (object.loggingServers) { + if (!Array.isArray(object.loggingServers)) + throw TypeError(".google.cloud.vmwareengine.v1.ListLoggingServersResponse.loggingServers: array expected"); + message.loggingServers = []; + for (var i = 0; i < object.loggingServers.length; ++i) { + if (typeof object.loggingServers[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListLoggingServersResponse.loggingServers: object expected"); + message.loggingServers[i] = $root.google.cloud.vmwareengine.v1.LoggingServer.fromObject(object.loggingServers[i]); } } if (object.nextPageToken != null) message.nextPageToken = String(object.nextPageToken); if (object.unreachable) { if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.unreachable: array expected"); + throw TypeError(".google.cloud.vmwareengine.v1.ListLoggingServersResponse.unreachable: array expected"); message.unreachable = []; for (var i = 0; i < object.unreachable.length; ++i) message.unreachable[i] = String(object.unreachable[i]); @@ -11891,28 +11811,28 @@ }; /** - * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListLoggingServersResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static - * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse + * @param {google.cloud.vmwareengine.v1.ListLoggingServersResponse} message ListLoggingServersResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVmwareEngineNetworksResponse.toObject = function toObject(message, options) { + ListLoggingServersResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.vmwareEngineNetworks = []; + object.loggingServers = []; object.unreachable = []; } if (options.defaults) object.nextPageToken = ""; - if (message.vmwareEngineNetworks && message.vmwareEngineNetworks.length) { - object.vmwareEngineNetworks = []; - for (var j = 0; j < message.vmwareEngineNetworks.length; ++j) - object.vmwareEngineNetworks[j] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetworks[j], options); + if (message.loggingServers && message.loggingServers.length) { + object.loggingServers = []; + for (var j = 0; j < message.loggingServers.length; ++j) + object.loggingServers[j] = $root.google.cloud.vmwareengine.v1.LoggingServer.toObject(message.loggingServers[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -11925,55 +11845,52 @@ }; /** - * Converts this ListVmwareEngineNetworksResponse to JSON. + * Converts this ListLoggingServersResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @instance * @returns {Object.} JSON object */ - ListVmwareEngineNetworksResponse.prototype.toJSON = function toJSON() { + ListLoggingServersResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVmwareEngineNetworksResponse + * Gets the default type url for ListLoggingServersResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @memberof google.cloud.vmwareengine.v1.ListLoggingServersResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVmwareEngineNetworksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListLoggingServersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListLoggingServersResponse"; }; - return ListVmwareEngineNetworksResponse; + return ListLoggingServersResponse; })(); - v1.CreatePrivateConnectionRequest = (function() { + v1.GetLoggingServerRequest = (function() { /** - * Properties of a CreatePrivateConnectionRequest. + * Properties of a GetLoggingServerRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreatePrivateConnectionRequest - * @property {string|null} [parent] CreatePrivateConnectionRequest parent - * @property {string|null} [privateConnectionId] CreatePrivateConnectionRequest privateConnectionId - * @property {google.cloud.vmwareengine.v1.IPrivateConnection|null} [privateConnection] CreatePrivateConnectionRequest privateConnection - * @property {string|null} [requestId] CreatePrivateConnectionRequest requestId + * @interface IGetLoggingServerRequest + * @property {string|null} [name] GetLoggingServerRequest name */ /** - * Constructs a new CreatePrivateConnectionRequest. + * Constructs a new GetLoggingServerRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreatePrivateConnectionRequest. - * @implements ICreatePrivateConnectionRequest + * @classdesc Represents a GetLoggingServerRequest. + * @implements IGetLoggingServerRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetLoggingServerRequest=} [properties] Properties to set */ - function CreatePrivateConnectionRequest(properties) { + function GetLoggingServerRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11981,117 +11898,75 @@ } /** - * CreatePrivateConnectionRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest - * @instance - */ - CreatePrivateConnectionRequest.prototype.parent = ""; - - /** - * CreatePrivateConnectionRequest privateConnectionId. - * @member {string} privateConnectionId - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest - * @instance - */ - CreatePrivateConnectionRequest.prototype.privateConnectionId = ""; - - /** - * CreatePrivateConnectionRequest privateConnection. - * @member {google.cloud.vmwareengine.v1.IPrivateConnection|null|undefined} privateConnection - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest - * @instance - */ - CreatePrivateConnectionRequest.prototype.privateConnection = null; - - /** - * CreatePrivateConnectionRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * GetLoggingServerRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @instance */ - CreatePrivateConnectionRequest.prototype.requestId = ""; + GetLoggingServerRequest.prototype.name = ""; /** - * Creates a new CreatePrivateConnectionRequest instance using the specified properties. + * Creates a new GetLoggingServerRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} CreatePrivateConnectionRequest instance + * @param {google.cloud.vmwareengine.v1.IGetLoggingServerRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetLoggingServerRequest} GetLoggingServerRequest instance */ - CreatePrivateConnectionRequest.create = function create(properties) { - return new CreatePrivateConnectionRequest(properties); + GetLoggingServerRequest.create = function create(properties) { + return new GetLoggingServerRequest(properties); }; /** - * Encodes the specified CreatePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.verify|verify} messages. + * Encodes the specified GetLoggingServerRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetLoggingServerRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest} message CreatePrivateConnectionRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetLoggingServerRequest} message GetLoggingServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePrivateConnectionRequest.encode = function encode(message, writer) { + GetLoggingServerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.privateConnectionId != null && Object.hasOwnProperty.call(message, "privateConnectionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.privateConnectionId); - if (message.privateConnection != null && Object.hasOwnProperty.call(message, "privateConnection")) - $root.google.cloud.vmwareengine.v1.PrivateConnection.encode(message.privateConnection, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreatePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.verify|verify} messages. + * Encodes the specified GetLoggingServerRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetLoggingServerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest} message CreatePrivateConnectionRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetLoggingServerRequest} message GetLoggingServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePrivateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetLoggingServerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePrivateConnectionRequest message from the specified reader or buffer. + * Decodes a GetLoggingServerRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} CreatePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.GetLoggingServerRequest} GetLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePrivateConnectionRequest.decode = function decode(reader, length) { + GetLoggingServerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetLoggingServerRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.privateConnectionId = reader.string(); - break; - } - case 3: { - message.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.decode(reader, reader.uint32()); - break; - } - case 4: { - message.requestId = reader.string(); + message.name = reader.string(); break; } default: @@ -12103,152 +11978,125 @@ }; /** - * Decodes a CreatePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetLoggingServerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} CreatePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.GetLoggingServerRequest} GetLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePrivateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + GetLoggingServerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePrivateConnectionRequest message. + * Verifies a GetLoggingServerRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePrivateConnectionRequest.verify = function verify(message) { + GetLoggingServerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.privateConnectionId != null && message.hasOwnProperty("privateConnectionId")) - if (!$util.isString(message.privateConnectionId)) - return "privateConnectionId: string expected"; - if (message.privateConnection != null && message.hasOwnProperty("privateConnection")) { - var error = $root.google.cloud.vmwareengine.v1.PrivateConnection.verify(message.privateConnection); - if (error) - return "privateConnection." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreatePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetLoggingServerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} CreatePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.GetLoggingServerRequest} GetLoggingServerRequest */ - CreatePrivateConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) + GetLoggingServerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetLoggingServerRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.privateConnectionId != null) - message.privateConnectionId = String(object.privateConnectionId); - if (object.privateConnection != null) { - if (typeof object.privateConnection !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.privateConnection: object expected"); - message.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.fromObject(object.privateConnection); - } - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.GetLoggingServerRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreatePrivateConnectionRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetLoggingServerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} message CreatePrivateConnectionRequest + * @param {google.cloud.vmwareengine.v1.GetLoggingServerRequest} message GetLoggingServerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePrivateConnectionRequest.toObject = function toObject(message, options) { + GetLoggingServerRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.privateConnectionId = ""; - object.privateConnection = null; - object.requestId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.privateConnectionId != null && message.hasOwnProperty("privateConnectionId")) - object.privateConnectionId = message.privateConnectionId; - if (message.privateConnection != null && message.hasOwnProperty("privateConnection")) - object.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.toObject(message.privateConnection, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreatePrivateConnectionRequest to JSON. + * Converts this GetLoggingServerRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @instance * @returns {Object.} JSON object */ - CreatePrivateConnectionRequest.prototype.toJSON = function toJSON() { + GetLoggingServerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePrivateConnectionRequest + * Gets the default type url for GetLoggingServerRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.GetLoggingServerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePrivateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetLoggingServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetLoggingServerRequest"; }; - return CreatePrivateConnectionRequest; + return GetLoggingServerRequest; })(); - v1.GetPrivateConnectionRequest = (function() { + v1.CreateLoggingServerRequest = (function() { /** - * Properties of a GetPrivateConnectionRequest. + * Properties of a CreateLoggingServerRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetPrivateConnectionRequest - * @property {string|null} [name] GetPrivateConnectionRequest name + * @interface ICreateLoggingServerRequest + * @property {string|null} [parent] CreateLoggingServerRequest parent + * @property {google.cloud.vmwareengine.v1.ILoggingServer|null} [loggingServer] CreateLoggingServerRequest loggingServer + * @property {string|null} [loggingServerId] CreateLoggingServerRequest loggingServerId + * @property {string|null} [requestId] CreateLoggingServerRequest requestId */ /** - * Constructs a new GetPrivateConnectionRequest. + * Constructs a new CreateLoggingServerRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetPrivateConnectionRequest. - * @implements IGetPrivateConnectionRequest + * @classdesc Represents a CreateLoggingServerRequest. + * @implements ICreateLoggingServerRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateLoggingServerRequest=} [properties] Properties to set */ - function GetPrivateConnectionRequest(properties) { + function CreateLoggingServerRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12256,75 +12104,117 @@ } /** - * GetPrivateConnectionRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * CreateLoggingServerRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @instance */ - GetPrivateConnectionRequest.prototype.name = ""; + CreateLoggingServerRequest.prototype.parent = ""; /** - * Creates a new GetPrivateConnectionRequest instance using the specified properties. + * CreateLoggingServerRequest loggingServer. + * @member {google.cloud.vmwareengine.v1.ILoggingServer|null|undefined} loggingServer + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest + * @instance + */ + CreateLoggingServerRequest.prototype.loggingServer = null; + + /** + * CreateLoggingServerRequest loggingServerId. + * @member {string} loggingServerId + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest + * @instance + */ + CreateLoggingServerRequest.prototype.loggingServerId = ""; + + /** + * CreateLoggingServerRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest + * @instance + */ + CreateLoggingServerRequest.prototype.requestId = ""; + + /** + * Creates a new CreateLoggingServerRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} GetPrivateConnectionRequest instance + * @param {google.cloud.vmwareengine.v1.ICreateLoggingServerRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateLoggingServerRequest} CreateLoggingServerRequest instance */ - GetPrivateConnectionRequest.create = function create(properties) { - return new GetPrivateConnectionRequest(properties); + CreateLoggingServerRequest.create = function create(properties) { + return new CreateLoggingServerRequest(properties); }; /** - * Encodes the specified GetPrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.verify|verify} messages. + * Encodes the specified CreateLoggingServerRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateLoggingServerRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest} message GetPrivateConnectionRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateLoggingServerRequest} message CreateLoggingServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPrivateConnectionRequest.encode = function encode(message, writer) { + CreateLoggingServerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.loggingServer != null && Object.hasOwnProperty.call(message, "loggingServer")) + $root.google.cloud.vmwareengine.v1.LoggingServer.encode(message.loggingServer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.loggingServerId != null && Object.hasOwnProperty.call(message, "loggingServerId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.loggingServerId); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified GetPrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.verify|verify} messages. + * Encodes the specified CreateLoggingServerRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateLoggingServerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest} message GetPrivateConnectionRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateLoggingServerRequest} message CreateLoggingServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPrivateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateLoggingServerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPrivateConnectionRequest message from the specified reader or buffer. + * Decodes a CreateLoggingServerRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} GetPrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.CreateLoggingServerRequest} CreateLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPrivateConnectionRequest.decode = function decode(reader, length) { + CreateLoggingServerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateLoggingServerRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.loggingServer = $root.google.cloud.vmwareengine.v1.LoggingServer.decode(reader, reader.uint32()); + break; + } + case 3: { + message.loggingServerId = reader.string(); + break; + } + case 4: { + message.requestId = reader.string(); break; } default: @@ -12336,126 +12226,154 @@ }; /** - * Decodes a GetPrivateConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateLoggingServerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} GetPrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.CreateLoggingServerRequest} CreateLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPrivateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + CreateLoggingServerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPrivateConnectionRequest message. + * Verifies a CreateLoggingServerRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPrivateConnectionRequest.verify = function verify(message) { + CreateLoggingServerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.loggingServer != null && message.hasOwnProperty("loggingServer")) { + var error = $root.google.cloud.vmwareengine.v1.LoggingServer.verify(message.loggingServer); + if (error) + return "loggingServer." + error; + } + if (message.loggingServerId != null && message.hasOwnProperty("loggingServerId")) + if (!$util.isString(message.loggingServerId)) + return "loggingServerId: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a GetPrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateLoggingServerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} GetPrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.CreateLoggingServerRequest} CreateLoggingServerRequest */ - GetPrivateConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) + CreateLoggingServerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateLoggingServerRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vmwareengine.v1.CreateLoggingServerRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.loggingServer != null) { + if (typeof object.loggingServer !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateLoggingServerRequest.loggingServer: object expected"); + message.loggingServer = $root.google.cloud.vmwareengine.v1.LoggingServer.fromObject(object.loggingServer); + } + if (object.loggingServerId != null) + message.loggingServerId = String(object.loggingServerId); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a GetPrivateConnectionRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateLoggingServerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} message GetPrivateConnectionRequest + * @param {google.cloud.vmwareengine.v1.CreateLoggingServerRequest} message CreateLoggingServerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPrivateConnectionRequest.toObject = function toObject(message, options) { + CreateLoggingServerRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.loggingServer = null; + object.loggingServerId = ""; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.loggingServer != null && message.hasOwnProperty("loggingServer")) + object.loggingServer = $root.google.cloud.vmwareengine.v1.LoggingServer.toObject(message.loggingServer, options); + if (message.loggingServerId != null && message.hasOwnProperty("loggingServerId")) + object.loggingServerId = message.loggingServerId; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this GetPrivateConnectionRequest to JSON. + * Converts this CreateLoggingServerRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @instance * @returns {Object.} JSON object */ - GetPrivateConnectionRequest.prototype.toJSON = function toJSON() { + CreateLoggingServerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPrivateConnectionRequest + * Gets the default type url for CreateLoggingServerRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.CreateLoggingServerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPrivateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateLoggingServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetPrivateConnectionRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateLoggingServerRequest"; }; - return GetPrivateConnectionRequest; + return CreateLoggingServerRequest; })(); - v1.ListPrivateConnectionsRequest = (function() { + v1.UpdateLoggingServerRequest = (function() { /** - * Properties of a ListPrivateConnectionsRequest. + * Properties of an UpdateLoggingServerRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListPrivateConnectionsRequest - * @property {string|null} [parent] ListPrivateConnectionsRequest parent - * @property {number|null} [pageSize] ListPrivateConnectionsRequest pageSize - * @property {string|null} [pageToken] ListPrivateConnectionsRequest pageToken - * @property {string|null} [filter] ListPrivateConnectionsRequest filter - * @property {string|null} [orderBy] ListPrivateConnectionsRequest orderBy + * @interface IUpdateLoggingServerRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateLoggingServerRequest updateMask + * @property {google.cloud.vmwareengine.v1.ILoggingServer|null} [loggingServer] UpdateLoggingServerRequest loggingServer + * @property {string|null} [requestId] UpdateLoggingServerRequest requestId */ /** - * Constructs a new ListPrivateConnectionsRequest. + * Constructs a new UpdateLoggingServerRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListPrivateConnectionsRequest. - * @implements IListPrivateConnectionsRequest + * @classdesc Represents an UpdateLoggingServerRequest. + * @implements IUpdateLoggingServerRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest=} [properties] Properties to set */ - function ListPrivateConnectionsRequest(properties) { + function UpdateLoggingServerRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12463,131 +12381,103 @@ } /** - * ListPrivateConnectionsRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest - * @instance - */ - ListPrivateConnectionsRequest.prototype.parent = ""; - - /** - * ListPrivateConnectionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest - * @instance - */ - ListPrivateConnectionsRequest.prototype.pageSize = 0; - - /** - * ListPrivateConnectionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * UpdateLoggingServerRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @instance */ - ListPrivateConnectionsRequest.prototype.pageToken = ""; + UpdateLoggingServerRequest.prototype.updateMask = null; /** - * ListPrivateConnectionsRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * UpdateLoggingServerRequest loggingServer. + * @member {google.cloud.vmwareengine.v1.ILoggingServer|null|undefined} loggingServer + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @instance */ - ListPrivateConnectionsRequest.prototype.filter = ""; + UpdateLoggingServerRequest.prototype.loggingServer = null; /** - * ListPrivateConnectionsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * UpdateLoggingServerRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @instance */ - ListPrivateConnectionsRequest.prototype.orderBy = ""; + UpdateLoggingServerRequest.prototype.requestId = ""; /** - * Creates a new ListPrivateConnectionsRequest instance using the specified properties. + * Creates a new UpdateLoggingServerRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} ListPrivateConnectionsRequest instance + * @param {google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateLoggingServerRequest} UpdateLoggingServerRequest instance */ - ListPrivateConnectionsRequest.create = function create(properties) { - return new ListPrivateConnectionsRequest(properties); + UpdateLoggingServerRequest.create = function create(properties) { + return new UpdateLoggingServerRequest(properties); }; /** - * Encodes the specified ListPrivateConnectionsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.verify|verify} messages. + * Encodes the specified UpdateLoggingServerRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest} message ListPrivateConnectionsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest} message UpdateLoggingServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateConnectionsRequest.encode = function encode(message, writer) { + UpdateLoggingServerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.loggingServer != null && Object.hasOwnProperty.call(message, "loggingServer")) + $root.google.cloud.vmwareengine.v1.LoggingServer.encode(message.loggingServer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified ListPrivateConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.verify|verify} messages. + * Encodes the specified UpdateLoggingServerRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest} message ListPrivateConnectionsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest} message UpdateLoggingServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateLoggingServerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPrivateConnectionsRequest message from the specified reader or buffer. + * Decodes an UpdateLoggingServerRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} ListPrivateConnectionsRequest + * @returns {google.cloud.vmwareengine.v1.UpdateLoggingServerRequest} UpdateLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateConnectionsRequest.decode = function decode(reader, length) { + UpdateLoggingServerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 2: { - message.pageSize = reader.int32(); + message.loggingServer = $root.google.cloud.vmwareengine.v1.LoggingServer.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.requestId = reader.string(); break; } default: @@ -12599,159 +12489,150 @@ }; /** - * Decodes a ListPrivateConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateLoggingServerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} ListPrivateConnectionsRequest + * @returns {google.cloud.vmwareengine.v1.UpdateLoggingServerRequest} UpdateLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateLoggingServerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPrivateConnectionsRequest message. + * Verifies an UpdateLoggingServerRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPrivateConnectionsRequest.verify = function verify(message) { + UpdateLoggingServerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.loggingServer != null && message.hasOwnProperty("loggingServer")) { + var error = $root.google.cloud.vmwareengine.v1.LoggingServer.verify(message.loggingServer); + if (error) + return "loggingServer." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListPrivateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateLoggingServerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} ListPrivateConnectionsRequest + * @returns {google.cloud.vmwareengine.v1.UpdateLoggingServerRequest} UpdateLoggingServerRequest */ - ListPrivateConnectionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) + UpdateLoggingServerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.loggingServer != null) { + if (typeof object.loggingServer !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.loggingServer: object expected"); + message.loggingServer = $root.google.cloud.vmwareengine.v1.LoggingServer.fromObject(object.loggingServer); + } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListPrivateConnectionsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateLoggingServerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} message ListPrivateConnectionsRequest + * @param {google.cloud.vmwareengine.v1.UpdateLoggingServerRequest} message UpdateLoggingServerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPrivateConnectionsRequest.toObject = function toObject(message, options) { + UpdateLoggingServerRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + object.updateMask = null; + object.loggingServer = null; + object.requestId = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.loggingServer != null && message.hasOwnProperty("loggingServer")) + object.loggingServer = $root.google.cloud.vmwareengine.v1.LoggingServer.toObject(message.loggingServer, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListPrivateConnectionsRequest to JSON. + * Converts this UpdateLoggingServerRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @instance * @returns {Object.} JSON object */ - ListPrivateConnectionsRequest.prototype.toJSON = function toJSON() { + UpdateLoggingServerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPrivateConnectionsRequest + * Gets the default type url for UpdateLoggingServerRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateLoggingServerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPrivateConnectionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateLoggingServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateLoggingServerRequest"; }; - return ListPrivateConnectionsRequest; + return UpdateLoggingServerRequest; })(); - v1.ListPrivateConnectionsResponse = (function() { + v1.DeleteLoggingServerRequest = (function() { /** - * Properties of a ListPrivateConnectionsResponse. + * Properties of a DeleteLoggingServerRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListPrivateConnectionsResponse - * @property {Array.|null} [privateConnections] ListPrivateConnectionsResponse privateConnections - * @property {string|null} [nextPageToken] ListPrivateConnectionsResponse nextPageToken - * @property {Array.|null} [unreachable] ListPrivateConnectionsResponse unreachable + * @interface IDeleteLoggingServerRequest + * @property {string|null} [name] DeleteLoggingServerRequest name + * @property {string|null} [requestId] DeleteLoggingServerRequest requestId */ /** - * Constructs a new ListPrivateConnectionsResponse. + * Constructs a new DeleteLoggingServerRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListPrivateConnectionsResponse. - * @implements IListPrivateConnectionsResponse + * @classdesc Represents a DeleteLoggingServerRequest. + * @implements IDeleteLoggingServerRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest=} [properties] Properties to set */ - function ListPrivateConnectionsResponse(properties) { - this.privateConnections = []; - this.unreachable = []; + function DeleteLoggingServerRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12759,109 +12640,89 @@ } /** - * ListPrivateConnectionsResponse privateConnections. - * @member {Array.} privateConnections - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse - * @instance - */ - ListPrivateConnectionsResponse.prototype.privateConnections = $util.emptyArray; - - /** - * ListPrivateConnectionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * DeleteLoggingServerRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @instance */ - ListPrivateConnectionsResponse.prototype.nextPageToken = ""; + DeleteLoggingServerRequest.prototype.name = ""; /** - * ListPrivateConnectionsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * DeleteLoggingServerRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @instance */ - ListPrivateConnectionsResponse.prototype.unreachable = $util.emptyArray; + DeleteLoggingServerRequest.prototype.requestId = ""; /** - * Creates a new ListPrivateConnectionsResponse instance using the specified properties. + * Creates a new DeleteLoggingServerRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} ListPrivateConnectionsResponse instance + * @param {google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteLoggingServerRequest} DeleteLoggingServerRequest instance */ - ListPrivateConnectionsResponse.create = function create(properties) { - return new ListPrivateConnectionsResponse(properties); + DeleteLoggingServerRequest.create = function create(properties) { + return new DeleteLoggingServerRequest(properties); }; /** - * Encodes the specified ListPrivateConnectionsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.verify|verify} messages. + * Encodes the specified DeleteLoggingServerRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse} message ListPrivateConnectionsResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest} message DeleteLoggingServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateConnectionsResponse.encode = function encode(message, writer) { + DeleteLoggingServerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateConnections != null && message.privateConnections.length) - for (var i = 0; i < message.privateConnections.length; ++i) - $root.google.cloud.vmwareengine.v1.PrivateConnection.encode(message.privateConnections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified ListPrivateConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.verify|verify} messages. + * Encodes the specified DeleteLoggingServerRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse} message ListPrivateConnectionsResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest} message DeleteLoggingServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteLoggingServerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPrivateConnectionsResponse message from the specified reader or buffer. + * Decodes a DeleteLoggingServerRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} ListPrivateConnectionsResponse + * @returns {google.cloud.vmwareengine.v1.DeleteLoggingServerRequest} DeleteLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateConnectionsResponse.decode = function decode(reader, length) { + DeleteLoggingServerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.privateConnections && message.privateConnections.length)) - message.privateConnections = []; - message.privateConnections.push($root.google.cloud.vmwareengine.v1.PrivateConnection.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.requestId = reader.string(); break; } default: @@ -12873,171 +12734,137 @@ }; /** - * Decodes a ListPrivateConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteLoggingServerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} ListPrivateConnectionsResponse + * @returns {google.cloud.vmwareengine.v1.DeleteLoggingServerRequest} DeleteLoggingServerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteLoggingServerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPrivateConnectionsResponse message. + * Verifies a DeleteLoggingServerRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPrivateConnectionsResponse.verify = function verify(message) { + DeleteLoggingServerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateConnections != null && message.hasOwnProperty("privateConnections")) { - if (!Array.isArray(message.privateConnections)) - return "privateConnections: array expected"; - for (var i = 0; i < message.privateConnections.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.PrivateConnection.verify(message.privateConnections[i]); - if (error) - return "privateConnections." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListPrivateConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteLoggingServerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} ListPrivateConnectionsResponse + * @returns {google.cloud.vmwareengine.v1.DeleteLoggingServerRequest} DeleteLoggingServerRequest */ - ListPrivateConnectionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) + DeleteLoggingServerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse(); - if (object.privateConnections) { - if (!Array.isArray(object.privateConnections)) - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.privateConnections: array expected"); - message.privateConnections = []; - for (var i = 0; i < object.privateConnections.length; ++i) { - if (typeof object.privateConnections[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.privateConnections: object expected"); - message.privateConnections[i] = $root.google.cloud.vmwareengine.v1.PrivateConnection.fromObject(object.privateConnections[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListPrivateConnectionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteLoggingServerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static - * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} message ListPrivateConnectionsResponse + * @param {google.cloud.vmwareengine.v1.DeleteLoggingServerRequest} message DeleteLoggingServerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPrivateConnectionsResponse.toObject = function toObject(message, options) { + DeleteLoggingServerRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.privateConnections = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.privateConnections && message.privateConnections.length) { - object.privateConnections = []; - for (var j = 0; j < message.privateConnections.length; ++j) - object.privateConnections[j] = $root.google.cloud.vmwareengine.v1.PrivateConnection.toObject(message.privateConnections[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.name = ""; + object.requestId = ""; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListPrivateConnectionsResponse to JSON. + * Converts this DeleteLoggingServerRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @instance * @returns {Object.} JSON object */ - ListPrivateConnectionsResponse.prototype.toJSON = function toJSON() { + DeleteLoggingServerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPrivateConnectionsResponse + * Gets the default type url for DeleteLoggingServerRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @memberof google.cloud.vmwareengine.v1.DeleteLoggingServerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPrivateConnectionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteLoggingServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteLoggingServerRequest"; }; - return ListPrivateConnectionsResponse; + return DeleteLoggingServerRequest; })(); - v1.UpdatePrivateConnectionRequest = (function() { + v1.OperationMetadata = (function() { /** - * Properties of an UpdatePrivateConnectionRequest. + * Properties of an OperationMetadata. * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdatePrivateConnectionRequest - * @property {google.cloud.vmwareengine.v1.IPrivateConnection|null} [privateConnection] UpdatePrivateConnectionRequest privateConnection - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePrivateConnectionRequest updateMask - * @property {string|null} [requestId] UpdatePrivateConnectionRequest requestId + * @interface IOperationMetadata + * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + * @property {string|null} [target] OperationMetadata target + * @property {string|null} [verb] OperationMetadata verb + * @property {string|null} [statusMessage] OperationMetadata statusMessage + * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation + * @property {string|null} [apiVersion] OperationMetadata apiVersion */ /** - * Constructs a new UpdatePrivateConnectionRequest. + * Constructs a new OperationMetadata. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdatePrivateConnectionRequest. - * @implements IUpdatePrivateConnectionRequest + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set */ - function UpdatePrivateConnectionRequest(properties) { + function OperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13045,103 +12872,159 @@ } /** - * UpdatePrivateConnectionRequest privateConnection. - * @member {google.cloud.vmwareengine.v1.IPrivateConnection|null|undefined} privateConnection - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * OperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @instance */ - UpdatePrivateConnectionRequest.prototype.privateConnection = null; + OperationMetadata.prototype.createTime = null; /** - * UpdatePrivateConnectionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * OperationMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @instance */ - UpdatePrivateConnectionRequest.prototype.updateMask = null; + OperationMetadata.prototype.endTime = null; /** - * UpdatePrivateConnectionRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * OperationMetadata target. + * @member {string} target + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @instance */ - UpdatePrivateConnectionRequest.prototype.requestId = ""; + OperationMetadata.prototype.target = ""; /** - * Creates a new UpdatePrivateConnectionRequest instance using the specified properties. + * OperationMetadata verb. + * @member {string} verb + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.verb = ""; + + /** + * OperationMetadata statusMessage. + * @member {string} statusMessage + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.statusMessage = ""; + + /** + * OperationMetadata requestedCancellation. + * @member {boolean} requestedCancellation + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.requestedCancellation = false; + + /** + * OperationMetadata apiVersion. + * @member {string} apiVersion + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.apiVersion = ""; + + /** + * Creates a new OperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} UpdatePrivateConnectionRequest instance + * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata instance */ - UpdatePrivateConnectionRequest.create = function create(properties) { - return new UpdatePrivateConnectionRequest(properties); + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); }; /** - * Encodes the specified UpdatePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.verify|verify} messages. + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest} message UpdatePrivateConnectionRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IOperationMetadata} message OperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePrivateConnectionRequest.encode = function encode(message, writer) { + OperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateConnection != null && Object.hasOwnProperty.call(message, "privateConnection")) - $root.google.cloud.vmwareengine.v1.PrivateConnection.encode(message.privateConnection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); + if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); + if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); return writer; }; /** - * Encodes the specified UpdatePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.verify|verify} messages. + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest} message UpdatePrivateConnectionRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IOperationMetadata} message OperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePrivateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdatePrivateConnectionRequest message from the specified reader or buffer. + * Decodes an OperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} UpdatePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePrivateConnectionRequest.decode = function decode(reader, length) { + OperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.OperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - message.requestId = reader.string(); + message.target = reader.string(); + break; + } + case 4: { + message.verb = reader.string(); + break; + } + case 5: { + message.statusMessage = reader.string(); + break; + } + case 6: { + message.requestedCancellation = reader.bool(); + break; + } + case 7: { + message.apiVersion = reader.string(); break; } default: @@ -13153,150 +13036,184 @@ }; /** - * Decodes an UpdatePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} UpdatePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePrivateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdatePrivateConnectionRequest message. + * Verifies an OperationMetadata message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePrivateConnectionRequest.verify = function verify(message) { + OperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateConnection != null && message.hasOwnProperty("privateConnection")) { - var error = $root.google.cloud.vmwareengine.v1.PrivateConnection.verify(message.privateConnection); + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "privateConnection." + error; + return "createTime." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); if (error) - return "updateMask." + error; + return "endTime." + error; } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.target != null && message.hasOwnProperty("target")) + if (!$util.isString(message.target)) + return "target: string expected"; + if (message.verb != null && message.hasOwnProperty("verb")) + if (!$util.isString(message.verb)) + return "verb: string expected"; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + if (typeof message.requestedCancellation !== "boolean") + return "requestedCancellation: boolean expected"; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + if (!$util.isString(message.apiVersion)) + return "apiVersion: string expected"; return null; }; /** - * Creates an UpdatePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} UpdatePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata */ - UpdatePrivateConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest(); - if (object.privateConnection != null) { - if (typeof object.privateConnection !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.privateConnection: object expected"); - message.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.fromObject(object.privateConnection); + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.OperationMetadata) + return object; + var message = new $root.google.cloud.vmwareengine.v1.OperationMetadata(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.OperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.OperationMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.target != null) + message.target = String(object.target); + if (object.verb != null) + message.verb = String(object.verb); + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.requestedCancellation != null) + message.requestedCancellation = Boolean(object.requestedCancellation); + if (object.apiVersion != null) + message.apiVersion = String(object.apiVersion); return message; }; /** - * Creates a plain object from an UpdatePrivateConnectionRequest message. Also converts values to other types if specified. + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static - * @param {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} message UpdatePrivateConnectionRequest + * @param {google.cloud.vmwareengine.v1.OperationMetadata} message OperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePrivateConnectionRequest.toObject = function toObject(message, options) { + OperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.privateConnection = null; - object.updateMask = null; - object.requestId = ""; + object.createTime = null; + object.endTime = null; + object.target = ""; + object.verb = ""; + object.statusMessage = ""; + object.requestedCancellation = false; + object.apiVersion = ""; } - if (message.privateConnection != null && message.hasOwnProperty("privateConnection")) - object.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.toObject(message.privateConnection, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = message.target; + if (message.verb != null && message.hasOwnProperty("verb")) + object.verb = message.verb; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + object.requestedCancellation = message.requestedCancellation; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + object.apiVersion = message.apiVersion; return object; }; /** - * Converts this UpdatePrivateConnectionRequest to JSON. + * Converts this OperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @instance * @returns {Object.} JSON object */ - UpdatePrivateConnectionRequest.prototype.toJSON = function toJSON() { + OperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdatePrivateConnectionRequest + * Gets the default type url for OperationMetadata * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdatePrivateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.OperationMetadata"; }; - return UpdatePrivateConnectionRequest; + return OperationMetadata; })(); - v1.DeletePrivateConnectionRequest = (function() { + v1.ListNodeTypesRequest = (function() { /** - * Properties of a DeletePrivateConnectionRequest. + * Properties of a ListNodeTypesRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IDeletePrivateConnectionRequest - * @property {string|null} [name] DeletePrivateConnectionRequest name - * @property {string|null} [requestId] DeletePrivateConnectionRequest requestId + * @interface IListNodeTypesRequest + * @property {string|null} [parent] ListNodeTypesRequest parent + * @property {number|null} [pageSize] ListNodeTypesRequest pageSize + * @property {string|null} [pageToken] ListNodeTypesRequest pageToken + * @property {string|null} [filter] ListNodeTypesRequest filter */ /** - * Constructs a new DeletePrivateConnectionRequest. + * Constructs a new ListNodeTypesRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeletePrivateConnectionRequest. - * @implements IDeletePrivateConnectionRequest + * @classdesc Represents a ListNodeTypesRequest. + * @implements IListNodeTypesRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set */ - function DeletePrivateConnectionRequest(properties) { + function ListNodeTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13304,89 +13221,117 @@ } /** - * DeletePrivateConnectionRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * ListNodeTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @instance */ - DeletePrivateConnectionRequest.prototype.name = ""; + ListNodeTypesRequest.prototype.parent = ""; /** - * DeletePrivateConnectionRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * ListNodeTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @instance */ - DeletePrivateConnectionRequest.prototype.requestId = ""; + ListNodeTypesRequest.prototype.pageSize = 0; /** - * Creates a new DeletePrivateConnectionRequest instance using the specified properties. + * ListNodeTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @instance + */ + ListNodeTypesRequest.prototype.pageToken = ""; + + /** + * ListNodeTypesRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @instance + */ + ListNodeTypesRequest.prototype.filter = ""; + + /** + * Creates a new ListNodeTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} DeletePrivateConnectionRequest instance + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest instance */ - DeletePrivateConnectionRequest.create = function create(properties) { - return new DeletePrivateConnectionRequest(properties); + ListNodeTypesRequest.create = function create(properties) { + return new ListNodeTypesRequest(properties); }; /** - * Encodes the specified DeletePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.verify|verify} messages. + * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest} message DeletePrivateConnectionRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePrivateConnectionRequest.encode = function encode(message, writer) { + ListNodeTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified DeletePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.verify|verify} messages. + * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest} message DeletePrivateConnectionRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePrivateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePrivateConnectionRequest message from the specified reader or buffer. + * Decodes a ListNodeTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} DeletePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePrivateConnectionRequest.decode = function decode(reader, length) { + ListNodeTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.requestId = reader.string(); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); break; } default: @@ -13398,133 +13343,151 @@ }; /** - * Decodes a DeletePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} DeletePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePrivateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + ListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePrivateConnectionRequest message. + * Verifies a ListNodeTypesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePrivateConnectionRequest.verify = function verify(message) { + ListNodeTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a DeletePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} DeletePrivateConnectionRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest */ - DeletePrivateConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) + ListNodeTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a DeletePrivateConnectionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static - * @param {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} message DeletePrivateConnectionRequest + * @param {google.cloud.vmwareengine.v1.ListNodeTypesRequest} message ListNodeTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePrivateConnectionRequest.toObject = function toObject(message, options) { + ListNodeTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.requestId = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this DeletePrivateConnectionRequest to JSON. + * Converts this ListNodeTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @instance * @returns {Object.} JSON object */ - DeletePrivateConnectionRequest.prototype.toJSON = function toJSON() { + ListNodeTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePrivateConnectionRequest + * Gets the default type url for ListNodeTypesRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePrivateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesRequest"; }; - return DeletePrivateConnectionRequest; + return ListNodeTypesRequest; })(); - v1.ListPrivateConnectionPeeringRoutesRequest = (function() { + v1.ListNodeTypesResponse = (function() { /** - * Properties of a ListPrivateConnectionPeeringRoutesRequest. + * Properties of a ListNodeTypesResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IListPrivateConnectionPeeringRoutesRequest - * @property {string|null} [parent] ListPrivateConnectionPeeringRoutesRequest parent - * @property {number|null} [pageSize] ListPrivateConnectionPeeringRoutesRequest pageSize - * @property {string|null} [pageToken] ListPrivateConnectionPeeringRoutesRequest pageToken + * @interface IListNodeTypesResponse + * @property {Array.|null} [nodeTypes] ListNodeTypesResponse nodeTypes + * @property {string|null} [nextPageToken] ListNodeTypesResponse nextPageToken + * @property {Array.|null} [unreachable] ListNodeTypesResponse unreachable */ /** - * Constructs a new ListPrivateConnectionPeeringRoutesRequest. + * Constructs a new ListNodeTypesResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListPrivateConnectionPeeringRoutesRequest. - * @implements IListPrivateConnectionPeeringRoutesRequest + * @classdesc Represents a ListNodeTypesResponse. + * @implements IListNodeTypesResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set */ - function ListPrivateConnectionPeeringRoutesRequest(properties) { + function ListNodeTypesResponse(properties) { + this.nodeTypes = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13532,103 +13495,109 @@ } /** - * ListPrivateConnectionPeeringRoutesRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * ListNodeTypesResponse nodeTypes. + * @member {Array.} nodeTypes + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @instance */ - ListPrivateConnectionPeeringRoutesRequest.prototype.parent = ""; + ListNodeTypesResponse.prototype.nodeTypes = $util.emptyArray; /** - * ListPrivateConnectionPeeringRoutesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * ListNodeTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @instance */ - ListPrivateConnectionPeeringRoutesRequest.prototype.pageSize = 0; + ListNodeTypesResponse.prototype.nextPageToken = ""; /** - * ListPrivateConnectionPeeringRoutesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * ListNodeTypesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @instance */ - ListPrivateConnectionPeeringRoutesRequest.prototype.pageToken = ""; + ListNodeTypesResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new ListPrivateConnectionPeeringRoutesRequest instance using the specified properties. + * Creates a new ListNodeTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} ListPrivateConnectionPeeringRoutesRequest instance + * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse instance */ - ListPrivateConnectionPeeringRoutesRequest.create = function create(properties) { - return new ListPrivateConnectionPeeringRoutesRequest(properties); + ListNodeTypesResponse.create = function create(properties) { + return new ListNodeTypesResponse(properties); }; /** - * Encodes the specified ListPrivateConnectionPeeringRoutesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.verify|verify} messages. + * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest} message ListPrivateConnectionPeeringRoutesRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateConnectionPeeringRoutesRequest.encode = function encode(message, writer) { + ListNodeTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.nodeTypes != null && message.nodeTypes.length) + for (var i = 0; i < message.nodeTypes.length; ++i) + $root.google.cloud.vmwareengine.v1.NodeType.encode(message.nodeTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified ListPrivateConnectionPeeringRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.verify|verify} messages. + * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest} message ListPrivateConnectionPeeringRoutesRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateConnectionPeeringRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodeTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPrivateConnectionPeeringRoutesRequest message from the specified reader or buffer. + * Decodes a ListNodeTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} ListPrivateConnectionPeeringRoutesRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateConnectionPeeringRoutesRequest.decode = function decode(reader, length) { + ListNodeTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.nodeTypes && message.nodeTypes.length)) + message.nodeTypes = []; + message.nodeTypes.push($root.google.cloud.vmwareengine.v1.NodeType.decode(reader, reader.uint32())); break; } case 2: { - message.pageSize = reader.int32(); + message.nextPageToken = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -13640,141 +13609,169 @@ }; /** - * Decodes a ListPrivateConnectionPeeringRoutesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} ListPrivateConnectionPeeringRoutesRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateConnectionPeeringRoutesRequest.decodeDelimited = function decodeDelimited(reader) { + ListNodeTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPrivateConnectionPeeringRoutesRequest message. + * Verifies a ListNodeTypesResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPrivateConnectionPeeringRoutesRequest.verify = function verify(message) { + ListNodeTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.nodeTypes != null && message.hasOwnProperty("nodeTypes")) { + if (!Array.isArray(message.nodeTypes)) + return "nodeTypes: array expected"; + for (var i = 0; i < message.nodeTypes.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NodeType.verify(message.nodeTypes[i]); + if (error) + return "nodeTypes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a ListPrivateConnectionPeeringRoutesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} ListPrivateConnectionPeeringRoutesRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse */ - ListPrivateConnectionPeeringRoutesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) + ListNodeTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); + if (object.nodeTypes) { + if (!Array.isArray(object.nodeTypes)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: array expected"); + message.nodeTypes = []; + for (var i = 0; i < object.nodeTypes.length; ++i) { + if (typeof object.nodeTypes[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: object expected"); + message.nodeTypes[i] = $root.google.cloud.vmwareengine.v1.NodeType.fromObject(object.nodeTypes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a ListPrivateConnectionPeeringRoutesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static - * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} message ListPrivateConnectionPeeringRoutesRequest + * @param {google.cloud.vmwareengine.v1.ListNodeTypesResponse} message ListNodeTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPrivateConnectionPeeringRoutesRequest.toObject = function toObject(message, options) { + ListNodeTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) { + object.nodeTypes = []; + object.unreachable = []; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - return object; + if (options.defaults) + object.nextPageToken = ""; + if (message.nodeTypes && message.nodeTypes.length) { + object.nodeTypes = []; + for (var j = 0; j < message.nodeTypes.length; ++j) + object.nodeTypes[j] = $root.google.cloud.vmwareengine.v1.NodeType.toObject(message.nodeTypes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; }; /** - * Converts this ListPrivateConnectionPeeringRoutesRequest to JSON. + * Converts this ListNodeTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @instance * @returns {Object.} JSON object */ - ListPrivateConnectionPeeringRoutesRequest.prototype.toJSON = function toJSON() { + ListNodeTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPrivateConnectionPeeringRoutesRequest + * Gets the default type url for ListNodeTypesResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPrivateConnectionPeeringRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNodeTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesResponse"; }; - return ListPrivateConnectionPeeringRoutesRequest; + return ListNodeTypesResponse; })(); - v1.ListPrivateConnectionPeeringRoutesResponse = (function() { + v1.GetNodeTypeRequest = (function() { /** - * Properties of a ListPrivateConnectionPeeringRoutesResponse. + * Properties of a GetNodeTypeRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListPrivateConnectionPeeringRoutesResponse - * @property {Array.|null} [peeringRoutes] ListPrivateConnectionPeeringRoutesResponse peeringRoutes - * @property {string|null} [nextPageToken] ListPrivateConnectionPeeringRoutesResponse nextPageToken + * @interface IGetNodeTypeRequest + * @property {string|null} [name] GetNodeTypeRequest name */ /** - * Constructs a new ListPrivateConnectionPeeringRoutesResponse. + * Constructs a new GetNodeTypeRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListPrivateConnectionPeeringRoutesResponse. - * @implements IListPrivateConnectionPeeringRoutesResponse + * @classdesc Represents a GetNodeTypeRequest. + * @implements IGetNodeTypeRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set */ - function ListPrivateConnectionPeeringRoutesResponse(properties) { - this.peeringRoutes = []; + function GetNodeTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13782,92 +13779,75 @@ } /** - * ListPrivateConnectionPeeringRoutesResponse peeringRoutes. - * @member {Array.} peeringRoutes - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse - * @instance - */ - ListPrivateConnectionPeeringRoutesResponse.prototype.peeringRoutes = $util.emptyArray; - - /** - * ListPrivateConnectionPeeringRoutesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * GetNodeTypeRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @instance */ - ListPrivateConnectionPeeringRoutesResponse.prototype.nextPageToken = ""; + GetNodeTypeRequest.prototype.name = ""; /** - * Creates a new ListPrivateConnectionPeeringRoutesResponse instance using the specified properties. + * Creates a new GetNodeTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} ListPrivateConnectionPeeringRoutesResponse instance + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest instance */ - ListPrivateConnectionPeeringRoutesResponse.create = function create(properties) { - return new ListPrivateConnectionPeeringRoutesResponse(properties); + GetNodeTypeRequest.create = function create(properties) { + return new GetNodeTypeRequest(properties); }; /** - * Encodes the specified ListPrivateConnectionPeeringRoutesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.verify|verify} messages. + * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse} message ListPrivateConnectionPeeringRoutesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateConnectionPeeringRoutesResponse.encode = function encode(message, writer) { + GetNodeTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.peeringRoutes != null && message.peeringRoutes.length) - for (var i = 0; i < message.peeringRoutes.length; ++i) - $root.google.cloud.vmwareengine.v1.PeeringRoute.encode(message.peeringRoutes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListPrivateConnectionPeeringRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.verify|verify} messages. + * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse} message ListPrivateConnectionPeeringRoutesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateConnectionPeeringRoutesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetNodeTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPrivateConnectionPeeringRoutesResponse message from the specified reader or buffer. + * Decodes a GetNodeTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} ListPrivateConnectionPeeringRoutesResponse + * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateConnectionPeeringRoutesResponse.decode = function decode(reader, length) { + GetNodeTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.peeringRoutes && message.peeringRoutes.length)) - message.peeringRoutes = []; - message.peeringRoutes.push($root.google.cloud.vmwareengine.v1.PeeringRoute.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -13879,151 +13859,122 @@ }; /** - * Decodes a ListPrivateConnectionPeeringRoutesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} ListPrivateConnectionPeeringRoutesResponse + * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateConnectionPeeringRoutesResponse.decodeDelimited = function decodeDelimited(reader) { + GetNodeTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPrivateConnectionPeeringRoutesResponse message. + * Verifies a GetNodeTypeRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPrivateConnectionPeeringRoutesResponse.verify = function verify(message) { + GetNodeTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.peeringRoutes != null && message.hasOwnProperty("peeringRoutes")) { - if (!Array.isArray(message.peeringRoutes)) - return "peeringRoutes: array expected"; - for (var i = 0; i < message.peeringRoutes.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.PeeringRoute.verify(message.peeringRoutes[i]); - if (error) - return "peeringRoutes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListPrivateConnectionPeeringRoutesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} ListPrivateConnectionPeeringRoutesResponse + * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest */ - ListPrivateConnectionPeeringRoutesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) + GetNodeTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse(); - if (object.peeringRoutes) { - if (!Array.isArray(object.peeringRoutes)) - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.peeringRoutes: array expected"); - message.peeringRoutes = []; - for (var i = 0; i < object.peeringRoutes.length; ++i) { - if (typeof object.peeringRoutes[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.peeringRoutes: object expected"); - message.peeringRoutes[i] = $root.google.cloud.vmwareengine.v1.PeeringRoute.fromObject(object.peeringRoutes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListPrivateConnectionPeeringRoutesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static - * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} message ListPrivateConnectionPeeringRoutesResponse + * @param {google.cloud.vmwareengine.v1.GetNodeTypeRequest} message GetNodeTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPrivateConnectionPeeringRoutesResponse.toObject = function toObject(message, options) { + GetNodeTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.peeringRoutes = []; if (options.defaults) - object.nextPageToken = ""; - if (message.peeringRoutes && message.peeringRoutes.length) { - object.peeringRoutes = []; - for (var j = 0; j < message.peeringRoutes.length; ++j) - object.peeringRoutes[j] = $root.google.cloud.vmwareengine.v1.PeeringRoute.toObject(message.peeringRoutes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListPrivateConnectionPeeringRoutesResponse to JSON. + * Converts this GetNodeTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @instance * @returns {Object.} JSON object */ - ListPrivateConnectionPeeringRoutesResponse.prototype.toJSON = function toJSON() { + GetNodeTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPrivateConnectionPeeringRoutesResponse + * Gets the default type url for GetNodeTypeRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPrivateConnectionPeeringRoutesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNodeTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNodeTypeRequest"; }; - return ListPrivateConnectionPeeringRoutesResponse; + return GetNodeTypeRequest; })(); - v1.NetworkConfig = (function() { + v1.ShowNsxCredentialsRequest = (function() { /** - * Properties of a NetworkConfig. + * Properties of a ShowNsxCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface INetworkConfig - * @property {string|null} [managementCidr] NetworkConfig managementCidr - * @property {string|null} [vmwareEngineNetwork] NetworkConfig vmwareEngineNetwork - * @property {string|null} [vmwareEngineNetworkCanonical] NetworkConfig vmwareEngineNetworkCanonical - * @property {number|null} [managementIpAddressLayoutVersion] NetworkConfig managementIpAddressLayoutVersion + * @interface IShowNsxCredentialsRequest + * @property {string|null} [privateCloud] ShowNsxCredentialsRequest privateCloud */ /** - * Constructs a new NetworkConfig. + * Constructs a new ShowNsxCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a NetworkConfig. - * @implements INetworkConfig + * @classdesc Represents a ShowNsxCredentialsRequest. + * @implements IShowNsxCredentialsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set */ - function NetworkConfig(properties) { + function ShowNsxCredentialsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14031,117 +13982,75 @@ } /** - * NetworkConfig managementCidr. - * @member {string} managementCidr - * @memberof google.cloud.vmwareengine.v1.NetworkConfig - * @instance - */ - NetworkConfig.prototype.managementCidr = ""; - - /** - * NetworkConfig vmwareEngineNetwork. - * @member {string} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.NetworkConfig - * @instance - */ - NetworkConfig.prototype.vmwareEngineNetwork = ""; - - /** - * NetworkConfig vmwareEngineNetworkCanonical. - * @member {string} vmwareEngineNetworkCanonical - * @memberof google.cloud.vmwareengine.v1.NetworkConfig - * @instance - */ - NetworkConfig.prototype.vmwareEngineNetworkCanonical = ""; - - /** - * NetworkConfig managementIpAddressLayoutVersion. - * @member {number} managementIpAddressLayoutVersion - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * ShowNsxCredentialsRequest privateCloud. + * @member {string} privateCloud + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @instance */ - NetworkConfig.prototype.managementIpAddressLayoutVersion = 0; + ShowNsxCredentialsRequest.prototype.privateCloud = ""; /** - * Creates a new NetworkConfig instance using the specified properties. + * Creates a new ShowNsxCredentialsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig instance + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest instance */ - NetworkConfig.create = function create(properties) { - return new NetworkConfig(properties); + ShowNsxCredentialsRequest.create = function create(properties) { + return new ShowNsxCredentialsRequest(properties); }; /** - * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encode = function encode(message, writer) { + ShowNsxCredentialsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.managementCidr != null && Object.hasOwnProperty.call(message, "managementCidr")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.managementCidr); - if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.vmwareEngineNetwork); - if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.vmwareEngineNetworkCanonical); - if (message.managementIpAddressLayoutVersion != null && Object.hasOwnProperty.call(message, "managementIpAddressLayoutVersion")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.managementIpAddressLayoutVersion); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); return writer; }; /** - * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { + ShowNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decode = function decode(reader, length) { + ShowNsxCredentialsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: { - message.managementCidr = reader.string(); - break; - } - case 5: { - message.vmwareEngineNetwork = reader.string(); - break; - } - case 6: { - message.vmwareEngineNetworkCanonical = reader.string(); - break; - } - case 8: { - message.managementIpAddressLayoutVersion = reader.int32(); + case 1: { + message.privateCloud = reader.string(); break; } default: @@ -14153,148 +14062,123 @@ }; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decodeDelimited = function decodeDelimited(reader) { + ShowNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NetworkConfig message. + * Verifies a ShowNsxCredentialsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkConfig.verify = function verify(message) { + ShowNsxCredentialsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.managementCidr != null && message.hasOwnProperty("managementCidr")) - if (!$util.isString(message.managementCidr)) - return "managementCidr: string expected"; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - if (!$util.isString(message.vmwareEngineNetwork)) - return "vmwareEngineNetwork: string expected"; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - if (!$util.isString(message.vmwareEngineNetworkCanonical)) - return "vmwareEngineNetworkCanonical: string expected"; - if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion")) - if (!$util.isInteger(message.managementIpAddressLayoutVersion)) - return "managementIpAddressLayoutVersion: integer expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + if (!$util.isString(message.privateCloud)) + return "privateCloud: string expected"; return null; }; /** - * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest */ - NetworkConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkConfig) + ShowNsxCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.NetworkConfig(); - if (object.managementCidr != null) - message.managementCidr = String(object.managementCidr); - if (object.vmwareEngineNetwork != null) - message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); - if (object.vmwareEngineNetworkCanonical != null) - message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); - if (object.managementIpAddressLayoutVersion != null) - message.managementIpAddressLayoutVersion = object.managementIpAddressLayoutVersion | 0; + var message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); + if (object.privateCloud != null) + message.privateCloud = String(object.privateCloud); return message; }; /** - * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.NetworkConfig} message NetworkConfig + * @param {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} message ShowNsxCredentialsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkConfig.toObject = function toObject(message, options) { + ShowNsxCredentialsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.managementCidr = ""; - object.vmwareEngineNetwork = ""; - object.vmwareEngineNetworkCanonical = ""; - object.managementIpAddressLayoutVersion = 0; - } - if (message.managementCidr != null && message.hasOwnProperty("managementCidr")) - object.managementCidr = message.managementCidr; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = message.vmwareEngineNetwork; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; - if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion")) - object.managementIpAddressLayoutVersion = message.managementIpAddressLayoutVersion; + if (options.defaults) + object.privateCloud = ""; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = message.privateCloud; return object; }; /** - * Converts this NetworkConfig to JSON. + * Converts this ShowNsxCredentialsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @instance * @returns {Object.} JSON object */ - NetworkConfig.prototype.toJSON = function toJSON() { + ShowNsxCredentialsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NetworkConfig + * Gets the default type url for ShowNsxCredentialsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShowNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkConfig"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest"; }; - return NetworkConfig; + return ShowNsxCredentialsRequest; })(); - v1.NodeTypeConfig = (function() { + v1.ShowVcenterCredentialsRequest = (function() { /** - * Properties of a NodeTypeConfig. + * Properties of a ShowVcenterCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface INodeTypeConfig - * @property {number|null} [nodeCount] NodeTypeConfig nodeCount - * @property {number|null} [customCoreCount] NodeTypeConfig customCoreCount + * @interface IShowVcenterCredentialsRequest + * @property {string|null} [privateCloud] ShowVcenterCredentialsRequest privateCloud + * @property {string|null} [username] ShowVcenterCredentialsRequest username */ /** - * Constructs a new NodeTypeConfig. + * Constructs a new ShowVcenterCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a NodeTypeConfig. - * @implements INodeTypeConfig + * @classdesc Represents a ShowVcenterCredentialsRequest. + * @implements IShowVcenterCredentialsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set */ - function NodeTypeConfig(properties) { + function ShowVcenterCredentialsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14302,89 +14186,89 @@ } /** - * NodeTypeConfig nodeCount. - * @member {number} nodeCount - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * ShowVcenterCredentialsRequest privateCloud. + * @member {string} privateCloud + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @instance */ - NodeTypeConfig.prototype.nodeCount = 0; + ShowVcenterCredentialsRequest.prototype.privateCloud = ""; /** - * NodeTypeConfig customCoreCount. - * @member {number} customCoreCount - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * ShowVcenterCredentialsRequest username. + * @member {string} username + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @instance */ - NodeTypeConfig.prototype.customCoreCount = 0; + ShowVcenterCredentialsRequest.prototype.username = ""; /** - * Creates a new NodeTypeConfig instance using the specified properties. + * Creates a new ShowVcenterCredentialsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig instance + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest instance */ - NodeTypeConfig.create = function create(properties) { - return new NodeTypeConfig(properties); + ShowVcenterCredentialsRequest.create = function create(properties) { + return new ShowVcenterCredentialsRequest(properties); }; /** - * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeTypeConfig.encode = function encode(message, writer) { + ShowVcenterCredentialsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nodeCount); - if (message.customCoreCount != null && Object.hasOwnProperty.call(message, "customCoreCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.customCoreCount); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); return writer; }; /** - * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeTypeConfig.encodeDelimited = function encodeDelimited(message, writer) { + ShowVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeTypeConfig message from the specified reader or buffer. + * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeTypeConfig.decode = function decode(reader, length) { + ShowVcenterCredentialsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.nodeCount = reader.int32(); + message.privateCloud = reader.string(); break; } case 2: { - message.customCoreCount = reader.int32(); + message.username = reader.string(); break; } default: @@ -14396,144 +14280,132 @@ }; /** - * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited. + * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeTypeConfig.decodeDelimited = function decodeDelimited(reader) { + ShowVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeTypeConfig message. + * Verifies a ShowVcenterCredentialsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeTypeConfig.verify = function verify(message) { + ShowVcenterCredentialsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - if (!$util.isInteger(message.nodeCount)) - return "nodeCount: integer expected"; - if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) - if (!$util.isInteger(message.customCoreCount)) - return "customCoreCount: integer expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + if (!$util.isString(message.privateCloud)) + return "privateCloud: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; return null; }; /** - * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest */ - NodeTypeConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NodeTypeConfig) + ShowVcenterCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig(); - if (object.nodeCount != null) - message.nodeCount = object.nodeCount | 0; - if (object.customCoreCount != null) - message.customCoreCount = object.customCoreCount | 0; + var message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); + if (object.privateCloud != null) + message.privateCloud = String(object.privateCloud); + if (object.username != null) + message.username = String(object.username); return message; }; /** - * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified. + * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.NodeTypeConfig} message NodeTypeConfig + * @param {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeTypeConfig.toObject = function toObject(message, options) { + ShowVcenterCredentialsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.nodeCount = 0; - object.customCoreCount = 0; + object.privateCloud = ""; + object.username = ""; } - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - object.nodeCount = message.nodeCount; - if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) - object.customCoreCount = message.customCoreCount; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = message.privateCloud; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; return object; }; /** - * Converts this NodeTypeConfig to JSON. + * Converts this ShowVcenterCredentialsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @instance * @returns {Object.} JSON object */ - NodeTypeConfig.prototype.toJSON = function toJSON() { + ShowVcenterCredentialsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NodeTypeConfig + * Gets the default type url for ShowVcenterCredentialsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NodeTypeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShowVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeTypeConfig"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest"; }; - return NodeTypeConfig; + return ShowVcenterCredentialsRequest; })(); - v1.PrivateCloud = (function() { + v1.ResetNsxCredentialsRequest = (function() { /** - * Properties of a PrivateCloud. + * Properties of a ResetNsxCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IPrivateCloud - * @property {string|null} [name] PrivateCloud name - * @property {google.protobuf.ITimestamp|null} [createTime] PrivateCloud createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PrivateCloud updateTime - * @property {google.protobuf.ITimestamp|null} [deleteTime] PrivateCloud deleteTime - * @property {google.protobuf.ITimestamp|null} [expireTime] PrivateCloud expireTime - * @property {google.cloud.vmwareengine.v1.PrivateCloud.State|null} [state] PrivateCloud state - * @property {google.cloud.vmwareengine.v1.INetworkConfig|null} [networkConfig] PrivateCloud networkConfig - * @property {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null} [managementCluster] PrivateCloud managementCluster - * @property {string|null} [description] PrivateCloud description - * @property {google.cloud.vmwareengine.v1.IHcx|null} [hcx] PrivateCloud hcx - * @property {google.cloud.vmwareengine.v1.INsx|null} [nsx] PrivateCloud nsx - * @property {google.cloud.vmwareengine.v1.IVcenter|null} [vcenter] PrivateCloud vcenter - * @property {string|null} [uid] PrivateCloud uid - * @property {google.cloud.vmwareengine.v1.PrivateCloud.Type|null} [type] PrivateCloud type + * @interface IResetNsxCredentialsRequest + * @property {string|null} [privateCloud] ResetNsxCredentialsRequest privateCloud + * @property {string|null} [requestId] ResetNsxCredentialsRequest requestId */ /** - * Constructs a new PrivateCloud. + * Constructs a new ResetNsxCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a PrivateCloud. - * @implements IPrivateCloud + * @classdesc Represents a ResetNsxCredentialsRequest. + * @implements IResetNsxCredentialsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set */ - function PrivateCloud(properties) { + function ResetNsxCredentialsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14541,257 +14413,331 @@ } /** - * PrivateCloud name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * ResetNsxCredentialsRequest privateCloud. + * @member {string} privateCloud + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @instance */ - PrivateCloud.prototype.name = ""; + ResetNsxCredentialsRequest.prototype.privateCloud = ""; /** - * PrivateCloud createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * ResetNsxCredentialsRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @instance */ - PrivateCloud.prototype.createTime = null; + ResetNsxCredentialsRequest.prototype.requestId = ""; /** - * PrivateCloud updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance + * Creates a new ResetNsxCredentialsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest instance */ - PrivateCloud.prototype.updateTime = null; + ResetNsxCredentialsRequest.create = function create(properties) { + return new ResetNsxCredentialsRequest(properties); + }; /** - * PrivateCloud deleteTime. - * @member {google.protobuf.ITimestamp|null|undefined} deleteTime - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance + * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PrivateCloud.prototype.deleteTime = null; + ResetNsxCredentialsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + return writer; + }; /** - * PrivateCloud expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance + * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PrivateCloud.prototype.expireTime = null; + ResetNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * PrivateCloud state. - * @member {google.cloud.vmwareengine.v1.PrivateCloud.State} state - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance + * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateCloud.prototype.state = 0; + ResetNsxCredentialsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.privateCloud = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * PrivateCloud networkConfig. - * @member {google.cloud.vmwareengine.v1.INetworkConfig|null|undefined} networkConfig - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance + * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateCloud.prototype.networkConfig = null; + ResetNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * PrivateCloud managementCluster. - * @member {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null|undefined} managementCluster - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance + * Verifies a ResetNsxCredentialsRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateCloud.prototype.managementCluster = null; + ResetNsxCredentialsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + if (!$util.isString(message.privateCloud)) + return "privateCloud: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; /** - * PrivateCloud description. - * @member {string} description - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance + * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest */ - PrivateCloud.prototype.description = ""; + ResetNsxCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); + if (object.privateCloud != null) + message.privateCloud = String(object.privateCloud); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; /** - * PrivateCloud hcx. - * @member {google.cloud.vmwareengine.v1.IHcx|null|undefined} hcx - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance + * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} message ResetNsxCredentialsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - PrivateCloud.prototype.hcx = null; + ResetNsxCredentialsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.privateCloud = ""; + object.requestId = ""; + } + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = message.privateCloud; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; /** - * PrivateCloud nsx. - * @member {google.cloud.vmwareengine.v1.INsx|null|undefined} nsx - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * Converts this ResetNsxCredentialsRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @instance + * @returns {Object.} JSON object */ - PrivateCloud.prototype.nsx = null; + ResetNsxCredentialsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * PrivateCloud vcenter. - * @member {google.cloud.vmwareengine.v1.IVcenter|null|undefined} vcenter - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * Gets the default type url for ResetNsxCredentialsRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResetNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest"; + }; + + return ResetNsxCredentialsRequest; + })(); + + v1.ResetVcenterCredentialsRequest = (function() { + + /** + * Properties of a ResetVcenterCredentialsRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IResetVcenterCredentialsRequest + * @property {string|null} [privateCloud] ResetVcenterCredentialsRequest privateCloud + * @property {string|null} [requestId] ResetVcenterCredentialsRequest requestId + * @property {string|null} [username] ResetVcenterCredentialsRequest username + */ + + /** + * Constructs a new ResetVcenterCredentialsRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ResetVcenterCredentialsRequest. + * @implements IResetVcenterCredentialsRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set + */ + function ResetVcenterCredentialsRequest(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]]; + } + + /** + * ResetVcenterCredentialsRequest privateCloud. + * @member {string} privateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @instance */ - PrivateCloud.prototype.vcenter = null; + ResetVcenterCredentialsRequest.prototype.privateCloud = ""; /** - * PrivateCloud uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * ResetVcenterCredentialsRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @instance */ - PrivateCloud.prototype.uid = ""; + ResetVcenterCredentialsRequest.prototype.requestId = ""; /** - * PrivateCloud type. - * @member {google.cloud.vmwareengine.v1.PrivateCloud.Type} type - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * ResetVcenterCredentialsRequest username. + * @member {string} username + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @instance */ - PrivateCloud.prototype.type = 0; + ResetVcenterCredentialsRequest.prototype.username = ""; /** - * Creates a new PrivateCloud instance using the specified properties. + * Creates a new ResetVcenterCredentialsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud instance + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest instance */ - PrivateCloud.create = function create(properties) { - return new PrivateCloud(properties); + ResetVcenterCredentialsRequest.create = function create(properties) { + return new ResetVcenterCredentialsRequest(properties); }; /** - * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateCloud.encode = function encode(message, writer) { + ResetVcenterCredentialsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) - $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); - if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig")) - $root.google.cloud.vmwareengine.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.managementCluster != null && Object.hasOwnProperty.call(message, "managementCluster")) - $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.encode(message.managementCluster, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.description); - if (message.hcx != null && Object.hasOwnProperty.call(message, "hcx")) - $root.google.cloud.vmwareengine.v1.Hcx.encode(message.hcx, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.nsx != null && Object.hasOwnProperty.call(message, "nsx")) - $root.google.cloud.vmwareengine.v1.Nsx.encode(message.nsx, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.vcenter != null && Object.hasOwnProperty.call(message, "vcenter")) - $root.google.cloud.vmwareengine.v1.Vcenter.encode(message.vcenter, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 20, wireType 2 =*/162).string(message.uid); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 22, wireType 0 =*/176).int32(message.type); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.username); return writer; }; /** - * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateCloud.encodeDelimited = function encodeDelimited(message, writer) { + ResetVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrivateCloud message from the specified reader or buffer. + * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateCloud.decode = function decode(reader, length) { + ResetVcenterCredentialsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateCloud(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.privateCloud = reader.string(); break; } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.requestId = reader.string(); break; } case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.state = reader.int32(); - break; - } - case 9: { - message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.decode(reader, reader.uint32()); - break; - } - case 11: { - message.description = reader.string(); - break; - } - case 17: { - message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.decode(reader, reader.uint32()); - break; - } - case 18: { - message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.decode(reader, reader.uint32()); - break; - } - case 19: { - message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.decode(reader, reader.uint32()); - break; - } - case 20: { - message.uid = reader.string(); - break; - } - case 22: { - message.type = reader.int32(); + message.username = reader.string(); break; } default: @@ -14803,649 +14749,429 @@ }; /** - * Decodes a PrivateCloud message from the specified reader or buffer, length delimited. + * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateCloud.decodeDelimited = function decodeDelimited(reader) { + ResetVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrivateCloud message. + * Verifies a ResetVcenterCredentialsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateCloud.verify = function verify(message) { + ResetVcenterCredentialsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); - if (error) - return "deleteTime." + error; - } - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); - if (error) - return "expireTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 5: - case 6: - case 7: - break; - } - if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkConfig.verify(message.networkConfig); - if (error) - return "networkConfig." + error; - } - if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) { - var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify(message.managementCluster); - if (error) - return "managementCluster." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.hcx != null && message.hasOwnProperty("hcx")) { - var error = $root.google.cloud.vmwareengine.v1.Hcx.verify(message.hcx); - if (error) - return "hcx." + error; - } - if (message.nsx != null && message.hasOwnProperty("nsx")) { - var error = $root.google.cloud.vmwareengine.v1.Nsx.verify(message.nsx); - if (error) - return "nsx." + error; - } - if (message.vcenter != null && message.hasOwnProperty("vcenter")) { - var error = $root.google.cloud.vmwareengine.v1.Vcenter.verify(message.vcenter); - if (error) - return "vcenter." + error; - } - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + if (!$util.isString(message.privateCloud)) + return "privateCloud: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; return null; }; /** - * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types. + * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest */ - PrivateCloud.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud) + ResetVcenterCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.deleteTime != null) { - if (typeof object.deleteTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.deleteTime: object expected"); - message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); - } - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "FAILED": - case 5: - message.state = 5; - break; - case "DELETED": - case 6: - message.state = 6; - break; - case "PURGING": - case 7: - message.state = 7; - break; - } - if (object.networkConfig != null) { - if (typeof object.networkConfig !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.networkConfig: object expected"); - message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.fromObject(object.networkConfig); - } - if (object.managementCluster != null) { - if (typeof object.managementCluster !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.managementCluster: object expected"); - message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.fromObject(object.managementCluster); - } - if (object.description != null) - message.description = String(object.description); - if (object.hcx != null) { - if (typeof object.hcx !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.hcx: object expected"); - message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.fromObject(object.hcx); - } - if (object.nsx != null) { - if (typeof object.nsx !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.nsx: object expected"); - message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.fromObject(object.nsx); - } - if (object.vcenter != null) { - if (typeof object.vcenter !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.vcenter: object expected"); - message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.fromObject(object.vcenter); - } - if (object.uid != null) - message.uid = String(object.uid); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "STANDARD": - case 0: - message.type = 0; - break; - case "TIME_LIMITED": - case 1: - message.type = 1; - break; - } + var message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); + if (object.privateCloud != null) + message.privateCloud = String(object.privateCloud); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.username != null) + message.username = String(object.username); return message; }; /** - * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified. + * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud} message PrivateCloud + * @param {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivateCloud.toObject = function toObject(message, options) { + ResetVcenterCredentialsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.deleteTime = null; - object.expireTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.networkConfig = null; - object.managementCluster = null; - object.description = ""; - object.hcx = null; - object.nsx = null; - object.vcenter = null; - object.uid = ""; - object.type = options.enums === String ? "STANDARD" : 0; + object.privateCloud = ""; + object.requestId = ""; + object.username = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) - object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] : message.state; - if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) - object.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.toObject(message.networkConfig, options); - if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) - object.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.toObject(message.managementCluster, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.hcx != null && message.hasOwnProperty("hcx")) - object.hcx = $root.google.cloud.vmwareengine.v1.Hcx.toObject(message.hcx, options); - if (message.nsx != null && message.hasOwnProperty("nsx")) - object.nsx = $root.google.cloud.vmwareengine.v1.Nsx.toObject(message.nsx, options); - if (message.vcenter != null && message.hasOwnProperty("vcenter")) - object.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.toObject(message.vcenter, options); - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateCloud.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.PrivateCloud.Type[message.type] : message.type; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = message.privateCloud; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; return object; }; /** - * Converts this PrivateCloud to JSON. + * Converts this ResetVcenterCredentialsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @instance * @returns {Object.} JSON object */ - PrivateCloud.prototype.toJSON = function toJSON() { + ResetVcenterCredentialsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrivateCloud + * Gets the default type url for ResetVcenterCredentialsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrivateCloud.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest"; }; + return ResetVcenterCredentialsRequest; + })(); + + v1.ListHcxActivationKeysResponse = (function() { + /** - * State enum. - * @name google.cloud.vmwareengine.v1.PrivateCloud.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - * @property {number} UPDATING=3 UPDATING value - * @property {number} FAILED=5 FAILED value - * @property {number} DELETED=6 DELETED value - * @property {number} PURGING=7 PURGING value + * Properties of a ListHcxActivationKeysResponse. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListHcxActivationKeysResponse + * @property {Array.|null} [hcxActivationKeys] ListHcxActivationKeysResponse hcxActivationKeys + * @property {string|null} [nextPageToken] ListHcxActivationKeysResponse nextPageToken + * @property {Array.|null} [unreachable] ListHcxActivationKeysResponse unreachable */ - PrivateCloud.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "DELETED"] = 6; - values[valuesById[7] = "PURGING"] = 7; - return values; - })(); - PrivateCloud.ManagementCluster = (function() { + /** + * Constructs a new ListHcxActivationKeysResponse. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListHcxActivationKeysResponse. + * @implements IListHcxActivationKeysResponse + * @constructor + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set + */ + function ListHcxActivationKeysResponse(properties) { + this.hcxActivationKeys = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a ManagementCluster. - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @interface IManagementCluster - * @property {string|null} [clusterId] ManagementCluster clusterId - * @property {Object.|null} [nodeTypeConfigs] ManagementCluster nodeTypeConfigs - */ + /** + * ListHcxActivationKeysResponse hcxActivationKeys. + * @member {Array.} hcxActivationKeys + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @instance + */ + ListHcxActivationKeysResponse.prototype.hcxActivationKeys = $util.emptyArray; - /** - * Constructs a new ManagementCluster. - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @classdesc Represents a ManagementCluster. - * @implements IManagementCluster - * @constructor - * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set - */ - function ManagementCluster(properties) { - this.nodeTypeConfigs = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ListHcxActivationKeysResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @instance + */ + ListHcxActivationKeysResponse.prototype.nextPageToken = ""; - /** - * ManagementCluster clusterId. - * @member {string} clusterId - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @instance - */ - ManagementCluster.prototype.clusterId = ""; + /** + * ListHcxActivationKeysResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @instance + */ + ListHcxActivationKeysResponse.prototype.unreachable = $util.emptyArray; - /** - * ManagementCluster nodeTypeConfigs. - * @member {Object.} nodeTypeConfigs - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @instance - */ - ManagementCluster.prototype.nodeTypeConfigs = $util.emptyObject; + /** + * Creates a new ListHcxActivationKeysResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse instance + */ + ListHcxActivationKeysResponse.create = function create(properties) { + return new ListHcxActivationKeysResponse(properties); + }; - /** - * Creates a new ManagementCluster instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster instance - */ - ManagementCluster.create = function create(properties) { - return new ManagementCluster(properties); - }; + /** + * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListHcxActivationKeysResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.hcxActivationKeys != null && message.hcxActivationKeys.length) + for (var i = 0; i < message.hcxActivationKeys.length; ++i) + $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; - /** - * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ManagementCluster.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clusterId); - if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs")) - for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; + /** + * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListHcxActivationKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ManagementCluster.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListHcxActivationKeysResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.hcxActivationKeys && message.hcxActivationKeys.length)) + message.hcxActivationKeys = []; + message.hcxActivationKeys.push($root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a ManagementCluster message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ManagementCluster.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.clusterId = reader.string(); - break; - } - case 7: { - if (message.nodeTypeConfigs === $util.emptyObject) - message.nodeTypeConfigs = {}; - 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.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.nodeTypeConfigs[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ManagementCluster message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ManagementCluster.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ManagementCluster message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ManagementCluster.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) { - if (!$util.isObject(message.nodeTypeConfigs)) - return "nodeTypeConfigs: object expected"; - var key = Object.keys(message.nodeTypeConfigs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]); - if (error) - return "nodeTypeConfigs." + error; - } - } - return null; - }; + /** + * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListHcxActivationKeysResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster - */ - ManagementCluster.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) - return object; - var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.nodeTypeConfigs) { - if (typeof object.nodeTypeConfigs !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected"); - message.nodeTypeConfigs = {}; - for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) { - if (typeof object.nodeTypeConfigs[keys[i]] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected"); - message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]); - } + /** + * Verifies a ListHcxActivationKeysResponse message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListHcxActivationKeysResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hcxActivationKeys != null && message.hasOwnProperty("hcxActivationKeys")) { + if (!Array.isArray(message.hcxActivationKeys)) + return "hcxActivationKeys: array expected"; + for (var i = 0; i < message.hcxActivationKeys.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKeys[i]); + if (error) + return "hcxActivationKeys." + error; } - return message; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; - /** - * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} message ManagementCluster - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ManagementCluster.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.nodeTypeConfigs = {}; - if (options.defaults) - object.clusterId = ""; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - var keys2; - if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) { - object.nodeTypeConfigs = {}; - for (var j = 0; j < keys2.length; ++j) - object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options); - } + /** + * Creates a ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + */ + ListHcxActivationKeysResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) return object; - }; - - /** - * Converts this ManagementCluster to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @instance - * @returns {Object.} JSON object - */ - ManagementCluster.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ManagementCluster - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ManagementCluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); + if (object.hcxActivationKeys) { + if (!Array.isArray(object.hcxActivationKeys)) + throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: array expected"); + message.hcxActivationKeys = []; + for (var i = 0; i < object.hcxActivationKeys.length; ++i) { + if (typeof object.hcxActivationKeys[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: object expected"); + message.hcxActivationKeys[i] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKeys[i]); } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster"; - }; + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; - return ManagementCluster; - })(); + /** + * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} message ListHcxActivationKeysResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListHcxActivationKeysResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.hcxActivationKeys = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.hcxActivationKeys && message.hcxActivationKeys.length) { + object.hcxActivationKeys = []; + for (var j = 0; j < message.hcxActivationKeys.length; ++j) + object.hcxActivationKeys[j] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKeys[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; /** - * Type enum. - * @name google.cloud.vmwareengine.v1.PrivateCloud.Type - * @enum {number} - * @property {number} STANDARD=0 STANDARD value - * @property {number} TIME_LIMITED=1 TIME_LIMITED value + * Converts this ListHcxActivationKeysResponse to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @instance + * @returns {Object.} JSON object */ - PrivateCloud.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STANDARD"] = 0; - values[valuesById[1] = "TIME_LIMITED"] = 1; - return values; - })(); + ListHcxActivationKeysResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PrivateCloud; + /** + * Gets the default type url for ListHcxActivationKeysResponse + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListHcxActivationKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse"; + }; + + return ListHcxActivationKeysResponse; })(); - v1.Cluster = (function() { + v1.ListHcxActivationKeysRequest = (function() { /** - * Properties of a Cluster. + * Properties of a ListHcxActivationKeysRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICluster - * @property {string|null} [name] Cluster name - * @property {google.protobuf.ITimestamp|null} [createTime] Cluster createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Cluster updateTime - * @property {google.cloud.vmwareengine.v1.Cluster.State|null} [state] Cluster state - * @property {boolean|null} [management] Cluster management - * @property {string|null} [uid] Cluster uid - * @property {Object.|null} [nodeTypeConfigs] Cluster nodeTypeConfigs + * @interface IListHcxActivationKeysRequest + * @property {string|null} [parent] ListHcxActivationKeysRequest parent + * @property {number|null} [pageSize] ListHcxActivationKeysRequest pageSize + * @property {string|null} [pageToken] ListHcxActivationKeysRequest pageToken */ /** - * Constructs a new Cluster. + * Constructs a new ListHcxActivationKeysRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Cluster. - * @implements ICluster + * @classdesc Represents a ListHcxActivationKeysRequest. + * @implements IListHcxActivationKeysRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set */ - function Cluster(properties) { - this.nodeTypeConfigs = {}; + function ListHcxActivationKeysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15453,181 +15179,103 @@ } /** - * Cluster name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.Cluster - * @instance - */ - Cluster.prototype.name = ""; - - /** - * Cluster createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.Cluster - * @instance - */ - Cluster.prototype.createTime = null; - - /** - * Cluster updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.Cluster - * @instance - */ - Cluster.prototype.updateTime = null; - - /** - * Cluster state. - * @member {google.cloud.vmwareengine.v1.Cluster.State} state - * @memberof google.cloud.vmwareengine.v1.Cluster - * @instance - */ - Cluster.prototype.state = 0; - - /** - * Cluster management. - * @member {boolean} management - * @memberof google.cloud.vmwareengine.v1.Cluster + * ListHcxActivationKeysRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @instance */ - Cluster.prototype.management = false; + ListHcxActivationKeysRequest.prototype.parent = ""; /** - * Cluster uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.Cluster + * ListHcxActivationKeysRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @instance */ - Cluster.prototype.uid = ""; + ListHcxActivationKeysRequest.prototype.pageSize = 0; /** - * Cluster nodeTypeConfigs. - * @member {Object.} nodeTypeConfigs - * @memberof google.cloud.vmwareengine.v1.Cluster + * ListHcxActivationKeysRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @instance */ - Cluster.prototype.nodeTypeConfigs = $util.emptyObject; + ListHcxActivationKeysRequest.prototype.pageToken = ""; /** - * Creates a new Cluster instance using the specified properties. + * Creates a new ListHcxActivationKeysRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static - * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster instance + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest instance */ - Cluster.create = function create(properties) { - return new Cluster(properties); + ListHcxActivationKeysRequest.create = function create(properties) { + return new ListHcxActivationKeysRequest(properties); }; /** - * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static - * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cluster.encode = function encode(message, writer) { + ListHcxActivationKeysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.management != null && Object.hasOwnProperty.call(message, "management")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.management); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.uid); - if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs")) - for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static - * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cluster.encodeDelimited = function encodeDelimited(message, writer) { + ListHcxActivationKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Cluster message from the specified reader or buffer. + * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.decode = function decode(reader, length) { + ListHcxActivationKeysRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Cluster(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.state = reader.int32(); - break; - } - case 7: { - message.management = reader.bool(); - break; - } - case 14: { - message.uid = reader.string(); - break; - } - case 16: { - if (message.nodeTypeConfigs === $util.emptyObject) - message.nodeTypeConfigs = {}; - 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.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.nodeTypeConfigs[key] = value; + message.pageToken = reader.string(); break; } default: @@ -15639,266 +15287,139 @@ }; /** - * Decodes a Cluster message from the specified reader or buffer, length delimited. + * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.decodeDelimited = function decodeDelimited(reader) { + ListHcxActivationKeysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Cluster message. + * Verifies a ListHcxActivationKeysRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Cluster.verify = function verify(message) { + ListHcxActivationKeysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.management != null && message.hasOwnProperty("management")) - if (typeof message.management !== "boolean") - return "management: boolean expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) { - if (!$util.isObject(message.nodeTypeConfigs)) - return "nodeTypeConfigs: object expected"; - var key = Object.keys(message.nodeTypeConfigs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]); - if (error) - return "nodeTypeConfigs." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a Cluster message from a plain object. Also converts values to their respective internal types. + * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest */ - Cluster.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Cluster) + ListHcxActivationKeysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.Cluster(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.Cluster.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.Cluster.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "DELETING": - case 4: - message.state = 4; - break; - case "REPAIRING": - case 5: - message.state = 5; - break; - } - if (object.management != null) - message.management = Boolean(object.management); - if (object.uid != null) - message.uid = String(object.uid); - if (object.nodeTypeConfigs) { - if (typeof object.nodeTypeConfigs !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected"); - message.nodeTypeConfigs = {}; - for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) { - if (typeof object.nodeTypeConfigs[keys[i]] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected"); - message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]); - } - } + var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static - * @param {google.cloud.vmwareengine.v1.Cluster} message Cluster + * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} message ListHcxActivationKeysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Cluster.toObject = function toObject(message, options) { + ListHcxActivationKeysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.nodeTypeConfigs = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.management = false; - object.uid = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] : message.state; - if (message.management != null && message.hasOwnProperty("management")) - object.management = message.management; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - var keys2; - if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) { - object.nodeTypeConfigs = {}; - for (var j = 0; j < keys2.length; ++j) - object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options); + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this Cluster to JSON. + * Converts this ListHcxActivationKeysRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @instance * @returns {Object.} JSON object */ - Cluster.prototype.toJSON = function toJSON() { + ListHcxActivationKeysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Cluster + * Gets the default type url for ListHcxActivationKeysRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Cluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListHcxActivationKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Cluster"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Cluster.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - * @property {number} UPDATING=3 UPDATING value - * @property {number} DELETING=4 DELETING value - * @property {number} REPAIRING=5 REPAIRING value - */ - Cluster.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[4] = "DELETING"] = 4; - values[valuesById[5] = "REPAIRING"] = 5; - return values; - })(); - - return Cluster; + return ListHcxActivationKeysRequest; })(); - v1.Subnet = (function() { + v1.GetHcxActivationKeyRequest = (function() { /** - * Properties of a Subnet. + * Properties of a GetHcxActivationKeyRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ISubnet - * @property {string|null} [name] Subnet name - * @property {string|null} [ipCidrRange] Subnet ipCidrRange - * @property {string|null} [gatewayIp] Subnet gatewayIp - * @property {string|null} [type] Subnet type - * @property {google.cloud.vmwareengine.v1.Subnet.State|null} [state] Subnet state + * @interface IGetHcxActivationKeyRequest + * @property {string|null} [name] GetHcxActivationKeyRequest name */ /** - * Constructs a new Subnet. + * Constructs a new GetHcxActivationKeyRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Subnet. - * @implements ISubnet + * @classdesc Represents a GetHcxActivationKeyRequest. + * @implements IGetHcxActivationKeyRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set */ - function Subnet(properties) { + function GetHcxActivationKeyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15906,110 +15427,70 @@ } /** - * Subnet name. + * GetHcxActivationKeyRequest name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.Subnet - * @instance - */ - Subnet.prototype.name = ""; - - /** - * Subnet ipCidrRange. - * @member {string} ipCidrRange - * @memberof google.cloud.vmwareengine.v1.Subnet - * @instance - */ - Subnet.prototype.ipCidrRange = ""; - - /** - * Subnet gatewayIp. - * @member {string} gatewayIp - * @memberof google.cloud.vmwareengine.v1.Subnet - * @instance - */ - Subnet.prototype.gatewayIp = ""; - - /** - * Subnet type. - * @member {string} type - * @memberof google.cloud.vmwareengine.v1.Subnet - * @instance - */ - Subnet.prototype.type = ""; - - /** - * Subnet state. - * @member {google.cloud.vmwareengine.v1.Subnet.State} state - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @instance */ - Subnet.prototype.state = 0; + GetHcxActivationKeyRequest.prototype.name = ""; /** - * Creates a new Subnet instance using the specified properties. + * Creates a new GetHcxActivationKeyRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet instance + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest instance */ - Subnet.create = function create(properties) { - return new Subnet(properties); + GetHcxActivationKeyRequest.create = function create(properties) { + return new GetHcxActivationKeyRequest(properties); }; /** - * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Subnet.encode = function encode(message, writer) { + GetHcxActivationKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.ipCidrRange); - if (message.gatewayIp != null && Object.hasOwnProperty.call(message, "gatewayIp")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.gatewayIp); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.type); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.state); return writer; }; /** - * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Subnet.encodeDelimited = function encodeDelimited(message, writer) { + GetHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Subnet message from the specified reader or buffer. + * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Subnet.decode = function decode(reader, length) { + GetHcxActivationKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Subnet(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16017,22 +15498,6 @@ message.name = reader.string(); break; } - case 7: { - message.ipCidrRange = reader.string(); - break; - } - case 8: { - message.gatewayIp = reader.string(); - break; - } - case 11: { - message.type = reader.string(); - break; - } - case 13: { - message.state = reader.int32(); - break; - } default: reader.skipType(tag & 7); break; @@ -16042,231 +15507,125 @@ }; /** - * Decodes a Subnet message from the specified reader or buffer, length delimited. + * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Subnet.decodeDelimited = function decodeDelimited(reader) { + GetHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Subnet message. + * Verifies a GetHcxActivationKeyRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Subnet.verify = function verify(message) { + GetHcxActivationKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) - if (!$util.isString(message.ipCidrRange)) - return "ipCidrRange: string expected"; - if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp")) - if (!$util.isString(message.gatewayIp)) - return "gatewayIp: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } return null; }; /** - * Creates a Subnet message from a plain object. Also converts values to their respective internal types. + * Creates a GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest */ - Subnet.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Subnet) + GetHcxActivationKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.Subnet(); + var message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); if (object.name != null) message.name = String(object.name); - if (object.ipCidrRange != null) - message.ipCidrRange = String(object.ipCidrRange); - if (object.gatewayIp != null) - message.gatewayIp = String(object.gatewayIp); - if (object.type != null) - message.type = String(object.type); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "DELETING": - case 4: - message.state = 4; - break; - case "RECONCILING": - case 5: - message.state = 5; - break; - case "FAILED": - case 6: - message.state = 6; - break; - } return message; }; /** - * Creates a plain object from a Subnet message. Also converts values to other types if specified. + * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.Subnet} message Subnet + * @param {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} message GetHcxActivationKeyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Subnet.toObject = function toObject(message, options) { + GetHcxActivationKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.ipCidrRange = ""; - object.gatewayIp = ""; - object.type = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) - object.ipCidrRange = message.ipCidrRange; - if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp")) - object.gatewayIp = message.gatewayIp; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] : message.state; return object; }; /** - * Converts this Subnet to JSON. + * Converts this GetHcxActivationKeyRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @instance * @returns {Object.} JSON object */ - Subnet.prototype.toJSON = function toJSON() { + GetHcxActivationKeyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Subnet + * Gets the default type url for GetHcxActivationKeyRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Subnet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Subnet"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Subnet.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - * @property {number} UPDATING=3 UPDATING value - * @property {number} DELETING=4 DELETING value - * @property {number} RECONCILING=5 RECONCILING value - * @property {number} FAILED=6 FAILED value - */ - Subnet.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[4] = "DELETING"] = 4; - values[valuesById[5] = "RECONCILING"] = 5; - values[valuesById[6] = "FAILED"] = 6; - return values; - })(); - - return Subnet; + return GetHcxActivationKeyRequest; })(); - v1.NodeType = (function() { + v1.CreateHcxActivationKeyRequest = (function() { /** - * Properties of a NodeType. + * Properties of a CreateHcxActivationKeyRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface INodeType - * @property {string|null} [name] NodeType name - * @property {string|null} [nodeTypeId] NodeType nodeTypeId - * @property {string|null} [displayName] NodeType displayName - * @property {number|null} [virtualCpuCount] NodeType virtualCpuCount - * @property {number|null} [totalCoreCount] NodeType totalCoreCount - * @property {number|null} [memoryGb] NodeType memoryGb - * @property {number|null} [diskSizeGb] NodeType diskSizeGb - * @property {Array.|null} [availableCustomCoreCounts] NodeType availableCustomCoreCounts + * @interface ICreateHcxActivationKeyRequest + * @property {string|null} [parent] CreateHcxActivationKeyRequest parent + * @property {google.cloud.vmwareengine.v1.IHcxActivationKey|null} [hcxActivationKey] CreateHcxActivationKeyRequest hcxActivationKey + * @property {string|null} [hcxActivationKeyId] CreateHcxActivationKeyRequest hcxActivationKeyId + * @property {string|null} [requestId] CreateHcxActivationKeyRequest requestId */ /** - * Constructs a new NodeType. + * Constructs a new CreateHcxActivationKeyRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a NodeType. - * @implements INodeType + * @classdesc Represents a CreateHcxActivationKeyRequest. + * @implements ICreateHcxActivationKeyRequest * @constructor - * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set */ - function NodeType(properties) { - this.availableCustomCoreCounts = []; + function CreateHcxActivationKeyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16274,184 +15633,117 @@ } /** - * NodeType name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance - */ - NodeType.prototype.name = ""; - - /** - * NodeType nodeTypeId. - * @member {string} nodeTypeId - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance - */ - NodeType.prototype.nodeTypeId = ""; - - /** - * NodeType displayName. - * @member {string} displayName - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance - */ - NodeType.prototype.displayName = ""; - - /** - * NodeType virtualCpuCount. - * @member {number} virtualCpuCount - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance - */ - NodeType.prototype.virtualCpuCount = 0; - - /** - * NodeType totalCoreCount. - * @member {number} totalCoreCount - * @memberof google.cloud.vmwareengine.v1.NodeType + * CreateHcxActivationKeyRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance */ - NodeType.prototype.totalCoreCount = 0; + CreateHcxActivationKeyRequest.prototype.parent = ""; /** - * NodeType memoryGb. - * @member {number} memoryGb - * @memberof google.cloud.vmwareengine.v1.NodeType + * CreateHcxActivationKeyRequest hcxActivationKey. + * @member {google.cloud.vmwareengine.v1.IHcxActivationKey|null|undefined} hcxActivationKey + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance */ - NodeType.prototype.memoryGb = 0; + CreateHcxActivationKeyRequest.prototype.hcxActivationKey = null; /** - * NodeType diskSizeGb. - * @member {number} diskSizeGb - * @memberof google.cloud.vmwareengine.v1.NodeType + * CreateHcxActivationKeyRequest hcxActivationKeyId. + * @member {string} hcxActivationKeyId + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance */ - NodeType.prototype.diskSizeGb = 0; + CreateHcxActivationKeyRequest.prototype.hcxActivationKeyId = ""; /** - * NodeType availableCustomCoreCounts. - * @member {Array.} availableCustomCoreCounts - * @memberof google.cloud.vmwareengine.v1.NodeType + * CreateHcxActivationKeyRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance */ - NodeType.prototype.availableCustomCoreCounts = $util.emptyArray; + CreateHcxActivationKeyRequest.prototype.requestId = ""; /** - * Creates a new NodeType instance using the specified properties. + * Creates a new CreateHcxActivationKeyRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType instance + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest instance */ - NodeType.create = function create(properties) { - return new NodeType(properties); + CreateHcxActivationKeyRequest.create = function create(properties) { + return new CreateHcxActivationKeyRequest(properties); }; /** - * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeType.encode = function encode(message, writer) { + CreateHcxActivationKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.nodeTypeId != null && Object.hasOwnProperty.call(message, "nodeTypeId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nodeTypeId); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.virtualCpuCount != null && Object.hasOwnProperty.call(message, "virtualCpuCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.virtualCpuCount); - if (message.totalCoreCount != null && Object.hasOwnProperty.call(message, "totalCoreCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.totalCoreCount); - if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.memoryGb); - if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.diskSizeGb); - if (message.availableCustomCoreCounts != null && message.availableCustomCoreCounts.length) { - writer.uint32(/* id 11, wireType 2 =*/90).fork(); - for (var i = 0; i < message.availableCustomCoreCounts.length; ++i) - writer.int32(message.availableCustomCoreCounts[i]); - writer.ldelim(); - } + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.hcxActivationKey != null && Object.hasOwnProperty.call(message, "hcxActivationKey")) + $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.hcxActivationKeyId != null && Object.hasOwnProperty.call(message, "hcxActivationKeyId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.hcxActivationKeyId); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeType.encodeDelimited = function encodeDelimited(message, writer) { + CreateHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeType message from the specified reader or buffer. + * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeType.decode = function decode(reader, length) { + CreateHcxActivationKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NodeType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.nodeTypeId = reader.string(); + message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32()); break; } case 3: { - message.displayName = reader.string(); + message.hcxActivationKeyId = reader.string(); break; } case 4: { - message.virtualCpuCount = reader.int32(); - break; - } - case 5: { - message.totalCoreCount = reader.int32(); - break; - } - case 7: { - message.memoryGb = reader.int32(); - break; - } - case 8: { - message.diskSizeGb = reader.int32(); - break; - } - case 11: { - if (!(message.availableCustomCoreCounts && message.availableCustomCoreCounts.length)) - message.availableCustomCoreCounts = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.availableCustomCoreCounts.push(reader.int32()); - } else - message.availableCustomCoreCounts.push(reader.int32()); + message.requestId = reader.string(); break; } default: @@ -16463,193 +15755,152 @@ }; /** - * Decodes a NodeType message from the specified reader or buffer, length delimited. + * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeType.decodeDelimited = function decodeDelimited(reader) { + CreateHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeType message. + * Verifies a CreateHcxActivationKeyRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeType.verify = function verify(message) { + CreateHcxActivationKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) - if (!$util.isString(message.nodeTypeId)) - return "nodeTypeId: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount")) - if (!$util.isInteger(message.virtualCpuCount)) - return "virtualCpuCount: integer expected"; - if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount")) - if (!$util.isInteger(message.totalCoreCount)) - return "totalCoreCount: integer expected"; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - if (!$util.isInteger(message.memoryGb)) - return "memoryGb: integer expected"; - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) - if (!$util.isInteger(message.diskSizeGb)) - return "diskSizeGb: integer expected"; - if (message.availableCustomCoreCounts != null && message.hasOwnProperty("availableCustomCoreCounts")) { - if (!Array.isArray(message.availableCustomCoreCounts)) - return "availableCustomCoreCounts: array expected"; - for (var i = 0; i < message.availableCustomCoreCounts.length; ++i) - if (!$util.isInteger(message.availableCustomCoreCounts[i])) - return "availableCustomCoreCounts: integer[] expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) { + var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKey); + if (error) + return "hcxActivationKey." + error; } + if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId")) + if (!$util.isString(message.hcxActivationKeyId)) + return "hcxActivationKeyId: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a NodeType message from a plain object. Also converts values to their respective internal types. + * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest */ - NodeType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NodeType) + CreateHcxActivationKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.NodeType(); - if (object.name != null) - message.name = String(object.name); - if (object.nodeTypeId != null) - message.nodeTypeId = String(object.nodeTypeId); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.virtualCpuCount != null) - message.virtualCpuCount = object.virtualCpuCount | 0; - if (object.totalCoreCount != null) - message.totalCoreCount = object.totalCoreCount | 0; - if (object.memoryGb != null) - message.memoryGb = object.memoryGb | 0; - if (object.diskSizeGb != null) - message.diskSizeGb = object.diskSizeGb | 0; - if (object.availableCustomCoreCounts) { - if (!Array.isArray(object.availableCustomCoreCounts)) - throw TypeError(".google.cloud.vmwareengine.v1.NodeType.availableCustomCoreCounts: array expected"); - message.availableCustomCoreCounts = []; - for (var i = 0; i < object.availableCustomCoreCounts.length; ++i) - message.availableCustomCoreCounts[i] = object.availableCustomCoreCounts[i] | 0; + var message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.hcxActivationKey != null) { + if (typeof object.hcxActivationKey !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.hcxActivationKey: object expected"); + message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKey); } + if (object.hcxActivationKeyId != null) + message.hcxActivationKeyId = String(object.hcxActivationKeyId); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a NodeType message. Also converts values to other types if specified. + * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.NodeType} message NodeType + * @param {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeType.toObject = function toObject(message, options) { + CreateHcxActivationKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.availableCustomCoreCounts = []; if (options.defaults) { - object.name = ""; - object.nodeTypeId = ""; - object.displayName = ""; - object.virtualCpuCount = 0; - object.totalCoreCount = 0; - object.memoryGb = 0; - object.diskSizeGb = 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) - object.nodeTypeId = message.nodeTypeId; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount")) - object.virtualCpuCount = message.virtualCpuCount; - if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount")) - object.totalCoreCount = message.totalCoreCount; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - object.memoryGb = message.memoryGb; - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) - object.diskSizeGb = message.diskSizeGb; - if (message.availableCustomCoreCounts && message.availableCustomCoreCounts.length) { - object.availableCustomCoreCounts = []; - for (var j = 0; j < message.availableCustomCoreCounts.length; ++j) - object.availableCustomCoreCounts[j] = message.availableCustomCoreCounts[j]; + object.parent = ""; + object.hcxActivationKey = null; + object.hcxActivationKeyId = ""; + object.requestId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) + object.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKey, options); + if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId")) + object.hcxActivationKeyId = message.hcxActivationKeyId; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this NodeType to JSON. + * Converts this CreateHcxActivationKeyRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance * @returns {Object.} JSON object */ - NodeType.prototype.toJSON = function toJSON() { + CreateHcxActivationKeyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NodeType + * Gets the default type url for CreateHcxActivationKeyRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NodeType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeType"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest"; }; - return NodeType; + return CreateHcxActivationKeyRequest; })(); - v1.Credentials = (function() { + v1.GetDnsForwardingRequest = (function() { /** - * Properties of a Credentials. + * Properties of a GetDnsForwardingRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICredentials - * @property {string|null} [username] Credentials username - * @property {string|null} [password] Credentials password + * @interface IGetDnsForwardingRequest + * @property {string|null} [name] GetDnsForwardingRequest name */ /** - * Constructs a new Credentials. + * Constructs a new GetDnsForwardingRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Credentials. - * @implements ICredentials + * @classdesc Represents a GetDnsForwardingRequest. + * @implements IGetDnsForwardingRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetDnsForwardingRequest=} [properties] Properties to set */ - function Credentials(properties) { + function GetDnsForwardingRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16657,89 +15908,75 @@ } /** - * Credentials username. - * @member {string} username - * @memberof google.cloud.vmwareengine.v1.Credentials - * @instance - */ - Credentials.prototype.username = ""; - - /** - * Credentials password. - * @member {string} password - * @memberof google.cloud.vmwareengine.v1.Credentials + * GetDnsForwardingRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @instance */ - Credentials.prototype.password = ""; + GetDnsForwardingRequest.prototype.name = ""; /** - * Creates a new Credentials instance using the specified properties. + * Creates a new GetDnsForwardingRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static - * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials instance + * @param {google.cloud.vmwareengine.v1.IGetDnsForwardingRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetDnsForwardingRequest} GetDnsForwardingRequest instance */ - Credentials.create = function create(properties) { - return new Credentials(properties); + GetDnsForwardingRequest.create = function create(properties) { + return new GetDnsForwardingRequest(properties); }; /** - * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * Encodes the specified GetDnsForwardingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetDnsForwardingRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static - * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetDnsForwardingRequest} message GetDnsForwardingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Credentials.encode = function encode(message, writer) { + GetDnsForwardingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * Encodes the specified GetDnsForwardingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetDnsForwardingRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static - * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetDnsForwardingRequest} message GetDnsForwardingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Credentials.encodeDelimited = function encodeDelimited(message, writer) { + GetDnsForwardingRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Credentials message from the specified reader or buffer. + * Decodes a GetDnsForwardingRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + * @returns {google.cloud.vmwareengine.v1.GetDnsForwardingRequest} GetDnsForwardingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Credentials.decode = function decode(reader, length) { + GetDnsForwardingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Credentials(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetDnsForwardingRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); - break; - } - case 2: { - message.password = reader.string(); + message.name = reader.string(); break; } default: @@ -16751,135 +15988,124 @@ }; /** - * Decodes a Credentials message from the specified reader or buffer, length delimited. + * Decodes a GetDnsForwardingRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + * @returns {google.cloud.vmwareengine.v1.GetDnsForwardingRequest} GetDnsForwardingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Credentials.decodeDelimited = function decodeDelimited(reader) { + GetDnsForwardingRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Credentials message. + * Verifies a GetDnsForwardingRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Credentials.verify = function verify(message) { + GetDnsForwardingRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a Credentials message from a plain object. Also converts values to their respective internal types. + * Creates a GetDnsForwardingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + * @returns {google.cloud.vmwareengine.v1.GetDnsForwardingRequest} GetDnsForwardingRequest */ - Credentials.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Credentials) + GetDnsForwardingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetDnsForwardingRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.Credentials(); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); + var message = new $root.google.cloud.vmwareengine.v1.GetDnsForwardingRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a Credentials message. Also converts values to other types if specified. + * Creates a plain object from a GetDnsForwardingRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static - * @param {google.cloud.vmwareengine.v1.Credentials} message Credentials + * @param {google.cloud.vmwareengine.v1.GetDnsForwardingRequest} message GetDnsForwardingRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Credentials.toObject = function toObject(message, options) { + GetDnsForwardingRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.username = ""; - object.password = ""; - } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this Credentials to JSON. + * Converts this GetDnsForwardingRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @instance * @returns {Object.} JSON object */ - Credentials.prototype.toJSON = function toJSON() { + GetDnsForwardingRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Credentials + * Gets the default type url for GetDnsForwardingRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.GetDnsForwardingRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Credentials.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetDnsForwardingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Credentials"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetDnsForwardingRequest"; }; - return Credentials; + return GetDnsForwardingRequest; })(); - v1.HcxActivationKey = (function() { + v1.UpdateDnsForwardingRequest = (function() { /** - * Properties of a HcxActivationKey. + * Properties of an UpdateDnsForwardingRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IHcxActivationKey - * @property {string|null} [name] HcxActivationKey name - * @property {google.protobuf.ITimestamp|null} [createTime] HcxActivationKey createTime - * @property {google.cloud.vmwareengine.v1.HcxActivationKey.State|null} [state] HcxActivationKey state - * @property {string|null} [activationKey] HcxActivationKey activationKey - * @property {string|null} [uid] HcxActivationKey uid + * @interface IUpdateDnsForwardingRequest + * @property {google.cloud.vmwareengine.v1.IDnsForwarding|null} [dnsForwarding] UpdateDnsForwardingRequest dnsForwarding + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDnsForwardingRequest updateMask + * @property {string|null} [requestId] UpdateDnsForwardingRequest requestId */ /** - * Constructs a new HcxActivationKey. + * Constructs a new UpdateDnsForwardingRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a HcxActivationKey. - * @implements IHcxActivationKey + * @classdesc Represents an UpdateDnsForwardingRequest. + * @implements IUpdateDnsForwardingRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest=} [properties] Properties to set */ - function HcxActivationKey(properties) { + function UpdateDnsForwardingRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16887,131 +16113,103 @@ } /** - * HcxActivationKey name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey - * @instance - */ - HcxActivationKey.prototype.name = ""; - - /** - * HcxActivationKey createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey - * @instance - */ - HcxActivationKey.prototype.createTime = null; - - /** - * HcxActivationKey state. - * @member {google.cloud.vmwareengine.v1.HcxActivationKey.State} state - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * UpdateDnsForwardingRequest dnsForwarding. + * @member {google.cloud.vmwareengine.v1.IDnsForwarding|null|undefined} dnsForwarding + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @instance */ - HcxActivationKey.prototype.state = 0; + UpdateDnsForwardingRequest.prototype.dnsForwarding = null; /** - * HcxActivationKey activationKey. - * @member {string} activationKey - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * UpdateDnsForwardingRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @instance */ - HcxActivationKey.prototype.activationKey = ""; + UpdateDnsForwardingRequest.prototype.updateMask = null; /** - * HcxActivationKey uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * UpdateDnsForwardingRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @instance */ - HcxActivationKey.prototype.uid = ""; + UpdateDnsForwardingRequest.prototype.requestId = ""; /** - * Creates a new HcxActivationKey instance using the specified properties. + * Creates a new UpdateDnsForwardingRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey instance + * @param {google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest} UpdateDnsForwardingRequest instance */ - HcxActivationKey.create = function create(properties) { - return new HcxActivationKey(properties); + UpdateDnsForwardingRequest.create = function create(properties) { + return new UpdateDnsForwardingRequest(properties); }; /** - * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * Encodes the specified UpdateDnsForwardingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest} message UpdateDnsForwardingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HcxActivationKey.encode = function encode(message, writer) { + UpdateDnsForwardingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.activationKey != null && Object.hasOwnProperty.call(message, "activationKey")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.activationKey); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.uid); + if (message.dnsForwarding != null && Object.hasOwnProperty.call(message, "dnsForwarding")) + $root.google.cloud.vmwareengine.v1.DnsForwarding.encode(message.dnsForwarding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * Encodes the specified UpdateDnsForwardingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest} message UpdateDnsForwardingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HcxActivationKey.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDnsForwardingRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HcxActivationKey message from the specified reader or buffer. + * Decodes an UpdateDnsForwardingRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + * @returns {google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest} UpdateDnsForwardingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HcxActivationKey.decode = function decode(reader, length) { + UpdateDnsForwardingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.dnsForwarding = $root.google.cloud.vmwareengine.v1.DnsForwarding.decode(reader, reader.uint32()); break; } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { - message.state = reader.int32(); - break; - } - case 4: { - message.activationKey = reader.string(); - break; - } - case 5: { - message.uid = reader.string(); + message.requestId = reader.string(); break; } default: @@ -17023,210 +16221,152 @@ }; /** - * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited. + * Decodes an UpdateDnsForwardingRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + * @returns {google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest} UpdateDnsForwardingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HcxActivationKey.decodeDelimited = function decodeDelimited(reader) { + UpdateDnsForwardingRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HcxActivationKey message. + * Verifies an UpdateDnsForwardingRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HcxActivationKey.verify = function verify(message) { + UpdateDnsForwardingRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.dnsForwarding != null && message.hasOwnProperty("dnsForwarding")) { + var error = $root.google.cloud.vmwareengine.v1.DnsForwarding.verify(message.dnsForwarding); if (error) - return "createTime." + error; + return "dnsForwarding." + error; } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.activationKey != null && message.hasOwnProperty("activationKey")) - if (!$util.isString(message.activationKey)) - return "activationKey: string expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDnsForwardingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + * @returns {google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest} UpdateDnsForwardingRequest */ - HcxActivationKey.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.HcxActivationKey) + UpdateDnsForwardingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.HcxActivationKey.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest(); + if (object.dnsForwarding != null) { + if (typeof object.dnsForwarding !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.dnsForwarding: object expected"); + message.dnsForwarding = $root.google.cloud.vmwareengine.v1.DnsForwarding.fromObject(object.dnsForwarding); } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "AVAILABLE": - case 1: - message.state = 1; - break; - case "CONSUMED": - case 2: - message.state = 2; - break; - case "CREATING": - case 3: - message.state = 3; - break; + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.activationKey != null) - message.activationKey = String(object.activationKey); - if (object.uid != null) - message.uid = String(object.uid); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDnsForwardingRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static - * @param {google.cloud.vmwareengine.v1.HcxActivationKey} message HcxActivationKey + * @param {google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest} message UpdateDnsForwardingRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HcxActivationKey.toObject = function toObject(message, options) { + UpdateDnsForwardingRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.activationKey = ""; - object.uid = ""; + object.dnsForwarding = null; + object.updateMask = null; + object.requestId = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] : message.state; - if (message.activationKey != null && message.hasOwnProperty("activationKey")) - object.activationKey = message.activationKey; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; + if (message.dnsForwarding != null && message.hasOwnProperty("dnsForwarding")) + object.dnsForwarding = $root.google.cloud.vmwareengine.v1.DnsForwarding.toObject(message.dnsForwarding, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this HcxActivationKey to JSON. + * Converts this UpdateDnsForwardingRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @instance * @returns {Object.} JSON object */ - HcxActivationKey.prototype.toJSON = function toJSON() { + UpdateDnsForwardingRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HcxActivationKey + * Gets the default type url for UpdateDnsForwardingRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HcxActivationKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateDnsForwardingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.HcxActivationKey"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.HcxActivationKey.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} AVAILABLE=1 AVAILABLE value - * @property {number} CONSUMED=2 CONSUMED value - * @property {number} CREATING=3 CREATING value - */ - HcxActivationKey.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AVAILABLE"] = 1; - values[valuesById[2] = "CONSUMED"] = 2; - values[valuesById[3] = "CREATING"] = 3; - return values; - })(); - - return HcxActivationKey; + return UpdateDnsForwardingRequest; })(); - v1.Hcx = (function() { + v1.CreateNetworkPeeringRequest = (function() { /** - * Properties of a Hcx. + * Properties of a CreateNetworkPeeringRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IHcx - * @property {string|null} [internalIp] Hcx internalIp - * @property {string|null} [version] Hcx version - * @property {google.cloud.vmwareengine.v1.Hcx.State|null} [state] Hcx state - * @property {string|null} [fqdn] Hcx fqdn + * @interface ICreateNetworkPeeringRequest + * @property {string|null} [parent] CreateNetworkPeeringRequest parent + * @property {string|null} [networkPeeringId] CreateNetworkPeeringRequest networkPeeringId + * @property {google.cloud.vmwareengine.v1.INetworkPeering|null} [networkPeering] CreateNetworkPeeringRequest networkPeering + * @property {string|null} [requestId] CreateNetworkPeeringRequest requestId */ /** - * Constructs a new Hcx. + * Constructs a new CreateNetworkPeeringRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Hcx. - * @implements IHcx + * @classdesc Represents a CreateNetworkPeeringRequest. + * @implements ICreateNetworkPeeringRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest=} [properties] Properties to set */ - function Hcx(properties) { + function CreateNetworkPeeringRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17234,117 +16374,117 @@ } /** - * Hcx internalIp. - * @member {string} internalIp - * @memberof google.cloud.vmwareengine.v1.Hcx + * CreateNetworkPeeringRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @instance */ - Hcx.prototype.internalIp = ""; + CreateNetworkPeeringRequest.prototype.parent = ""; /** - * Hcx version. - * @member {string} version - * @memberof google.cloud.vmwareengine.v1.Hcx + * CreateNetworkPeeringRequest networkPeeringId. + * @member {string} networkPeeringId + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @instance */ - Hcx.prototype.version = ""; + CreateNetworkPeeringRequest.prototype.networkPeeringId = ""; /** - * Hcx state. - * @member {google.cloud.vmwareengine.v1.Hcx.State} state - * @memberof google.cloud.vmwareengine.v1.Hcx + * CreateNetworkPeeringRequest networkPeering. + * @member {google.cloud.vmwareengine.v1.INetworkPeering|null|undefined} networkPeering + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @instance */ - Hcx.prototype.state = 0; + CreateNetworkPeeringRequest.prototype.networkPeering = null; /** - * Hcx fqdn. - * @member {string} fqdn - * @memberof google.cloud.vmwareengine.v1.Hcx + * CreateNetworkPeeringRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @instance */ - Hcx.prototype.fqdn = ""; + CreateNetworkPeeringRequest.prototype.requestId = ""; /** - * Creates a new Hcx instance using the specified properties. + * Creates a new CreateNetworkPeeringRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx instance + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest} CreateNetworkPeeringRequest instance */ - Hcx.create = function create(properties) { - return new Hcx(properties); + CreateNetworkPeeringRequest.create = function create(properties) { + return new CreateNetworkPeeringRequest(properties); }; /** - * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * Encodes the specified CreateNetworkPeeringRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest} message CreateNetworkPeeringRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Hcx.encode = function encode(message, writer) { + CreateNetworkPeeringRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.networkPeeringId != null && Object.hasOwnProperty.call(message, "networkPeeringId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.networkPeeringId); + if (message.networkPeering != null && Object.hasOwnProperty.call(message, "networkPeering")) + $root.google.cloud.vmwareengine.v1.NetworkPeering.encode(message.networkPeering, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * Encodes the specified CreateNetworkPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest} message CreateNetworkPeeringRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Hcx.encodeDelimited = function encodeDelimited(message, writer) { + CreateNetworkPeeringRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Hcx message from the specified reader or buffer. + * Decodes a CreateNetworkPeeringRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest} CreateNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Hcx.decode = function decode(reader, length) { + CreateNetworkPeeringRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Hcx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.internalIp = reader.string(); + case 1: { + message.parent = reader.string(); break; } - case 4: { - message.version = reader.string(); + case 2: { + message.networkPeeringId = reader.string(); break; } - case 5: { - message.state = reader.int32(); + case 3: { + message.networkPeering = $root.google.cloud.vmwareengine.v1.NetworkPeering.decode(reader, reader.uint32()); break; } - case 6: { - message.fqdn = reader.string(); + case 4: { + message.requestId = reader.string(); break; } default: @@ -17356,190 +16496,153 @@ }; /** - * Decodes a Hcx message from the specified reader or buffer, length delimited. + * Decodes a CreateNetworkPeeringRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest} CreateNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Hcx.decodeDelimited = function decodeDelimited(reader) { + CreateNetworkPeeringRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Hcx message. + * Verifies a CreateNetworkPeeringRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Hcx.verify = function verify(message) { + CreateNetworkPeeringRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - if (!$util.isString(message.internalIp)) - return "internalIp: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - if (!$util.isString(message.fqdn)) - return "fqdn: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.networkPeeringId != null && message.hasOwnProperty("networkPeeringId")) + if (!$util.isString(message.networkPeeringId)) + return "networkPeeringId: string expected"; + if (message.networkPeering != null && message.hasOwnProperty("networkPeering")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPeering.verify(message.networkPeering); + if (error) + return "networkPeering." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a Hcx message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNetworkPeeringRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest} CreateNetworkPeeringRequest */ - Hcx.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Hcx) + CreateNetworkPeeringRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.Hcx(); - if (object.internalIp != null) - message.internalIp = String(object.internalIp); - if (object.version != null) - message.version = String(object.version); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; + var message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.networkPeeringId != null) + message.networkPeeringId = String(object.networkPeeringId); + if (object.networkPeering != null) { + if (typeof object.networkPeering !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.networkPeering: object expected"); + message.networkPeering = $root.google.cloud.vmwareengine.v1.NetworkPeering.fromObject(object.networkPeering); } - if (object.fqdn != null) - message.fqdn = String(object.fqdn); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a Hcx message. Also converts values to other types if specified. + * Creates a plain object from a CreateNetworkPeeringRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.Hcx} message Hcx + * @param {google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest} message CreateNetworkPeeringRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Hcx.toObject = function toObject(message, options) { + CreateNetworkPeeringRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.internalIp = ""; - object.version = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.fqdn = ""; + object.parent = ""; + object.networkPeeringId = ""; + object.networkPeering = null; + object.requestId = ""; } - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - object.internalIp = message.internalIp; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] : message.state; - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - object.fqdn = message.fqdn; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.networkPeeringId != null && message.hasOwnProperty("networkPeeringId")) + object.networkPeeringId = message.networkPeeringId; + if (message.networkPeering != null && message.hasOwnProperty("networkPeering")) + object.networkPeering = $root.google.cloud.vmwareengine.v1.NetworkPeering.toObject(message.networkPeering, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this Hcx to JSON. + * Converts this CreateNetworkPeeringRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @instance * @returns {Object.} JSON object */ - Hcx.prototype.toJSON = function toJSON() { + CreateNetworkPeeringRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Hcx + * Gets the default type url for CreateNetworkPeeringRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Hcx.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateNetworkPeeringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Hcx"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Hcx.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - */ - Hcx.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - return values; - })(); - - return Hcx; + return CreateNetworkPeeringRequest; })(); - v1.Nsx = (function() { + v1.DeleteNetworkPeeringRequest = (function() { /** - * Properties of a Nsx. + * Properties of a DeleteNetworkPeeringRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface INsx - * @property {string|null} [internalIp] Nsx internalIp - * @property {string|null} [version] Nsx version - * @property {google.cloud.vmwareengine.v1.Nsx.State|null} [state] Nsx state - * @property {string|null} [fqdn] Nsx fqdn + * @interface IDeleteNetworkPeeringRequest + * @property {string|null} [name] DeleteNetworkPeeringRequest name + * @property {string|null} [requestId] DeleteNetworkPeeringRequest requestId */ /** - * Constructs a new Nsx. + * Constructs a new DeleteNetworkPeeringRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Nsx. - * @implements INsx + * @classdesc Represents a DeleteNetworkPeeringRequest. + * @implements IDeleteNetworkPeeringRequest * @constructor - * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest=} [properties] Properties to set */ - function Nsx(properties) { + function DeleteNetworkPeeringRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17547,117 +16650,89 @@ } /** - * Nsx internalIp. - * @member {string} internalIp - * @memberof google.cloud.vmwareengine.v1.Nsx - * @instance - */ - Nsx.prototype.internalIp = ""; - - /** - * Nsx version. - * @member {string} version - * @memberof google.cloud.vmwareengine.v1.Nsx - * @instance - */ - Nsx.prototype.version = ""; - - /** - * Nsx state. - * @member {google.cloud.vmwareengine.v1.Nsx.State} state - * @memberof google.cloud.vmwareengine.v1.Nsx + * DeleteNetworkPeeringRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @instance */ - Nsx.prototype.state = 0; + DeleteNetworkPeeringRequest.prototype.name = ""; /** - * Nsx fqdn. - * @member {string} fqdn - * @memberof google.cloud.vmwareengine.v1.Nsx + * DeleteNetworkPeeringRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @instance */ - Nsx.prototype.fqdn = ""; + DeleteNetworkPeeringRequest.prototype.requestId = ""; /** - * Creates a new Nsx instance using the specified properties. + * Creates a new DeleteNetworkPeeringRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx instance + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest} DeleteNetworkPeeringRequest instance */ - Nsx.create = function create(properties) { - return new Nsx(properties); + DeleteNetworkPeeringRequest.create = function create(properties) { + return new DeleteNetworkPeeringRequest(properties); }; /** - * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * Encodes the specified DeleteNetworkPeeringRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest} message DeleteNetworkPeeringRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Nsx.encode = function encode(message, writer) { + DeleteNetworkPeeringRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * Encodes the specified DeleteNetworkPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest} message DeleteNetworkPeeringRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Nsx.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNetworkPeeringRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Nsx message from the specified reader or buffer. + * Decodes a DeleteNetworkPeeringRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest} DeleteNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Nsx.decode = function decode(reader, length) { + DeleteNetworkPeeringRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Nsx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.internalIp = reader.string(); - break; - } - case 4: { - message.version = reader.string(); - break; - } - case 5: { - message.state = reader.int32(); + case 1: { + message.name = reader.string(); break; } - case 6: { - message.fqdn = reader.string(); + case 2: { + message.requestId = reader.string(); break; } default: @@ -17669,190 +16744,131 @@ }; /** - * Decodes a Nsx message from the specified reader or buffer, length delimited. + * Decodes a DeleteNetworkPeeringRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest} DeleteNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Nsx.decodeDelimited = function decodeDelimited(reader) { + DeleteNetworkPeeringRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Nsx message. + * Verifies a DeleteNetworkPeeringRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Nsx.verify = function verify(message) { + DeleteNetworkPeeringRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - if (!$util.isString(message.internalIp)) - return "internalIp: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - if (!$util.isString(message.fqdn)) - return "fqdn: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a Nsx message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNetworkPeeringRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest} DeleteNetworkPeeringRequest */ - Nsx.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Nsx) + DeleteNetworkPeeringRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.Nsx(); - if (object.internalIp != null) - message.internalIp = String(object.internalIp); - if (object.version != null) - message.version = String(object.version); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - } - if (object.fqdn != null) - message.fqdn = String(object.fqdn); + var message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a Nsx message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNetworkPeeringRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.Nsx} message Nsx + * @param {google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest} message DeleteNetworkPeeringRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Nsx.toObject = function toObject(message, options) { + DeleteNetworkPeeringRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.internalIp = ""; - object.version = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.fqdn = ""; + object.name = ""; + object.requestId = ""; } - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - object.internalIp = message.internalIp; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] : message.state; - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - object.fqdn = message.fqdn; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this Nsx to JSON. + * Converts this DeleteNetworkPeeringRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @instance * @returns {Object.} JSON object */ - Nsx.prototype.toJSON = function toJSON() { + DeleteNetworkPeeringRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Nsx + * Gets the default type url for DeleteNetworkPeeringRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Nsx.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteNetworkPeeringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Nsx"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest"; }; + return DeleteNetworkPeeringRequest; + })(); + + v1.GetNetworkPeeringRequest = (function() { + /** - * State enum. - * @name google.cloud.vmwareengine.v1.Nsx.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - */ - Nsx.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - return values; - })(); - - return Nsx; - })(); - - v1.Vcenter = (function() { - - /** - * Properties of a Vcenter. + * Properties of a GetNetworkPeeringRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IVcenter - * @property {string|null} [internalIp] Vcenter internalIp - * @property {string|null} [version] Vcenter version - * @property {google.cloud.vmwareengine.v1.Vcenter.State|null} [state] Vcenter state - * @property {string|null} [fqdn] Vcenter fqdn + * @interface IGetNetworkPeeringRequest + * @property {string|null} [name] GetNetworkPeeringRequest name */ /** - * Constructs a new Vcenter. + * Constructs a new GetNetworkPeeringRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Vcenter. - * @implements IVcenter + * @classdesc Represents a GetNetworkPeeringRequest. + * @implements IGetNetworkPeeringRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest=} [properties] Properties to set */ - function Vcenter(properties) { + function GetNetworkPeeringRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17860,117 +16876,75 @@ } /** - * Vcenter internalIp. - * @member {string} internalIp - * @memberof google.cloud.vmwareengine.v1.Vcenter - * @instance - */ - Vcenter.prototype.internalIp = ""; - - /** - * Vcenter version. - * @member {string} version - * @memberof google.cloud.vmwareengine.v1.Vcenter - * @instance - */ - Vcenter.prototype.version = ""; - - /** - * Vcenter state. - * @member {google.cloud.vmwareengine.v1.Vcenter.State} state - * @memberof google.cloud.vmwareengine.v1.Vcenter - * @instance - */ - Vcenter.prototype.state = 0; - - /** - * Vcenter fqdn. - * @member {string} fqdn - * @memberof google.cloud.vmwareengine.v1.Vcenter + * GetNetworkPeeringRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @instance */ - Vcenter.prototype.fqdn = ""; + GetNetworkPeeringRequest.prototype.name = ""; /** - * Creates a new Vcenter instance using the specified properties. + * Creates a new GetNetworkPeeringRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter instance + * @param {google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetNetworkPeeringRequest} GetNetworkPeeringRequest instance */ - Vcenter.create = function create(properties) { - return new Vcenter(properties); + GetNetworkPeeringRequest.create = function create(properties) { + return new GetNetworkPeeringRequest(properties); }; /** - * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * Encodes the specified GetNetworkPeeringRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest} message GetNetworkPeeringRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vcenter.encode = function encode(message, writer) { + GetNetworkPeeringRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * Encodes the specified GetNetworkPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest} message GetNetworkPeeringRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vcenter.encodeDelimited = function encodeDelimited(message, writer) { + GetNetworkPeeringRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Vcenter message from the specified reader or buffer. + * Decodes a GetNetworkPeeringRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + * @returns {google.cloud.vmwareengine.v1.GetNetworkPeeringRequest} GetNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vcenter.decode = function decode(reader, length) { + GetNetworkPeeringRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Vcenter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.internalIp = reader.string(); - break; - } - case 4: { - message.version = reader.string(); - break; - } - case 5: { - message.state = reader.int32(); - break; - } - case 6: { - message.fqdn = reader.string(); + case 1: { + message.name = reader.string(); break; } default: @@ -17982,192 +16956,126 @@ }; /** - * Decodes a Vcenter message from the specified reader or buffer, length delimited. + * Decodes a GetNetworkPeeringRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + * @returns {google.cloud.vmwareengine.v1.GetNetworkPeeringRequest} GetNetworkPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vcenter.decodeDelimited = function decodeDelimited(reader) { + GetNetworkPeeringRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Vcenter message. + * Verifies a GetNetworkPeeringRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Vcenter.verify = function verify(message) { + GetNetworkPeeringRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - if (!$util.isString(message.internalIp)) - return "internalIp: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - if (!$util.isString(message.fqdn)) - return "fqdn: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a Vcenter message from a plain object. Also converts values to their respective internal types. + * Creates a GetNetworkPeeringRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + * @returns {google.cloud.vmwareengine.v1.GetNetworkPeeringRequest} GetNetworkPeeringRequest */ - Vcenter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Vcenter) + GetNetworkPeeringRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.Vcenter(); - if (object.internalIp != null) - message.internalIp = String(object.internalIp); - if (object.version != null) - message.version = String(object.version); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - } - if (object.fqdn != null) - message.fqdn = String(object.fqdn); + var message = new $root.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a Vcenter message. Also converts values to other types if specified. + * Creates a plain object from a GetNetworkPeeringRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static - * @param {google.cloud.vmwareengine.v1.Vcenter} message Vcenter + * @param {google.cloud.vmwareengine.v1.GetNetworkPeeringRequest} message GetNetworkPeeringRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Vcenter.toObject = function toObject(message, options) { + GetNetworkPeeringRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.internalIp = ""; - object.version = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.fqdn = ""; - } - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - object.internalIp = message.internalIp; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] : message.state; - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - object.fqdn = message.fqdn; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this Vcenter to JSON. + * Converts this GetNetworkPeeringRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @instance * @returns {Object.} JSON object */ - Vcenter.prototype.toJSON = function toJSON() { + GetNetworkPeeringRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Vcenter + * Gets the default type url for GetNetworkPeeringRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.GetNetworkPeeringRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Vcenter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNetworkPeeringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Vcenter"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNetworkPeeringRequest"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Vcenter.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - */ - Vcenter.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - return values; - })(); - - return Vcenter; + return GetNetworkPeeringRequest; })(); - v1.PeeringRoute = (function() { + v1.ListNetworkPeeringsRequest = (function() { /** - * Properties of a PeeringRoute. + * Properties of a ListNetworkPeeringsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IPeeringRoute - * @property {string|null} [destRange] PeeringRoute destRange - * @property {google.cloud.vmwareengine.v1.PeeringRoute.Type|null} [type] PeeringRoute type - * @property {string|null} [nextHopRegion] PeeringRoute nextHopRegion - * @property {number|Long|null} [priority] PeeringRoute priority - * @property {boolean|null} [imported] PeeringRoute imported - * @property {google.cloud.vmwareengine.v1.PeeringRoute.Direction|null} [direction] PeeringRoute direction + * @interface IListNetworkPeeringsRequest + * @property {string|null} [parent] ListNetworkPeeringsRequest parent + * @property {number|null} [pageSize] ListNetworkPeeringsRequest pageSize + * @property {string|null} [pageToken] ListNetworkPeeringsRequest pageToken + * @property {string|null} [filter] ListNetworkPeeringsRequest filter + * @property {string|null} [orderBy] ListNetworkPeeringsRequest orderBy */ /** - * Constructs a new PeeringRoute. + * Constructs a new ListNetworkPeeringsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a PeeringRoute. - * @implements IPeeringRoute + * @classdesc Represents a ListNetworkPeeringsRequest. + * @implements IListNetworkPeeringsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IPeeringRoute=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest=} [properties] Properties to set */ - function PeeringRoute(properties) { + function ListNetworkPeeringsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18175,145 +17083,131 @@ } /** - * PeeringRoute destRange. - * @member {string} destRange - * @memberof google.cloud.vmwareengine.v1.PeeringRoute - * @instance - */ - PeeringRoute.prototype.destRange = ""; - - /** - * PeeringRoute type. - * @member {google.cloud.vmwareengine.v1.PeeringRoute.Type} type - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * ListNetworkPeeringsRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @instance */ - PeeringRoute.prototype.type = 0; + ListNetworkPeeringsRequest.prototype.parent = ""; /** - * PeeringRoute nextHopRegion. - * @member {string} nextHopRegion - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * ListNetworkPeeringsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @instance */ - PeeringRoute.prototype.nextHopRegion = ""; + ListNetworkPeeringsRequest.prototype.pageSize = 0; /** - * PeeringRoute priority. - * @member {number|Long} priority - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * ListNetworkPeeringsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @instance */ - PeeringRoute.prototype.priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListNetworkPeeringsRequest.prototype.pageToken = ""; /** - * PeeringRoute imported. - * @member {boolean} imported - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * ListNetworkPeeringsRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @instance */ - PeeringRoute.prototype.imported = false; + ListNetworkPeeringsRequest.prototype.filter = ""; /** - * PeeringRoute direction. - * @member {google.cloud.vmwareengine.v1.PeeringRoute.Direction} direction - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * ListNetworkPeeringsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @instance */ - PeeringRoute.prototype.direction = 0; + ListNetworkPeeringsRequest.prototype.orderBy = ""; /** - * Creates a new PeeringRoute instance using the specified properties. + * Creates a new ListNetworkPeeringsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static - * @param {google.cloud.vmwareengine.v1.IPeeringRoute=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.PeeringRoute} PeeringRoute instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest} ListNetworkPeeringsRequest instance */ - PeeringRoute.create = function create(properties) { - return new PeeringRoute(properties); + ListNetworkPeeringsRequest.create = function create(properties) { + return new ListNetworkPeeringsRequest(properties); }; /** - * Encodes the specified PeeringRoute message. Does not implicitly {@link google.cloud.vmwareengine.v1.PeeringRoute.verify|verify} messages. + * Encodes the specified ListNetworkPeeringsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static - * @param {google.cloud.vmwareengine.v1.IPeeringRoute} message PeeringRoute message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest} message ListNetworkPeeringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PeeringRoute.encode = function encode(message, writer) { + ListNetworkPeeringsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.destRange != null && Object.hasOwnProperty.call(message, "destRange")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.destRange); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.nextHopRegion != null && Object.hasOwnProperty.call(message, "nextHopRegion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.nextHopRegion); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.priority); - if (message.imported != null && Object.hasOwnProperty.call(message, "imported")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.imported); - if (message.direction != null && Object.hasOwnProperty.call(message, "direction")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.direction); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified PeeringRoute message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PeeringRoute.verify|verify} messages. + * Encodes the specified ListNetworkPeeringsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static - * @param {google.cloud.vmwareengine.v1.IPeeringRoute} message PeeringRoute message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest} message ListNetworkPeeringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PeeringRoute.encodeDelimited = function encodeDelimited(message, writer) { + ListNetworkPeeringsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PeeringRoute message from the specified reader or buffer. + * Decodes a ListNetworkPeeringsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.PeeringRoute} PeeringRoute + * @returns {google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest} ListNetworkPeeringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PeeringRoute.decode = function decode(reader, length) { + ListNetworkPeeringsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PeeringRoute(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.destRange = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.type = reader.int32(); + message.pageSize = reader.int32(); break; } case 3: { - message.nextHopRegion = reader.string(); + message.pageToken = reader.string(); break; } case 4: { - message.priority = reader.int64(); + message.filter = reader.string(); break; } case 5: { - message.imported = reader.bool(); - break; - } - case 6: { - message.direction = reader.int32(); + message.orderBy = reader.string(); break; } default: @@ -18325,273 +17219,157 @@ }; /** - * Decodes a PeeringRoute message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPeeringsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.PeeringRoute} PeeringRoute + * @returns {google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest} ListNetworkPeeringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PeeringRoute.decodeDelimited = function decodeDelimited(reader) { + ListNetworkPeeringsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PeeringRoute message. + * Verifies a ListNetworkPeeringsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PeeringRoute.verify = function verify(message) { + ListNetworkPeeringsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.destRange != null && message.hasOwnProperty("destRange")) - if (!$util.isString(message.destRange)) - return "destRange: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.nextHopRegion != null && message.hasOwnProperty("nextHopRegion")) - if (!$util.isString(message.nextHopRegion)) - return "nextHopRegion: string expected"; - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isInteger(message.priority) && !(message.priority && $util.isInteger(message.priority.low) && $util.isInteger(message.priority.high))) - return "priority: integer|Long expected"; - if (message.imported != null && message.hasOwnProperty("imported")) - if (typeof message.imported !== "boolean") - return "imported: boolean expected"; - if (message.direction != null && message.hasOwnProperty("direction")) - switch (message.direction) { - default: - return "direction: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a PeeringRoute message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPeeringsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.PeeringRoute} PeeringRoute + * @returns {google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest} ListNetworkPeeringsRequest */ - PeeringRoute.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.PeeringRoute) + ListNetworkPeeringsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.PeeringRoute(); - if (object.destRange != null) - message.destRange = String(object.destRange); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "DYNAMIC_PEERING_ROUTE": - case 1: - message.type = 1; - break; - case "STATIC_PEERING_ROUTE": - case 2: - message.type = 2; - break; - case "SUBNET_PEERING_ROUTE": - case 3: - message.type = 3; - break; - } - if (object.nextHopRegion != null) - message.nextHopRegion = String(object.nextHopRegion); - if (object.priority != null) - if ($util.Long) - (message.priority = $util.Long.fromValue(object.priority)).unsigned = false; - else if (typeof object.priority === "string") - message.priority = parseInt(object.priority, 10); - else if (typeof object.priority === "number") - message.priority = object.priority; - else if (typeof object.priority === "object") - message.priority = new $util.LongBits(object.priority.low >>> 0, object.priority.high >>> 0).toNumber(); - if (object.imported != null) - message.imported = Boolean(object.imported); - switch (object.direction) { - default: - if (typeof object.direction === "number") { - message.direction = object.direction; - break; - } - break; - case "DIRECTION_UNSPECIFIED": - case 0: - message.direction = 0; - break; - case "INCOMING": - case 1: - message.direction = 1; - break; - case "OUTGOING": - case 2: - message.direction = 2; - break; - } + var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a PeeringRoute message. Also converts values to other types if specified. + * Creates a plain object from a ListNetworkPeeringsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static - * @param {google.cloud.vmwareengine.v1.PeeringRoute} message PeeringRoute + * @param {google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest} message ListNetworkPeeringsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PeeringRoute.toObject = function toObject(message, options) { + ListNetworkPeeringsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.destRange = ""; - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.nextHopRegion = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.priority = options.longs === String ? "0" : 0; - object.imported = false; - object.direction = options.enums === String ? "DIRECTION_UNSPECIFIED" : 0; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } - if (message.destRange != null && message.hasOwnProperty("destRange")) - object.destRange = message.destRange; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.PeeringRoute.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.PeeringRoute.Type[message.type] : message.type; - if (message.nextHopRegion != null && message.hasOwnProperty("nextHopRegion")) - object.nextHopRegion = message.nextHopRegion; - if (message.priority != null && message.hasOwnProperty("priority")) - if (typeof message.priority === "number") - object.priority = options.longs === String ? String(message.priority) : message.priority; - else - object.priority = options.longs === String ? $util.Long.prototype.toString.call(message.priority) : options.longs === Number ? new $util.LongBits(message.priority.low >>> 0, message.priority.high >>> 0).toNumber() : message.priority; - if (message.imported != null && message.hasOwnProperty("imported")) - object.imported = message.imported; - if (message.direction != null && message.hasOwnProperty("direction")) - object.direction = options.enums === String ? $root.google.cloud.vmwareengine.v1.PeeringRoute.Direction[message.direction] === undefined ? message.direction : $root.google.cloud.vmwareengine.v1.PeeringRoute.Direction[message.direction] : message.direction; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this PeeringRoute to JSON. + * Converts this ListNetworkPeeringsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @instance * @returns {Object.} JSON object */ - PeeringRoute.prototype.toJSON = function toJSON() { + ListNetworkPeeringsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PeeringRoute + * Gets the default type url for ListNetworkPeeringsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PeeringRoute.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNetworkPeeringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PeeringRoute"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest"; }; + return ListNetworkPeeringsRequest; + })(); + + v1.UpdateNetworkPeeringRequest = (function() { + /** - * Type enum. - * @name google.cloud.vmwareengine.v1.PeeringRoute.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} DYNAMIC_PEERING_ROUTE=1 DYNAMIC_PEERING_ROUTE value - * @property {number} STATIC_PEERING_ROUTE=2 STATIC_PEERING_ROUTE value - * @property {number} SUBNET_PEERING_ROUTE=3 SUBNET_PEERING_ROUTE value + * Properties of an UpdateNetworkPeeringRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IUpdateNetworkPeeringRequest + * @property {google.cloud.vmwareengine.v1.INetworkPeering|null} [networkPeering] UpdateNetworkPeeringRequest networkPeering + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateNetworkPeeringRequest updateMask + * @property {string|null} [requestId] UpdateNetworkPeeringRequest requestId */ - PeeringRoute.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DYNAMIC_PEERING_ROUTE"] = 1; - values[valuesById[2] = "STATIC_PEERING_ROUTE"] = 2; - values[valuesById[3] = "SUBNET_PEERING_ROUTE"] = 3; - return values; - })(); /** - * Direction enum. - * @name google.cloud.vmwareengine.v1.PeeringRoute.Direction - * @enum {number} - * @property {number} DIRECTION_UNSPECIFIED=0 DIRECTION_UNSPECIFIED value - * @property {number} INCOMING=1 INCOMING value - * @property {number} OUTGOING=2 OUTGOING value - */ - PeeringRoute.Direction = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DIRECTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "INCOMING"] = 1; - values[valuesById[2] = "OUTGOING"] = 2; - return values; - })(); - - return PeeringRoute; - })(); - - v1.NetworkPolicy = (function() { - - /** - * Properties of a NetworkPolicy. - * @memberof google.cloud.vmwareengine.v1 - * @interface INetworkPolicy - * @property {string|null} [name] NetworkPolicy name - * @property {google.protobuf.ITimestamp|null} [createTime] NetworkPolicy createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] NetworkPolicy updateTime - * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [internetAccess] NetworkPolicy internetAccess - * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [externalIp] NetworkPolicy externalIp - * @property {string|null} [edgeServicesCidr] NetworkPolicy edgeServicesCidr - * @property {string|null} [uid] NetworkPolicy uid - * @property {string|null} [vmwareEngineNetwork] NetworkPolicy vmwareEngineNetwork - * @property {string|null} [description] NetworkPolicy description - * @property {string|null} [vmwareEngineNetworkCanonical] NetworkPolicy vmwareEngineNetworkCanonical - */ - - /** - * Constructs a new NetworkPolicy. + * Constructs a new UpdateNetworkPeeringRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a NetworkPolicy. - * @implements INetworkPolicy + * @classdesc Represents an UpdateNetworkPeeringRequest. + * @implements IUpdateNetworkPeeringRequest * @constructor - * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest=} [properties] Properties to set */ - function NetworkPolicy(properties) { + function UpdateNetworkPeeringRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18599,201 +17377,371 @@ } /** - * NetworkPolicy name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * UpdateNetworkPeeringRequest networkPeering. + * @member {google.cloud.vmwareengine.v1.INetworkPeering|null|undefined} networkPeering + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest * @instance */ - NetworkPolicy.prototype.name = ""; + UpdateNetworkPeeringRequest.prototype.networkPeering = null; /** - * NetworkPolicy createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * UpdateNetworkPeeringRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest * @instance */ - NetworkPolicy.prototype.createTime = null; + UpdateNetworkPeeringRequest.prototype.updateMask = null; /** - * NetworkPolicy updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * UpdateNetworkPeeringRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest * @instance */ - NetworkPolicy.prototype.updateTime = null; + UpdateNetworkPeeringRequest.prototype.requestId = ""; /** - * NetworkPolicy internetAccess. - * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} internetAccess - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy - * @instance + * Creates a new UpdateNetworkPeeringRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest} UpdateNetworkPeeringRequest instance */ - NetworkPolicy.prototype.internetAccess = null; + UpdateNetworkPeeringRequest.create = function create(properties) { + return new UpdateNetworkPeeringRequest(properties); + }; /** - * NetworkPolicy externalIp. - * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} externalIp - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy - * @instance + * Encodes the specified UpdateNetworkPeeringRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest} message UpdateNetworkPeeringRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - NetworkPolicy.prototype.externalIp = null; + UpdateNetworkPeeringRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkPeering != null && Object.hasOwnProperty.call(message, "networkPeering")) + $root.google.cloud.vmwareengine.v1.NetworkPeering.encode(message.networkPeering, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; /** - * NetworkPolicy edgeServicesCidr. - * @member {string} edgeServicesCidr - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy - * @instance + * Encodes the specified UpdateNetworkPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest} message UpdateNetworkPeeringRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - NetworkPolicy.prototype.edgeServicesCidr = ""; + UpdateNetworkPeeringRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * NetworkPolicy uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * Decodes an UpdateNetworkPeeringRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest} UpdateNetworkPeeringRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateNetworkPeeringRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.networkPeering = $root.google.cloud.vmwareengine.v1.NetworkPeering.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateNetworkPeeringRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest} UpdateNetworkPeeringRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateNetworkPeeringRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateNetworkPeeringRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateNetworkPeeringRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkPeering != null && message.hasOwnProperty("networkPeering")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPeering.verify(message.networkPeering); + if (error) + return "networkPeering." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates an UpdateNetworkPeeringRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest} UpdateNetworkPeeringRequest + */ + UpdateNetworkPeeringRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest(); + if (object.networkPeering != null) { + if (typeof object.networkPeering !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.networkPeering: object expected"); + message.networkPeering = $root.google.cloud.vmwareengine.v1.NetworkPeering.fromObject(object.networkPeering); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an UpdateNetworkPeeringRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest} message UpdateNetworkPeeringRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateNetworkPeeringRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.networkPeering = null; + object.updateMask = null; + object.requestId = ""; + } + if (message.networkPeering != null && message.hasOwnProperty("networkPeering")) + object.networkPeering = $root.google.cloud.vmwareengine.v1.NetworkPeering.toObject(message.networkPeering, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this UpdateNetworkPeeringRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest * @instance + * @returns {Object.} JSON object */ - NetworkPolicy.prototype.uid = ""; + UpdateNetworkPeeringRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * NetworkPolicy vmwareEngineNetwork. - * @member {string} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * Gets the default type url for UpdateNetworkPeeringRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateNetworkPeeringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest"; + }; + + return UpdateNetworkPeeringRequest; + })(); + + v1.ListNetworkPeeringsResponse = (function() { + + /** + * Properties of a ListNetworkPeeringsResponse. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListNetworkPeeringsResponse + * @property {Array.|null} [networkPeerings] ListNetworkPeeringsResponse networkPeerings + * @property {string|null} [nextPageToken] ListNetworkPeeringsResponse nextPageToken + * @property {Array.|null} [unreachable] ListNetworkPeeringsResponse unreachable + */ + + /** + * Constructs a new ListNetworkPeeringsResponse. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListNetworkPeeringsResponse. + * @implements IListNetworkPeeringsResponse + * @constructor + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse=} [properties] Properties to set + */ + function ListNetworkPeeringsResponse(properties) { + this.networkPeerings = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListNetworkPeeringsResponse networkPeerings. + * @member {Array.} networkPeerings + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @instance */ - NetworkPolicy.prototype.vmwareEngineNetwork = ""; + ListNetworkPeeringsResponse.prototype.networkPeerings = $util.emptyArray; /** - * NetworkPolicy description. - * @member {string} description - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * ListNetworkPeeringsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @instance */ - NetworkPolicy.prototype.description = ""; + ListNetworkPeeringsResponse.prototype.nextPageToken = ""; /** - * NetworkPolicy vmwareEngineNetworkCanonical. - * @member {string} vmwareEngineNetworkCanonical - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * ListNetworkPeeringsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @instance */ - NetworkPolicy.prototype.vmwareEngineNetworkCanonical = ""; + ListNetworkPeeringsResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new NetworkPolicy instance using the specified properties. + * Creates a new ListNetworkPeeringsResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static - * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse} ListNetworkPeeringsResponse instance */ - NetworkPolicy.create = function create(properties) { - return new NetworkPolicy(properties); + ListNetworkPeeringsResponse.create = function create(properties) { + return new ListNetworkPeeringsResponse(properties); }; /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * Encodes the specified ListNetworkPeeringsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static - * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse} message ListNetworkPeeringsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkPolicy.encode = function encode(message, writer) { + ListNetworkPeeringsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.internetAccess != null && Object.hasOwnProperty.call(message, "internetAccess")) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.internetAccess, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.externalIp != null && Object.hasOwnProperty.call(message, "externalIp")) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.externalIp, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.edgeServicesCidr != null && Object.hasOwnProperty.call(message, "edgeServicesCidr")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.edgeServicesCidr); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.uid); - if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.vmwareEngineNetwork); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.description); - if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.vmwareEngineNetworkCanonical); + if (message.networkPeerings != null && message.networkPeerings.length) + for (var i = 0; i < message.networkPeerings.length; ++i) + $root.google.cloud.vmwareengine.v1.NetworkPeering.encode(message.networkPeerings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * Encodes the specified ListNetworkPeeringsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static - * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse} message ListNetworkPeeringsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { + ListNetworkPeeringsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkPolicy message from the specified reader or buffer. + * Decodes a ListNetworkPeeringsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + * @returns {google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse} ListNetworkPeeringsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkPolicy.decode = function decode(reader, length) { + ListNetworkPeeringsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.networkPeerings && message.networkPeerings.length)) + message.networkPeerings = []; + message.networkPeerings.push($root.google.cloud.vmwareengine.v1.NetworkPeering.decode(reader, reader.uint32())); break; } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32()); - break; - } - case 7: { - message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32()); - break; - } - case 9: { - message.edgeServicesCidr = reader.string(); - break; - } - case 10: { - message.uid = reader.string(); - break; - } - case 12: { - message.vmwareEngineNetwork = reader.string(); - break; - } - case 13: { - message.description = reader.string(); - break; - } - case 14: { - message.vmwareEngineNetworkCanonical = reader.string(); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -18805,498 +17753,172 @@ }; /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPeeringsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + * @returns {google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse} ListNetworkPeeringsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { + ListNetworkPeeringsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NetworkPolicy message. + * Verifies a ListNetworkPeeringsResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkPolicy.verify = function verify(message) { + ListNetworkPeeringsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.internetAccess); - if (error) - return "internetAccess." + error; + if (message.networkPeerings != null && message.hasOwnProperty("networkPeerings")) { + if (!Array.isArray(message.networkPeerings)) + return "networkPeerings: array expected"; + for (var i = 0; i < message.networkPeerings.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPeering.verify(message.networkPeerings[i]); + if (error) + return "networkPeerings." + error; + } } - if (message.externalIp != null && message.hasOwnProperty("externalIp")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.externalIp); - if (error) - return "externalIp." + error; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; } - if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr")) - if (!$util.isString(message.edgeServicesCidr)) - return "edgeServicesCidr: string expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - if (!$util.isString(message.vmwareEngineNetwork)) - return "vmwareEngineNetwork: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - if (!$util.isString(message.vmwareEngineNetworkCanonical)) - return "vmwareEngineNetworkCanonical: string expected"; return null; }; /** - * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPeeringsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + * @returns {google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse} ListNetworkPeeringsResponse */ - NetworkPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy) + ListNetworkPeeringsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.internetAccess != null) { - if (typeof object.internetAccess !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.internetAccess: object expected"); - message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.internetAccess); + var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse(); + if (object.networkPeerings) { + if (!Array.isArray(object.networkPeerings)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.networkPeerings: array expected"); + message.networkPeerings = []; + for (var i = 0; i < object.networkPeerings.length; ++i) { + if (typeof object.networkPeerings[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.networkPeerings: object expected"); + message.networkPeerings[i] = $root.google.cloud.vmwareengine.v1.NetworkPeering.fromObject(object.networkPeerings[i]); + } } - if (object.externalIp != null) { - if (typeof object.externalIp !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.externalIp: object expected"); - message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.externalIp); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); } - if (object.edgeServicesCidr != null) - message.edgeServicesCidr = String(object.edgeServicesCidr); - if (object.uid != null) - message.uid = String(object.uid); - if (object.vmwareEngineNetwork != null) - message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); - if (object.description != null) - message.description = String(object.description); - if (object.vmwareEngineNetworkCanonical != null) - message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); return message; }; /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * Creates a plain object from a ListNetworkPeeringsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy} message NetworkPolicy + * @param {google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse} message ListNetworkPeeringsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkPolicy.toObject = function toObject(message, options) { + ListNetworkPeeringsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.internetAccess = null; - object.externalIp = null; - object.edgeServicesCidr = ""; - object.uid = ""; - object.vmwareEngineNetwork = ""; - object.description = ""; - object.vmwareEngineNetworkCanonical = ""; + if (options.arrays || options.defaults) { + object.networkPeerings = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.networkPeerings && message.networkPeerings.length) { + object.networkPeerings = []; + for (var j = 0; j < message.networkPeerings.length; ++j) + object.networkPeerings[j] = $root.google.cloud.vmwareengine.v1.NetworkPeering.toObject(message.networkPeerings[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) - object.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.internetAccess, options); - if (message.externalIp != null && message.hasOwnProperty("externalIp")) - object.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.externalIp, options); - if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr")) - object.edgeServicesCidr = message.edgeServicesCidr; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = message.vmwareEngineNetwork; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; return object; }; /** - * Converts this NetworkPolicy to JSON. + * Converts this ListNetworkPeeringsResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @instance * @returns {Object.} JSON object */ - NetworkPolicy.prototype.toJSON = function toJSON() { + ListNetworkPeeringsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NetworkPolicy + * Gets the default type url for ListNetworkPeeringsResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNetworkPeeringsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse"; }; - NetworkPolicy.NetworkService = (function() { - - /** - * Properties of a NetworkService. - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy - * @interface INetworkService - * @property {boolean|null} [enabled] NetworkService enabled - * @property {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null} [state] NetworkService state - */ + return ListNetworkPeeringsResponse; + })(); - /** - * Constructs a new NetworkService. - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy - * @classdesc Represents a NetworkService. - * @implements INetworkService - * @constructor - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set - */ - function NetworkService(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.ListPeeringRoutesRequest = (function() { - /** - * NetworkService enabled. - * @member {boolean} enabled - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @instance - */ - NetworkService.prototype.enabled = false; - - /** - * NetworkService state. - * @member {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State} state - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @instance - */ - NetworkService.prototype.state = 0; - - /** - * Creates a new NetworkService instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService instance - */ - NetworkService.create = function create(properties) { - return new NetworkService(properties); - }; - - /** - * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkService.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - return writer; - }; - - /** - * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkService.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NetworkService message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkService.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.enabled = reader.bool(); - break; - } - case 2: { - message.state = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NetworkService message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkService.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetworkService message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NetworkService.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Creates a NetworkService message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService - */ - NetworkService.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) - return object; - var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "UNPROVISIONED": - case 1: - message.state = 1; - break; - case "RECONCILING": - case 2: - message.state = 2; - break; - case "ACTIVE": - case 3: - message.state = 3; - break; - } - return message; - }; - - /** - * Creates a plain object from a NetworkService message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} message NetworkService - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetworkService.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.enabled = false; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State[message.state] : message.state; - return object; - }; - - /** - * Converts this NetworkService to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @instance - * @returns {Object.} JSON object - */ - NetworkService.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for NetworkService - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetworkService.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService"; - }; - - /** - * State enum. - * @name google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} UNPROVISIONED=1 UNPROVISIONED value - * @property {number} RECONCILING=2 RECONCILING value - * @property {number} ACTIVE=3 ACTIVE value - */ - NetworkService.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "UNPROVISIONED"] = 1; - values[valuesById[2] = "RECONCILING"] = 2; - values[valuesById[3] = "ACTIVE"] = 3; - return values; - })(); - - return NetworkService; - })(); - - return NetworkPolicy; - })(); - - v1.VmwareEngineNetwork = (function() { - - /** - * Properties of a VmwareEngineNetwork. - * @memberof google.cloud.vmwareengine.v1 - * @interface IVmwareEngineNetwork - * @property {string|null} [name] VmwareEngineNetwork name - * @property {google.protobuf.ITimestamp|null} [createTime] VmwareEngineNetwork createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] VmwareEngineNetwork updateTime - * @property {string|null} [description] VmwareEngineNetwork description - * @property {Array.|null} [vpcNetworks] VmwareEngineNetwork vpcNetworks - * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null} [state] VmwareEngineNetwork state - * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null} [type] VmwareEngineNetwork type - * @property {string|null} [uid] VmwareEngineNetwork uid - * @property {string|null} [etag] VmwareEngineNetwork etag - */ + /** + * Properties of a ListPeeringRoutesRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListPeeringRoutesRequest + * @property {string|null} [parent] ListPeeringRoutesRequest parent + * @property {number|null} [pageSize] ListPeeringRoutesRequest pageSize + * @property {string|null} [pageToken] ListPeeringRoutesRequest pageToken + * @property {string|null} [filter] ListPeeringRoutesRequest filter + */ /** - * Constructs a new VmwareEngineNetwork. + * Constructs a new ListPeeringRoutesRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a VmwareEngineNetwork. - * @implements IVmwareEngineNetwork + * @classdesc Represents a ListPeeringRoutesRequest. + * @implements IListPeeringRoutesRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesRequest=} [properties] Properties to set */ - function VmwareEngineNetwork(properties) { - this.vpcNetworks = []; + function ListPeeringRoutesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19304,190 +17926,117 @@ } /** - * VmwareEngineNetwork name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance - */ - VmwareEngineNetwork.prototype.name = ""; - - /** - * VmwareEngineNetwork createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance - */ - VmwareEngineNetwork.prototype.createTime = null; - - /** - * VmwareEngineNetwork updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance - */ - VmwareEngineNetwork.prototype.updateTime = null; - - /** - * VmwareEngineNetwork description. - * @member {string} description - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance - */ - VmwareEngineNetwork.prototype.description = ""; - - /** - * VmwareEngineNetwork vpcNetworks. - * @member {Array.} vpcNetworks - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance - */ - VmwareEngineNetwork.prototype.vpcNetworks = $util.emptyArray; - - /** - * VmwareEngineNetwork state. - * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.State} state - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * ListPeeringRoutesRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @instance */ - VmwareEngineNetwork.prototype.state = 0; + ListPeeringRoutesRequest.prototype.parent = ""; /** - * VmwareEngineNetwork type. - * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type} type - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * ListPeeringRoutesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @instance */ - VmwareEngineNetwork.prototype.type = 0; + ListPeeringRoutesRequest.prototype.pageSize = 0; /** - * VmwareEngineNetwork uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * ListPeeringRoutesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @instance */ - VmwareEngineNetwork.prototype.uid = ""; + ListPeeringRoutesRequest.prototype.pageToken = ""; /** - * VmwareEngineNetwork etag. - * @member {string} etag - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * ListPeeringRoutesRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @instance */ - VmwareEngineNetwork.prototype.etag = ""; + ListPeeringRoutesRequest.prototype.filter = ""; /** - * Creates a new VmwareEngineNetwork instance using the specified properties. + * Creates a new ListPeeringRoutesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @static - * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork instance + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPeeringRoutesRequest} ListPeeringRoutesRequest instance */ - VmwareEngineNetwork.create = function create(properties) { - return new VmwareEngineNetwork(properties); + ListPeeringRoutesRequest.create = function create(properties) { + return new ListPeeringRoutesRequest(properties); }; /** - * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * Encodes the specified ListPeeringRoutesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @static - * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork} message VmwareEngineNetwork message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesRequest} message ListPeeringRoutesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VmwareEngineNetwork.encode = function encode(message, writer) { + ListPeeringRoutesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.description); - if (message.vpcNetworks != null && message.vpcNetworks.length) - for (var i = 0; i < message.vpcNetworks.length; ++i) - $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.encode(message.vpcNetworks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.type); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.uid); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.etag); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.filter); return writer; }; /** - * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * Encodes the specified ListPeeringRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @static - * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork} message VmwareEngineNetwork message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesRequest} message ListPeeringRoutesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VmwareEngineNetwork.encodeDelimited = function encodeDelimited(message, writer) { + ListPeeringRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VmwareEngineNetwork message from the specified reader or buffer. + * Decodes a ListPeeringRoutesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @returns {google.cloud.vmwareengine.v1.ListPeeringRoutesRequest} ListPeeringRoutesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VmwareEngineNetwork.decode = function decode(reader, length) { + ListPeeringRoutesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.description = reader.string(); + message.pageToken = reader.string(); break; } case 6: { - if (!(message.vpcNetworks && message.vpcNetworks.length)) - message.vpcNetworks = []; - message.vpcNetworks.push($root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.decode(reader, reader.uint32())); - break; - } - case 7: { - message.state = reader.int32(); - break; - } - case 8: { - message.type = reader.int32(); - break; - } - case 9: { - message.uid = reader.string(); - break; - } - case 10: { - message.etag = reader.string(); + message.filter = reader.string(); break; } default: @@ -19499,588 +18048,149 @@ }; /** - * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited. + * Decodes a ListPeeringRoutesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @returns {google.cloud.vmwareengine.v1.ListPeeringRoutesRequest} ListPeeringRoutesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VmwareEngineNetwork.decodeDelimited = function decodeDelimited(reader) { + ListPeeringRoutesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VmwareEngineNetwork message. + * Verifies a ListPeeringRoutesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VmwareEngineNetwork.verify = function verify(message) { + ListPeeringRoutesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.vpcNetworks != null && message.hasOwnProperty("vpcNetworks")) { - if (!Array.isArray(message.vpcNetworks)) - return "vpcNetworks: array expected"; - for (var i = 0; i < message.vpcNetworks.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify(message.vpcNetworks[i]); - if (error) - return "vpcNetworks." + error; - } - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types. + * Creates a ListPeeringRoutesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @returns {google.cloud.vmwareengine.v1.ListPeeringRoutesRequest} ListPeeringRoutesRequest */ - VmwareEngineNetwork.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork) + ListPeeringRoutesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + return message; + }; + + /** + * Creates a plain object from a ListPeeringRoutesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest + * @static + * @param {google.cloud.vmwareengine.v1.ListPeeringRoutesRequest} message ListPeeringRoutesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPeeringRoutesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } - if (object.description != null) - message.description = String(object.description); - if (object.vpcNetworks) { - if (!Array.isArray(object.vpcNetworks)) - throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.vpcNetworks: array expected"); - message.vpcNetworks = []; - for (var i = 0; i < object.vpcNetworks.length; ++i) { - if (typeof object.vpcNetworks[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.vpcNetworks: object expected"); - message.vpcNetworks[i] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.fromObject(object.vpcNetworks[i]); - } - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "CREATING": - case 1: - message.state = 1; - break; - case "ACTIVE": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "DELETING": - case 4: - message.state = 4; - break; - } - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "LEGACY": - case 1: - message.type = 1; - break; - } - if (object.uid != null) - message.uid = String(object.uid); - if (object.etag != null) - message.etag = String(object.etag); - return message; - }; - - /** - * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} message VmwareEngineNetwork - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VmwareEngineNetwork.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.vpcNetworks = []; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.description = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.uid = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.vpcNetworks && message.vpcNetworks.length) { - object.vpcNetworks = []; - for (var j = 0; j < message.vpcNetworks.length; ++j) - object.vpcNetworks[j] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.toObject(message.vpcNetworks[j], options); - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State[message.state] : message.state; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type[message.type] : message.type; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this VmwareEngineNetwork to JSON. + * Converts this ListPeeringRoutesRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @instance * @returns {Object.} JSON object */ - VmwareEngineNetwork.prototype.toJSON = function toJSON() { + ListPeeringRoutesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VmwareEngineNetwork + * Gets the default type url for ListPeeringRoutesRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VmwareEngineNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPeeringRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.VmwareEngineNetwork"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPeeringRoutesRequest"; }; - VmwareEngineNetwork.VpcNetwork = (function() { - - /** - * Properties of a VpcNetwork. - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @interface IVpcNetwork - * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null} [type] VpcNetwork type - * @property {string|null} [network] VpcNetwork network - */ - - /** - * Constructs a new VpcNetwork. - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @classdesc Represents a VpcNetwork. - * @implements IVpcNetwork - * @constructor - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork=} [properties] Properties to set - */ - function VpcNetwork(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]]; - } - - /** - * VpcNetwork type. - * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type} type - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @instance - */ - VpcNetwork.prototype.type = 0; - - /** - * VpcNetwork network. - * @member {string} network - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @instance - */ - VpcNetwork.prototype.network = ""; - - /** - * Creates a new VpcNetwork instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork instance - */ - VpcNetwork.create = function create(properties) { - return new VpcNetwork(properties); - }; - - /** - * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork} message VpcNetwork message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VpcNetwork.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); - return writer; - }; - - /** - * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork} message VpcNetwork message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VpcNetwork message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VpcNetwork.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.network = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VpcNetwork message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VpcNetwork.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VpcNetwork message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VpcNetwork.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - return null; - }; - - /** - * Creates a VpcNetwork message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork - */ - VpcNetwork.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) - return object; - var message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTRANET": - case 1: - message.type = 1; - break; - case "INTERNET": - case 2: - message.type = 2; - break; - case "GOOGLE_CLOUD": - case 3: - message.type = 3; - break; - } - if (object.network != null) - message.network = String(object.network); - return message; - }; - - /** - * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} message VpcNetwork - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VpcNetwork.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.network = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type[message.type] : message.type; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - return object; - }; - - /** - * Converts this VpcNetwork to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @instance - * @returns {Object.} JSON object - */ - VpcNetwork.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for VpcNetwork - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork"; - }; - - /** - * Type enum. - * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} INTRANET=1 INTRANET value - * @property {number} INTERNET=2 INTERNET value - * @property {number} GOOGLE_CLOUD=3 GOOGLE_CLOUD value - */ - VpcNetwork.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTRANET"] = 1; - values[valuesById[2] = "INTERNET"] = 2; - values[valuesById[3] = "GOOGLE_CLOUD"] = 3; - return values; - })(); - - return VpcNetwork; - })(); - - /** - * State enum. - * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} CREATING=1 CREATING value - * @property {number} ACTIVE=2 ACTIVE value - * @property {number} UPDATING=3 UPDATING value - * @property {number} DELETING=4 DELETING value - */ - VmwareEngineNetwork.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATING"] = 1; - values[valuesById[2] = "ACTIVE"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[4] = "DELETING"] = 4; - return values; - })(); - - /** - * Type enum. - * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} LEGACY=1 LEGACY value - */ - VmwareEngineNetwork.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LEGACY"] = 1; - return values; - })(); - - return VmwareEngineNetwork; + return ListPeeringRoutesRequest; })(); - v1.PrivateConnection = (function() { + v1.ListPeeringRoutesResponse = (function() { /** - * Properties of a PrivateConnection. + * Properties of a ListPeeringRoutesResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IPrivateConnection - * @property {string|null} [name] PrivateConnection name - * @property {google.protobuf.ITimestamp|null} [createTime] PrivateConnection createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PrivateConnection updateTime - * @property {string|null} [description] PrivateConnection description - * @property {google.cloud.vmwareengine.v1.PrivateConnection.State|null} [state] PrivateConnection state - * @property {string|null} [vmwareEngineNetwork] PrivateConnection vmwareEngineNetwork - * @property {string|null} [vmwareEngineNetworkCanonical] PrivateConnection vmwareEngineNetworkCanonical - * @property {google.cloud.vmwareengine.v1.PrivateConnection.Type|null} [type] PrivateConnection type - * @property {string|null} [peeringId] PrivateConnection peeringId - * @property {google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode|null} [routingMode] PrivateConnection routingMode - * @property {string|null} [uid] PrivateConnection uid - * @property {string|null} [serviceNetwork] PrivateConnection serviceNetwork - * @property {google.cloud.vmwareengine.v1.PrivateConnection.PeeringState|null} [peeringState] PrivateConnection peeringState + * @interface IListPeeringRoutesResponse + * @property {Array.|null} [peeringRoutes] ListPeeringRoutesResponse peeringRoutes + * @property {string|null} [nextPageToken] ListPeeringRoutesResponse nextPageToken */ /** - * Constructs a new PrivateConnection. + * Constructs a new ListPeeringRoutesResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a PrivateConnection. - * @implements IPrivateConnection + * @classdesc Represents a ListPeeringRoutesResponse. + * @implements IListPeeringRoutesResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IPrivateConnection=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesResponse=} [properties] Properties to set */ - function PrivateConnection(properties) { + function ListPeeringRoutesResponse(properties) { + this.peeringRoutes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20088,243 +18198,381 @@ } /** - * PrivateConnection name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * ListPeeringRoutesResponse peeringRoutes. + * @member {Array.} peeringRoutes + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse * @instance */ - PrivateConnection.prototype.name = ""; + ListPeeringRoutesResponse.prototype.peeringRoutes = $util.emptyArray; /** - * PrivateConnection createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * ListPeeringRoutesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse * @instance */ - PrivateConnection.prototype.createTime = null; + ListPeeringRoutesResponse.prototype.nextPageToken = ""; /** - * PrivateConnection updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.PrivateConnection - * @instance + * Creates a new ListPeeringRoutesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPeeringRoutesResponse} ListPeeringRoutesResponse instance */ - PrivateConnection.prototype.updateTime = null; + ListPeeringRoutesResponse.create = function create(properties) { + return new ListPeeringRoutesResponse(properties); + }; /** - * PrivateConnection description. - * @member {string} description - * @memberof google.cloud.vmwareengine.v1.PrivateConnection - * @instance + * Encodes the specified ListPeeringRoutesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesResponse} message ListPeeringRoutesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PrivateConnection.prototype.description = ""; + ListPeeringRoutesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.peeringRoutes != null && message.peeringRoutes.length) + for (var i = 0; i < message.peeringRoutes.length; ++i) + $root.google.cloud.vmwareengine.v1.PeeringRoute.encode(message.peeringRoutes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * PrivateConnection state. - * @member {google.cloud.vmwareengine.v1.PrivateConnection.State} state - * @memberof google.cloud.vmwareengine.v1.PrivateConnection - * @instance + * Encodes the specified ListPeeringRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPeeringRoutesResponse} message ListPeeringRoutesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PrivateConnection.prototype.state = 0; + ListPeeringRoutesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * PrivateConnection vmwareEngineNetwork. - * @member {string} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.PrivateConnection - * @instance + * Decodes a ListPeeringRoutesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListPeeringRoutesResponse} ListPeeringRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateConnection.prototype.vmwareEngineNetwork = ""; - + ListPeeringRoutesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.peeringRoutes && message.peeringRoutes.length)) + message.peeringRoutes = []; + message.peeringRoutes.push($root.google.cloud.vmwareengine.v1.PeeringRoute.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + /** - * PrivateConnection vmwareEngineNetworkCanonical. - * @member {string} vmwareEngineNetworkCanonical - * @memberof google.cloud.vmwareengine.v1.PrivateConnection - * @instance + * Decodes a ListPeeringRoutesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListPeeringRoutesResponse} ListPeeringRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateConnection.prototype.vmwareEngineNetworkCanonical = ""; + ListPeeringRoutesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * PrivateConnection type. - * @member {google.cloud.vmwareengine.v1.PrivateConnection.Type} type - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * Verifies a ListPeeringRoutesResponse message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPeeringRoutesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.peeringRoutes != null && message.hasOwnProperty("peeringRoutes")) { + if (!Array.isArray(message.peeringRoutes)) + return "peeringRoutes: array expected"; + for (var i = 0; i < message.peeringRoutes.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.PeeringRoute.verify(message.peeringRoutes[i]); + if (error) + return "peeringRoutes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPeeringRoutesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListPeeringRoutesResponse} ListPeeringRoutesResponse + */ + ListPeeringRoutesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse(); + if (object.peeringRoutes) { + if (!Array.isArray(object.peeringRoutes)) + throw TypeError(".google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.peeringRoutes: array expected"); + message.peeringRoutes = []; + for (var i = 0; i < object.peeringRoutes.length; ++i) { + if (typeof object.peeringRoutes[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.peeringRoutes: object expected"); + message.peeringRoutes[i] = $root.google.cloud.vmwareengine.v1.PeeringRoute.fromObject(object.peeringRoutes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPeeringRoutesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {google.cloud.vmwareengine.v1.ListPeeringRoutesResponse} message ListPeeringRoutesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPeeringRoutesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.peeringRoutes = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.peeringRoutes && message.peeringRoutes.length) { + object.peeringRoutes = []; + for (var j = 0; j < message.peeringRoutes.length; ++j) + object.peeringRoutes[j] = $root.google.cloud.vmwareengine.v1.PeeringRoute.toObject(message.peeringRoutes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPeeringRoutesResponse to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse * @instance + * @returns {Object.} JSON object */ - PrivateConnection.prototype.type = 0; + ListPeeringRoutesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * PrivateConnection peeringId. - * @member {string} peeringId - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * Gets the default type url for ListPeeringRoutesResponse + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPeeringRoutesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPeeringRoutesResponse"; + }; + + return ListPeeringRoutesResponse; + })(); + + v1.ListNetworkPoliciesRequest = (function() { + + /** + * Properties of a ListNetworkPoliciesRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListNetworkPoliciesRequest + * @property {string|null} [parent] ListNetworkPoliciesRequest parent + * @property {number|null} [pageSize] ListNetworkPoliciesRequest pageSize + * @property {string|null} [pageToken] ListNetworkPoliciesRequest pageToken + * @property {string|null} [filter] ListNetworkPoliciesRequest filter + * @property {string|null} [orderBy] ListNetworkPoliciesRequest orderBy + */ + + /** + * Constructs a new ListNetworkPoliciesRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListNetworkPoliciesRequest. + * @implements IListNetworkPoliciesRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest=} [properties] Properties to set + */ + function ListNetworkPoliciesRequest(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]]; + } + + /** + * ListNetworkPoliciesRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @instance */ - PrivateConnection.prototype.peeringId = ""; + ListNetworkPoliciesRequest.prototype.parent = ""; /** - * PrivateConnection routingMode. - * @member {google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode} routingMode - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * ListNetworkPoliciesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @instance */ - PrivateConnection.prototype.routingMode = 0; + ListNetworkPoliciesRequest.prototype.pageSize = 0; /** - * PrivateConnection uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * ListNetworkPoliciesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @instance */ - PrivateConnection.prototype.uid = ""; + ListNetworkPoliciesRequest.prototype.pageToken = ""; /** - * PrivateConnection serviceNetwork. - * @member {string} serviceNetwork - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * ListNetworkPoliciesRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @instance */ - PrivateConnection.prototype.serviceNetwork = ""; + ListNetworkPoliciesRequest.prototype.filter = ""; /** - * PrivateConnection peeringState. - * @member {google.cloud.vmwareengine.v1.PrivateConnection.PeeringState} peeringState - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * ListNetworkPoliciesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @instance */ - PrivateConnection.prototype.peeringState = 0; + ListNetworkPoliciesRequest.prototype.orderBy = ""; /** - * Creates a new PrivateConnection instance using the specified properties. + * Creates a new ListNetworkPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateConnection=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.PrivateConnection} PrivateConnection instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest instance */ - PrivateConnection.create = function create(properties) { - return new PrivateConnection(properties); + ListNetworkPoliciesRequest.create = function create(properties) { + return new ListNetworkPoliciesRequest(properties); }; /** - * Encodes the specified PrivateConnection message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateConnection.verify|verify} messages. + * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateConnection} message PrivateConnection message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} message ListNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateConnection.encode = function encode(message, writer) { + ListNetworkPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.vmwareEngineNetwork); - if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.vmwareEngineNetworkCanonical); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.type); - if (message.peeringId != null && Object.hasOwnProperty.call(message, "peeringId")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.peeringId); - if (message.routingMode != null && Object.hasOwnProperty.call(message, "routingMode")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.routingMode); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.uid); - if (message.serviceNetwork != null && Object.hasOwnProperty.call(message, "serviceNetwork")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.serviceNetwork); - if (message.peeringState != null && Object.hasOwnProperty.call(message, "peeringState")) - writer.uint32(/* id 17, wireType 0 =*/136).int32(message.peeringState); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified PrivateConnection message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateConnection.verify|verify} messages. + * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateConnection} message PrivateConnection message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} message ListNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateConnection.encodeDelimited = function encodeDelimited(message, writer) { + ListNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrivateConnection message from the specified reader or buffer. + * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.PrivateConnection} PrivateConnection + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateConnection.decode = function decode(reader, length) { + ListNetworkPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateConnection(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; } case 4: { - message.description = reader.string(); + message.filter = reader.string(); break; } case 5: { - message.state = reader.int32(); - break; - } - case 8: { - message.vmwareEngineNetwork = reader.string(); - break; - } - case 9: { - message.vmwareEngineNetworkCanonical = reader.string(); - break; - } - case 10: { - message.type = reader.int32(); - break; - } - case 12: { - message.peeringId = reader.string(); - break; - } - case 13: { - message.routingMode = reader.int32(); - break; - } - case 14: { - message.uid = reader.string(); - break; - } - case 16: { - message.serviceNetwork = reader.string(); - break; - } - case 17: { - message.peeringState = reader.int32(); + message.orderBy = reader.string(); break; } default: @@ -20336,1186 +18584,19777 @@ }; /** - * Decodes a PrivateConnection message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.PrivateConnection} PrivateConnection + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateConnection.decodeDelimited = function decodeDelimited(reader) { + ListNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrivateConnection message. + * Verifies a ListNetworkPoliciesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateConnection.verify = function verify(message) { + ListNetworkPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - if (!$util.isString(message.vmwareEngineNetwork)) - return "vmwareEngineNetwork: string expected"; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - if (!$util.isString(message.vmwareEngineNetworkCanonical)) - return "vmwareEngineNetworkCanonical: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.peeringId != null && message.hasOwnProperty("peeringId")) - if (!$util.isString(message.peeringId)) - return "peeringId: string expected"; - if (message.routingMode != null && message.hasOwnProperty("routingMode")) - switch (message.routingMode) { - default: - return "routingMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.serviceNetwork != null && message.hasOwnProperty("serviceNetwork")) - if (!$util.isString(message.serviceNetwork)) - return "serviceNetwork: string expected"; - if (message.peeringState != null && message.hasOwnProperty("peeringState")) - switch (message.peeringState) { - default: - return "peeringState: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a PrivateConnection message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.PrivateConnection} PrivateConnection + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest */ - PrivateConnection.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateConnection) + ListNetworkPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.PrivateConnection(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateConnection.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @static + * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} message ListNetworkPoliciesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListNetworkPoliciesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateConnection.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListNetworkPoliciesRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @instance + * @returns {Object.} JSON object + */ + ListNetworkPoliciesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListNetworkPoliciesRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (object.description != null) - message.description = String(object.description); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "CREATING": - case 1: - message.state = 1; - break; - case "ACTIVE": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "DELETING": - case 4: - message.state = 4; - break; - case "UNPROVISIONED": - case 5: - message.state = 5; - break; - case "FAILED": - case 6: - message.state = 6; - break; - } - if (object.vmwareEngineNetwork != null) - message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); - if (object.vmwareEngineNetworkCanonical != null) - message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest"; + }; + + return ListNetworkPoliciesRequest; + })(); + + v1.ListNetworkPoliciesResponse = (function() { + + /** + * Properties of a ListNetworkPoliciesResponse. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListNetworkPoliciesResponse + * @property {Array.|null} [networkPolicies] ListNetworkPoliciesResponse networkPolicies + * @property {string|null} [nextPageToken] ListNetworkPoliciesResponse nextPageToken + * @property {Array.|null} [unreachable] ListNetworkPoliciesResponse unreachable + */ + + /** + * Constructs a new ListNetworkPoliciesResponse. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListNetworkPoliciesResponse. + * @implements IListNetworkPoliciesResponse + * @constructor + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse=} [properties] Properties to set + */ + function ListNetworkPoliciesResponse(properties) { + this.networkPolicies = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListNetworkPoliciesResponse networkPolicies. + * @member {Array.} networkPolicies + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @instance + */ + ListNetworkPoliciesResponse.prototype.networkPolicies = $util.emptyArray; + + /** + * ListNetworkPoliciesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @instance + */ + ListNetworkPoliciesResponse.prototype.nextPageToken = ""; + + /** + * ListNetworkPoliciesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @instance + */ + ListNetworkPoliciesResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListNetworkPoliciesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse instance + */ + ListNetworkPoliciesResponse.create = function create(properties) { + return new ListNetworkPoliciesResponse(properties); + }; + + /** + * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse} message ListNetworkPoliciesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNetworkPoliciesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkPolicies != null && message.networkPolicies.length) + for (var i = 0; i < message.networkPolicies.length; ++i) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicies[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse} message ListNetworkPoliciesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNetworkPoliciesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNetworkPoliciesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.networkPolicies && message.networkPolicies.length)) + message.networkPolicies = []; + message.networkPolicies.push($root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "PRIVATE_SERVICE_ACCESS": - case 1: - message.type = 1; - break; - case "NETAPP_CLOUD_VOLUMES": - case 2: - message.type = 2; - break; - case "DELL_POWERSCALE": - case 3: - message.type = 3; - break; - case "THIRD_PARTY_SERVICE": - case 4: - message.type = 4; - break; } - if (object.peeringId != null) - message.peeringId = String(object.peeringId); - switch (object.routingMode) { - default: - if (typeof object.routingMode === "number") { - message.routingMode = object.routingMode; - break; + return message; + }; + + /** + * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNetworkPoliciesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListNetworkPoliciesResponse message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListNetworkPoliciesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkPolicies != null && message.hasOwnProperty("networkPolicies")) { + if (!Array.isArray(message.networkPolicies)) + return "networkPolicies: array expected"; + for (var i = 0; i < message.networkPolicies.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicies[i]); + if (error) + return "networkPolicies." + error; } - break; - case "ROUTING_MODE_UNSPECIFIED": - case 0: - message.routingMode = 0; - break; - case "GLOBAL": - case 1: - message.routingMode = 1; - break; - case "REGIONAL": - case 2: - message.routingMode = 2; - break; } - if (object.uid != null) - message.uid = String(object.uid); - if (object.serviceNetwork != null) - message.serviceNetwork = String(object.serviceNetwork); - switch (object.peeringState) { - default: - if (typeof object.peeringState === "number") { - message.peeringState = object.peeringState; - break; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + */ + ListNetworkPoliciesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); + if (object.networkPolicies) { + if (!Array.isArray(object.networkPolicies)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.networkPolicies: array expected"); + message.networkPolicies = []; + for (var i = 0; i < object.networkPolicies.length; ++i) { + if (typeof object.networkPolicies[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.networkPolicies: object expected"); + message.networkPolicies[i] = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicies[i]); } - break; - case "PEERING_STATE_UNSPECIFIED": - case 0: - message.peeringState = 0; - break; - case "PEERING_ACTIVE": - case 1: - message.peeringState = 1; - break; - case "PEERING_INACTIVE": - case 2: - message.peeringState = 2; - break; + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); } return message; }; /** - * Creates a plain object from a PrivateConnection message. Also converts values to other types if specified. + * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static - * @param {google.cloud.vmwareengine.v1.PrivateConnection} message PrivateConnection + * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} message ListNetworkPoliciesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivateConnection.toObject = function toObject(message, options) { + ListNetworkPoliciesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.description = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.vmwareEngineNetwork = ""; - object.vmwareEngineNetworkCanonical = ""; - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.peeringId = ""; - object.routingMode = options.enums === String ? "ROUTING_MODE_UNSPECIFIED" : 0; - object.uid = ""; - object.serviceNetwork = ""; - object.peeringState = options.enums === String ? "PEERING_STATE_UNSPECIFIED" : 0; + if (options.arrays || options.defaults) { + object.networkPolicies = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.networkPolicies && message.networkPolicies.length) { + object.networkPolicies = []; + for (var j = 0; j < message.networkPolicies.length; ++j) + object.networkPolicies[j] = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicies[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateConnection.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.PrivateConnection.State[message.state] : message.state; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = message.vmwareEngineNetwork; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateConnection.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.PrivateConnection.Type[message.type] : message.type; - if (message.peeringId != null && message.hasOwnProperty("peeringId")) - object.peeringId = message.peeringId; - if (message.routingMode != null && message.hasOwnProperty("routingMode")) - object.routingMode = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode[message.routingMode] === undefined ? message.routingMode : $root.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode[message.routingMode] : message.routingMode; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.serviceNetwork != null && message.hasOwnProperty("serviceNetwork")) - object.serviceNetwork = message.serviceNetwork; - if (message.peeringState != null && message.hasOwnProperty("peeringState")) - object.peeringState = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState[message.peeringState] === undefined ? message.peeringState : $root.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState[message.peeringState] : message.peeringState; return object; }; /** - * Converts this PrivateConnection to JSON. + * Converts this ListNetworkPoliciesResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @instance * @returns {Object.} JSON object */ - PrivateConnection.prototype.toJSON = function toJSON() { + ListNetworkPoliciesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrivateConnection + * Gets the default type url for ListNetworkPoliciesResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrivateConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNetworkPoliciesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateConnection"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse"; }; + return ListNetworkPoliciesResponse; + })(); + + v1.GetNetworkPolicyRequest = (function() { + /** - * State enum. - * @name google.cloud.vmwareengine.v1.PrivateConnection.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} CREATING=1 CREATING value - * @property {number} ACTIVE=2 ACTIVE value - * @property {number} UPDATING=3 UPDATING value - * @property {number} DELETING=4 DELETING value - * @property {number} UNPROVISIONED=5 UNPROVISIONED value - * @property {number} FAILED=6 FAILED value + * Properties of a GetNetworkPolicyRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IGetNetworkPolicyRequest + * @property {string|null} [name] GetNetworkPolicyRequest name */ - PrivateConnection.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATING"] = 1; - values[valuesById[2] = "ACTIVE"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[4] = "DELETING"] = 4; - values[valuesById[5] = "UNPROVISIONED"] = 5; - values[valuesById[6] = "FAILED"] = 6; - return values; - })(); /** - * Type enum. - * @name google.cloud.vmwareengine.v1.PrivateConnection.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} PRIVATE_SERVICE_ACCESS=1 PRIVATE_SERVICE_ACCESS value - * @property {number} NETAPP_CLOUD_VOLUMES=2 NETAPP_CLOUD_VOLUMES value - * @property {number} DELL_POWERSCALE=3 DELL_POWERSCALE value - * @property {number} THIRD_PARTY_SERVICE=4 THIRD_PARTY_SERVICE value + * Constructs a new GetNetworkPolicyRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a GetNetworkPolicyRequest. + * @implements IGetNetworkPolicyRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest=} [properties] Properties to set */ - PrivateConnection.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PRIVATE_SERVICE_ACCESS"] = 1; - values[valuesById[2] = "NETAPP_CLOUD_VOLUMES"] = 2; - values[valuesById[3] = "DELL_POWERSCALE"] = 3; - values[valuesById[4] = "THIRD_PARTY_SERVICE"] = 4; - return values; - })(); + function GetNetworkPolicyRequest(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]]; + } /** - * RoutingMode enum. - * @name google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode - * @enum {number} - * @property {number} ROUTING_MODE_UNSPECIFIED=0 ROUTING_MODE_UNSPECIFIED value - * @property {number} GLOBAL=1 GLOBAL value - * @property {number} REGIONAL=2 REGIONAL value + * GetNetworkPolicyRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @instance */ - PrivateConnection.RoutingMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ROUTING_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "GLOBAL"] = 1; - values[valuesById[2] = "REGIONAL"] = 2; - return values; - })(); + GetNetworkPolicyRequest.prototype.name = ""; /** - * PeeringState enum. - * @name google.cloud.vmwareengine.v1.PrivateConnection.PeeringState - * @enum {number} - * @property {number} PEERING_STATE_UNSPECIFIED=0 PEERING_STATE_UNSPECIFIED value - * @property {number} PEERING_ACTIVE=1 PEERING_ACTIVE value - * @property {number} PEERING_INACTIVE=2 PEERING_INACTIVE value + * Creates a new GetNetworkPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest instance */ - PrivateConnection.PeeringState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PEERING_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PEERING_ACTIVE"] = 1; - values[valuesById[2] = "PEERING_INACTIVE"] = 2; - return values; - })(); + GetNetworkPolicyRequest.create = function create(properties) { + return new GetNetworkPolicyRequest(properties); + }; - return PrivateConnection; - })(); + /** + * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} message GetNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetNetworkPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - return v1; - })(); - - return vmwareengine; - })(); - - return cloud; - })(); + /** + * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} message GetNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - google.api = (function() { + /** + * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetNetworkPolicyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; + /** + * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - api.Http = (function() { + /** + * Verifies a GetNetworkPolicyRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetNetworkPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion - */ + /** + * Creates a GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + */ + GetNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp - * @constructor - * @param {google.api.IHttp=} [properties] Properties to set - */ - function Http(properties) { - this.rules = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} message GetNetworkPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetNetworkPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http - * @instance - */ - Http.prototype.rules = $util.emptyArray; + /** + * Converts this GetNetworkPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + GetNetworkPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Http fullyDecodeReservedExpansion. - * @member {boolean} fullyDecodeReservedExpansion - * @memberof google.api.Http - * @instance - */ - Http.prototype.fullyDecodeReservedExpansion = false; + /** + * Gets the default type url for GetNetworkPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNetworkPolicyRequest"; + }; - /** - * Creates a new Http instance using the specified properties. - * @function create - * @memberof google.api.Http - * @static - * @param {google.api.IHttp=} [properties] Properties to set - * @returns {google.api.Http} Http instance - */ - Http.create = function create(properties) { - return new Http(properties); - }; + return GetNetworkPolicyRequest; + })(); - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encode - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); - return writer; - }; + v1.UpdateNetworkPolicyRequest = (function() { - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of an UpdateNetworkPolicyRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IUpdateNetworkPolicyRequest + * @property {google.cloud.vmwareengine.v1.INetworkPolicy|null} [networkPolicy] UpdateNetworkPolicyRequest networkPolicy + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateNetworkPolicyRequest updateMask + * @property {string|null} [requestId] UpdateNetworkPolicyRequest requestId + */ - /** - * Decodes a Http message from the specified reader or buffer. - * @function decode - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - } - case 2: { - message.fullyDecodeReservedExpansion = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; + /** + * Constructs a new UpdateNetworkPolicyRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents an UpdateNetworkPolicyRequest. + * @implements IUpdateNetworkPolicyRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest=} [properties] Properties to set + */ + function UpdateNetworkPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - } - return message; - }; - - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - /** - * Verifies a Http message. - * @function verify - * @memberof google.api.Http - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Http.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - if (typeof message.fullyDecodeReservedExpansion !== "boolean") - return "fullyDecodeReservedExpansion: boolean expected"; - return null; - }; + /** + * UpdateNetworkPolicyRequest networkPolicy. + * @member {google.cloud.vmwareengine.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @instance + */ + UpdateNetworkPolicyRequest.prototype.networkPolicy = null; - /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.Http - * @static - * @param {Object.} object Plain object - * @returns {google.api.Http} Http - */ - Http.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Http) - return object; - var message = new $root.google.api.Http(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.api.Http.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.api.Http.rules: object expected"); - message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); - } - } - if (object.fullyDecodeReservedExpansion != null) - message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); - return message; - }; + /** + * UpdateNetworkPolicyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @instance + */ + UpdateNetworkPolicyRequest.prototype.updateMask = null; - /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.Http - * @static - * @param {google.api.Http} message Http - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Http.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (options.defaults) - object.fullyDecodeReservedExpansion = false; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; - return object; - }; + /** + * UpdateNetworkPolicyRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @instance + */ + UpdateNetworkPolicyRequest.prototype.requestId = ""; - /** - * Converts this Http to JSON. - * @function toJSON - * @memberof google.api.Http - * @instance - * @returns {Object.} JSON object - */ - Http.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a new UpdateNetworkPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest instance + */ + UpdateNetworkPolicyRequest.create = function create(properties) { + return new UpdateNetworkPolicyRequest(properties); + }; - /** - * Gets the default type url for Http - * @function getTypeUrl - * @memberof google.api.Http - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.Http"; - }; + /** + * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateNetworkPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; - return Http; - })(); + /** + * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - api.HttpRule = (function() { + /** + * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateNetworkPolicyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [body] HttpRule body - * @property {string|null} [responseBody] HttpRule responseBody - * @property {Array.|null} [additionalBindings] HttpRule additionalBindings - */ + /** + * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule - * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set - */ - function HttpRule(properties) { - this.additionalBindings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Verifies an UpdateNetworkPolicyRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateNetworkPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicy); + if (error) + return "networkPolicy." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; - /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; + /** + * Creates an UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + */ + UpdateNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); + if (object.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.networkPolicy: object expected"); + message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicy); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; - /** - * HttpRule get. - * @member {string|null|undefined} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = null; + /** + * Creates a plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateNetworkPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.networkPolicy = null; + object.updateMask = null; + object.requestId = ""; + } + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicy, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; - /** - * HttpRule put. - * @member {string|null|undefined} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = null; + /** + * Converts this UpdateNetworkPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateNetworkPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * HttpRule post. - * @member {string|null|undefined} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = null; + /** + * Gets the default type url for UpdateNetworkPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest"; + }; - /** - * HttpRule delete. - * @member {string|null|undefined} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = null; + return UpdateNetworkPolicyRequest; + })(); - /** - * HttpRule patch. - * @member {string|null|undefined} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = null; + v1.CreateNetworkPolicyRequest = (function() { - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; + /** + * Properties of a CreateNetworkPolicyRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface ICreateNetworkPolicyRequest + * @property {string|null} [parent] CreateNetworkPolicyRequest parent + * @property {string|null} [networkPolicyId] CreateNetworkPolicyRequest networkPolicyId + * @property {google.cloud.vmwareengine.v1.INetworkPolicy|null} [networkPolicy] CreateNetworkPolicyRequest networkPolicy + * @property {string|null} [requestId] CreateNetworkPolicyRequest requestId + */ - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; + /** + * Constructs a new CreateNetworkPolicyRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a CreateNetworkPolicyRequest. + * @implements ICreateNetworkPolicyRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest=} [properties] Properties to set + */ + function CreateNetworkPolicyRequest(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]]; + } - /** - * HttpRule responseBody. - * @member {string} responseBody - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.responseBody = ""; + /** + * CreateNetworkPolicyRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @instance + */ + CreateNetworkPolicyRequest.prototype.parent = ""; - /** - * HttpRule additionalBindings. - * @member {Array.} additionalBindings - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.additionalBindings = $util.emptyArray; + /** + * CreateNetworkPolicyRequest networkPolicyId. + * @member {string} networkPolicyId + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @instance + */ + CreateNetworkPolicyRequest.prototype.networkPolicyId = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * CreateNetworkPolicyRequest networkPolicy. + * @member {google.cloud.vmwareengine.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @instance + */ + CreateNetworkPolicyRequest.prototype.networkPolicy = null; - /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule - * @instance - */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * CreateNetworkPolicyRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @instance + */ + CreateNetworkPolicyRequest.prototype.requestId = ""; - /** - * Creates a new HttpRule instance using the specified properties. - * @function create - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule=} [properties] Properties to set - * @returns {google.api.HttpRule} HttpRule instance - */ - HttpRule.create = function create(properties) { - return new HttpRule(properties); - }; + /** + * Creates a new CreateNetworkPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest instance + */ + CreateNetworkPolicyRequest.create = function create(properties) { + return new CreateNetworkPolicyRequest(properties); + }; - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encode - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && Object.hasOwnProperty.call(message, "put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && Object.hasOwnProperty.call(message, "post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && Object.hasOwnProperty.call(message, "body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additionalBindings != null && message.additionalBindings.length) - for (var i = 0; i < message.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); - return writer; - }; + /** + * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} message CreateNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateNetworkPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.networkPolicyId != null && Object.hasOwnProperty.call(message, "networkPolicyId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.networkPolicyId); + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + return writer; + }; - /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} message CreateNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @function decode - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HttpRule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.selector = reader.string(); - break; + /** + * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateNetworkPolicyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.networkPolicyId = reader.string(); + break; + } + case 3: { + message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - case 2: { - message.get = reader.string(); - break; + return message; + }; + + /** + * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateNetworkPolicyRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateNetworkPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.networkPolicyId != null && message.hasOwnProperty("networkPolicyId")) + if (!$util.isString(message.networkPolicyId)) + return "networkPolicyId: string expected"; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicy); + if (error) + return "networkPolicy." + error; } - case 3: { - message.put = reader.string(); - break; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + */ + CreateNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.networkPolicyId != null) + message.networkPolicyId = String(object.networkPolicyId); + if (object.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.networkPolicy: object expected"); + message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicy); } - case 4: { - message.post = reader.string(); - break; + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} message CreateNetworkPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateNetworkPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.networkPolicyId = ""; + object.networkPolicy = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.networkPolicyId != null && message.hasOwnProperty("networkPolicyId")) + object.networkPolicyId = message.networkPolicyId; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicy, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this CreateNetworkPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + CreateNetworkPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateNetworkPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest"; + }; + + return CreateNetworkPolicyRequest; + })(); + + v1.DeleteNetworkPolicyRequest = (function() { + + /** + * Properties of a DeleteNetworkPolicyRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IDeleteNetworkPolicyRequest + * @property {string|null} [name] DeleteNetworkPolicyRequest name + * @property {string|null} [requestId] DeleteNetworkPolicyRequest requestId + */ + + /** + * Constructs a new DeleteNetworkPolicyRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a DeleteNetworkPolicyRequest. + * @implements IDeleteNetworkPolicyRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest=} [properties] Properties to set + */ + function DeleteNetworkPolicyRequest(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]]; + } + + /** + * DeleteNetworkPolicyRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @instance + */ + DeleteNetworkPolicyRequest.prototype.name = ""; + + /** + * DeleteNetworkPolicyRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @instance + */ + DeleteNetworkPolicyRequest.prototype.requestId = ""; + + /** + * Creates a new DeleteNetworkPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest instance + */ + DeleteNetworkPolicyRequest.create = function create(properties) { + return new DeleteNetworkPolicyRequest(properties); + }; + + /** + * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteNetworkPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteNetworkPolicyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteNetworkPolicyRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteNetworkPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + */ + DeleteNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteNetworkPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this DeleteNetworkPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteNetworkPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteNetworkPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest"; + }; + + return DeleteNetworkPolicyRequest; + })(); + + v1.ListManagementDnsZoneBindingsRequest = (function() { + + /** + * Properties of a ListManagementDnsZoneBindingsRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListManagementDnsZoneBindingsRequest + * @property {string|null} [parent] ListManagementDnsZoneBindingsRequest parent + * @property {number|null} [pageSize] ListManagementDnsZoneBindingsRequest pageSize + * @property {string|null} [pageToken] ListManagementDnsZoneBindingsRequest pageToken + * @property {string|null} [filter] ListManagementDnsZoneBindingsRequest filter + * @property {string|null} [orderBy] ListManagementDnsZoneBindingsRequest orderBy + */ + + /** + * Constructs a new ListManagementDnsZoneBindingsRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListManagementDnsZoneBindingsRequest. + * @implements IListManagementDnsZoneBindingsRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest=} [properties] Properties to set + */ + function ListManagementDnsZoneBindingsRequest(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]]; + } + + /** + * ListManagementDnsZoneBindingsRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @instance + */ + ListManagementDnsZoneBindingsRequest.prototype.parent = ""; + + /** + * ListManagementDnsZoneBindingsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @instance + */ + ListManagementDnsZoneBindingsRequest.prototype.pageSize = 0; + + /** + * ListManagementDnsZoneBindingsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @instance + */ + ListManagementDnsZoneBindingsRequest.prototype.pageToken = ""; + + /** + * ListManagementDnsZoneBindingsRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @instance + */ + ListManagementDnsZoneBindingsRequest.prototype.filter = ""; + + /** + * ListManagementDnsZoneBindingsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @instance + */ + ListManagementDnsZoneBindingsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListManagementDnsZoneBindingsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest} ListManagementDnsZoneBindingsRequest instance + */ + ListManagementDnsZoneBindingsRequest.create = function create(properties) { + return new ListManagementDnsZoneBindingsRequest(properties); + }; + + /** + * Encodes the specified ListManagementDnsZoneBindingsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest} message ListManagementDnsZoneBindingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListManagementDnsZoneBindingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListManagementDnsZoneBindingsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest} message ListManagementDnsZoneBindingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListManagementDnsZoneBindingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListManagementDnsZoneBindingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest} ListManagementDnsZoneBindingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListManagementDnsZoneBindingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListManagementDnsZoneBindingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest} ListManagementDnsZoneBindingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListManagementDnsZoneBindingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListManagementDnsZoneBindingsRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListManagementDnsZoneBindingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListManagementDnsZoneBindingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest} ListManagementDnsZoneBindingsRequest + */ + ListManagementDnsZoneBindingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListManagementDnsZoneBindingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest} message ListManagementDnsZoneBindingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListManagementDnsZoneBindingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListManagementDnsZoneBindingsRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @instance + * @returns {Object.} JSON object + */ + ListManagementDnsZoneBindingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListManagementDnsZoneBindingsRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListManagementDnsZoneBindingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest"; + }; + + return ListManagementDnsZoneBindingsRequest; + })(); + + v1.ListManagementDnsZoneBindingsResponse = (function() { + + /** + * Properties of a ListManagementDnsZoneBindingsResponse. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListManagementDnsZoneBindingsResponse + * @property {Array.|null} [managementDnsZoneBindings] ListManagementDnsZoneBindingsResponse managementDnsZoneBindings + * @property {string|null} [nextPageToken] ListManagementDnsZoneBindingsResponse nextPageToken + * @property {Array.|null} [unreachable] ListManagementDnsZoneBindingsResponse unreachable + */ + + /** + * Constructs a new ListManagementDnsZoneBindingsResponse. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListManagementDnsZoneBindingsResponse. + * @implements IListManagementDnsZoneBindingsResponse + * @constructor + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse=} [properties] Properties to set + */ + function ListManagementDnsZoneBindingsResponse(properties) { + this.managementDnsZoneBindings = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListManagementDnsZoneBindingsResponse managementDnsZoneBindings. + * @member {Array.} managementDnsZoneBindings + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @instance + */ + ListManagementDnsZoneBindingsResponse.prototype.managementDnsZoneBindings = $util.emptyArray; + + /** + * ListManagementDnsZoneBindingsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @instance + */ + ListManagementDnsZoneBindingsResponse.prototype.nextPageToken = ""; + + /** + * ListManagementDnsZoneBindingsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @instance + */ + ListManagementDnsZoneBindingsResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListManagementDnsZoneBindingsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse} ListManagementDnsZoneBindingsResponse instance + */ + ListManagementDnsZoneBindingsResponse.create = function create(properties) { + return new ListManagementDnsZoneBindingsResponse(properties); + }; + + /** + * Encodes the specified ListManagementDnsZoneBindingsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse} message ListManagementDnsZoneBindingsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListManagementDnsZoneBindingsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.managementDnsZoneBindings != null && message.managementDnsZoneBindings.length) + for (var i = 0; i < message.managementDnsZoneBindings.length; ++i) + $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.encode(message.managementDnsZoneBindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListManagementDnsZoneBindingsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse} message ListManagementDnsZoneBindingsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListManagementDnsZoneBindingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListManagementDnsZoneBindingsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse} ListManagementDnsZoneBindingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListManagementDnsZoneBindingsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.managementDnsZoneBindings && message.managementDnsZoneBindings.length)) + message.managementDnsZoneBindings = []; + message.managementDnsZoneBindings.push($root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListManagementDnsZoneBindingsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse} ListManagementDnsZoneBindingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListManagementDnsZoneBindingsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListManagementDnsZoneBindingsResponse message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListManagementDnsZoneBindingsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.managementDnsZoneBindings != null && message.hasOwnProperty("managementDnsZoneBindings")) { + if (!Array.isArray(message.managementDnsZoneBindings)) + return "managementDnsZoneBindings: array expected"; + for (var i = 0; i < message.managementDnsZoneBindings.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.verify(message.managementDnsZoneBindings[i]); + if (error) + return "managementDnsZoneBindings." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListManagementDnsZoneBindingsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse} ListManagementDnsZoneBindingsResponse + */ + ListManagementDnsZoneBindingsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse(); + if (object.managementDnsZoneBindings) { + if (!Array.isArray(object.managementDnsZoneBindings)) + throw TypeError(".google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.managementDnsZoneBindings: array expected"); + message.managementDnsZoneBindings = []; + for (var i = 0; i < object.managementDnsZoneBindings.length; ++i) { + if (typeof object.managementDnsZoneBindings[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.managementDnsZoneBindings: object expected"); + message.managementDnsZoneBindings[i] = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.fromObject(object.managementDnsZoneBindings[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListManagementDnsZoneBindingsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse} message ListManagementDnsZoneBindingsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListManagementDnsZoneBindingsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.managementDnsZoneBindings = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.managementDnsZoneBindings && message.managementDnsZoneBindings.length) { + object.managementDnsZoneBindings = []; + for (var j = 0; j < message.managementDnsZoneBindings.length; ++j) + object.managementDnsZoneBindings[j] = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.toObject(message.managementDnsZoneBindings[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; + + /** + * Converts this ListManagementDnsZoneBindingsResponse to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @instance + * @returns {Object.} JSON object + */ + ListManagementDnsZoneBindingsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListManagementDnsZoneBindingsResponse + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListManagementDnsZoneBindingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse"; + }; + + return ListManagementDnsZoneBindingsResponse; + })(); + + v1.GetManagementDnsZoneBindingRequest = (function() { + + /** + * Properties of a GetManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IGetManagementDnsZoneBindingRequest + * @property {string|null} [name] GetManagementDnsZoneBindingRequest name + */ + + /** + * Constructs a new GetManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a GetManagementDnsZoneBindingRequest. + * @implements IGetManagementDnsZoneBindingRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest=} [properties] Properties to set + */ + function GetManagementDnsZoneBindingRequest(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]]; + } + + /** + * GetManagementDnsZoneBindingRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @instance + */ + GetManagementDnsZoneBindingRequest.prototype.name = ""; + + /** + * Creates a new GetManagementDnsZoneBindingRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest} GetManagementDnsZoneBindingRequest instance + */ + GetManagementDnsZoneBindingRequest.create = function create(properties) { + return new GetManagementDnsZoneBindingRequest(properties); + }; + + /** + * Encodes the specified GetManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest} message GetManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetManagementDnsZoneBindingRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest} message GetManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetManagementDnsZoneBindingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest} GetManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetManagementDnsZoneBindingRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest} GetManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetManagementDnsZoneBindingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetManagementDnsZoneBindingRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetManagementDnsZoneBindingRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest} GetManagementDnsZoneBindingRequest + */ + GetManagementDnsZoneBindingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest} message GetManagementDnsZoneBindingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetManagementDnsZoneBindingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetManagementDnsZoneBindingRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @instance + * @returns {Object.} JSON object + */ + GetManagementDnsZoneBindingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetManagementDnsZoneBindingRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetManagementDnsZoneBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest"; + }; + + return GetManagementDnsZoneBindingRequest; + })(); + + v1.CreateManagementDnsZoneBindingRequest = (function() { + + /** + * Properties of a CreateManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface ICreateManagementDnsZoneBindingRequest + * @property {string|null} [parent] CreateManagementDnsZoneBindingRequest parent + * @property {google.cloud.vmwareengine.v1.IManagementDnsZoneBinding|null} [managementDnsZoneBinding] CreateManagementDnsZoneBindingRequest managementDnsZoneBinding + * @property {string|null} [managementDnsZoneBindingId] CreateManagementDnsZoneBindingRequest managementDnsZoneBindingId + * @property {string|null} [requestId] CreateManagementDnsZoneBindingRequest requestId + */ + + /** + * Constructs a new CreateManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a CreateManagementDnsZoneBindingRequest. + * @implements ICreateManagementDnsZoneBindingRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest=} [properties] Properties to set + */ + function CreateManagementDnsZoneBindingRequest(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]]; + } + + /** + * CreateManagementDnsZoneBindingRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @instance + */ + CreateManagementDnsZoneBindingRequest.prototype.parent = ""; + + /** + * CreateManagementDnsZoneBindingRequest managementDnsZoneBinding. + * @member {google.cloud.vmwareengine.v1.IManagementDnsZoneBinding|null|undefined} managementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @instance + */ + CreateManagementDnsZoneBindingRequest.prototype.managementDnsZoneBinding = null; + + /** + * CreateManagementDnsZoneBindingRequest managementDnsZoneBindingId. + * @member {string} managementDnsZoneBindingId + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @instance + */ + CreateManagementDnsZoneBindingRequest.prototype.managementDnsZoneBindingId = ""; + + /** + * CreateManagementDnsZoneBindingRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @instance + */ + CreateManagementDnsZoneBindingRequest.prototype.requestId = ""; + + /** + * Creates a new CreateManagementDnsZoneBindingRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest} CreateManagementDnsZoneBindingRequest instance + */ + CreateManagementDnsZoneBindingRequest.create = function create(properties) { + return new CreateManagementDnsZoneBindingRequest(properties); + }; + + /** + * Encodes the specified CreateManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest} message CreateManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateManagementDnsZoneBindingRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.managementDnsZoneBinding != null && Object.hasOwnProperty.call(message, "managementDnsZoneBinding")) + $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.encode(message.managementDnsZoneBinding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.managementDnsZoneBindingId != null && Object.hasOwnProperty.call(message, "managementDnsZoneBindingId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.managementDnsZoneBindingId); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified CreateManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest} message CreateManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateManagementDnsZoneBindingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest} CreateManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateManagementDnsZoneBindingRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.managementDnsZoneBinding = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.decode(reader, reader.uint32()); + break; + } + case 3: { + message.managementDnsZoneBindingId = reader.string(); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest} CreateManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateManagementDnsZoneBindingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateManagementDnsZoneBindingRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateManagementDnsZoneBindingRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.managementDnsZoneBinding != null && message.hasOwnProperty("managementDnsZoneBinding")) { + var error = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.verify(message.managementDnsZoneBinding); + if (error) + return "managementDnsZoneBinding." + error; + } + if (message.managementDnsZoneBindingId != null && message.hasOwnProperty("managementDnsZoneBindingId")) + if (!$util.isString(message.managementDnsZoneBindingId)) + return "managementDnsZoneBindingId: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a CreateManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest} CreateManagementDnsZoneBindingRequest + */ + CreateManagementDnsZoneBindingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.managementDnsZoneBinding != null) { + if (typeof object.managementDnsZoneBinding !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.managementDnsZoneBinding: object expected"); + message.managementDnsZoneBinding = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.fromObject(object.managementDnsZoneBinding); + } + if (object.managementDnsZoneBindingId != null) + message.managementDnsZoneBindingId = String(object.managementDnsZoneBindingId); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a CreateManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest} message CreateManagementDnsZoneBindingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateManagementDnsZoneBindingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.managementDnsZoneBinding = null; + object.managementDnsZoneBindingId = ""; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.managementDnsZoneBinding != null && message.hasOwnProperty("managementDnsZoneBinding")) + object.managementDnsZoneBinding = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.toObject(message.managementDnsZoneBinding, options); + if (message.managementDnsZoneBindingId != null && message.hasOwnProperty("managementDnsZoneBindingId")) + object.managementDnsZoneBindingId = message.managementDnsZoneBindingId; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this CreateManagementDnsZoneBindingRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @instance + * @returns {Object.} JSON object + */ + CreateManagementDnsZoneBindingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateManagementDnsZoneBindingRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateManagementDnsZoneBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest"; + }; + + return CreateManagementDnsZoneBindingRequest; + })(); + + v1.UpdateManagementDnsZoneBindingRequest = (function() { + + /** + * Properties of an UpdateManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IUpdateManagementDnsZoneBindingRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateManagementDnsZoneBindingRequest updateMask + * @property {google.cloud.vmwareengine.v1.IManagementDnsZoneBinding|null} [managementDnsZoneBinding] UpdateManagementDnsZoneBindingRequest managementDnsZoneBinding + * @property {string|null} [requestId] UpdateManagementDnsZoneBindingRequest requestId + */ + + /** + * Constructs a new UpdateManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents an UpdateManagementDnsZoneBindingRequest. + * @implements IUpdateManagementDnsZoneBindingRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest=} [properties] Properties to set + */ + function UpdateManagementDnsZoneBindingRequest(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]]; + } + + /** + * UpdateManagementDnsZoneBindingRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @instance + */ + UpdateManagementDnsZoneBindingRequest.prototype.updateMask = null; + + /** + * UpdateManagementDnsZoneBindingRequest managementDnsZoneBinding. + * @member {google.cloud.vmwareengine.v1.IManagementDnsZoneBinding|null|undefined} managementDnsZoneBinding + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @instance + */ + UpdateManagementDnsZoneBindingRequest.prototype.managementDnsZoneBinding = null; + + /** + * UpdateManagementDnsZoneBindingRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @instance + */ + UpdateManagementDnsZoneBindingRequest.prototype.requestId = ""; + + /** + * Creates a new UpdateManagementDnsZoneBindingRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest} UpdateManagementDnsZoneBindingRequest instance + */ + UpdateManagementDnsZoneBindingRequest.create = function create(properties) { + return new UpdateManagementDnsZoneBindingRequest(properties); + }; + + /** + * Encodes the specified UpdateManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest} message UpdateManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateManagementDnsZoneBindingRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.managementDnsZoneBinding != null && Object.hasOwnProperty.call(message, "managementDnsZoneBinding")) + $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.encode(message.managementDnsZoneBinding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified UpdateManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest} message UpdateManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateManagementDnsZoneBindingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest} UpdateManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateManagementDnsZoneBindingRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 2: { + message.managementDnsZoneBinding = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest} UpdateManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateManagementDnsZoneBindingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateManagementDnsZoneBindingRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateManagementDnsZoneBindingRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.managementDnsZoneBinding != null && message.hasOwnProperty("managementDnsZoneBinding")) { + var error = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.verify(message.managementDnsZoneBinding); + if (error) + return "managementDnsZoneBinding." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates an UpdateManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest} UpdateManagementDnsZoneBindingRequest + */ + UpdateManagementDnsZoneBindingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.managementDnsZoneBinding != null) { + if (typeof object.managementDnsZoneBinding !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.managementDnsZoneBinding: object expected"); + message.managementDnsZoneBinding = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.fromObject(object.managementDnsZoneBinding); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an UpdateManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest} message UpdateManagementDnsZoneBindingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateManagementDnsZoneBindingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.updateMask = null; + object.managementDnsZoneBinding = null; + object.requestId = ""; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.managementDnsZoneBinding != null && message.hasOwnProperty("managementDnsZoneBinding")) + object.managementDnsZoneBinding = $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.toObject(message.managementDnsZoneBinding, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this UpdateManagementDnsZoneBindingRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateManagementDnsZoneBindingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateManagementDnsZoneBindingRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateManagementDnsZoneBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest"; + }; + + return UpdateManagementDnsZoneBindingRequest; + })(); + + v1.DeleteManagementDnsZoneBindingRequest = (function() { + + /** + * Properties of a DeleteManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IDeleteManagementDnsZoneBindingRequest + * @property {string|null} [name] DeleteManagementDnsZoneBindingRequest name + * @property {string|null} [requestId] DeleteManagementDnsZoneBindingRequest requestId + */ + + /** + * Constructs a new DeleteManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a DeleteManagementDnsZoneBindingRequest. + * @implements IDeleteManagementDnsZoneBindingRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest=} [properties] Properties to set + */ + function DeleteManagementDnsZoneBindingRequest(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]]; + } + + /** + * DeleteManagementDnsZoneBindingRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @instance + */ + DeleteManagementDnsZoneBindingRequest.prototype.name = ""; + + /** + * DeleteManagementDnsZoneBindingRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @instance + */ + DeleteManagementDnsZoneBindingRequest.prototype.requestId = ""; + + /** + * Creates a new DeleteManagementDnsZoneBindingRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest} DeleteManagementDnsZoneBindingRequest instance + */ + DeleteManagementDnsZoneBindingRequest.create = function create(properties) { + return new DeleteManagementDnsZoneBindingRequest(properties); + }; + + /** + * Encodes the specified DeleteManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest} message DeleteManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteManagementDnsZoneBindingRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified DeleteManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest} message DeleteManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteManagementDnsZoneBindingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest} DeleteManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteManagementDnsZoneBindingRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest} DeleteManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteManagementDnsZoneBindingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteManagementDnsZoneBindingRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteManagementDnsZoneBindingRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a DeleteManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest} DeleteManagementDnsZoneBindingRequest + */ + DeleteManagementDnsZoneBindingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest} message DeleteManagementDnsZoneBindingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteManagementDnsZoneBindingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this DeleteManagementDnsZoneBindingRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteManagementDnsZoneBindingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteManagementDnsZoneBindingRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteManagementDnsZoneBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest"; + }; + + return DeleteManagementDnsZoneBindingRequest; + })(); + + v1.RepairManagementDnsZoneBindingRequest = (function() { + + /** + * Properties of a RepairManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IRepairManagementDnsZoneBindingRequest + * @property {string|null} [name] RepairManagementDnsZoneBindingRequest name + * @property {string|null} [requestId] RepairManagementDnsZoneBindingRequest requestId + */ + + /** + * Constructs a new RepairManagementDnsZoneBindingRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a RepairManagementDnsZoneBindingRequest. + * @implements IRepairManagementDnsZoneBindingRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest=} [properties] Properties to set + */ + function RepairManagementDnsZoneBindingRequest(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]]; + } + + /** + * RepairManagementDnsZoneBindingRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @instance + */ + RepairManagementDnsZoneBindingRequest.prototype.name = ""; + + /** + * RepairManagementDnsZoneBindingRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @instance + */ + RepairManagementDnsZoneBindingRequest.prototype.requestId = ""; + + /** + * Creates a new RepairManagementDnsZoneBindingRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest} RepairManagementDnsZoneBindingRequest instance + */ + RepairManagementDnsZoneBindingRequest.create = function create(properties) { + return new RepairManagementDnsZoneBindingRequest(properties); + }; + + /** + * Encodes the specified RepairManagementDnsZoneBindingRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest} message RepairManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RepairManagementDnsZoneBindingRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified RepairManagementDnsZoneBindingRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest} message RepairManagementDnsZoneBindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RepairManagementDnsZoneBindingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RepairManagementDnsZoneBindingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest} RepairManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RepairManagementDnsZoneBindingRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RepairManagementDnsZoneBindingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest} RepairManagementDnsZoneBindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RepairManagementDnsZoneBindingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RepairManagementDnsZoneBindingRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RepairManagementDnsZoneBindingRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a RepairManagementDnsZoneBindingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest} RepairManagementDnsZoneBindingRequest + */ + RepairManagementDnsZoneBindingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a RepairManagementDnsZoneBindingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest} message RepairManagementDnsZoneBindingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RepairManagementDnsZoneBindingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this RepairManagementDnsZoneBindingRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @instance + * @returns {Object.} JSON object + */ + RepairManagementDnsZoneBindingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RepairManagementDnsZoneBindingRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RepairManagementDnsZoneBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest"; + }; + + return RepairManagementDnsZoneBindingRequest; + })(); + + v1.CreateVmwareEngineNetworkRequest = (function() { + + /** + * Properties of a CreateVmwareEngineNetworkRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface ICreateVmwareEngineNetworkRequest + * @property {string|null} [parent] CreateVmwareEngineNetworkRequest parent + * @property {string|null} [vmwareEngineNetworkId] CreateVmwareEngineNetworkRequest vmwareEngineNetworkId + * @property {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null} [vmwareEngineNetwork] CreateVmwareEngineNetworkRequest vmwareEngineNetwork + * @property {string|null} [requestId] CreateVmwareEngineNetworkRequest requestId + */ + + /** + * Constructs a new CreateVmwareEngineNetworkRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a CreateVmwareEngineNetworkRequest. + * @implements ICreateVmwareEngineNetworkRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest=} [properties] Properties to set + */ + function CreateVmwareEngineNetworkRequest(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]]; + } + + /** + * CreateVmwareEngineNetworkRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @instance + */ + CreateVmwareEngineNetworkRequest.prototype.parent = ""; + + /** + * CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. + * @member {string} vmwareEngineNetworkId + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @instance + */ + CreateVmwareEngineNetworkRequest.prototype.vmwareEngineNetworkId = ""; + + /** + * CreateVmwareEngineNetworkRequest vmwareEngineNetwork. + * @member {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null|undefined} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @instance + */ + CreateVmwareEngineNetworkRequest.prototype.vmwareEngineNetwork = null; + + /** + * CreateVmwareEngineNetworkRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @instance + */ + CreateVmwareEngineNetworkRequest.prototype.requestId = ""; + + /** + * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest instance + */ + CreateVmwareEngineNetworkRequest.create = function create(properties) { + return new CreateVmwareEngineNetworkRequest(properties); + }; + + /** + * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateVmwareEngineNetworkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.vmwareEngineNetworkId != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vmwareEngineNetworkId); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetwork, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateVmwareEngineNetworkRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.vmwareEngineNetworkId = reader.string(); + break; + } + case 3: { + message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateVmwareEngineNetworkRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateVmwareEngineNetworkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.vmwareEngineNetworkId != null && message.hasOwnProperty("vmwareEngineNetworkId")) + if (!$util.isString(message.vmwareEngineNetworkId)) + return "vmwareEngineNetworkId: string expected"; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { + var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetwork); + if (error) + return "vmwareEngineNetwork." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + */ + CreateVmwareEngineNetworkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.vmwareEngineNetworkId != null) + message.vmwareEngineNetworkId = String(object.vmwareEngineNetworkId); + if (object.vmwareEngineNetwork != null) { + if (typeof object.vmwareEngineNetwork !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.vmwareEngineNetwork: object expected"); + message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetwork); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.vmwareEngineNetworkId = ""; + object.vmwareEngineNetwork = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.vmwareEngineNetworkId != null && message.hasOwnProperty("vmwareEngineNetworkId")) + object.vmwareEngineNetworkId = message.vmwareEngineNetworkId; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetwork, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this CreateVmwareEngineNetworkRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @instance + * @returns {Object.} JSON object + */ + CreateVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateVmwareEngineNetworkRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest"; + }; + + return CreateVmwareEngineNetworkRequest; + })(); + + v1.UpdateVmwareEngineNetworkRequest = (function() { + + /** + * Properties of an UpdateVmwareEngineNetworkRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IUpdateVmwareEngineNetworkRequest + * @property {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null} [vmwareEngineNetwork] UpdateVmwareEngineNetworkRequest vmwareEngineNetwork + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVmwareEngineNetworkRequest updateMask + * @property {string|null} [requestId] UpdateVmwareEngineNetworkRequest requestId + */ + + /** + * Constructs a new UpdateVmwareEngineNetworkRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents an UpdateVmwareEngineNetworkRequest. + * @implements IUpdateVmwareEngineNetworkRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest=} [properties] Properties to set + */ + function UpdateVmwareEngineNetworkRequest(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]]; + } + + /** + * UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. + * @member {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null|undefined} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @instance + */ + UpdateVmwareEngineNetworkRequest.prototype.vmwareEngineNetwork = null; + + /** + * UpdateVmwareEngineNetworkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @instance + */ + UpdateVmwareEngineNetworkRequest.prototype.updateMask = null; + + /** + * UpdateVmwareEngineNetworkRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @instance + */ + UpdateVmwareEngineNetworkRequest.prototype.requestId = ""; + + /** + * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest instance + */ + UpdateVmwareEngineNetworkRequest.create = function create(properties) { + return new UpdateVmwareEngineNetworkRequest(properties); + }; + + /** + * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateVmwareEngineNetworkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetwork, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateVmwareEngineNetworkRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateVmwareEngineNetworkRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateVmwareEngineNetworkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { + var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetwork); + if (error) + return "vmwareEngineNetwork." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates an UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + */ + UpdateVmwareEngineNetworkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); + if (object.vmwareEngineNetwork != null) { + if (typeof object.vmwareEngineNetwork !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.vmwareEngineNetwork: object expected"); + message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetwork); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.vmwareEngineNetwork = null; + object.updateMask = null; + object.requestId = ""; + } + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetwork, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this UpdateVmwareEngineNetworkRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateVmwareEngineNetworkRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest"; + }; + + return UpdateVmwareEngineNetworkRequest; + })(); + + v1.DeleteVmwareEngineNetworkRequest = (function() { + + /** + * Properties of a DeleteVmwareEngineNetworkRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IDeleteVmwareEngineNetworkRequest + * @property {string|null} [name] DeleteVmwareEngineNetworkRequest name + * @property {string|null} [requestId] DeleteVmwareEngineNetworkRequest requestId + * @property {string|null} [etag] DeleteVmwareEngineNetworkRequest etag + */ + + /** + * Constructs a new DeleteVmwareEngineNetworkRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a DeleteVmwareEngineNetworkRequest. + * @implements IDeleteVmwareEngineNetworkRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest=} [properties] Properties to set + */ + function DeleteVmwareEngineNetworkRequest(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]]; + } + + /** + * DeleteVmwareEngineNetworkRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @instance + */ + DeleteVmwareEngineNetworkRequest.prototype.name = ""; + + /** + * DeleteVmwareEngineNetworkRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @instance + */ + DeleteVmwareEngineNetworkRequest.prototype.requestId = ""; + + /** + * DeleteVmwareEngineNetworkRequest etag. + * @member {string} etag + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @instance + */ + DeleteVmwareEngineNetworkRequest.prototype.etag = ""; + + /** + * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest instance + */ + DeleteVmwareEngineNetworkRequest.create = function create(properties) { + return new DeleteVmwareEngineNetworkRequest(properties); + }; + + /** + * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteVmwareEngineNetworkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + return writer; + }; + + /** + * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteVmwareEngineNetworkRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); + break; + } + case 3: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteVmwareEngineNetworkRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteVmwareEngineNetworkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; + + /** + * Creates a DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest + */ + DeleteVmwareEngineNetworkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; + + /** + * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.requestId = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; + + /** + * Converts this DeleteVmwareEngineNetworkRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteVmwareEngineNetworkRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest"; + }; + + return DeleteVmwareEngineNetworkRequest; + })(); + + v1.GetVmwareEngineNetworkRequest = (function() { + + /** + * Properties of a GetVmwareEngineNetworkRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IGetVmwareEngineNetworkRequest + * @property {string|null} [name] GetVmwareEngineNetworkRequest name + */ + + /** + * Constructs a new GetVmwareEngineNetworkRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a GetVmwareEngineNetworkRequest. + * @implements IGetVmwareEngineNetworkRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest=} [properties] Properties to set + */ + function GetVmwareEngineNetworkRequest(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]]; + } + + /** + * GetVmwareEngineNetworkRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @instance + */ + GetVmwareEngineNetworkRequest.prototype.name = ""; + + /** + * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest instance + */ + GetVmwareEngineNetworkRequest.create = function create(properties) { + return new GetVmwareEngineNetworkRequest(properties); + }; + + /** + * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVmwareEngineNetworkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVmwareEngineNetworkRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVmwareEngineNetworkRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVmwareEngineNetworkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest + */ + GetVmwareEngineNetworkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetVmwareEngineNetworkRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @instance + * @returns {Object.} JSON object + */ + GetVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVmwareEngineNetworkRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest"; + }; + + return GetVmwareEngineNetworkRequest; + })(); + + v1.ListVmwareEngineNetworksRequest = (function() { + + /** + * Properties of a ListVmwareEngineNetworksRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListVmwareEngineNetworksRequest + * @property {string|null} [parent] ListVmwareEngineNetworksRequest parent + * @property {number|null} [pageSize] ListVmwareEngineNetworksRequest pageSize + * @property {string|null} [pageToken] ListVmwareEngineNetworksRequest pageToken + * @property {string|null} [filter] ListVmwareEngineNetworksRequest filter + * @property {string|null} [orderBy] ListVmwareEngineNetworksRequest orderBy + */ + + /** + * Constructs a new ListVmwareEngineNetworksRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListVmwareEngineNetworksRequest. + * @implements IListVmwareEngineNetworksRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest=} [properties] Properties to set + */ + function ListVmwareEngineNetworksRequest(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]]; + } + + /** + * ListVmwareEngineNetworksRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @instance + */ + ListVmwareEngineNetworksRequest.prototype.parent = ""; + + /** + * ListVmwareEngineNetworksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @instance + */ + ListVmwareEngineNetworksRequest.prototype.pageSize = 0; + + /** + * ListVmwareEngineNetworksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @instance + */ + ListVmwareEngineNetworksRequest.prototype.pageToken = ""; + + /** + * ListVmwareEngineNetworksRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @instance + */ + ListVmwareEngineNetworksRequest.prototype.filter = ""; + + /** + * ListVmwareEngineNetworksRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @instance + */ + ListVmwareEngineNetworksRequest.prototype.orderBy = ""; + + /** + * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest instance + */ + ListVmwareEngineNetworksRequest.create = function create(properties) { + return new ListVmwareEngineNetworksRequest(properties); + }; + + /** + * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVmwareEngineNetworksRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVmwareEngineNetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListVmwareEngineNetworksRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListVmwareEngineNetworksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListVmwareEngineNetworksRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListVmwareEngineNetworksRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest + */ + ListVmwareEngineNetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListVmwareEngineNetworksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListVmwareEngineNetworksRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @instance + * @returns {Object.} JSON object + */ + ListVmwareEngineNetworksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListVmwareEngineNetworksRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListVmwareEngineNetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest"; + }; + + return ListVmwareEngineNetworksRequest; + })(); + + v1.ListVmwareEngineNetworksResponse = (function() { + + /** + * Properties of a ListVmwareEngineNetworksResponse. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListVmwareEngineNetworksResponse + * @property {Array.|null} [vmwareEngineNetworks] ListVmwareEngineNetworksResponse vmwareEngineNetworks + * @property {string|null} [nextPageToken] ListVmwareEngineNetworksResponse nextPageToken + * @property {Array.|null} [unreachable] ListVmwareEngineNetworksResponse unreachable + */ + + /** + * Constructs a new ListVmwareEngineNetworksResponse. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListVmwareEngineNetworksResponse. + * @implements IListVmwareEngineNetworksResponse + * @constructor + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse=} [properties] Properties to set + */ + function ListVmwareEngineNetworksResponse(properties) { + this.vmwareEngineNetworks = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListVmwareEngineNetworksResponse vmwareEngineNetworks. + * @member {Array.} vmwareEngineNetworks + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @instance + */ + ListVmwareEngineNetworksResponse.prototype.vmwareEngineNetworks = $util.emptyArray; + + /** + * ListVmwareEngineNetworksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @instance + */ + ListVmwareEngineNetworksResponse.prototype.nextPageToken = ""; + + /** + * ListVmwareEngineNetworksResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @instance + */ + ListVmwareEngineNetworksResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse instance + */ + ListVmwareEngineNetworksResponse.create = function create(properties) { + return new ListVmwareEngineNetworksResponse(properties); + }; + + /** + * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVmwareEngineNetworksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vmwareEngineNetworks != null && message.vmwareEngineNetworks.length) + for (var i = 0; i < message.vmwareEngineNetworks.length; ++i) + $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetworks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVmwareEngineNetworksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListVmwareEngineNetworksResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.vmwareEngineNetworks && message.vmwareEngineNetworks.length)) + message.vmwareEngineNetworks = []; + message.vmwareEngineNetworks.push($root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListVmwareEngineNetworksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListVmwareEngineNetworksResponse message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListVmwareEngineNetworksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vmwareEngineNetworks != null && message.hasOwnProperty("vmwareEngineNetworks")) { + if (!Array.isArray(message.vmwareEngineNetworks)) + return "vmwareEngineNetworks: array expected"; + for (var i = 0; i < message.vmwareEngineNetworks.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetworks[i]); + if (error) + return "vmwareEngineNetworks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse + */ + ListVmwareEngineNetworksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); + if (object.vmwareEngineNetworks) { + if (!Array.isArray(object.vmwareEngineNetworks)) + throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.vmwareEngineNetworks: array expected"); + message.vmwareEngineNetworks = []; + for (var i = 0; i < object.vmwareEngineNetworks.length; ++i) { + if (typeof object.vmwareEngineNetworks[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.vmwareEngineNetworks: object expected"); + message.vmwareEngineNetworks[i] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetworks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListVmwareEngineNetworksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.vmwareEngineNetworks = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.vmwareEngineNetworks && message.vmwareEngineNetworks.length) { + object.vmwareEngineNetworks = []; + for (var j = 0; j < message.vmwareEngineNetworks.length; ++j) + object.vmwareEngineNetworks[j] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetworks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; + + /** + * Converts this ListVmwareEngineNetworksResponse to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @instance + * @returns {Object.} JSON object + */ + ListVmwareEngineNetworksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListVmwareEngineNetworksResponse + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListVmwareEngineNetworksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse"; + }; + + return ListVmwareEngineNetworksResponse; + })(); + + v1.CreatePrivateConnectionRequest = (function() { + + /** + * Properties of a CreatePrivateConnectionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface ICreatePrivateConnectionRequest + * @property {string|null} [parent] CreatePrivateConnectionRequest parent + * @property {string|null} [privateConnectionId] CreatePrivateConnectionRequest privateConnectionId + * @property {google.cloud.vmwareengine.v1.IPrivateConnection|null} [privateConnection] CreatePrivateConnectionRequest privateConnection + * @property {string|null} [requestId] CreatePrivateConnectionRequest requestId + */ + + /** + * Constructs a new CreatePrivateConnectionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a CreatePrivateConnectionRequest. + * @implements ICreatePrivateConnectionRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest=} [properties] Properties to set + */ + function CreatePrivateConnectionRequest(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]]; + } + + /** + * CreatePrivateConnectionRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @instance + */ + CreatePrivateConnectionRequest.prototype.parent = ""; + + /** + * CreatePrivateConnectionRequest privateConnectionId. + * @member {string} privateConnectionId + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @instance + */ + CreatePrivateConnectionRequest.prototype.privateConnectionId = ""; + + /** + * CreatePrivateConnectionRequest privateConnection. + * @member {google.cloud.vmwareengine.v1.IPrivateConnection|null|undefined} privateConnection + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @instance + */ + CreatePrivateConnectionRequest.prototype.privateConnection = null; + + /** + * CreatePrivateConnectionRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @instance + */ + CreatePrivateConnectionRequest.prototype.requestId = ""; + + /** + * Creates a new CreatePrivateConnectionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} CreatePrivateConnectionRequest instance + */ + CreatePrivateConnectionRequest.create = function create(properties) { + return new CreatePrivateConnectionRequest(properties); + }; + + /** + * Encodes the specified CreatePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest} message CreatePrivateConnectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePrivateConnectionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.privateConnectionId != null && Object.hasOwnProperty.call(message, "privateConnectionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.privateConnectionId); + if (message.privateConnection != null && Object.hasOwnProperty.call(message, "privateConnection")) + $root.google.cloud.vmwareengine.v1.PrivateConnection.encode(message.privateConnection, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified CreatePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest} message CreatePrivateConnectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePrivateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreatePrivateConnectionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} CreatePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePrivateConnectionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.privateConnectionId = reader.string(); + break; + } + case 3: { + message.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreatePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} CreatePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePrivateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreatePrivateConnectionRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreatePrivateConnectionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.privateConnectionId != null && message.hasOwnProperty("privateConnectionId")) + if (!$util.isString(message.privateConnectionId)) + return "privateConnectionId: string expected"; + if (message.privateConnection != null && message.hasOwnProperty("privateConnection")) { + var error = $root.google.cloud.vmwareengine.v1.PrivateConnection.verify(message.privateConnection); + if (error) + return "privateConnection." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a CreatePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} CreatePrivateConnectionRequest + */ + CreatePrivateConnectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.privateConnectionId != null) + message.privateConnectionId = String(object.privateConnectionId); + if (object.privateConnection != null) { + if (typeof object.privateConnection !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.privateConnection: object expected"); + message.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.fromObject(object.privateConnection); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a CreatePrivateConnectionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} message CreatePrivateConnectionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreatePrivateConnectionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.privateConnectionId = ""; + object.privateConnection = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.privateConnectionId != null && message.hasOwnProperty("privateConnectionId")) + object.privateConnectionId = message.privateConnectionId; + if (message.privateConnection != null && message.hasOwnProperty("privateConnection")) + object.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.toObject(message.privateConnection, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this CreatePrivateConnectionRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @instance + * @returns {Object.} JSON object + */ + CreatePrivateConnectionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreatePrivateConnectionRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePrivateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest"; + }; + + return CreatePrivateConnectionRequest; + })(); + + v1.GetPrivateConnectionRequest = (function() { + + /** + * Properties of a GetPrivateConnectionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IGetPrivateConnectionRequest + * @property {string|null} [name] GetPrivateConnectionRequest name + */ + + /** + * Constructs a new GetPrivateConnectionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a GetPrivateConnectionRequest. + * @implements IGetPrivateConnectionRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest=} [properties] Properties to set + */ + function GetPrivateConnectionRequest(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]]; + } + + /** + * GetPrivateConnectionRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @instance + */ + GetPrivateConnectionRequest.prototype.name = ""; + + /** + * Creates a new GetPrivateConnectionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} GetPrivateConnectionRequest instance + */ + GetPrivateConnectionRequest.create = function create(properties) { + return new GetPrivateConnectionRequest(properties); + }; + + /** + * Encodes the specified GetPrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest} message GetPrivateConnectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPrivateConnectionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetPrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest} message GetPrivateConnectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPrivateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetPrivateConnectionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} GetPrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPrivateConnectionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetPrivateConnectionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} GetPrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPrivateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetPrivateConnectionRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetPrivateConnectionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetPrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} GetPrivateConnectionRequest + */ + GetPrivateConnectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetPrivateConnectionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} message GetPrivateConnectionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetPrivateConnectionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetPrivateConnectionRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @instance + * @returns {Object.} JSON object + */ + GetPrivateConnectionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetPrivateConnectionRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetPrivateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetPrivateConnectionRequest"; + }; + + return GetPrivateConnectionRequest; + })(); + + v1.ListPrivateConnectionsRequest = (function() { + + /** + * Properties of a ListPrivateConnectionsRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListPrivateConnectionsRequest + * @property {string|null} [parent] ListPrivateConnectionsRequest parent + * @property {number|null} [pageSize] ListPrivateConnectionsRequest pageSize + * @property {string|null} [pageToken] ListPrivateConnectionsRequest pageToken + * @property {string|null} [filter] ListPrivateConnectionsRequest filter + * @property {string|null} [orderBy] ListPrivateConnectionsRequest orderBy + */ + + /** + * Constructs a new ListPrivateConnectionsRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListPrivateConnectionsRequest. + * @implements IListPrivateConnectionsRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest=} [properties] Properties to set + */ + function ListPrivateConnectionsRequest(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]]; + } + + /** + * ListPrivateConnectionsRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @instance + */ + ListPrivateConnectionsRequest.prototype.parent = ""; + + /** + * ListPrivateConnectionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @instance + */ + ListPrivateConnectionsRequest.prototype.pageSize = 0; + + /** + * ListPrivateConnectionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @instance + */ + ListPrivateConnectionsRequest.prototype.pageToken = ""; + + /** + * ListPrivateConnectionsRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @instance + */ + ListPrivateConnectionsRequest.prototype.filter = ""; + + /** + * ListPrivateConnectionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @instance + */ + ListPrivateConnectionsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListPrivateConnectionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} ListPrivateConnectionsRequest instance + */ + ListPrivateConnectionsRequest.create = function create(properties) { + return new ListPrivateConnectionsRequest(properties); + }; + + /** + * Encodes the specified ListPrivateConnectionsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest} message ListPrivateConnectionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPrivateConnectionsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListPrivateConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsRequest} message ListPrivateConnectionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPrivateConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPrivateConnectionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} ListPrivateConnectionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPrivateConnectionsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPrivateConnectionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} ListPrivateConnectionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPrivateConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPrivateConnectionsRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPrivateConnectionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListPrivateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} ListPrivateConnectionsRequest + */ + ListPrivateConnectionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListPrivateConnectionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} message ListPrivateConnectionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPrivateConnectionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListPrivateConnectionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListPrivateConnectionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPrivateConnectionsRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPrivateConnectionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest"; + }; + + return ListPrivateConnectionsRequest; + })(); + + v1.ListPrivateConnectionsResponse = (function() { + + /** + * Properties of a ListPrivateConnectionsResponse. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListPrivateConnectionsResponse + * @property {Array.|null} [privateConnections] ListPrivateConnectionsResponse privateConnections + * @property {string|null} [nextPageToken] ListPrivateConnectionsResponse nextPageToken + * @property {Array.|null} [unreachable] ListPrivateConnectionsResponse unreachable + */ + + /** + * Constructs a new ListPrivateConnectionsResponse. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListPrivateConnectionsResponse. + * @implements IListPrivateConnectionsResponse + * @constructor + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse=} [properties] Properties to set + */ + function ListPrivateConnectionsResponse(properties) { + this.privateConnections = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListPrivateConnectionsResponse privateConnections. + * @member {Array.} privateConnections + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @instance + */ + ListPrivateConnectionsResponse.prototype.privateConnections = $util.emptyArray; + + /** + * ListPrivateConnectionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @instance + */ + ListPrivateConnectionsResponse.prototype.nextPageToken = ""; + + /** + * ListPrivateConnectionsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @instance + */ + ListPrivateConnectionsResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListPrivateConnectionsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} ListPrivateConnectionsResponse instance + */ + ListPrivateConnectionsResponse.create = function create(properties) { + return new ListPrivateConnectionsResponse(properties); + }; + + /** + * Encodes the specified ListPrivateConnectionsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse} message ListPrivateConnectionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPrivateConnectionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.privateConnections != null && message.privateConnections.length) + for (var i = 0; i < message.privateConnections.length; ++i) + $root.google.cloud.vmwareengine.v1.PrivateConnection.encode(message.privateConnections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListPrivateConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionsResponse} message ListPrivateConnectionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPrivateConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPrivateConnectionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} ListPrivateConnectionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPrivateConnectionsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.privateConnections && message.privateConnections.length)) + message.privateConnections = []; + message.privateConnections.push($root.google.cloud.vmwareengine.v1.PrivateConnection.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPrivateConnectionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} ListPrivateConnectionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPrivateConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPrivateConnectionsResponse message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPrivateConnectionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.privateConnections != null && message.hasOwnProperty("privateConnections")) { + if (!Array.isArray(message.privateConnections)) + return "privateConnections: array expected"; + for (var i = 0; i < message.privateConnections.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.PrivateConnection.verify(message.privateConnections[i]); + if (error) + return "privateConnections." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListPrivateConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} ListPrivateConnectionsResponse + */ + ListPrivateConnectionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse(); + if (object.privateConnections) { + if (!Array.isArray(object.privateConnections)) + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.privateConnections: array expected"); + message.privateConnections = []; + for (var i = 0; i < object.privateConnections.length; ++i) { + if (typeof object.privateConnections[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.privateConnections: object expected"); + message.privateConnections[i] = $root.google.cloud.vmwareengine.v1.PrivateConnection.fromObject(object.privateConnections[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListPrivateConnectionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} message ListPrivateConnectionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPrivateConnectionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.privateConnections = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.privateConnections && message.privateConnections.length) { + object.privateConnections = []; + for (var j = 0; j < message.privateConnections.length; ++j) + object.privateConnections[j] = $root.google.cloud.vmwareengine.v1.PrivateConnection.toObject(message.privateConnections[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; + + /** + * Converts this ListPrivateConnectionsResponse to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListPrivateConnectionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPrivateConnectionsResponse + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPrivateConnectionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse"; + }; + + return ListPrivateConnectionsResponse; + })(); + + v1.UpdatePrivateConnectionRequest = (function() { + + /** + * Properties of an UpdatePrivateConnectionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IUpdatePrivateConnectionRequest + * @property {google.cloud.vmwareengine.v1.IPrivateConnection|null} [privateConnection] UpdatePrivateConnectionRequest privateConnection + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePrivateConnectionRequest updateMask + * @property {string|null} [requestId] UpdatePrivateConnectionRequest requestId + */ + + /** + * Constructs a new UpdatePrivateConnectionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents an UpdatePrivateConnectionRequest. + * @implements IUpdatePrivateConnectionRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest=} [properties] Properties to set + */ + function UpdatePrivateConnectionRequest(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]]; + } + + /** + * UpdatePrivateConnectionRequest privateConnection. + * @member {google.cloud.vmwareengine.v1.IPrivateConnection|null|undefined} privateConnection + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @instance + */ + UpdatePrivateConnectionRequest.prototype.privateConnection = null; + + /** + * UpdatePrivateConnectionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @instance + */ + UpdatePrivateConnectionRequest.prototype.updateMask = null; + + /** + * UpdatePrivateConnectionRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @instance + */ + UpdatePrivateConnectionRequest.prototype.requestId = ""; + + /** + * Creates a new UpdatePrivateConnectionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} UpdatePrivateConnectionRequest instance + */ + UpdatePrivateConnectionRequest.create = function create(properties) { + return new UpdatePrivateConnectionRequest(properties); + }; + + /** + * Encodes the specified UpdatePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest} message UpdatePrivateConnectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePrivateConnectionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.privateConnection != null && Object.hasOwnProperty.call(message, "privateConnection")) + $root.google.cloud.vmwareengine.v1.PrivateConnection.encode(message.privateConnection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified UpdatePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest} message UpdatePrivateConnectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePrivateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdatePrivateConnectionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} UpdatePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePrivateConnectionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdatePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} UpdatePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePrivateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdatePrivateConnectionRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdatePrivateConnectionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.privateConnection != null && message.hasOwnProperty("privateConnection")) { + var error = $root.google.cloud.vmwareengine.v1.PrivateConnection.verify(message.privateConnection); + if (error) + return "privateConnection." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates an UpdatePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} UpdatePrivateConnectionRequest + */ + UpdatePrivateConnectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest(); + if (object.privateConnection != null) { + if (typeof object.privateConnection !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.privateConnection: object expected"); + message.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.fromObject(object.privateConnection); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an UpdatePrivateConnectionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} message UpdatePrivateConnectionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdatePrivateConnectionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.privateConnection = null; + object.updateMask = null; + object.requestId = ""; + } + if (message.privateConnection != null && message.hasOwnProperty("privateConnection")) + object.privateConnection = $root.google.cloud.vmwareengine.v1.PrivateConnection.toObject(message.privateConnection, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this UpdatePrivateConnectionRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @instance + * @returns {Object.} JSON object + */ + UpdatePrivateConnectionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdatePrivateConnectionRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePrivateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest"; + }; + + return UpdatePrivateConnectionRequest; + })(); + + v1.DeletePrivateConnectionRequest = (function() { + + /** + * Properties of a DeletePrivateConnectionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IDeletePrivateConnectionRequest + * @property {string|null} [name] DeletePrivateConnectionRequest name + * @property {string|null} [requestId] DeletePrivateConnectionRequest requestId + */ + + /** + * Constructs a new DeletePrivateConnectionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a DeletePrivateConnectionRequest. + * @implements IDeletePrivateConnectionRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest=} [properties] Properties to set + */ + function DeletePrivateConnectionRequest(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]]; + } + + /** + * DeletePrivateConnectionRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @instance + */ + DeletePrivateConnectionRequest.prototype.name = ""; + + /** + * DeletePrivateConnectionRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @instance + */ + DeletePrivateConnectionRequest.prototype.requestId = ""; + + /** + * Creates a new DeletePrivateConnectionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} DeletePrivateConnectionRequest instance + */ + DeletePrivateConnectionRequest.create = function create(properties) { + return new DeletePrivateConnectionRequest(properties); + }; + + /** + * Encodes the specified DeletePrivateConnectionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest} message DeletePrivateConnectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePrivateConnectionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified DeletePrivateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest} message DeletePrivateConnectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePrivateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeletePrivateConnectionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} DeletePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePrivateConnectionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeletePrivateConnectionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} DeletePrivateConnectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePrivateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeletePrivateConnectionRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeletePrivateConnectionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a DeletePrivateConnectionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} DeletePrivateConnectionRequest + */ + DeletePrivateConnectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeletePrivateConnectionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} message DeletePrivateConnectionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeletePrivateConnectionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this DeletePrivateConnectionRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @instance + * @returns {Object.} JSON object + */ + DeletePrivateConnectionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeletePrivateConnectionRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeletePrivateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest"; + }; + + return DeletePrivateConnectionRequest; + })(); + + v1.ListPrivateConnectionPeeringRoutesRequest = (function() { + + /** + * Properties of a ListPrivateConnectionPeeringRoutesRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListPrivateConnectionPeeringRoutesRequest + * @property {string|null} [parent] ListPrivateConnectionPeeringRoutesRequest parent + * @property {number|null} [pageSize] ListPrivateConnectionPeeringRoutesRequest pageSize + * @property {string|null} [pageToken] ListPrivateConnectionPeeringRoutesRequest pageToken + */ + + /** + * Constructs a new ListPrivateConnectionPeeringRoutesRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListPrivateConnectionPeeringRoutesRequest. + * @implements IListPrivateConnectionPeeringRoutesRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest=} [properties] Properties to set + */ + function ListPrivateConnectionPeeringRoutesRequest(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]]; + } + + /** + * ListPrivateConnectionPeeringRoutesRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @instance + */ + ListPrivateConnectionPeeringRoutesRequest.prototype.parent = ""; + + /** + * ListPrivateConnectionPeeringRoutesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @instance + */ + ListPrivateConnectionPeeringRoutesRequest.prototype.pageSize = 0; + + /** + * ListPrivateConnectionPeeringRoutesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @instance + */ + ListPrivateConnectionPeeringRoutesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListPrivateConnectionPeeringRoutesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} ListPrivateConnectionPeeringRoutesRequest instance + */ + ListPrivateConnectionPeeringRoutesRequest.create = function create(properties) { + return new ListPrivateConnectionPeeringRoutesRequest(properties); + }; + + /** + * Encodes the specified ListPrivateConnectionPeeringRoutesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest} message ListPrivateConnectionPeeringRoutesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPrivateConnectionPeeringRoutesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListPrivateConnectionPeeringRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesRequest} message ListPrivateConnectionPeeringRoutesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPrivateConnectionPeeringRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPrivateConnectionPeeringRoutesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} ListPrivateConnectionPeeringRoutesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPrivateConnectionPeeringRoutesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPrivateConnectionPeeringRoutesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} ListPrivateConnectionPeeringRoutesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPrivateConnectionPeeringRoutesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPrivateConnectionPeeringRoutesRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPrivateConnectionPeeringRoutesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListPrivateConnectionPeeringRoutesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} ListPrivateConnectionPeeringRoutesRequest + */ + ListPrivateConnectionPeeringRoutesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListPrivateConnectionPeeringRoutesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} message ListPrivateConnectionPeeringRoutesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPrivateConnectionPeeringRoutesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListPrivateConnectionPeeringRoutesRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPrivateConnectionPeeringRoutesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPrivateConnectionPeeringRoutesRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPrivateConnectionPeeringRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest"; + }; + + return ListPrivateConnectionPeeringRoutesRequest; + })(); + + v1.ListPrivateConnectionPeeringRoutesResponse = (function() { + + /** + * Properties of a ListPrivateConnectionPeeringRoutesResponse. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListPrivateConnectionPeeringRoutesResponse + * @property {Array.|null} [peeringRoutes] ListPrivateConnectionPeeringRoutesResponse peeringRoutes + * @property {string|null} [nextPageToken] ListPrivateConnectionPeeringRoutesResponse nextPageToken + */ + + /** + * Constructs a new ListPrivateConnectionPeeringRoutesResponse. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListPrivateConnectionPeeringRoutesResponse. + * @implements IListPrivateConnectionPeeringRoutesResponse + * @constructor + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse=} [properties] Properties to set + */ + function ListPrivateConnectionPeeringRoutesResponse(properties) { + this.peeringRoutes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListPrivateConnectionPeeringRoutesResponse peeringRoutes. + * @member {Array.} peeringRoutes + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @instance + */ + ListPrivateConnectionPeeringRoutesResponse.prototype.peeringRoutes = $util.emptyArray; + + /** + * ListPrivateConnectionPeeringRoutesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @instance + */ + ListPrivateConnectionPeeringRoutesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPrivateConnectionPeeringRoutesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} ListPrivateConnectionPeeringRoutesResponse instance + */ + ListPrivateConnectionPeeringRoutesResponse.create = function create(properties) { + return new ListPrivateConnectionPeeringRoutesResponse(properties); + }; + + /** + * Encodes the specified ListPrivateConnectionPeeringRoutesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse} message ListPrivateConnectionPeeringRoutesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPrivateConnectionPeeringRoutesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.peeringRoutes != null && message.peeringRoutes.length) + for (var i = 0; i < message.peeringRoutes.length; ++i) + $root.google.cloud.vmwareengine.v1.PeeringRoute.encode(message.peeringRoutes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListPrivateConnectionPeeringRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {google.cloud.vmwareengine.v1.IListPrivateConnectionPeeringRoutesResponse} message ListPrivateConnectionPeeringRoutesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPrivateConnectionPeeringRoutesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPrivateConnectionPeeringRoutesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} ListPrivateConnectionPeeringRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPrivateConnectionPeeringRoutesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.peeringRoutes && message.peeringRoutes.length)) + message.peeringRoutes = []; + message.peeringRoutes.push($root.google.cloud.vmwareengine.v1.PeeringRoute.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPrivateConnectionPeeringRoutesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} ListPrivateConnectionPeeringRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPrivateConnectionPeeringRoutesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPrivateConnectionPeeringRoutesResponse message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPrivateConnectionPeeringRoutesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.peeringRoutes != null && message.hasOwnProperty("peeringRoutes")) { + if (!Array.isArray(message.peeringRoutes)) + return "peeringRoutes: array expected"; + for (var i = 0; i < message.peeringRoutes.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.PeeringRoute.verify(message.peeringRoutes[i]); + if (error) + return "peeringRoutes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPrivateConnectionPeeringRoutesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} ListPrivateConnectionPeeringRoutesResponse + */ + ListPrivateConnectionPeeringRoutesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse(); + if (object.peeringRoutes) { + if (!Array.isArray(object.peeringRoutes)) + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.peeringRoutes: array expected"); + message.peeringRoutes = []; + for (var i = 0; i < object.peeringRoutes.length; ++i) { + if (typeof object.peeringRoutes[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.peeringRoutes: object expected"); + message.peeringRoutes[i] = $root.google.cloud.vmwareengine.v1.PeeringRoute.fromObject(object.peeringRoutes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPrivateConnectionPeeringRoutesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} message ListPrivateConnectionPeeringRoutesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPrivateConnectionPeeringRoutesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.peeringRoutes = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.peeringRoutes && message.peeringRoutes.length) { + object.peeringRoutes = []; + for (var j = 0; j < message.peeringRoutes.length; ++j) + object.peeringRoutes[j] = $root.google.cloud.vmwareengine.v1.PeeringRoute.toObject(message.peeringRoutes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPrivateConnectionPeeringRoutesResponse to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @instance + * @returns {Object.} JSON object + */ + ListPrivateConnectionPeeringRoutesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPrivateConnectionPeeringRoutesResponse + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPrivateConnectionPeeringRoutesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse"; + }; + + return ListPrivateConnectionPeeringRoutesResponse; + })(); + + v1.GrantDnsBindPermissionRequest = (function() { + + /** + * Properties of a GrantDnsBindPermissionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IGrantDnsBindPermissionRequest + * @property {string|null} [name] GrantDnsBindPermissionRequest name + * @property {google.cloud.vmwareengine.v1.IPrincipal|null} [principal] GrantDnsBindPermissionRequest principal + * @property {string|null} [requestId] GrantDnsBindPermissionRequest requestId + */ + + /** + * Constructs a new GrantDnsBindPermissionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a GrantDnsBindPermissionRequest. + * @implements IGrantDnsBindPermissionRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest=} [properties] Properties to set + */ + function GrantDnsBindPermissionRequest(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]]; + } + + /** + * GrantDnsBindPermissionRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @instance + */ + GrantDnsBindPermissionRequest.prototype.name = ""; + + /** + * GrantDnsBindPermissionRequest principal. + * @member {google.cloud.vmwareengine.v1.IPrincipal|null|undefined} principal + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @instance + */ + GrantDnsBindPermissionRequest.prototype.principal = null; + + /** + * GrantDnsBindPermissionRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @instance + */ + GrantDnsBindPermissionRequest.prototype.requestId = ""; + + /** + * Creates a new GrantDnsBindPermissionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest} GrantDnsBindPermissionRequest instance + */ + GrantDnsBindPermissionRequest.create = function create(properties) { + return new GrantDnsBindPermissionRequest(properties); + }; + + /** + * Encodes the specified GrantDnsBindPermissionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest} message GrantDnsBindPermissionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GrantDnsBindPermissionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.principal != null && Object.hasOwnProperty.call(message, "principal")) + $root.google.cloud.vmwareengine.v1.Principal.encode(message.principal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified GrantDnsBindPermissionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest} message GrantDnsBindPermissionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GrantDnsBindPermissionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GrantDnsBindPermissionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest} GrantDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GrantDnsBindPermissionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.principal = $root.google.cloud.vmwareengine.v1.Principal.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GrantDnsBindPermissionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest} GrantDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GrantDnsBindPermissionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GrantDnsBindPermissionRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GrantDnsBindPermissionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.principal != null && message.hasOwnProperty("principal")) { + var error = $root.google.cloud.vmwareengine.v1.Principal.verify(message.principal); + if (error) + return "principal." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a GrantDnsBindPermissionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest} GrantDnsBindPermissionRequest + */ + GrantDnsBindPermissionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.principal != null) { + if (typeof object.principal !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.principal: object expected"); + message.principal = $root.google.cloud.vmwareengine.v1.Principal.fromObject(object.principal); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a GrantDnsBindPermissionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest} message GrantDnsBindPermissionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GrantDnsBindPermissionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.principal = null; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.principal != null && message.hasOwnProperty("principal")) + object.principal = $root.google.cloud.vmwareengine.v1.Principal.toObject(message.principal, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this GrantDnsBindPermissionRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @instance + * @returns {Object.} JSON object + */ + GrantDnsBindPermissionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GrantDnsBindPermissionRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GrantDnsBindPermissionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest"; + }; + + return GrantDnsBindPermissionRequest; + })(); + + v1.RevokeDnsBindPermissionRequest = (function() { + + /** + * Properties of a RevokeDnsBindPermissionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IRevokeDnsBindPermissionRequest + * @property {string|null} [name] RevokeDnsBindPermissionRequest name + * @property {google.cloud.vmwareengine.v1.IPrincipal|null} [principal] RevokeDnsBindPermissionRequest principal + * @property {string|null} [requestId] RevokeDnsBindPermissionRequest requestId + */ + + /** + * Constructs a new RevokeDnsBindPermissionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a RevokeDnsBindPermissionRequest. + * @implements IRevokeDnsBindPermissionRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest=} [properties] Properties to set + */ + function RevokeDnsBindPermissionRequest(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]]; + } + + /** + * RevokeDnsBindPermissionRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @instance + */ + RevokeDnsBindPermissionRequest.prototype.name = ""; + + /** + * RevokeDnsBindPermissionRequest principal. + * @member {google.cloud.vmwareengine.v1.IPrincipal|null|undefined} principal + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @instance + */ + RevokeDnsBindPermissionRequest.prototype.principal = null; + + /** + * RevokeDnsBindPermissionRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @instance + */ + RevokeDnsBindPermissionRequest.prototype.requestId = ""; + + /** + * Creates a new RevokeDnsBindPermissionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest} RevokeDnsBindPermissionRequest instance + */ + RevokeDnsBindPermissionRequest.create = function create(properties) { + return new RevokeDnsBindPermissionRequest(properties); + }; + + /** + * Encodes the specified RevokeDnsBindPermissionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest} message RevokeDnsBindPermissionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RevokeDnsBindPermissionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.principal != null && Object.hasOwnProperty.call(message, "principal")) + $root.google.cloud.vmwareengine.v1.Principal.encode(message.principal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified RevokeDnsBindPermissionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest} message RevokeDnsBindPermissionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RevokeDnsBindPermissionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RevokeDnsBindPermissionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest} RevokeDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RevokeDnsBindPermissionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.principal = $root.google.cloud.vmwareengine.v1.Principal.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RevokeDnsBindPermissionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest} RevokeDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RevokeDnsBindPermissionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RevokeDnsBindPermissionRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RevokeDnsBindPermissionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.principal != null && message.hasOwnProperty("principal")) { + var error = $root.google.cloud.vmwareengine.v1.Principal.verify(message.principal); + if (error) + return "principal." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a RevokeDnsBindPermissionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest} RevokeDnsBindPermissionRequest + */ + RevokeDnsBindPermissionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.principal != null) { + if (typeof object.principal !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.principal: object expected"); + message.principal = $root.google.cloud.vmwareengine.v1.Principal.fromObject(object.principal); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a RevokeDnsBindPermissionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest} message RevokeDnsBindPermissionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RevokeDnsBindPermissionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.principal = null; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.principal != null && message.hasOwnProperty("principal")) + object.principal = $root.google.cloud.vmwareengine.v1.Principal.toObject(message.principal, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this RevokeDnsBindPermissionRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @instance + * @returns {Object.} JSON object + */ + RevokeDnsBindPermissionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RevokeDnsBindPermissionRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RevokeDnsBindPermissionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest"; + }; + + return RevokeDnsBindPermissionRequest; + })(); + + v1.GetDnsBindPermissionRequest = (function() { + + /** + * Properties of a GetDnsBindPermissionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IGetDnsBindPermissionRequest + * @property {string|null} [name] GetDnsBindPermissionRequest name + */ + + /** + * Constructs a new GetDnsBindPermissionRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a GetDnsBindPermissionRequest. + * @implements IGetDnsBindPermissionRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest=} [properties] Properties to set + */ + function GetDnsBindPermissionRequest(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]]; + } + + /** + * GetDnsBindPermissionRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @instance + */ + GetDnsBindPermissionRequest.prototype.name = ""; + + /** + * Creates a new GetDnsBindPermissionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest} GetDnsBindPermissionRequest instance + */ + GetDnsBindPermissionRequest.create = function create(properties) { + return new GetDnsBindPermissionRequest(properties); + }; + + /** + * Encodes the specified GetDnsBindPermissionRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest} message GetDnsBindPermissionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDnsBindPermissionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetDnsBindPermissionRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest} message GetDnsBindPermissionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDnsBindPermissionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDnsBindPermissionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest} GetDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDnsBindPermissionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetDnsBindPermissionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest} GetDnsBindPermissionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDnsBindPermissionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDnsBindPermissionRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDnsBindPermissionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetDnsBindPermissionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest} GetDnsBindPermissionRequest + */ + GetDnsBindPermissionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDnsBindPermissionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest} message GetDnsBindPermissionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDnsBindPermissionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetDnsBindPermissionRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @instance + * @returns {Object.} JSON object + */ + GetDnsBindPermissionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetDnsBindPermissionRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDnsBindPermissionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest"; + }; + + return GetDnsBindPermissionRequest; + })(); + + v1.NetworkConfig = (function() { + + /** + * Properties of a NetworkConfig. + * @memberof google.cloud.vmwareengine.v1 + * @interface INetworkConfig + * @property {string|null} [managementCidr] NetworkConfig managementCidr + * @property {string|null} [vmwareEngineNetwork] NetworkConfig vmwareEngineNetwork + * @property {string|null} [vmwareEngineNetworkCanonical] NetworkConfig vmwareEngineNetworkCanonical + * @property {number|null} [managementIpAddressLayoutVersion] NetworkConfig managementIpAddressLayoutVersion + * @property {string|null} [dnsServerIp] NetworkConfig dnsServerIp + */ + + /** + * Constructs a new NetworkConfig. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a NetworkConfig. + * @implements INetworkConfig + * @constructor + * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set + */ + function NetworkConfig(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]]; + } + + /** + * NetworkConfig managementCidr. + * @member {string} managementCidr + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.managementCidr = ""; + + /** + * NetworkConfig vmwareEngineNetwork. + * @member {string} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.vmwareEngineNetwork = ""; + + /** + * NetworkConfig vmwareEngineNetworkCanonical. + * @member {string} vmwareEngineNetworkCanonical + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.vmwareEngineNetworkCanonical = ""; + + /** + * NetworkConfig managementIpAddressLayoutVersion. + * @member {number} managementIpAddressLayoutVersion + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.managementIpAddressLayoutVersion = 0; + + /** + * NetworkConfig dnsServerIp. + * @member {string} dnsServerIp + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.dnsServerIp = ""; + + /** + * Creates a new NetworkConfig instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig instance + */ + NetworkConfig.create = function create(properties) { + return new NetworkConfig(properties); + }; + + /** + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.managementCidr != null && Object.hasOwnProperty.call(message, "managementCidr")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.managementCidr); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.vmwareEngineNetwork); + if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.vmwareEngineNetworkCanonical); + if (message.managementIpAddressLayoutVersion != null && Object.hasOwnProperty.call(message, "managementIpAddressLayoutVersion")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.managementIpAddressLayoutVersion); + if (message.dnsServerIp != null && Object.hasOwnProperty.call(message, "dnsServerIp")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.dnsServerIp); + return writer; + }; + + /** + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.managementCidr = reader.string(); + break; + } + case 5: { + message.vmwareEngineNetwork = reader.string(); + break; + } + case 6: { + message.vmwareEngineNetworkCanonical = reader.string(); + break; + } + case 8: { + message.managementIpAddressLayoutVersion = reader.int32(); + break; + } + case 9: { + message.dnsServerIp = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkConfig message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.managementCidr != null && message.hasOwnProperty("managementCidr")) + if (!$util.isString(message.managementCidr)) + return "managementCidr: string expected"; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + if (!$util.isString(message.vmwareEngineNetwork)) + return "vmwareEngineNetwork: string expected"; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + if (!$util.isString(message.vmwareEngineNetworkCanonical)) + return "vmwareEngineNetworkCanonical: string expected"; + if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion")) + if (!$util.isInteger(message.managementIpAddressLayoutVersion)) + return "managementIpAddressLayoutVersion: integer expected"; + if (message.dnsServerIp != null && message.hasOwnProperty("dnsServerIp")) + if (!$util.isString(message.dnsServerIp)) + return "dnsServerIp: string expected"; + return null; + }; + + /** + * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + */ + NetworkConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkConfig) + return object; + var message = new $root.google.cloud.vmwareengine.v1.NetworkConfig(); + if (object.managementCidr != null) + message.managementCidr = String(object.managementCidr); + if (object.vmwareEngineNetwork != null) + message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); + if (object.vmwareEngineNetworkCanonical != null) + message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); + if (object.managementIpAddressLayoutVersion != null) + message.managementIpAddressLayoutVersion = object.managementIpAddressLayoutVersion | 0; + if (object.dnsServerIp != null) + message.dnsServerIp = String(object.dnsServerIp); + return message; + }; + + /** + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {google.cloud.vmwareengine.v1.NetworkConfig} message NetworkConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.managementCidr = ""; + object.vmwareEngineNetwork = ""; + object.vmwareEngineNetworkCanonical = ""; + object.managementIpAddressLayoutVersion = 0; + object.dnsServerIp = ""; + } + if (message.managementCidr != null && message.hasOwnProperty("managementCidr")) + object.managementCidr = message.managementCidr; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = message.vmwareEngineNetwork; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; + if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion")) + object.managementIpAddressLayoutVersion = message.managementIpAddressLayoutVersion; + if (message.dnsServerIp != null && message.hasOwnProperty("dnsServerIp")) + object.dnsServerIp = message.dnsServerIp; + return object; + }; + + /** + * Converts this NetworkConfig to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @instance + * @returns {Object.} JSON object + */ + NetworkConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkConfig + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkConfig"; + }; + + return NetworkConfig; + })(); + + v1.NodeTypeConfig = (function() { + + /** + * Properties of a NodeTypeConfig. + * @memberof google.cloud.vmwareengine.v1 + * @interface INodeTypeConfig + * @property {number|null} [nodeCount] NodeTypeConfig nodeCount + * @property {number|null} [customCoreCount] NodeTypeConfig customCoreCount + */ + + /** + * Constructs a new NodeTypeConfig. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a NodeTypeConfig. + * @implements INodeTypeConfig + * @constructor + * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set + */ + function NodeTypeConfig(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]]; + } + + /** + * NodeTypeConfig nodeCount. + * @member {number} nodeCount + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @instance + */ + NodeTypeConfig.prototype.nodeCount = 0; + + /** + * NodeTypeConfig customCoreCount. + * @member {number} customCoreCount + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @instance + */ + NodeTypeConfig.prototype.customCoreCount = 0; + + /** + * Creates a new NodeTypeConfig instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig instance + */ + NodeTypeConfig.create = function create(properties) { + return new NodeTypeConfig(properties); + }; + + /** + * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeTypeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nodeCount); + if (message.customCoreCount != null && Object.hasOwnProperty.call(message, "customCoreCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.customCoreCount); + return writer; + }; + + /** + * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeTypeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeTypeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeTypeConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.nodeCount = reader.int32(); + break; + } + case 2: { + message.customCoreCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeTypeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeTypeConfig message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeTypeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (!$util.isInteger(message.nodeCount)) + return "nodeCount: integer expected"; + if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) + if (!$util.isInteger(message.customCoreCount)) + return "customCoreCount: integer expected"; + return null; + }; + + /** + * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + */ + NodeTypeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NodeTypeConfig) + return object; + var message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig(); + if (object.nodeCount != null) + message.nodeCount = object.nodeCount | 0; + if (object.customCoreCount != null) + message.customCoreCount = object.customCoreCount | 0; + return message; + }; + + /** + * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {google.cloud.vmwareengine.v1.NodeTypeConfig} message NodeTypeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeTypeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.nodeCount = 0; + object.customCoreCount = 0; + } + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + object.nodeCount = message.nodeCount; + if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) + object.customCoreCount = message.customCoreCount; + return object; + }; + + /** + * Converts this NodeTypeConfig to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @instance + * @returns {Object.} JSON object + */ + NodeTypeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodeTypeConfig + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeTypeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeTypeConfig"; + }; + + return NodeTypeConfig; + })(); + + v1.StretchedClusterConfig = (function() { + + /** + * Properties of a StretchedClusterConfig. + * @memberof google.cloud.vmwareengine.v1 + * @interface IStretchedClusterConfig + * @property {string|null} [preferredLocation] StretchedClusterConfig preferredLocation + * @property {string|null} [secondaryLocation] StretchedClusterConfig secondaryLocation + */ + + /** + * Constructs a new StretchedClusterConfig. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a StretchedClusterConfig. + * @implements IStretchedClusterConfig + * @constructor + * @param {google.cloud.vmwareengine.v1.IStretchedClusterConfig=} [properties] Properties to set + */ + function StretchedClusterConfig(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]]; + } + + /** + * StretchedClusterConfig preferredLocation. + * @member {string} preferredLocation + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @instance + */ + StretchedClusterConfig.prototype.preferredLocation = ""; + + /** + * StretchedClusterConfig secondaryLocation. + * @member {string} secondaryLocation + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @instance + */ + StretchedClusterConfig.prototype.secondaryLocation = ""; + + /** + * Creates a new StretchedClusterConfig instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {google.cloud.vmwareengine.v1.IStretchedClusterConfig=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.StretchedClusterConfig} StretchedClusterConfig instance + */ + StretchedClusterConfig.create = function create(properties) { + return new StretchedClusterConfig(properties); + }; + + /** + * Encodes the specified StretchedClusterConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.StretchedClusterConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {google.cloud.vmwareengine.v1.IStretchedClusterConfig} message StretchedClusterConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StretchedClusterConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.preferredLocation != null && Object.hasOwnProperty.call(message, "preferredLocation")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.preferredLocation); + if (message.secondaryLocation != null && Object.hasOwnProperty.call(message, "secondaryLocation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.secondaryLocation); + return writer; + }; + + /** + * Encodes the specified StretchedClusterConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.StretchedClusterConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {google.cloud.vmwareengine.v1.IStretchedClusterConfig} message StretchedClusterConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StretchedClusterConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StretchedClusterConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.StretchedClusterConfig} StretchedClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StretchedClusterConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.StretchedClusterConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.preferredLocation = reader.string(); + break; + } + case 2: { + message.secondaryLocation = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StretchedClusterConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.StretchedClusterConfig} StretchedClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StretchedClusterConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StretchedClusterConfig message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StretchedClusterConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.preferredLocation != null && message.hasOwnProperty("preferredLocation")) + if (!$util.isString(message.preferredLocation)) + return "preferredLocation: string expected"; + if (message.secondaryLocation != null && message.hasOwnProperty("secondaryLocation")) + if (!$util.isString(message.secondaryLocation)) + return "secondaryLocation: string expected"; + return null; + }; + + /** + * Creates a StretchedClusterConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.StretchedClusterConfig} StretchedClusterConfig + */ + StretchedClusterConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.StretchedClusterConfig) + return object; + var message = new $root.google.cloud.vmwareengine.v1.StretchedClusterConfig(); + if (object.preferredLocation != null) + message.preferredLocation = String(object.preferredLocation); + if (object.secondaryLocation != null) + message.secondaryLocation = String(object.secondaryLocation); + return message; + }; + + /** + * Creates a plain object from a StretchedClusterConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {google.cloud.vmwareengine.v1.StretchedClusterConfig} message StretchedClusterConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StretchedClusterConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.preferredLocation = ""; + object.secondaryLocation = ""; + } + if (message.preferredLocation != null && message.hasOwnProperty("preferredLocation")) + object.preferredLocation = message.preferredLocation; + if (message.secondaryLocation != null && message.hasOwnProperty("secondaryLocation")) + object.secondaryLocation = message.secondaryLocation; + return object; + }; + + /** + * Converts this StretchedClusterConfig to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @instance + * @returns {Object.} JSON object + */ + StretchedClusterConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StretchedClusterConfig + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.StretchedClusterConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StretchedClusterConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.StretchedClusterConfig"; + }; + + return StretchedClusterConfig; + })(); + + v1.PrivateCloud = (function() { + + /** + * Properties of a PrivateCloud. + * @memberof google.cloud.vmwareengine.v1 + * @interface IPrivateCloud + * @property {string|null} [name] PrivateCloud name + * @property {google.protobuf.ITimestamp|null} [createTime] PrivateCloud createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PrivateCloud updateTime + * @property {google.protobuf.ITimestamp|null} [deleteTime] PrivateCloud deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] PrivateCloud expireTime + * @property {google.cloud.vmwareengine.v1.PrivateCloud.State|null} [state] PrivateCloud state + * @property {google.cloud.vmwareengine.v1.INetworkConfig|null} [networkConfig] PrivateCloud networkConfig + * @property {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null} [managementCluster] PrivateCloud managementCluster + * @property {string|null} [description] PrivateCloud description + * @property {google.cloud.vmwareengine.v1.IHcx|null} [hcx] PrivateCloud hcx + * @property {google.cloud.vmwareengine.v1.INsx|null} [nsx] PrivateCloud nsx + * @property {google.cloud.vmwareengine.v1.IVcenter|null} [vcenter] PrivateCloud vcenter + * @property {string|null} [uid] PrivateCloud uid + * @property {google.cloud.vmwareengine.v1.PrivateCloud.Type|null} [type] PrivateCloud type + */ + + /** + * Constructs a new PrivateCloud. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a PrivateCloud. + * @implements IPrivateCloud + * @constructor + * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set + */ + function PrivateCloud(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]]; + } + + /** + * PrivateCloud name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.name = ""; + + /** + * PrivateCloud createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.createTime = null; + + /** + * PrivateCloud updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.updateTime = null; + + /** + * PrivateCloud deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.deleteTime = null; + + /** + * PrivateCloud expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.expireTime = null; + + /** + * PrivateCloud state. + * @member {google.cloud.vmwareengine.v1.PrivateCloud.State} state + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.state = 0; + + /** + * PrivateCloud networkConfig. + * @member {google.cloud.vmwareengine.v1.INetworkConfig|null|undefined} networkConfig + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.networkConfig = null; + + /** + * PrivateCloud managementCluster. + * @member {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null|undefined} managementCluster + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.managementCluster = null; + + /** + * PrivateCloud description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.description = ""; + + /** + * PrivateCloud hcx. + * @member {google.cloud.vmwareengine.v1.IHcx|null|undefined} hcx + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.hcx = null; + + /** + * PrivateCloud nsx. + * @member {google.cloud.vmwareengine.v1.INsx|null|undefined} nsx + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.nsx = null; + + /** + * PrivateCloud vcenter. + * @member {google.cloud.vmwareengine.v1.IVcenter|null|undefined} vcenter + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.vcenter = null; + + /** + * PrivateCloud uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.uid = ""; + + /** + * PrivateCloud type. + * @member {google.cloud.vmwareengine.v1.PrivateCloud.Type} type + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.type = 0; + + /** + * Creates a new PrivateCloud instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud instance + */ + PrivateCloud.create = function create(properties) { + return new PrivateCloud(properties); + }; + + /** + * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateCloud.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig")) + $root.google.cloud.vmwareengine.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.managementCluster != null && Object.hasOwnProperty.call(message, "managementCluster")) + $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.encode(message.managementCluster, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.description); + if (message.hcx != null && Object.hasOwnProperty.call(message, "hcx")) + $root.google.cloud.vmwareengine.v1.Hcx.encode(message.hcx, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.nsx != null && Object.hasOwnProperty.call(message, "nsx")) + $root.google.cloud.vmwareengine.v1.Nsx.encode(message.nsx, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.vcenter != null && Object.hasOwnProperty.call(message, "vcenter")) + $root.google.cloud.vmwareengine.v1.Vcenter.encode(message.vcenter, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 20, wireType 2 =*/162).string(message.uid); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 22, wireType 0 =*/176).int32(message.type); + return writer; + }; + + /** + * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateCloud.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateCloud message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateCloud.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateCloud(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.state = reader.int32(); + break; + } + case 9: { + message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.decode(reader, reader.uint32()); + break; + } + case 11: { + message.description = reader.string(); + break; + } + case 17: { + message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.decode(reader, reader.uint32()); + break; + } + case 18: { + message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.decode(reader, reader.uint32()); + break; + } + case 19: { + message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.decode(reader, reader.uint32()); + break; + } + case 20: { + message.uid = reader.string(); + break; + } + case 22: { + message.type = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateCloud message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateCloud.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateCloud message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateCloud.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (error) + return "deleteTime." + error; + } + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 5: + case 6: + case 7: + break; + } + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkConfig.verify(message.networkConfig); + if (error) + return "networkConfig." + error; + } + if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) { + var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify(message.managementCluster); + if (error) + return "managementCluster." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.hcx != null && message.hasOwnProperty("hcx")) { + var error = $root.google.cloud.vmwareengine.v1.Hcx.verify(message.hcx); + if (error) + return "hcx." + error; + } + if (message.nsx != null && message.hasOwnProperty("nsx")) { + var error = $root.google.cloud.vmwareengine.v1.Nsx.verify(message.nsx); + if (error) + return "nsx." + error; + } + if (message.vcenter != null && message.hasOwnProperty("vcenter")) { + var error = $root.google.cloud.vmwareengine.v1.Vcenter.verify(message.vcenter); + if (error) + return "vcenter." + error; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + */ + PrivateCloud.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud) + return object; + var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + } + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "FAILED": + case 5: + message.state = 5; + break; + case "DELETED": + case 6: + message.state = 6; + break; + case "PURGING": + case 7: + message.state = 7; + break; + } + if (object.networkConfig != null) { + if (typeof object.networkConfig !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.networkConfig: object expected"); + message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.fromObject(object.networkConfig); + } + if (object.managementCluster != null) { + if (typeof object.managementCluster !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.managementCluster: object expected"); + message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.fromObject(object.managementCluster); + } + if (object.description != null) + message.description = String(object.description); + if (object.hcx != null) { + if (typeof object.hcx !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.hcx: object expected"); + message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.fromObject(object.hcx); + } + if (object.nsx != null) { + if (typeof object.nsx !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.nsx: object expected"); + message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.fromObject(object.nsx); + } + if (object.vcenter != null) { + if (typeof object.vcenter !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.vcenter: object expected"); + message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.fromObject(object.vcenter); + } + if (object.uid != null) + message.uid = String(object.uid); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "STANDARD": + case 0: + message.type = 0; + break; + case "TIME_LIMITED": + case 1: + message.type = 1; + break; + case "STRETCHED": + case 2: + message.type = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {google.cloud.vmwareengine.v1.PrivateCloud} message PrivateCloud + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateCloud.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.deleteTime = null; + object.expireTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.networkConfig = null; + object.managementCluster = null; + object.description = ""; + object.hcx = null; + object.nsx = null; + object.vcenter = null; + object.uid = ""; + object.type = options.enums === String ? "STANDARD" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] : message.state; + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) + object.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.toObject(message.networkConfig, options); + if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) + object.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.toObject(message.managementCluster, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.hcx != null && message.hasOwnProperty("hcx")) + object.hcx = $root.google.cloud.vmwareengine.v1.Hcx.toObject(message.hcx, options); + if (message.nsx != null && message.hasOwnProperty("nsx")) + object.nsx = $root.google.cloud.vmwareengine.v1.Nsx.toObject(message.nsx, options); + if (message.vcenter != null && message.hasOwnProperty("vcenter")) + object.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.toObject(message.vcenter, options); + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateCloud.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.PrivateCloud.Type[message.type] : message.type; + return object; + }; + + /** + * Converts this PrivateCloud to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + * @returns {Object.} JSON object + */ + PrivateCloud.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateCloud + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateCloud.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.PrivateCloud.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} FAILED=5 FAILED value + * @property {number} DELETED=6 DELETED value + * @property {number} PURGING=7 PURGING value + */ + PrivateCloud.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "DELETED"] = 6; + values[valuesById[7] = "PURGING"] = 7; + return values; + })(); + + PrivateCloud.ManagementCluster = (function() { + + /** + * Properties of a ManagementCluster. + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @interface IManagementCluster + * @property {string|null} [clusterId] ManagementCluster clusterId + * @property {Object.|null} [nodeTypeConfigs] ManagementCluster nodeTypeConfigs + * @property {google.cloud.vmwareengine.v1.IStretchedClusterConfig|null} [stretchedClusterConfig] ManagementCluster stretchedClusterConfig + */ + + /** + * Constructs a new ManagementCluster. + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @classdesc Represents a ManagementCluster. + * @implements IManagementCluster + * @constructor + * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set + */ + function ManagementCluster(properties) { + this.nodeTypeConfigs = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ManagementCluster clusterId. + * @member {string} clusterId + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @instance + */ + ManagementCluster.prototype.clusterId = ""; + + /** + * ManagementCluster nodeTypeConfigs. + * @member {Object.} nodeTypeConfigs + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @instance + */ + ManagementCluster.prototype.nodeTypeConfigs = $util.emptyObject; + + /** + * ManagementCluster stretchedClusterConfig. + * @member {google.cloud.vmwareengine.v1.IStretchedClusterConfig|null|undefined} stretchedClusterConfig + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @instance + */ + ManagementCluster.prototype.stretchedClusterConfig = null; + + /** + * Creates a new ManagementCluster instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster instance + */ + ManagementCluster.create = function create(properties) { + return new ManagementCluster(properties); + }; + + /** + * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagementCluster.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.clusterId); + if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs")) + for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.stretchedClusterConfig != null && Object.hasOwnProperty.call(message, "stretchedClusterConfig")) + $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.encode(message.stretchedClusterConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagementCluster.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ManagementCluster message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagementCluster.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.clusterId = reader.string(); + break; + } + case 7: { + if (message.nodeTypeConfigs === $util.emptyObject) + message.nodeTypeConfigs = {}; + 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.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.nodeTypeConfigs[key] = value; + break; + } + case 8: { + message.stretchedClusterConfig = $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ManagementCluster message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagementCluster.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ManagementCluster message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ManagementCluster.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) { + if (!$util.isObject(message.nodeTypeConfigs)) + return "nodeTypeConfigs: object expected"; + var key = Object.keys(message.nodeTypeConfigs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]); + if (error) + return "nodeTypeConfigs." + error; + } + } + if (message.stretchedClusterConfig != null && message.hasOwnProperty("stretchedClusterConfig")) { + var error = $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.verify(message.stretchedClusterConfig); + if (error) + return "stretchedClusterConfig." + error; + } + return null; + }; + + /** + * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster + */ + ManagementCluster.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) + return object; + var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodeTypeConfigs) { + if (typeof object.nodeTypeConfigs !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected"); + message.nodeTypeConfigs = {}; + for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) { + if (typeof object.nodeTypeConfigs[keys[i]] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected"); + message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]); + } + } + if (object.stretchedClusterConfig != null) { + if (typeof object.stretchedClusterConfig !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.stretchedClusterConfig: object expected"); + message.stretchedClusterConfig = $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.fromObject(object.stretchedClusterConfig); + } + return message; + }; + + /** + * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} message ManagementCluster + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ManagementCluster.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.nodeTypeConfigs = {}; + if (options.defaults) { + object.clusterId = ""; + object.stretchedClusterConfig = null; + } + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + var keys2; + if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) { + object.nodeTypeConfigs = {}; + for (var j = 0; j < keys2.length; ++j) + object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options); + } + if (message.stretchedClusterConfig != null && message.hasOwnProperty("stretchedClusterConfig")) + object.stretchedClusterConfig = $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.toObject(message.stretchedClusterConfig, options); + return object; + }; + + /** + * Converts this ManagementCluster to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @instance + * @returns {Object.} JSON object + */ + ManagementCluster.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ManagementCluster + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ManagementCluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster"; + }; + + return ManagementCluster; + })(); + + /** + * Type enum. + * @name google.cloud.vmwareengine.v1.PrivateCloud.Type + * @enum {number} + * @property {number} STANDARD=0 STANDARD value + * @property {number} TIME_LIMITED=1 TIME_LIMITED value + * @property {number} STRETCHED=2 STRETCHED value + */ + PrivateCloud.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STANDARD"] = 0; + values[valuesById[1] = "TIME_LIMITED"] = 1; + values[valuesById[2] = "STRETCHED"] = 2; + return values; + })(); + + return PrivateCloud; + })(); + + v1.Cluster = (function() { + + /** + * Properties of a Cluster. + * @memberof google.cloud.vmwareengine.v1 + * @interface ICluster + * @property {string|null} [name] Cluster name + * @property {google.protobuf.ITimestamp|null} [createTime] Cluster createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Cluster updateTime + * @property {google.cloud.vmwareengine.v1.Cluster.State|null} [state] Cluster state + * @property {boolean|null} [management] Cluster management + * @property {string|null} [uid] Cluster uid + * @property {Object.|null} [nodeTypeConfigs] Cluster nodeTypeConfigs + * @property {google.cloud.vmwareengine.v1.IStretchedClusterConfig|null} [stretchedClusterConfig] Cluster stretchedClusterConfig + */ + + /** + * Constructs a new Cluster. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Cluster. + * @implements ICluster + * @constructor + * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set + */ + function Cluster(properties) { + this.nodeTypeConfigs = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Cluster name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.name = ""; + + /** + * Cluster createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.createTime = null; + + /** + * Cluster updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.updateTime = null; + + /** + * Cluster state. + * @member {google.cloud.vmwareengine.v1.Cluster.State} state + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.state = 0; + + /** + * Cluster management. + * @member {boolean} management + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.management = false; + + /** + * Cluster uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.uid = ""; + + /** + * Cluster nodeTypeConfigs. + * @member {Object.} nodeTypeConfigs + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.nodeTypeConfigs = $util.emptyObject; + + /** + * Cluster stretchedClusterConfig. + * @member {google.cloud.vmwareengine.v1.IStretchedClusterConfig|null|undefined} stretchedClusterConfig + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.stretchedClusterConfig = null; + + /** + * Creates a new Cluster instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster instance + */ + Cluster.create = function create(properties) { + return new Cluster(properties); + }; + + /** + * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Cluster.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.management != null && Object.hasOwnProperty.call(message, "management")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.management); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.uid); + if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs")) + for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.stretchedClusterConfig != null && Object.hasOwnProperty.call(message, "stretchedClusterConfig")) + $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.encode(message.stretchedClusterConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Cluster.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Cluster message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Cluster.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Cluster(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.management = reader.bool(); + break; + } + case 14: { + message.uid = reader.string(); + break; + } + case 16: { + if (message.nodeTypeConfigs === $util.emptyObject) + message.nodeTypeConfigs = {}; + 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.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.nodeTypeConfigs[key] = value; + break; + } + case 17: { + message.stretchedClusterConfig = $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Cluster message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Cluster.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Cluster message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Cluster.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.management != null && message.hasOwnProperty("management")) + if (typeof message.management !== "boolean") + return "management: boolean expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) { + if (!$util.isObject(message.nodeTypeConfigs)) + return "nodeTypeConfigs: object expected"; + var key = Object.keys(message.nodeTypeConfigs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]); + if (error) + return "nodeTypeConfigs." + error; + } + } + if (message.stretchedClusterConfig != null && message.hasOwnProperty("stretchedClusterConfig")) { + var error = $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.verify(message.stretchedClusterConfig); + if (error) + return "stretchedClusterConfig." + error; + } + return null; + }; + + /** + * Creates a Cluster message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + */ + Cluster.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Cluster) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Cluster(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + case "REPAIRING": + case 5: + message.state = 5; + break; + } + if (object.management != null) + message.management = Boolean(object.management); + if (object.uid != null) + message.uid = String(object.uid); + if (object.nodeTypeConfigs) { + if (typeof object.nodeTypeConfigs !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected"); + message.nodeTypeConfigs = {}; + for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) { + if (typeof object.nodeTypeConfigs[keys[i]] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected"); + message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]); + } + } + if (object.stretchedClusterConfig != null) { + if (typeof object.stretchedClusterConfig !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.stretchedClusterConfig: object expected"); + message.stretchedClusterConfig = $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.fromObject(object.stretchedClusterConfig); + } + return message; + }; + + /** + * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {google.cloud.vmwareengine.v1.Cluster} message Cluster + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Cluster.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.nodeTypeConfigs = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.management = false; + object.uid = ""; + object.stretchedClusterConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] : message.state; + if (message.management != null && message.hasOwnProperty("management")) + object.management = message.management; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + var keys2; + if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) { + object.nodeTypeConfigs = {}; + for (var j = 0; j < keys2.length; ++j) + object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options); + } + if (message.stretchedClusterConfig != null && message.hasOwnProperty("stretchedClusterConfig")) + object.stretchedClusterConfig = $root.google.cloud.vmwareengine.v1.StretchedClusterConfig.toObject(message.stretchedClusterConfig, options); + return object; + }; + + /** + * Converts this Cluster to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + * @returns {Object.} JSON object + */ + Cluster.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Cluster + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Cluster + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Cluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Cluster"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Cluster.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + * @property {number} REPAIRING=5 REPAIRING value + */ + Cluster.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + values[valuesById[5] = "REPAIRING"] = 5; + return values; + })(); + + return Cluster; + })(); + + v1.Node = (function() { + + /** + * Properties of a Node. + * @memberof google.cloud.vmwareengine.v1 + * @interface INode + * @property {string|null} [name] Node name + * @property {string|null} [fqdn] Node fqdn + * @property {string|null} [internalIp] Node internalIp + * @property {string|null} [nodeTypeId] Node nodeTypeId + * @property {string|null} [version] Node version + * @property {number|Long|null} [customCoreCount] Node customCoreCount + * @property {google.cloud.vmwareengine.v1.Node.State|null} [state] Node state + */ + + /** + * Constructs a new Node. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Node. + * @implements INode + * @constructor + * @param {google.cloud.vmwareengine.v1.INode=} [properties] Properties to set + */ + function Node(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]]; + } + + /** + * Node name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.Node + * @instance + */ + Node.prototype.name = ""; + + /** + * Node fqdn. + * @member {string} fqdn + * @memberof google.cloud.vmwareengine.v1.Node + * @instance + */ + Node.prototype.fqdn = ""; + + /** + * Node internalIp. + * @member {string} internalIp + * @memberof google.cloud.vmwareengine.v1.Node + * @instance + */ + Node.prototype.internalIp = ""; + + /** + * Node nodeTypeId. + * @member {string} nodeTypeId + * @memberof google.cloud.vmwareengine.v1.Node + * @instance + */ + Node.prototype.nodeTypeId = ""; + + /** + * Node version. + * @member {string} version + * @memberof google.cloud.vmwareengine.v1.Node + * @instance + */ + Node.prototype.version = ""; + + /** + * Node customCoreCount. + * @member {number|Long} customCoreCount + * @memberof google.cloud.vmwareengine.v1.Node + * @instance + */ + Node.prototype.customCoreCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Node state. + * @member {google.cloud.vmwareengine.v1.Node.State} state + * @memberof google.cloud.vmwareengine.v1.Node + * @instance + */ + Node.prototype.state = 0; + + /** + * Creates a new Node instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {google.cloud.vmwareengine.v1.INode=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Node} Node instance + */ + Node.create = function create(properties) { + return new Node(properties); + }; + + /** + * Encodes the specified Node message. Does not implicitly {@link google.cloud.vmwareengine.v1.Node.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {google.cloud.vmwareengine.v1.INode} message Node message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Node.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fqdn); + if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.internalIp); + if (message.nodeTypeId != null && Object.hasOwnProperty.call(message, "nodeTypeId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodeTypeId); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); + if (message.customCoreCount != null && Object.hasOwnProperty.call(message, "customCoreCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.customCoreCount); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + return writer; + }; + + /** + * Encodes the specified Node message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Node.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {google.cloud.vmwareengine.v1.INode} message Node message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Node.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Node message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Node} Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Node.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Node(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.fqdn = reader.string(); + break; + } + case 3: { + message.internalIp = reader.string(); + break; + } + case 4: { + message.nodeTypeId = reader.string(); + break; + } + case 5: { + message.version = reader.string(); + break; + } + case 6: { + message.customCoreCount = reader.int64(); + break; + } + case 7: { + message.state = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Node message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Node} Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Node.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Node message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Node.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + if (!$util.isString(message.fqdn)) + return "fqdn: string expected"; + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + if (!$util.isString(message.internalIp)) + return "internalIp: string expected"; + if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) + if (!$util.isString(message.nodeTypeId)) + return "nodeTypeId: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) + if (!$util.isInteger(message.customCoreCount) && !(message.customCoreCount && $util.isInteger(message.customCoreCount.low) && $util.isInteger(message.customCoreCount.high))) + return "customCoreCount: integer|Long expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a Node message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Node} Node + */ + Node.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Node) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Node(); + if (object.name != null) + message.name = String(object.name); + if (object.fqdn != null) + message.fqdn = String(object.fqdn); + if (object.internalIp != null) + message.internalIp = String(object.internalIp); + if (object.nodeTypeId != null) + message.nodeTypeId = String(object.nodeTypeId); + if (object.version != null) + message.version = String(object.version); + if (object.customCoreCount != null) + if ($util.Long) + (message.customCoreCount = $util.Long.fromValue(object.customCoreCount)).unsigned = false; + else if (typeof object.customCoreCount === "string") + message.customCoreCount = parseInt(object.customCoreCount, 10); + else if (typeof object.customCoreCount === "number") + message.customCoreCount = object.customCoreCount; + else if (typeof object.customCoreCount === "object") + message.customCoreCount = new $util.LongBits(object.customCoreCount.low >>> 0, object.customCoreCount.high >>> 0).toNumber(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "FAILED": + case 3: + message.state = 3; + break; + case "UPGRADING": + case 4: + message.state = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a Node message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {google.cloud.vmwareengine.v1.Node} message Node + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Node.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.fqdn = ""; + object.internalIp = ""; + object.nodeTypeId = ""; + object.version = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.customCoreCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.customCoreCount = options.longs === String ? "0" : 0; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + object.fqdn = message.fqdn; + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + object.internalIp = message.internalIp; + if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) + object.nodeTypeId = message.nodeTypeId; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) + if (typeof message.customCoreCount === "number") + object.customCoreCount = options.longs === String ? String(message.customCoreCount) : message.customCoreCount; + else + object.customCoreCount = options.longs === String ? $util.Long.prototype.toString.call(message.customCoreCount) : options.longs === Number ? new $util.LongBits(message.customCoreCount.low >>> 0, message.customCoreCount.high >>> 0).toNumber() : message.customCoreCount; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Node.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Node.State[message.state] : message.state; + return object; + }; + + /** + * Converts this Node to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Node + * @instance + * @returns {Object.} JSON object + */ + Node.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Node + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Node + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Node.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Node"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Node.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} FAILED=3 FAILED value + * @property {number} UPGRADING=4 UPGRADING value + */ + Node.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "FAILED"] = 3; + values[valuesById[4] = "UPGRADING"] = 4; + return values; + })(); + + return Node; + })(); + + v1.ExternalAddress = (function() { + + /** + * Properties of an ExternalAddress. + * @memberof google.cloud.vmwareengine.v1 + * @interface IExternalAddress + * @property {string|null} [name] ExternalAddress name + * @property {google.protobuf.ITimestamp|null} [createTime] ExternalAddress createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ExternalAddress updateTime + * @property {string|null} [internalIp] ExternalAddress internalIp + * @property {string|null} [externalIp] ExternalAddress externalIp + * @property {google.cloud.vmwareengine.v1.ExternalAddress.State|null} [state] ExternalAddress state + * @property {string|null} [uid] ExternalAddress uid + * @property {string|null} [description] ExternalAddress description + */ + + /** + * Constructs a new ExternalAddress. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents an ExternalAddress. + * @implements IExternalAddress + * @constructor + * @param {google.cloud.vmwareengine.v1.IExternalAddress=} [properties] Properties to set + */ + function ExternalAddress(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]]; + } + + /** + * ExternalAddress name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + */ + ExternalAddress.prototype.name = ""; + + /** + * ExternalAddress createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + */ + ExternalAddress.prototype.createTime = null; + + /** + * ExternalAddress updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + */ + ExternalAddress.prototype.updateTime = null; + + /** + * ExternalAddress internalIp. + * @member {string} internalIp + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + */ + ExternalAddress.prototype.internalIp = ""; + + /** + * ExternalAddress externalIp. + * @member {string} externalIp + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + */ + ExternalAddress.prototype.externalIp = ""; + + /** + * ExternalAddress state. + * @member {google.cloud.vmwareengine.v1.ExternalAddress.State} state + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + */ + ExternalAddress.prototype.state = 0; + + /** + * ExternalAddress uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + */ + ExternalAddress.prototype.uid = ""; + + /** + * ExternalAddress description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + */ + ExternalAddress.prototype.description = ""; + + /** + * Creates a new ExternalAddress instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {google.cloud.vmwareengine.v1.IExternalAddress=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ExternalAddress} ExternalAddress instance + */ + ExternalAddress.create = function create(properties) { + return new ExternalAddress(properties); + }; + + /** + * Encodes the specified ExternalAddress message. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAddress.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {google.cloud.vmwareengine.v1.IExternalAddress} message ExternalAddress message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalAddress.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.internalIp); + if (message.externalIp != null && Object.hasOwnProperty.call(message, "externalIp")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.externalIp); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.uid); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.description); + return writer; + }; + + /** + * Encodes the specified ExternalAddress message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAddress.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {google.cloud.vmwareengine.v1.IExternalAddress} message ExternalAddress message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalAddress.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExternalAddress message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ExternalAddress} ExternalAddress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalAddress.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ExternalAddress(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.internalIp = reader.string(); + break; + } + case 7: { + message.externalIp = reader.string(); + break; + } + case 8: { + message.state = reader.int32(); + break; + } + case 9: { + message.uid = reader.string(); + break; + } + case 11: { + message.description = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExternalAddress message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ExternalAddress} ExternalAddress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalAddress.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExternalAddress message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExternalAddress.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + if (!$util.isString(message.internalIp)) + return "internalIp: string expected"; + if (message.externalIp != null && message.hasOwnProperty("externalIp")) + if (!$util.isString(message.externalIp)) + return "externalIp: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates an ExternalAddress message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ExternalAddress} ExternalAddress + */ + ExternalAddress.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ExternalAddress) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ExternalAddress(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAddress.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAddress.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.internalIp != null) + message.internalIp = String(object.internalIp); + if (object.externalIp != null) + message.externalIp = String(object.externalIp); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + } + if (object.uid != null) + message.uid = String(object.uid); + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from an ExternalAddress message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {google.cloud.vmwareengine.v1.ExternalAddress} message ExternalAddress + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExternalAddress.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.internalIp = ""; + object.externalIp = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.uid = ""; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + object.internalIp = message.internalIp; + if (message.externalIp != null && message.hasOwnProperty("externalIp")) + object.externalIp = message.externalIp; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.ExternalAddress.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.ExternalAddress.State[message.state] : message.state; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this ExternalAddress to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @instance + * @returns {Object.} JSON object + */ + ExternalAddress.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExternalAddress + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ExternalAddress + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExternalAddress.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ExternalAddress"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.ExternalAddress.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + */ + ExternalAddress.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + return values; + })(); + + return ExternalAddress; + })(); + + v1.Subnet = (function() { + + /** + * Properties of a Subnet. + * @memberof google.cloud.vmwareengine.v1 + * @interface ISubnet + * @property {string|null} [name] Subnet name + * @property {string|null} [ipCidrRange] Subnet ipCidrRange + * @property {string|null} [gatewayIp] Subnet gatewayIp + * @property {string|null} [type] Subnet type + * @property {google.cloud.vmwareengine.v1.Subnet.State|null} [state] Subnet state + * @property {number|null} [vlanId] Subnet vlanId + */ + + /** + * Constructs a new Subnet. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Subnet. + * @implements ISubnet + * @constructor + * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set + */ + function Subnet(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]]; + } + + /** + * Subnet name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.name = ""; + + /** + * Subnet ipCidrRange. + * @member {string} ipCidrRange + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.ipCidrRange = ""; + + /** + * Subnet gatewayIp. + * @member {string} gatewayIp + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.gatewayIp = ""; + + /** + * Subnet type. + * @member {string} type + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.type = ""; + + /** + * Subnet state. + * @member {google.cloud.vmwareengine.v1.Subnet.State} state + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.state = 0; + + /** + * Subnet vlanId. + * @member {number} vlanId + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.vlanId = 0; + + /** + * Creates a new Subnet instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet instance + */ + Subnet.create = function create(properties) { + return new Subnet(properties); + }; + + /** + * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Subnet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.ipCidrRange); + if (message.gatewayIp != null && Object.hasOwnProperty.call(message, "gatewayIp")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.gatewayIp); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.type); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.state); + if (message.vlanId != null && Object.hasOwnProperty.call(message, "vlanId")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.vlanId); + return writer; + }; + + /** + * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Subnet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Subnet message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Subnet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Subnet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 7: { + message.ipCidrRange = reader.string(); + break; + } + case 8: { + message.gatewayIp = reader.string(); + break; + } + case 11: { + message.type = reader.string(); + break; + } + case 13: { + message.state = reader.int32(); + break; + } + case 16: { + message.vlanId = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Subnet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Subnet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Subnet message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Subnet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + if (!$util.isString(message.ipCidrRange)) + return "ipCidrRange: string expected"; + if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp")) + if (!$util.isString(message.gatewayIp)) + return "gatewayIp: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.vlanId != null && message.hasOwnProperty("vlanId")) + if (!$util.isInteger(message.vlanId)) + return "vlanId: integer expected"; + return null; + }; + + /** + * Creates a Subnet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + */ + Subnet.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Subnet) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Subnet(); + if (object.name != null) + message.name = String(object.name); + if (object.ipCidrRange != null) + message.ipCidrRange = String(object.ipCidrRange); + if (object.gatewayIp != null) + message.gatewayIp = String(object.gatewayIp); + if (object.type != null) + message.type = String(object.type); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + case "RECONCILING": + case 5: + message.state = 5; + break; + case "FAILED": + case 6: + message.state = 6; + break; + } + if (object.vlanId != null) + message.vlanId = object.vlanId | 0; + return message; + }; + + /** + * Creates a plain object from a Subnet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {google.cloud.vmwareengine.v1.Subnet} message Subnet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Subnet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.ipCidrRange = ""; + object.gatewayIp = ""; + object.type = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.vlanId = 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + object.ipCidrRange = message.ipCidrRange; + if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp")) + object.gatewayIp = message.gatewayIp; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] : message.state; + if (message.vlanId != null && message.hasOwnProperty("vlanId")) + object.vlanId = message.vlanId; + return object; + }; + + /** + * Converts this Subnet to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + * @returns {Object.} JSON object + */ + Subnet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Subnet + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Subnet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Subnet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Subnet"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Subnet.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + * @property {number} RECONCILING=5 RECONCILING value + * @property {number} FAILED=6 FAILED value + */ + Subnet.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + values[valuesById[5] = "RECONCILING"] = 5; + values[valuesById[6] = "FAILED"] = 6; + return values; + })(); + + return Subnet; + })(); + + v1.ExternalAccessRule = (function() { + + /** + * Properties of an ExternalAccessRule. + * @memberof google.cloud.vmwareengine.v1 + * @interface IExternalAccessRule + * @property {string|null} [name] ExternalAccessRule name + * @property {google.protobuf.ITimestamp|null} [createTime] ExternalAccessRule createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ExternalAccessRule updateTime + * @property {string|null} [description] ExternalAccessRule description + * @property {number|null} [priority] ExternalAccessRule priority + * @property {google.cloud.vmwareengine.v1.ExternalAccessRule.Action|null} [action] ExternalAccessRule action + * @property {string|null} [ipProtocol] ExternalAccessRule ipProtocol + * @property {Array.|null} [sourceIpRanges] ExternalAccessRule sourceIpRanges + * @property {Array.|null} [sourcePorts] ExternalAccessRule sourcePorts + * @property {Array.|null} [destinationIpRanges] ExternalAccessRule destinationIpRanges + * @property {Array.|null} [destinationPorts] ExternalAccessRule destinationPorts + * @property {google.cloud.vmwareengine.v1.ExternalAccessRule.State|null} [state] ExternalAccessRule state + * @property {string|null} [uid] ExternalAccessRule uid + */ + + /** + * Constructs a new ExternalAccessRule. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents an ExternalAccessRule. + * @implements IExternalAccessRule + * @constructor + * @param {google.cloud.vmwareengine.v1.IExternalAccessRule=} [properties] Properties to set + */ + function ExternalAccessRule(properties) { + this.sourceIpRanges = []; + this.sourcePorts = []; + this.destinationIpRanges = []; + this.destinationPorts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExternalAccessRule name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.name = ""; + + /** + * ExternalAccessRule createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.createTime = null; + + /** + * ExternalAccessRule updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.updateTime = null; + + /** + * ExternalAccessRule description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.description = ""; + + /** + * ExternalAccessRule priority. + * @member {number} priority + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.priority = 0; + + /** + * ExternalAccessRule action. + * @member {google.cloud.vmwareengine.v1.ExternalAccessRule.Action} action + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.action = 0; + + /** + * ExternalAccessRule ipProtocol. + * @member {string} ipProtocol + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.ipProtocol = ""; + + /** + * ExternalAccessRule sourceIpRanges. + * @member {Array.} sourceIpRanges + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.sourceIpRanges = $util.emptyArray; + + /** + * ExternalAccessRule sourcePorts. + * @member {Array.} sourcePorts + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.sourcePorts = $util.emptyArray; + + /** + * ExternalAccessRule destinationIpRanges. + * @member {Array.} destinationIpRanges + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.destinationIpRanges = $util.emptyArray; + + /** + * ExternalAccessRule destinationPorts. + * @member {Array.} destinationPorts + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.destinationPorts = $util.emptyArray; + + /** + * ExternalAccessRule state. + * @member {google.cloud.vmwareengine.v1.ExternalAccessRule.State} state + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.state = 0; + + /** + * ExternalAccessRule uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + */ + ExternalAccessRule.prototype.uid = ""; + + /** + * Creates a new ExternalAccessRule instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {google.cloud.vmwareengine.v1.IExternalAccessRule=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ExternalAccessRule} ExternalAccessRule instance + */ + ExternalAccessRule.create = function create(properties) { + return new ExternalAccessRule(properties); + }; + + /** + * Encodes the specified ExternalAccessRule message. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAccessRule.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {google.cloud.vmwareengine.v1.IExternalAccessRule} message ExternalAccessRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalAccessRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.description); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.priority); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.action); + if (message.ipProtocol != null && Object.hasOwnProperty.call(message, "ipProtocol")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.ipProtocol); + if (message.sourceIpRanges != null && message.sourceIpRanges.length) + for (var i = 0; i < message.sourceIpRanges.length; ++i) + $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.encode(message.sourceIpRanges[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.sourcePorts != null && message.sourcePorts.length) + for (var i = 0; i < message.sourcePorts.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.sourcePorts[i]); + if (message.destinationIpRanges != null && message.destinationIpRanges.length) + for (var i = 0; i < message.destinationIpRanges.length; ++i) + $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.encode(message.destinationIpRanges[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.destinationPorts != null && message.destinationPorts.length) + for (var i = 0; i < message.destinationPorts.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.destinationPorts[i]); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.state); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.uid); + return writer; + }; + + /** + * Encodes the specified ExternalAccessRule message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAccessRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {google.cloud.vmwareengine.v1.IExternalAccessRule} message ExternalAccessRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalAccessRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExternalAccessRule message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ExternalAccessRule} ExternalAccessRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalAccessRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ExternalAccessRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.description = reader.string(); + break; + } + case 6: { + message.priority = reader.int32(); + break; + } + case 7: { + message.action = reader.int32(); + break; + } + case 8: { + message.ipProtocol = reader.string(); + break; + } + case 9: { + if (!(message.sourceIpRanges && message.sourceIpRanges.length)) + message.sourceIpRanges = []; + message.sourceIpRanges.push($root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.sourcePorts && message.sourcePorts.length)) + message.sourcePorts = []; + message.sourcePorts.push(reader.string()); + break; + } + case 11: { + if (!(message.destinationIpRanges && message.destinationIpRanges.length)) + message.destinationIpRanges = []; + message.destinationIpRanges.push($root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.decode(reader, reader.uint32())); + break; + } + case 12: { + if (!(message.destinationPorts && message.destinationPorts.length)) + message.destinationPorts = []; + message.destinationPorts.push(reader.string()); + break; + } + case 13: { + message.state = reader.int32(); + break; + } + case 14: { + message.uid = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExternalAccessRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ExternalAccessRule} ExternalAccessRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalAccessRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExternalAccessRule message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExternalAccessRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.ipProtocol != null && message.hasOwnProperty("ipProtocol")) + if (!$util.isString(message.ipProtocol)) + return "ipProtocol: 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) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.verify(message.sourceIpRanges[i]); + if (error) + return "sourceIpRanges." + error; + } + } + if (message.sourcePorts != null && message.hasOwnProperty("sourcePorts")) { + if (!Array.isArray(message.sourcePorts)) + return "sourcePorts: array expected"; + for (var i = 0; i < message.sourcePorts.length; ++i) + if (!$util.isString(message.sourcePorts[i])) + return "sourcePorts: string[] expected"; + } + if (message.destinationIpRanges != null && message.hasOwnProperty("destinationIpRanges")) { + if (!Array.isArray(message.destinationIpRanges)) + return "destinationIpRanges: array expected"; + for (var i = 0; i < message.destinationIpRanges.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.verify(message.destinationIpRanges[i]); + if (error) + return "destinationIpRanges." + error; + } + } + if (message.destinationPorts != null && message.hasOwnProperty("destinationPorts")) { + if (!Array.isArray(message.destinationPorts)) + return "destinationPorts: array expected"; + for (var i = 0; i < message.destinationPorts.length; ++i) + if (!$util.isString(message.destinationPorts[i])) + return "destinationPorts: string[] expected"; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + return null; + }; + + /** + * Creates an ExternalAccessRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ExternalAccessRule} ExternalAccessRule + */ + ExternalAccessRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ExternalAccessRule) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ExternalAccessRule(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAccessRule.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAccessRule.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.description != null) + message.description = String(object.description); + if (object.priority != null) + message.priority = object.priority | 0; + switch (object.action) { + default: + if (typeof object.action === "number") { + message.action = object.action; + break; + } + break; + case "ACTION_UNSPECIFIED": + case 0: + message.action = 0; + break; + case "ALLOW": + case 1: + message.action = 1; + break; + case "DENY": + case 2: + message.action = 2; + break; + } + if (object.ipProtocol != null) + message.ipProtocol = String(object.ipProtocol); + if (object.sourceIpRanges) { + if (!Array.isArray(object.sourceIpRanges)) + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAccessRule.sourceIpRanges: array expected"); + message.sourceIpRanges = []; + for (var i = 0; i < object.sourceIpRanges.length; ++i) { + if (typeof object.sourceIpRanges[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAccessRule.sourceIpRanges: object expected"); + message.sourceIpRanges[i] = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.fromObject(object.sourceIpRanges[i]); + } + } + if (object.sourcePorts) { + if (!Array.isArray(object.sourcePorts)) + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAccessRule.sourcePorts: array expected"); + message.sourcePorts = []; + for (var i = 0; i < object.sourcePorts.length; ++i) + message.sourcePorts[i] = String(object.sourcePorts[i]); + } + if (object.destinationIpRanges) { + if (!Array.isArray(object.destinationIpRanges)) + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAccessRule.destinationIpRanges: array expected"); + message.destinationIpRanges = []; + for (var i = 0; i < object.destinationIpRanges.length; ++i) { + if (typeof object.destinationIpRanges[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAccessRule.destinationIpRanges: object expected"); + message.destinationIpRanges[i] = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.fromObject(object.destinationIpRanges[i]); + } + } + if (object.destinationPorts) { + if (!Array.isArray(object.destinationPorts)) + throw TypeError(".google.cloud.vmwareengine.v1.ExternalAccessRule.destinationPorts: array expected"); + message.destinationPorts = []; + for (var i = 0; i < object.destinationPorts.length; ++i) + message.destinationPorts[i] = String(object.destinationPorts[i]); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + } + if (object.uid != null) + message.uid = String(object.uid); + return message; + }; + + /** + * Creates a plain object from an ExternalAccessRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule} message ExternalAccessRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExternalAccessRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.sourceIpRanges = []; + object.sourcePorts = []; + object.destinationIpRanges = []; + object.destinationPorts = []; + } + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.description = ""; + object.priority = 0; + object.action = options.enums === String ? "ACTION_UNSPECIFIED" : 0; + object.ipProtocol = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.uid = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.cloud.vmwareengine.v1.ExternalAccessRule.Action[message.action] === undefined ? message.action : $root.google.cloud.vmwareengine.v1.ExternalAccessRule.Action[message.action] : message.action; + if (message.ipProtocol != null && message.hasOwnProperty("ipProtocol")) + object.ipProtocol = message.ipProtocol; + if (message.sourceIpRanges && message.sourceIpRanges.length) { + object.sourceIpRanges = []; + for (var j = 0; j < message.sourceIpRanges.length; ++j) + object.sourceIpRanges[j] = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.toObject(message.sourceIpRanges[j], options); + } + if (message.sourcePorts && message.sourcePorts.length) { + object.sourcePorts = []; + for (var j = 0; j < message.sourcePorts.length; ++j) + object.sourcePorts[j] = message.sourcePorts[j]; + } + if (message.destinationIpRanges && message.destinationIpRanges.length) { + object.destinationIpRanges = []; + for (var j = 0; j < message.destinationIpRanges.length; ++j) + object.destinationIpRanges[j] = $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.toObject(message.destinationIpRanges[j], options); + } + if (message.destinationPorts && message.destinationPorts.length) { + object.destinationPorts = []; + for (var j = 0; j < message.destinationPorts.length; ++j) + object.destinationPorts[j] = message.destinationPorts[j]; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.ExternalAccessRule.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.ExternalAccessRule.State[message.state] : message.state; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + return object; + }; + + /** + * Converts this ExternalAccessRule to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @instance + * @returns {Object.} JSON object + */ + ExternalAccessRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExternalAccessRule + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExternalAccessRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ExternalAccessRule"; + }; + + /** + * Action enum. + * @name google.cloud.vmwareengine.v1.ExternalAccessRule.Action + * @enum {number} + * @property {number} ACTION_UNSPECIFIED=0 ACTION_UNSPECIFIED value + * @property {number} ALLOW=1 ALLOW value + * @property {number} DENY=2 DENY value + */ + ExternalAccessRule.Action = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "ALLOW"] = 1; + values[valuesById[2] = "DENY"] = 2; + return values; + })(); + + ExternalAccessRule.IpRange = (function() { + + /** + * Properties of an IpRange. + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @interface IIpRange + * @property {string|null} [ipAddress] IpRange ipAddress + * @property {string|null} [ipAddressRange] IpRange ipAddressRange + * @property {string|null} [externalAddress] IpRange externalAddress + */ + + /** + * Constructs a new IpRange. + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule + * @classdesc Represents an IpRange. + * @implements IIpRange + * @constructor + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange=} [properties] Properties to set + */ + function IpRange(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]]; + } + + /** + * IpRange ipAddress. + * @member {string|null|undefined} ipAddress + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @instance + */ + IpRange.prototype.ipAddress = null; + + /** + * IpRange ipAddressRange. + * @member {string|null|undefined} ipAddressRange + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @instance + */ + IpRange.prototype.ipAddressRange = null; + + /** + * IpRange externalAddress. + * @member {string|null|undefined} externalAddress + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @instance + */ + IpRange.prototype.externalAddress = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * IpRange ipRange. + * @member {"ipAddress"|"ipAddressRange"|"externalAddress"|undefined} ipRange + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @instance + */ + Object.defineProperty(IpRange.prototype, "ipRange", { + get: $util.oneOfGetter($oneOfFields = ["ipAddress", "ipAddressRange", "externalAddress"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new IpRange instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange} IpRange instance + */ + IpRange.create = function create(properties) { + return new IpRange(properties); + }; + + /** + * Encodes the specified IpRange message. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange} message IpRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IpRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.ipAddress); + if (message.ipAddressRange != null && Object.hasOwnProperty.call(message, "ipAddressRange")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.ipAddressRange); + if (message.externalAddress != null && Object.hasOwnProperty.call(message, "externalAddress")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalAddress); + return writer; + }; + + /** + * Encodes the specified IpRange message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule.IIpRange} message IpRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IpRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IpRange message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange} IpRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IpRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.ipAddress = reader.string(); + break; + } + case 2: { + message.ipAddressRange = reader.string(); + break; + } + case 3: { + message.externalAddress = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IpRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange} IpRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IpRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IpRange message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IpRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { + properties.ipRange = 1; + if (!$util.isString(message.ipAddress)) + return "ipAddress: string expected"; + } + if (message.ipAddressRange != null && message.hasOwnProperty("ipAddressRange")) { + if (properties.ipRange === 1) + return "ipRange: multiple values"; + properties.ipRange = 1; + if (!$util.isString(message.ipAddressRange)) + return "ipAddressRange: string expected"; + } + if (message.externalAddress != null && message.hasOwnProperty("externalAddress")) { + if (properties.ipRange === 1) + return "ipRange: multiple values"; + properties.ipRange = 1; + if (!$util.isString(message.externalAddress)) + return "externalAddress: string expected"; + } + return null; + }; + + /** + * Creates an IpRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange} IpRange + */ + IpRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange(); + if (object.ipAddress != null) + message.ipAddress = String(object.ipAddress); + if (object.ipAddressRange != null) + message.ipAddressRange = String(object.ipAddressRange); + if (object.externalAddress != null) + message.externalAddress = String(object.externalAddress); + return message; + }; + + /** + * Creates a plain object from an IpRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange} message IpRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IpRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { + object.ipAddress = message.ipAddress; + if (options.oneofs) + object.ipRange = "ipAddress"; + } + if (message.ipAddressRange != null && message.hasOwnProperty("ipAddressRange")) { + object.ipAddressRange = message.ipAddressRange; + if (options.oneofs) + object.ipRange = "ipAddressRange"; + } + if (message.externalAddress != null && message.hasOwnProperty("externalAddress")) { + object.externalAddress = message.externalAddress; + if (options.oneofs) + object.ipRange = "externalAddress"; + } + return object; + }; + + /** + * Converts this IpRange to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @instance + * @returns {Object.} JSON object + */ + IpRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IpRange + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IpRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange"; + }; + + return IpRange; + })(); + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.ExternalAccessRule.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + */ + ExternalAccessRule.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + return values; + })(); + + return ExternalAccessRule; + })(); + + v1.LoggingServer = (function() { + + /** + * Properties of a LoggingServer. + * @memberof google.cloud.vmwareengine.v1 + * @interface ILoggingServer + * @property {string|null} [name] LoggingServer name + * @property {google.protobuf.ITimestamp|null} [createTime] LoggingServer createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] LoggingServer updateTime + * @property {string|null} [hostname] LoggingServer hostname + * @property {number|null} [port] LoggingServer port + * @property {google.cloud.vmwareengine.v1.LoggingServer.Protocol|null} [protocol] LoggingServer protocol + * @property {google.cloud.vmwareengine.v1.LoggingServer.SourceType|null} [sourceType] LoggingServer sourceType + * @property {string|null} [uid] LoggingServer uid + */ + + /** + * Constructs a new LoggingServer. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a LoggingServer. + * @implements ILoggingServer + * @constructor + * @param {google.cloud.vmwareengine.v1.ILoggingServer=} [properties] Properties to set + */ + function LoggingServer(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]]; + } + + /** + * LoggingServer name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + */ + LoggingServer.prototype.name = ""; + + /** + * LoggingServer createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + */ + LoggingServer.prototype.createTime = null; + + /** + * LoggingServer updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + */ + LoggingServer.prototype.updateTime = null; + + /** + * LoggingServer hostname. + * @member {string} hostname + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + */ + LoggingServer.prototype.hostname = ""; + + /** + * LoggingServer port. + * @member {number} port + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + */ + LoggingServer.prototype.port = 0; + + /** + * LoggingServer protocol. + * @member {google.cloud.vmwareengine.v1.LoggingServer.Protocol} protocol + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + */ + LoggingServer.prototype.protocol = 0; + + /** + * LoggingServer sourceType. + * @member {google.cloud.vmwareengine.v1.LoggingServer.SourceType} sourceType + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + */ + LoggingServer.prototype.sourceType = 0; + + /** + * LoggingServer uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + */ + LoggingServer.prototype.uid = ""; + + /** + * Creates a new LoggingServer instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {google.cloud.vmwareengine.v1.ILoggingServer=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.LoggingServer} LoggingServer instance + */ + LoggingServer.create = function create(properties) { + return new LoggingServer(properties); + }; + + /** + * Encodes the specified LoggingServer message. Does not implicitly {@link google.cloud.vmwareengine.v1.LoggingServer.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {google.cloud.vmwareengine.v1.ILoggingServer} message LoggingServer message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingServer.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.hostname); + if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.protocol); + if (message.port != null && Object.hasOwnProperty.call(message, "port")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.port); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.uid); + if (message.sourceType != null && Object.hasOwnProperty.call(message, "sourceType")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.sourceType); + return writer; + }; + + /** + * Encodes the specified LoggingServer message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.LoggingServer.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {google.cloud.vmwareengine.v1.ILoggingServer} message LoggingServer message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingServer.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LoggingServer message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.LoggingServer} LoggingServer + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingServer.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.LoggingServer(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.hostname = reader.string(); + break; + } + case 7: { + message.port = reader.int32(); + break; + } + case 6: { + message.protocol = reader.int32(); + break; + } + case 10: { + message.sourceType = reader.int32(); + break; + } + case 8: { + message.uid = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LoggingServer message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.LoggingServer} LoggingServer + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingServer.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LoggingServer message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LoggingServer.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.hostname != null && message.hasOwnProperty("hostname")) + if (!$util.isString(message.hostname)) + return "hostname: string expected"; + if (message.port != null && message.hasOwnProperty("port")) + if (!$util.isInteger(message.port)) + return "port: integer expected"; + if (message.protocol != null && message.hasOwnProperty("protocol")) + switch (message.protocol) { + default: + return "protocol: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.sourceType != null && message.hasOwnProperty("sourceType")) + switch (message.sourceType) { + default: + return "sourceType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + return null; + }; + + /** + * Creates a LoggingServer message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.LoggingServer} LoggingServer + */ + LoggingServer.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.LoggingServer) + return object; + var message = new $root.google.cloud.vmwareengine.v1.LoggingServer(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.LoggingServer.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.LoggingServer.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.hostname != null) + message.hostname = String(object.hostname); + if (object.port != null) + message.port = object.port | 0; + switch (object.protocol) { + default: + if (typeof object.protocol === "number") { + message.protocol = object.protocol; + break; + } + break; + case "PROTOCOL_UNSPECIFIED": + case 0: + message.protocol = 0; + break; + case "UDP": + case 1: + message.protocol = 1; + break; + case "TCP": + case 2: + message.protocol = 2; + break; + } + switch (object.sourceType) { + default: + if (typeof object.sourceType === "number") { + message.sourceType = object.sourceType; + break; + } + break; + case "SOURCE_TYPE_UNSPECIFIED": + case 0: + message.sourceType = 0; + break; + case "ESXI": + case 1: + message.sourceType = 1; + break; + case "VCSA": + case 2: + message.sourceType = 2; + break; + } + if (object.uid != null) + message.uid = String(object.uid); + return message; + }; + + /** + * Creates a plain object from a LoggingServer message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {google.cloud.vmwareengine.v1.LoggingServer} message LoggingServer + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LoggingServer.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.hostname = ""; + object.protocol = options.enums === String ? "PROTOCOL_UNSPECIFIED" : 0; + object.port = 0; + object.uid = ""; + object.sourceType = options.enums === String ? "SOURCE_TYPE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.hostname != null && message.hasOwnProperty("hostname")) + object.hostname = message.hostname; + if (message.protocol != null && message.hasOwnProperty("protocol")) + object.protocol = options.enums === String ? $root.google.cloud.vmwareengine.v1.LoggingServer.Protocol[message.protocol] === undefined ? message.protocol : $root.google.cloud.vmwareengine.v1.LoggingServer.Protocol[message.protocol] : message.protocol; + if (message.port != null && message.hasOwnProperty("port")) + object.port = message.port; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.sourceType != null && message.hasOwnProperty("sourceType")) + object.sourceType = options.enums === String ? $root.google.cloud.vmwareengine.v1.LoggingServer.SourceType[message.sourceType] === undefined ? message.sourceType : $root.google.cloud.vmwareengine.v1.LoggingServer.SourceType[message.sourceType] : message.sourceType; + return object; + }; + + /** + * Converts this LoggingServer to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @instance + * @returns {Object.} JSON object + */ + LoggingServer.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LoggingServer + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.LoggingServer + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LoggingServer.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.LoggingServer"; + }; + + /** + * Protocol enum. + * @name google.cloud.vmwareengine.v1.LoggingServer.Protocol + * @enum {number} + * @property {number} PROTOCOL_UNSPECIFIED=0 PROTOCOL_UNSPECIFIED value + * @property {number} UDP=1 UDP value + * @property {number} TCP=2 TCP value + */ + LoggingServer.Protocol = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROTOCOL_UNSPECIFIED"] = 0; + values[valuesById[1] = "UDP"] = 1; + values[valuesById[2] = "TCP"] = 2; + return values; + })(); + + /** + * SourceType enum. + * @name google.cloud.vmwareengine.v1.LoggingServer.SourceType + * @enum {number} + * @property {number} SOURCE_TYPE_UNSPECIFIED=0 SOURCE_TYPE_UNSPECIFIED value + * @property {number} ESXI=1 ESXI value + * @property {number} VCSA=2 VCSA value + */ + LoggingServer.SourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ESXI"] = 1; + values[valuesById[2] = "VCSA"] = 2; + return values; + })(); + + return LoggingServer; + })(); + + v1.NodeType = (function() { + + /** + * Properties of a NodeType. + * @memberof google.cloud.vmwareengine.v1 + * @interface INodeType + * @property {string|null} [name] NodeType name + * @property {string|null} [nodeTypeId] NodeType nodeTypeId + * @property {string|null} [displayName] NodeType displayName + * @property {number|null} [virtualCpuCount] NodeType virtualCpuCount + * @property {number|null} [totalCoreCount] NodeType totalCoreCount + * @property {number|null} [memoryGb] NodeType memoryGb + * @property {number|null} [diskSizeGb] NodeType diskSizeGb + * @property {Array.|null} [availableCustomCoreCounts] NodeType availableCustomCoreCounts + * @property {google.cloud.vmwareengine.v1.NodeType.Kind|null} [kind] NodeType kind + * @property {Array.|null} [families] NodeType families + * @property {Array.|null} [capabilities] NodeType capabilities + */ + + /** + * Constructs a new NodeType. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a NodeType. + * @implements INodeType + * @constructor + * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set + */ + function NodeType(properties) { + this.availableCustomCoreCounts = []; + this.families = []; + this.capabilities = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeType name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.name = ""; + + /** + * NodeType nodeTypeId. + * @member {string} nodeTypeId + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.nodeTypeId = ""; + + /** + * NodeType displayName. + * @member {string} displayName + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.displayName = ""; + + /** + * NodeType virtualCpuCount. + * @member {number} virtualCpuCount + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.virtualCpuCount = 0; + + /** + * NodeType totalCoreCount. + * @member {number} totalCoreCount + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.totalCoreCount = 0; + + /** + * NodeType memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.memoryGb = 0; + + /** + * NodeType diskSizeGb. + * @member {number} diskSizeGb + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.diskSizeGb = 0; + + /** + * NodeType availableCustomCoreCounts. + * @member {Array.} availableCustomCoreCounts + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.availableCustomCoreCounts = $util.emptyArray; + + /** + * NodeType kind. + * @member {google.cloud.vmwareengine.v1.NodeType.Kind} kind + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.kind = 0; + + /** + * NodeType families. + * @member {Array.} families + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.families = $util.emptyArray; + + /** + * NodeType capabilities. + * @member {Array.} capabilities + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.capabilities = $util.emptyArray; + + /** + * Creates a new NodeType instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType instance + */ + NodeType.create = function create(properties) { + return new NodeType(properties); + }; + + /** + * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.nodeTypeId != null && Object.hasOwnProperty.call(message, "nodeTypeId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nodeTypeId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.virtualCpuCount != null && Object.hasOwnProperty.call(message, "virtualCpuCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.virtualCpuCount); + if (message.totalCoreCount != null && Object.hasOwnProperty.call(message, "totalCoreCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.totalCoreCount); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.memoryGb); + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.diskSizeGb); + if (message.availableCustomCoreCounts != null && message.availableCustomCoreCounts.length) { + writer.uint32(/* id 11, wireType 2 =*/90).fork(); + for (var i = 0; i < message.availableCustomCoreCounts.length; ++i) + writer.int32(message.availableCustomCoreCounts[i]); + writer.ldelim(); + } + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.kind); + if (message.families != null && message.families.length) + for (var i = 0; i < message.families.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.families[i]); + if (message.capabilities != null && message.capabilities.length) { + writer.uint32(/* id 14, wireType 2 =*/114).fork(); + for (var i = 0; i < message.capabilities.length; ++i) + writer.int32(message.capabilities[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeType.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeType message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NodeType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.nodeTypeId = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.virtualCpuCount = reader.int32(); + break; + } + case 5: { + message.totalCoreCount = reader.int32(); + break; + } + case 7: { + message.memoryGb = reader.int32(); + break; + } + case 8: { + message.diskSizeGb = reader.int32(); + break; + } + case 11: { + if (!(message.availableCustomCoreCounts && message.availableCustomCoreCounts.length)) + message.availableCustomCoreCounts = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.availableCustomCoreCounts.push(reader.int32()); + } else + message.availableCustomCoreCounts.push(reader.int32()); + break; + } + case 12: { + message.kind = reader.int32(); + break; + } + case 13: { + if (!(message.families && message.families.length)) + message.families = []; + message.families.push(reader.string()); + break; + } + case 14: { + if (!(message.capabilities && message.capabilities.length)) + message.capabilities = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.capabilities.push(reader.int32()); + } else + message.capabilities.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeType message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeType.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeType message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) + if (!$util.isString(message.nodeTypeId)) + return "nodeTypeId: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount")) + if (!$util.isInteger(message.virtualCpuCount)) + return "virtualCpuCount: integer expected"; + if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount")) + if (!$util.isInteger(message.totalCoreCount)) + return "totalCoreCount: integer expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (!$util.isInteger(message.memoryGb)) + return "memoryGb: integer expected"; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + if (!$util.isInteger(message.diskSizeGb)) + return "diskSizeGb: integer expected"; + if (message.availableCustomCoreCounts != null && message.hasOwnProperty("availableCustomCoreCounts")) { + if (!Array.isArray(message.availableCustomCoreCounts)) + return "availableCustomCoreCounts: array expected"; + for (var i = 0; i < message.availableCustomCoreCounts.length; ++i) + if (!$util.isInteger(message.availableCustomCoreCounts[i])) + return "availableCustomCoreCounts: integer[] expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.families != null && message.hasOwnProperty("families")) { + if (!Array.isArray(message.families)) + return "families: array expected"; + for (var i = 0; i < message.families.length; ++i) + if (!$util.isString(message.families[i])) + return "families: string[] expected"; + } + if (message.capabilities != null && message.hasOwnProperty("capabilities")) { + if (!Array.isArray(message.capabilities)) + return "capabilities: array expected"; + for (var i = 0; i < message.capabilities.length; ++i) + switch (message.capabilities[i]) { + default: + return "capabilities: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a NodeType message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + */ + NodeType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NodeType) + return object; + var message = new $root.google.cloud.vmwareengine.v1.NodeType(); + if (object.name != null) + message.name = String(object.name); + if (object.nodeTypeId != null) + message.nodeTypeId = String(object.nodeTypeId); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.virtualCpuCount != null) + message.virtualCpuCount = object.virtualCpuCount | 0; + if (object.totalCoreCount != null) + message.totalCoreCount = object.totalCoreCount | 0; + if (object.memoryGb != null) + message.memoryGb = object.memoryGb | 0; + if (object.diskSizeGb != null) + message.diskSizeGb = object.diskSizeGb | 0; + if (object.availableCustomCoreCounts) { + if (!Array.isArray(object.availableCustomCoreCounts)) + throw TypeError(".google.cloud.vmwareengine.v1.NodeType.availableCustomCoreCounts: array expected"); + message.availableCustomCoreCounts = []; + for (var i = 0; i < object.availableCustomCoreCounts.length; ++i) + message.availableCustomCoreCounts[i] = object.availableCustomCoreCounts[i] | 0; + } + switch (object.kind) { + default: + if (typeof object.kind === "number") { + message.kind = object.kind; + break; + } + break; + case "KIND_UNSPECIFIED": + case 0: + message.kind = 0; + break; + case "STANDARD": + case 1: + message.kind = 1; + break; + case "STORAGE_ONLY": + case 2: + message.kind = 2; + break; + } + if (object.families) { + if (!Array.isArray(object.families)) + throw TypeError(".google.cloud.vmwareengine.v1.NodeType.families: array expected"); + message.families = []; + for (var i = 0; i < object.families.length; ++i) + message.families[i] = String(object.families[i]); + } + if (object.capabilities) { + if (!Array.isArray(object.capabilities)) + throw TypeError(".google.cloud.vmwareengine.v1.NodeType.capabilities: array expected"); + message.capabilities = []; + for (var i = 0; i < object.capabilities.length; ++i) + switch (object.capabilities[i]) { + default: + if (typeof object.capabilities[i] === "number") { + message.capabilities[i] = object.capabilities[i]; + break; + } + case "CAPABILITY_UNSPECIFIED": + case 0: + message.capabilities[i] = 0; + break; + case "STRETCHED_CLUSTERS": + case 1: + message.capabilities[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a NodeType message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {google.cloud.vmwareengine.v1.NodeType} message NodeType + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeType.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.availableCustomCoreCounts = []; + object.families = []; + object.capabilities = []; + } + if (options.defaults) { + object.name = ""; + object.nodeTypeId = ""; + object.displayName = ""; + object.virtualCpuCount = 0; + object.totalCoreCount = 0; + object.memoryGb = 0; + object.diskSizeGb = 0; + object.kind = options.enums === String ? "KIND_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) + object.nodeTypeId = message.nodeTypeId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount")) + object.virtualCpuCount = message.virtualCpuCount; + if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount")) + object.totalCoreCount = message.totalCoreCount; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = message.memoryGb; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + object.diskSizeGb = message.diskSizeGb; + if (message.availableCustomCoreCounts && message.availableCustomCoreCounts.length) { + object.availableCustomCoreCounts = []; + for (var j = 0; j < message.availableCustomCoreCounts.length; ++j) + object.availableCustomCoreCounts[j] = message.availableCustomCoreCounts[j]; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = options.enums === String ? $root.google.cloud.vmwareengine.v1.NodeType.Kind[message.kind] === undefined ? message.kind : $root.google.cloud.vmwareengine.v1.NodeType.Kind[message.kind] : message.kind; + if (message.families && message.families.length) { + object.families = []; + for (var j = 0; j < message.families.length; ++j) + object.families[j] = message.families[j]; + } + if (message.capabilities && message.capabilities.length) { + object.capabilities = []; + for (var j = 0; j < message.capabilities.length; ++j) + object.capabilities[j] = options.enums === String ? $root.google.cloud.vmwareengine.v1.NodeType.Capability[message.capabilities[j]] === undefined ? message.capabilities[j] : $root.google.cloud.vmwareengine.v1.NodeType.Capability[message.capabilities[j]] : message.capabilities[j]; + } + return object; + }; + + /** + * Converts this NodeType to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + * @returns {Object.} JSON object + */ + NodeType.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodeType + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.NodeType + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeType"; + }; + + /** + * Kind enum. + * @name google.cloud.vmwareengine.v1.NodeType.Kind + * @enum {number} + * @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} STORAGE_ONLY=2 STORAGE_ONLY value + */ + NodeType.Kind = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "KIND_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "STORAGE_ONLY"] = 2; + return values; + })(); + + /** + * Capability enum. + * @name google.cloud.vmwareengine.v1.NodeType.Capability + * @enum {number} + * @property {number} CAPABILITY_UNSPECIFIED=0 CAPABILITY_UNSPECIFIED value + * @property {number} STRETCHED_CLUSTERS=1 STRETCHED_CLUSTERS value + */ + NodeType.Capability = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CAPABILITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "STRETCHED_CLUSTERS"] = 1; + return values; + })(); + + return NodeType; + })(); + + v1.Credentials = (function() { + + /** + * Properties of a Credentials. + * @memberof google.cloud.vmwareengine.v1 + * @interface ICredentials + * @property {string|null} [username] Credentials username + * @property {string|null} [password] Credentials password + */ + + /** + * Constructs a new Credentials. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Credentials. + * @implements ICredentials + * @constructor + * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set + */ + function Credentials(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]]; + } + + /** + * Credentials username. + * @member {string} username + * @memberof google.cloud.vmwareengine.v1.Credentials + * @instance + */ + Credentials.prototype.username = ""; + + /** + * Credentials password. + * @member {string} password + * @memberof google.cloud.vmwareengine.v1.Credentials + * @instance + */ + Credentials.prototype.password = ""; + + /** + * Creates a new Credentials instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials instance + */ + Credentials.create = function create(properties) { + return new Credentials(properties); + }; + + /** + * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Credentials.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); + return writer; + }; + + /** + * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Credentials.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Credentials message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Credentials.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Credentials(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.username = reader.string(); + break; + } + case 2: { + message.password = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Credentials message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Credentials.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Credentials message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Credentials.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + return null; + }; + + /** + * Creates a Credentials message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + */ + Credentials.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Credentials) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Credentials(); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + return message; + }; + + /** + * Creates a plain object from a Credentials message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {google.cloud.vmwareengine.v1.Credentials} message Credentials + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Credentials.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.username = ""; + object.password = ""; + } + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + return object; + }; + + /** + * Converts this Credentials to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Credentials + * @instance + * @returns {Object.} JSON object + */ + Credentials.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Credentials + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Credentials + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Credentials.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Credentials"; + }; + + return Credentials; + })(); + + v1.HcxActivationKey = (function() { + + /** + * Properties of a HcxActivationKey. + * @memberof google.cloud.vmwareengine.v1 + * @interface IHcxActivationKey + * @property {string|null} [name] HcxActivationKey name + * @property {google.protobuf.ITimestamp|null} [createTime] HcxActivationKey createTime + * @property {google.cloud.vmwareengine.v1.HcxActivationKey.State|null} [state] HcxActivationKey state + * @property {string|null} [activationKey] HcxActivationKey activationKey + * @property {string|null} [uid] HcxActivationKey uid + */ + + /** + * Constructs a new HcxActivationKey. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a HcxActivationKey. + * @implements IHcxActivationKey + * @constructor + * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set + */ + function HcxActivationKey(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]]; + } + + /** + * HcxActivationKey name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + */ + HcxActivationKey.prototype.name = ""; + + /** + * HcxActivationKey createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + */ + HcxActivationKey.prototype.createTime = null; + + /** + * HcxActivationKey state. + * @member {google.cloud.vmwareengine.v1.HcxActivationKey.State} state + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + */ + HcxActivationKey.prototype.state = 0; + + /** + * HcxActivationKey activationKey. + * @member {string} activationKey + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + */ + HcxActivationKey.prototype.activationKey = ""; + + /** + * HcxActivationKey uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + */ + HcxActivationKey.prototype.uid = ""; + + /** + * Creates a new HcxActivationKey instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey instance + */ + HcxActivationKey.create = function create(properties) { + return new HcxActivationKey(properties); + }; + + /** + * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HcxActivationKey.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.activationKey != null && Object.hasOwnProperty.call(message, "activationKey")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.activationKey); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.uid); + return writer; + }; + + /** + * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HcxActivationKey.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HcxActivationKey message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HcxActivationKey.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.state = reader.int32(); + break; + } + case 4: { + message.activationKey = reader.string(); + break; + } + case 5: { + message.uid = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HcxActivationKey.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HcxActivationKey message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HcxActivationKey.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.activationKey != null && message.hasOwnProperty("activationKey")) + if (!$util.isString(message.activationKey)) + return "activationKey: string expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + return null; + }; + + /** + * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + */ + HcxActivationKey.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.HcxActivationKey) + return object; + var message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.HcxActivationKey.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "AVAILABLE": + case 1: + message.state = 1; + break; + case "CONSUMED": + case 2: + message.state = 2; + break; + case "CREATING": + case 3: + message.state = 3; + break; + } + if (object.activationKey != null) + message.activationKey = String(object.activationKey); + if (object.uid != null) + message.uid = String(object.uid); + return message; + }; + + /** + * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {google.cloud.vmwareengine.v1.HcxActivationKey} message HcxActivationKey + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HcxActivationKey.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.activationKey = ""; + object.uid = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] : message.state; + if (message.activationKey != null && message.hasOwnProperty("activationKey")) + object.activationKey = message.activationKey; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + return object; + }; + + /** + * Converts this HcxActivationKey to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + * @returns {Object.} JSON object + */ + HcxActivationKey.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HcxActivationKey + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HcxActivationKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.HcxActivationKey"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.HcxActivationKey.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} AVAILABLE=1 AVAILABLE value + * @property {number} CONSUMED=2 CONSUMED value + * @property {number} CREATING=3 CREATING value + */ + HcxActivationKey.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AVAILABLE"] = 1; + values[valuesById[2] = "CONSUMED"] = 2; + values[valuesById[3] = "CREATING"] = 3; + return values; + })(); + + return HcxActivationKey; + })(); + + v1.Hcx = (function() { + + /** + * Properties of a Hcx. + * @memberof google.cloud.vmwareengine.v1 + * @interface IHcx + * @property {string|null} [internalIp] Hcx internalIp + * @property {string|null} [version] Hcx version + * @property {google.cloud.vmwareengine.v1.Hcx.State|null} [state] Hcx state + * @property {string|null} [fqdn] Hcx fqdn + */ + + /** + * Constructs a new Hcx. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Hcx. + * @implements IHcx + * @constructor + * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set + */ + function Hcx(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]]; + } + + /** + * Hcx internalIp. + * @member {string} internalIp + * @memberof google.cloud.vmwareengine.v1.Hcx + * @instance + */ + Hcx.prototype.internalIp = ""; + + /** + * Hcx version. + * @member {string} version + * @memberof google.cloud.vmwareengine.v1.Hcx + * @instance + */ + Hcx.prototype.version = ""; + + /** + * Hcx state. + * @member {google.cloud.vmwareengine.v1.Hcx.State} state + * @memberof google.cloud.vmwareengine.v1.Hcx + * @instance + */ + Hcx.prototype.state = 0; + + /** + * Hcx fqdn. + * @member {string} fqdn + * @memberof google.cloud.vmwareengine.v1.Hcx + * @instance + */ + Hcx.prototype.fqdn = ""; + + /** + * Creates a new Hcx instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx instance + */ + Hcx.create = function create(properties) { + return new Hcx(properties); + }; + + /** + * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Hcx.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + return writer; + }; + + /** + * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Hcx.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Hcx message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Hcx.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Hcx(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.internalIp = reader.string(); + break; + } + case 4: { + message.version = reader.string(); + break; + } + case 5: { + message.state = reader.int32(); + break; + } + case 6: { + message.fqdn = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Hcx message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Hcx.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Hcx message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Hcx.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + if (!$util.isString(message.internalIp)) + return "internalIp: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + if (!$util.isString(message.fqdn)) + return "fqdn: string expected"; + return null; + }; + + /** + * Creates a Hcx message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + */ + Hcx.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Hcx) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Hcx(); + if (object.internalIp != null) + message.internalIp = String(object.internalIp); + if (object.version != null) + message.version = String(object.version); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + } + if (object.fqdn != null) + message.fqdn = String(object.fqdn); + return message; + }; + + /** + * Creates a plain object from a Hcx message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {google.cloud.vmwareengine.v1.Hcx} message Hcx + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Hcx.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.internalIp = ""; + object.version = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.fqdn = ""; + } + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + object.internalIp = message.internalIp; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] : message.state; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + object.fqdn = message.fqdn; + return object; + }; + + /** + * Converts this Hcx to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Hcx + * @instance + * @returns {Object.} JSON object + */ + Hcx.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Hcx + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Hcx + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Hcx.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Hcx"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Hcx.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + */ + Hcx.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + return values; + })(); + + return Hcx; + })(); + + v1.Nsx = (function() { + + /** + * Properties of a Nsx. + * @memberof google.cloud.vmwareengine.v1 + * @interface INsx + * @property {string|null} [internalIp] Nsx internalIp + * @property {string|null} [version] Nsx version + * @property {google.cloud.vmwareengine.v1.Nsx.State|null} [state] Nsx state + * @property {string|null} [fqdn] Nsx fqdn + */ + + /** + * Constructs a new Nsx. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Nsx. + * @implements INsx + * @constructor + * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set + */ + function Nsx(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]]; + } + + /** + * Nsx internalIp. + * @member {string} internalIp + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + */ + Nsx.prototype.internalIp = ""; + + /** + * Nsx version. + * @member {string} version + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + */ + Nsx.prototype.version = ""; + + /** + * Nsx state. + * @member {google.cloud.vmwareengine.v1.Nsx.State} state + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + */ + Nsx.prototype.state = 0; + + /** + * Nsx fqdn. + * @member {string} fqdn + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + */ + Nsx.prototype.fqdn = ""; + + /** + * Creates a new Nsx instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx instance + */ + Nsx.create = function create(properties) { + return new Nsx(properties); + }; + + /** + * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Nsx.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + return writer; + }; + + /** + * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Nsx.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Nsx message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Nsx.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Nsx(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.internalIp = reader.string(); + break; + } + case 4: { + message.version = reader.string(); + break; + } + case 5: { + message.state = reader.int32(); + break; + } + case 6: { + message.fqdn = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Nsx message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Nsx.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Nsx message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Nsx.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + if (!$util.isString(message.internalIp)) + return "internalIp: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + if (!$util.isString(message.fqdn)) + return "fqdn: string expected"; + return null; + }; + + /** + * Creates a Nsx message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + */ + Nsx.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Nsx) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Nsx(); + if (object.internalIp != null) + message.internalIp = String(object.internalIp); + if (object.version != null) + message.version = String(object.version); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + } + if (object.fqdn != null) + message.fqdn = String(object.fqdn); + return message; + }; + + /** + * Creates a plain object from a Nsx message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {google.cloud.vmwareengine.v1.Nsx} message Nsx + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Nsx.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.internalIp = ""; + object.version = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.fqdn = ""; + } + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + object.internalIp = message.internalIp; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] : message.state; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + object.fqdn = message.fqdn; + return object; + }; + + /** + * Converts this Nsx to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + * @returns {Object.} JSON object + */ + Nsx.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Nsx + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Nsx.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Nsx"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Nsx.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + */ + Nsx.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + return values; + })(); + + return Nsx; + })(); + + v1.Vcenter = (function() { + + /** + * Properties of a Vcenter. + * @memberof google.cloud.vmwareengine.v1 + * @interface IVcenter + * @property {string|null} [internalIp] Vcenter internalIp + * @property {string|null} [version] Vcenter version + * @property {google.cloud.vmwareengine.v1.Vcenter.State|null} [state] Vcenter state + * @property {string|null} [fqdn] Vcenter fqdn + */ + + /** + * Constructs a new Vcenter. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Vcenter. + * @implements IVcenter + * @constructor + * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set + */ + function Vcenter(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]]; + } + + /** + * Vcenter internalIp. + * @member {string} internalIp + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @instance + */ + Vcenter.prototype.internalIp = ""; + + /** + * Vcenter version. + * @member {string} version + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @instance + */ + Vcenter.prototype.version = ""; + + /** + * Vcenter state. + * @member {google.cloud.vmwareengine.v1.Vcenter.State} state + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @instance + */ + Vcenter.prototype.state = 0; + + /** + * Vcenter fqdn. + * @member {string} fqdn + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @instance + */ + Vcenter.prototype.fqdn = ""; + + /** + * Creates a new Vcenter instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter instance + */ + Vcenter.create = function create(properties) { + return new Vcenter(properties); + }; + + /** + * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vcenter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + return writer; + }; + + /** + * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vcenter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Vcenter message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vcenter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Vcenter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.internalIp = reader.string(); + break; + } + case 4: { + message.version = reader.string(); + break; + } + case 5: { + message.state = reader.int32(); + break; + } + case 6: { + message.fqdn = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Vcenter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vcenter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Vcenter message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Vcenter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + if (!$util.isString(message.internalIp)) + return "internalIp: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + if (!$util.isString(message.fqdn)) + return "fqdn: string expected"; + return null; + }; + + /** + * Creates a Vcenter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + */ + Vcenter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Vcenter) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Vcenter(); + if (object.internalIp != null) + message.internalIp = String(object.internalIp); + if (object.version != null) + message.version = String(object.version); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + } + if (object.fqdn != null) + message.fqdn = String(object.fqdn); + return message; + }; + + /** + * Creates a plain object from a Vcenter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {google.cloud.vmwareengine.v1.Vcenter} message Vcenter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Vcenter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.internalIp = ""; + object.version = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.fqdn = ""; + } + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + object.internalIp = message.internalIp; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] : message.state; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + object.fqdn = message.fqdn; + return object; + }; + + /** + * Converts this Vcenter to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @instance + * @returns {Object.} JSON object + */ + Vcenter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Vcenter + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Vcenter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Vcenter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Vcenter"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Vcenter.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + */ + Vcenter.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + return values; + })(); + + return Vcenter; + })(); + + v1.DnsForwarding = (function() { + + /** + * Properties of a DnsForwarding. + * @memberof google.cloud.vmwareengine.v1 + * @interface IDnsForwarding + * @property {string|null} [name] DnsForwarding name + * @property {google.protobuf.ITimestamp|null} [createTime] DnsForwarding createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] DnsForwarding updateTime + * @property {Array.|null} [forwardingRules] DnsForwarding forwardingRules + */ + + /** + * Constructs a new DnsForwarding. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a DnsForwarding. + * @implements IDnsForwarding + * @constructor + * @param {google.cloud.vmwareengine.v1.IDnsForwarding=} [properties] Properties to set + */ + function DnsForwarding(properties) { + this.forwardingRules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DnsForwarding name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @instance + */ + DnsForwarding.prototype.name = ""; + + /** + * DnsForwarding createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @instance + */ + DnsForwarding.prototype.createTime = null; + + /** + * DnsForwarding updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @instance + */ + DnsForwarding.prototype.updateTime = null; + + /** + * DnsForwarding forwardingRules. + * @member {Array.} forwardingRules + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @instance + */ + DnsForwarding.prototype.forwardingRules = $util.emptyArray; + + /** + * Creates a new DnsForwarding instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {google.cloud.vmwareengine.v1.IDnsForwarding=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DnsForwarding} DnsForwarding instance + */ + DnsForwarding.create = function create(properties) { + return new DnsForwarding(properties); + }; + + /** + * Encodes the specified DnsForwarding message. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsForwarding.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {google.cloud.vmwareengine.v1.IDnsForwarding} message DnsForwarding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DnsForwarding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.forwardingRules != null && message.forwardingRules.length) + for (var i = 0; i < message.forwardingRules.length; ++i) + $root.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.encode(message.forwardingRules[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DnsForwarding message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsForwarding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {google.cloud.vmwareengine.v1.IDnsForwarding} message DnsForwarding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DnsForwarding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DnsForwarding message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DnsForwarding} DnsForwarding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DnsForwarding.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DnsForwarding(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.forwardingRules && message.forwardingRules.length)) + message.forwardingRules = []; + message.forwardingRules.push($root.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DnsForwarding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DnsForwarding} DnsForwarding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DnsForwarding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DnsForwarding message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DnsForwarding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.forwardingRules != null && message.hasOwnProperty("forwardingRules")) { + if (!Array.isArray(message.forwardingRules)) + return "forwardingRules: array expected"; + for (var i = 0; i < message.forwardingRules.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.verify(message.forwardingRules[i]); + if (error) + return "forwardingRules." + error; + } + } + return null; + }; + + /** + * Creates a DnsForwarding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DnsForwarding} DnsForwarding + */ + DnsForwarding.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DnsForwarding) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DnsForwarding(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.DnsForwarding.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.DnsForwarding.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.forwardingRules) { + if (!Array.isArray(object.forwardingRules)) + throw TypeError(".google.cloud.vmwareengine.v1.DnsForwarding.forwardingRules: array expected"); + message.forwardingRules = []; + for (var i = 0; i < object.forwardingRules.length; ++i) { + if (typeof object.forwardingRules[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.DnsForwarding.forwardingRules: object expected"); + message.forwardingRules[i] = $root.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.fromObject(object.forwardingRules[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a DnsForwarding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {google.cloud.vmwareengine.v1.DnsForwarding} message DnsForwarding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DnsForwarding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.forwardingRules = []; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.forwardingRules && message.forwardingRules.length) { + object.forwardingRules = []; + for (var j = 0; j < message.forwardingRules.length; ++j) + object.forwardingRules[j] = $root.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.toObject(message.forwardingRules[j], options); + } + return object; + }; + + /** + * Converts this DnsForwarding to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @instance + * @returns {Object.} JSON object + */ + DnsForwarding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DnsForwarding + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DnsForwarding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DnsForwarding"; + }; + + DnsForwarding.ForwardingRule = (function() { + + /** + * Properties of a ForwardingRule. + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @interface IForwardingRule + * @property {string|null} [domain] ForwardingRule domain + * @property {Array.|null} [nameServers] ForwardingRule nameServers + */ + + /** + * Constructs a new ForwardingRule. + * @memberof google.cloud.vmwareengine.v1.DnsForwarding + * @classdesc Represents a ForwardingRule. + * @implements IForwardingRule + * @constructor + * @param {google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule=} [properties] Properties to set + */ + function ForwardingRule(properties) { + this.nameServers = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ForwardingRule domain. + * @member {string} domain + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @instance + */ + ForwardingRule.prototype.domain = ""; + + /** + * ForwardingRule nameServers. + * @member {Array.} nameServers + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @instance + */ + ForwardingRule.prototype.nameServers = $util.emptyArray; + + /** + * Creates a new ForwardingRule instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule} ForwardingRule instance + */ + ForwardingRule.create = function create(properties) { + return new ForwardingRule(properties); + }; + + /** + * Encodes the specified ForwardingRule message. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule} message ForwardingRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ForwardingRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.domain); + if (message.nameServers != null && message.nameServers.length) + for (var i = 0; i < message.nameServers.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nameServers[i]); + return writer; + }; + + /** + * Encodes the specified ForwardingRule message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {google.cloud.vmwareengine.v1.DnsForwarding.IForwardingRule} message ForwardingRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ForwardingRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ForwardingRule message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule} ForwardingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ForwardingRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.domain = reader.string(); + break; + } + case 2: { + if (!(message.nameServers && message.nameServers.length)) + message.nameServers = []; + message.nameServers.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ForwardingRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule} ForwardingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ForwardingRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ForwardingRule message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ForwardingRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.nameServers != null && message.hasOwnProperty("nameServers")) { + if (!Array.isArray(message.nameServers)) + return "nameServers: array expected"; + for (var i = 0; i < message.nameServers.length; ++i) + if (!$util.isString(message.nameServers[i])) + return "nameServers: string[] expected"; + } + return null; + }; + + /** + * Creates a ForwardingRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule} ForwardingRule + */ + ForwardingRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule(); + if (object.domain != null) + message.domain = String(object.domain); + if (object.nameServers) { + if (!Array.isArray(object.nameServers)) + throw TypeError(".google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.nameServers: array expected"); + message.nameServers = []; + for (var i = 0; i < object.nameServers.length; ++i) + message.nameServers[i] = String(object.nameServers[i]); + } + return message; + }; + + /** + * Creates a plain object from a ForwardingRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule} message ForwardingRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ForwardingRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.nameServers = []; + if (options.defaults) + object.domain = ""; + if (message.domain != null && message.hasOwnProperty("domain")) + object.domain = message.domain; + if (message.nameServers && message.nameServers.length) { + object.nameServers = []; + for (var j = 0; j < message.nameServers.length; ++j) + object.nameServers[j] = message.nameServers[j]; + } + return object; + }; + + /** + * Converts this ForwardingRule to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @instance + * @returns {Object.} JSON object + */ + ForwardingRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ForwardingRule + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ForwardingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule"; + }; + + return ForwardingRule; + })(); + + return DnsForwarding; + })(); + + v1.NetworkPeering = (function() { + + /** + * Properties of a NetworkPeering. + * @memberof google.cloud.vmwareengine.v1 + * @interface INetworkPeering + * @property {string|null} [name] NetworkPeering name + * @property {google.protobuf.ITimestamp|null} [createTime] NetworkPeering createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NetworkPeering updateTime + * @property {string|null} [peerNetwork] NetworkPeering peerNetwork + * @property {boolean|null} [exportCustomRoutes] NetworkPeering exportCustomRoutes + * @property {boolean|null} [importCustomRoutes] NetworkPeering importCustomRoutes + * @property {boolean|null} [exchangeSubnetRoutes] NetworkPeering exchangeSubnetRoutes + * @property {boolean|null} [exportCustomRoutesWithPublicIp] NetworkPeering exportCustomRoutesWithPublicIp + * @property {boolean|null} [importCustomRoutesWithPublicIp] NetworkPeering importCustomRoutesWithPublicIp + * @property {google.cloud.vmwareengine.v1.NetworkPeering.State|null} [state] NetworkPeering state + * @property {string|null} [stateDetails] NetworkPeering stateDetails + * @property {number|null} [peerMtu] NetworkPeering peerMtu + * @property {google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType|null} [peerNetworkType] NetworkPeering peerNetworkType + * @property {string|null} [uid] NetworkPeering uid + * @property {string|null} [vmwareEngineNetwork] NetworkPeering vmwareEngineNetwork + * @property {string|null} [description] NetworkPeering description + */ + + /** + * Constructs a new NetworkPeering. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a NetworkPeering. + * @implements INetworkPeering + * @constructor + * @param {google.cloud.vmwareengine.v1.INetworkPeering=} [properties] Properties to set + */ + function NetworkPeering(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]]; + } + + /** + * NetworkPeering name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.name = ""; + + /** + * NetworkPeering createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.createTime = null; + + /** + * NetworkPeering updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.updateTime = null; + + /** + * NetworkPeering peerNetwork. + * @member {string} peerNetwork + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.peerNetwork = ""; + + /** + * NetworkPeering exportCustomRoutes. + * @member {boolean|null|undefined} exportCustomRoutes + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.exportCustomRoutes = null; + + /** + * NetworkPeering importCustomRoutes. + * @member {boolean|null|undefined} importCustomRoutes + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.importCustomRoutes = null; + + /** + * NetworkPeering exchangeSubnetRoutes. + * @member {boolean|null|undefined} exchangeSubnetRoutes + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.exchangeSubnetRoutes = null; + + /** + * NetworkPeering exportCustomRoutesWithPublicIp. + * @member {boolean|null|undefined} exportCustomRoutesWithPublicIp + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.exportCustomRoutesWithPublicIp = null; + + /** + * NetworkPeering importCustomRoutesWithPublicIp. + * @member {boolean|null|undefined} importCustomRoutesWithPublicIp + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.importCustomRoutesWithPublicIp = null; + + /** + * NetworkPeering state. + * @member {google.cloud.vmwareengine.v1.NetworkPeering.State} state + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.state = 0; + + /** + * NetworkPeering stateDetails. + * @member {string} stateDetails + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.stateDetails = ""; + + /** + * NetworkPeering peerMtu. + * @member {number} peerMtu + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.peerMtu = 0; + + /** + * NetworkPeering peerNetworkType. + * @member {google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType} peerNetworkType + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.peerNetworkType = 0; + + /** + * NetworkPeering uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.uid = ""; + + /** + * NetworkPeering vmwareEngineNetwork. + * @member {string} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.vmwareEngineNetwork = ""; + + /** + * NetworkPeering description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + NetworkPeering.prototype.description = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NetworkPeering _exportCustomRoutes. + * @member {"exportCustomRoutes"|undefined} _exportCustomRoutes + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + Object.defineProperty(NetworkPeering.prototype, "_exportCustomRoutes", { + get: $util.oneOfGetter($oneOfFields = ["exportCustomRoutes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkPeering _importCustomRoutes. + * @member {"importCustomRoutes"|undefined} _importCustomRoutes + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + Object.defineProperty(NetworkPeering.prototype, "_importCustomRoutes", { + get: $util.oneOfGetter($oneOfFields = ["importCustomRoutes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkPeering _exchangeSubnetRoutes. + * @member {"exchangeSubnetRoutes"|undefined} _exchangeSubnetRoutes + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + Object.defineProperty(NetworkPeering.prototype, "_exchangeSubnetRoutes", { + get: $util.oneOfGetter($oneOfFields = ["exchangeSubnetRoutes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkPeering _exportCustomRoutesWithPublicIp. + * @member {"exportCustomRoutesWithPublicIp"|undefined} _exportCustomRoutesWithPublicIp + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + Object.defineProperty(NetworkPeering.prototype, "_exportCustomRoutesWithPublicIp", { + get: $util.oneOfGetter($oneOfFields = ["exportCustomRoutesWithPublicIp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkPeering _importCustomRoutesWithPublicIp. + * @member {"importCustomRoutesWithPublicIp"|undefined} _importCustomRoutesWithPublicIp + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + */ + Object.defineProperty(NetworkPeering.prototype, "_importCustomRoutesWithPublicIp", { + get: $util.oneOfGetter($oneOfFields = ["importCustomRoutesWithPublicIp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NetworkPeering instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {google.cloud.vmwareengine.v1.INetworkPeering=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NetworkPeering} NetworkPeering instance + */ + NetworkPeering.create = function create(properties) { + return new NetworkPeering(properties); + }; + + /** + * Encodes the specified NetworkPeering message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPeering.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {google.cloud.vmwareengine.v1.INetworkPeering} message NetworkPeering message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPeering.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.peerNetwork != null && Object.hasOwnProperty.call(message, "peerNetwork")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.peerNetwork); + if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateDetails); + if (message.exportCustomRoutes != null && Object.hasOwnProperty.call(message, "exportCustomRoutes")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.exportCustomRoutes); + if (message.importCustomRoutes != null && Object.hasOwnProperty.call(message, "importCustomRoutes")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.importCustomRoutes); + if (message.exchangeSubnetRoutes != null && Object.hasOwnProperty.call(message, "exchangeSubnetRoutes")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.exchangeSubnetRoutes); + if (message.exportCustomRoutesWithPublicIp != null && Object.hasOwnProperty.call(message, "exportCustomRoutesWithPublicIp")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.exportCustomRoutesWithPublicIp); + if (message.importCustomRoutesWithPublicIp != null && Object.hasOwnProperty.call(message, "importCustomRoutesWithPublicIp")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.importCustomRoutesWithPublicIp); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.state); + if (message.peerMtu != null && Object.hasOwnProperty.call(message, "peerMtu")) + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.peerMtu); + if (message.peerNetworkType != null && Object.hasOwnProperty.call(message, "peerNetworkType")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.peerNetworkType); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.uid); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + writer.uint32(/* id 20, wireType 2 =*/162).string(message.vmwareEngineNetwork); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 21, wireType 2 =*/170).string(message.description); + return writer; + }; + + /** + * Encodes the specified NetworkPeering message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPeering.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {google.cloud.vmwareengine.v1.INetworkPeering} message NetworkPeering message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPeering.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkPeering message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.NetworkPeering} NetworkPeering + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPeering.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPeering(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.peerNetwork = reader.string(); + break; + } + case 8: { + message.exportCustomRoutes = reader.bool(); + break; + } + case 9: { + message.importCustomRoutes = reader.bool(); + break; + } + case 10: { + message.exchangeSubnetRoutes = reader.bool(); + break; + } + case 11: { + message.exportCustomRoutesWithPublicIp = reader.bool(); + break; + } + case 12: { + message.importCustomRoutesWithPublicIp = reader.bool(); + break; + } + case 13: { + message.state = reader.int32(); + break; + } + case 7: { + message.stateDetails = reader.string(); + break; + } + case 14: { + message.peerMtu = reader.int32(); + break; + } + case 16: { + message.peerNetworkType = reader.int32(); + break; + } + case 17: { + message.uid = reader.string(); + break; + } + case 20: { + message.vmwareEngineNetwork = reader.string(); + break; + } + case 21: { + message.description = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkPeering message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.NetworkPeering} NetworkPeering + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPeering.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkPeering message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkPeering.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.peerNetwork != null && message.hasOwnProperty("peerNetwork")) + if (!$util.isString(message.peerNetwork)) + return "peerNetwork: string expected"; + if (message.exportCustomRoutes != null && message.hasOwnProperty("exportCustomRoutes")) { + properties._exportCustomRoutes = 1; + if (typeof message.exportCustomRoutes !== "boolean") + return "exportCustomRoutes: boolean expected"; + } + if (message.importCustomRoutes != null && message.hasOwnProperty("importCustomRoutes")) { + properties._importCustomRoutes = 1; + if (typeof message.importCustomRoutes !== "boolean") + return "importCustomRoutes: boolean expected"; + } + if (message.exchangeSubnetRoutes != null && message.hasOwnProperty("exchangeSubnetRoutes")) { + properties._exchangeSubnetRoutes = 1; + if (typeof message.exchangeSubnetRoutes !== "boolean") + return "exchangeSubnetRoutes: boolean expected"; + } + if (message.exportCustomRoutesWithPublicIp != null && message.hasOwnProperty("exportCustomRoutesWithPublicIp")) { + properties._exportCustomRoutesWithPublicIp = 1; + if (typeof message.exportCustomRoutesWithPublicIp !== "boolean") + return "exportCustomRoutesWithPublicIp: boolean expected"; + } + if (message.importCustomRoutesWithPublicIp != null && message.hasOwnProperty("importCustomRoutesWithPublicIp")) { + properties._importCustomRoutesWithPublicIp = 1; + if (typeof message.importCustomRoutesWithPublicIp !== "boolean") + return "importCustomRoutesWithPublicIp: boolean expected"; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) + if (!$util.isString(message.stateDetails)) + return "stateDetails: string expected"; + if (message.peerMtu != null && message.hasOwnProperty("peerMtu")) + if (!$util.isInteger(message.peerMtu)) + return "peerMtu: integer expected"; + if (message.peerNetworkType != null && message.hasOwnProperty("peerNetworkType")) + switch (message.peerNetworkType) { + default: + return "peerNetworkType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + if (!$util.isString(message.vmwareEngineNetwork)) + return "vmwareEngineNetwork: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates a NetworkPeering message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.NetworkPeering} NetworkPeering + */ + NetworkPeering.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPeering) + return object; + var message = new $root.google.cloud.vmwareengine.v1.NetworkPeering(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPeering.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPeering.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.peerNetwork != null) + message.peerNetwork = String(object.peerNetwork); + if (object.exportCustomRoutes != null) + message.exportCustomRoutes = Boolean(object.exportCustomRoutes); + if (object.importCustomRoutes != null) + message.importCustomRoutes = Boolean(object.importCustomRoutes); + if (object.exchangeSubnetRoutes != null) + message.exchangeSubnetRoutes = Boolean(object.exchangeSubnetRoutes); + if (object.exportCustomRoutesWithPublicIp != null) + message.exportCustomRoutesWithPublicIp = Boolean(object.exportCustomRoutesWithPublicIp); + if (object.importCustomRoutesWithPublicIp != null) + message.importCustomRoutesWithPublicIp = Boolean(object.importCustomRoutesWithPublicIp); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "INACTIVE": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "CREATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + } + if (object.stateDetails != null) + message.stateDetails = String(object.stateDetails); + if (object.peerMtu != null) + message.peerMtu = object.peerMtu | 0; + switch (object.peerNetworkType) { + default: + if (typeof object.peerNetworkType === "number") { + message.peerNetworkType = object.peerNetworkType; + break; + } + break; + case "PEER_NETWORK_TYPE_UNSPECIFIED": + case 0: + message.peerNetworkType = 0; + break; + case "STANDARD": + case 1: + message.peerNetworkType = 1; + break; + case "VMWARE_ENGINE_NETWORK": + case 2: + message.peerNetworkType = 2; + break; + case "PRIVATE_SERVICES_ACCESS": + case 3: + message.peerNetworkType = 3; + break; + case "NETAPP_CLOUD_VOLUMES": + case 4: + message.peerNetworkType = 4; + break; + case "THIRD_PARTY_SERVICE": + case 5: + message.peerNetworkType = 5; + break; + case "DELL_POWERSCALE": + case 6: + message.peerNetworkType = 6; + break; + } + if (object.uid != null) + message.uid = String(object.uid); + if (object.vmwareEngineNetwork != null) + message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from a NetworkPeering message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPeering} message NetworkPeering + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkPeering.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.peerNetwork = ""; + object.stateDetails = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.peerMtu = 0; + object.peerNetworkType = options.enums === String ? "PEER_NETWORK_TYPE_UNSPECIFIED" : 0; + object.uid = ""; + object.vmwareEngineNetwork = ""; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.peerNetwork != null && message.hasOwnProperty("peerNetwork")) + object.peerNetwork = message.peerNetwork; + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) + object.stateDetails = message.stateDetails; + if (message.exportCustomRoutes != null && message.hasOwnProperty("exportCustomRoutes")) { + object.exportCustomRoutes = message.exportCustomRoutes; + if (options.oneofs) + object._exportCustomRoutes = "exportCustomRoutes"; + } + if (message.importCustomRoutes != null && message.hasOwnProperty("importCustomRoutes")) { + object.importCustomRoutes = message.importCustomRoutes; + if (options.oneofs) + object._importCustomRoutes = "importCustomRoutes"; + } + if (message.exchangeSubnetRoutes != null && message.hasOwnProperty("exchangeSubnetRoutes")) { + object.exchangeSubnetRoutes = message.exchangeSubnetRoutes; + if (options.oneofs) + object._exchangeSubnetRoutes = "exchangeSubnetRoutes"; + } + if (message.exportCustomRoutesWithPublicIp != null && message.hasOwnProperty("exportCustomRoutesWithPublicIp")) { + object.exportCustomRoutesWithPublicIp = message.exportCustomRoutesWithPublicIp; + if (options.oneofs) + object._exportCustomRoutesWithPublicIp = "exportCustomRoutesWithPublicIp"; + } + if (message.importCustomRoutesWithPublicIp != null && message.hasOwnProperty("importCustomRoutesWithPublicIp")) { + object.importCustomRoutesWithPublicIp = message.importCustomRoutesWithPublicIp; + if (options.oneofs) + object._importCustomRoutesWithPublicIp = "importCustomRoutesWithPublicIp"; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.NetworkPeering.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.NetworkPeering.State[message.state] : message.state; + if (message.peerMtu != null && message.hasOwnProperty("peerMtu")) + object.peerMtu = message.peerMtu; + if (message.peerNetworkType != null && message.hasOwnProperty("peerNetworkType")) + object.peerNetworkType = options.enums === String ? $root.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType[message.peerNetworkType] === undefined ? message.peerNetworkType : $root.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType[message.peerNetworkType] : message.peerNetworkType; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = message.vmwareEngineNetwork; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this NetworkPeering to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @instance + * @returns {Object.} JSON object + */ + NetworkPeering.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkPeering + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.NetworkPeering + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkPeering.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPeering"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.NetworkPeering.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} INACTIVE=1 INACTIVE value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} CREATING=3 CREATING value + * @property {number} DELETING=4 DELETING value + */ + NetworkPeering.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INACTIVE"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "CREATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + return values; + })(); + + /** + * PeerNetworkType enum. + * @name google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType + * @enum {number} + * @property {number} PEER_NETWORK_TYPE_UNSPECIFIED=0 PEER_NETWORK_TYPE_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} VMWARE_ENGINE_NETWORK=2 VMWARE_ENGINE_NETWORK value + * @property {number} PRIVATE_SERVICES_ACCESS=3 PRIVATE_SERVICES_ACCESS value + * @property {number} NETAPP_CLOUD_VOLUMES=4 NETAPP_CLOUD_VOLUMES value + * @property {number} THIRD_PARTY_SERVICE=5 THIRD_PARTY_SERVICE value + * @property {number} DELL_POWERSCALE=6 DELL_POWERSCALE value + */ + NetworkPeering.PeerNetworkType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PEER_NETWORK_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "VMWARE_ENGINE_NETWORK"] = 2; + values[valuesById[3] = "PRIVATE_SERVICES_ACCESS"] = 3; + values[valuesById[4] = "NETAPP_CLOUD_VOLUMES"] = 4; + values[valuesById[5] = "THIRD_PARTY_SERVICE"] = 5; + values[valuesById[6] = "DELL_POWERSCALE"] = 6; + return values; + })(); + + return NetworkPeering; + })(); + + v1.PeeringRoute = (function() { + + /** + * Properties of a PeeringRoute. + * @memberof google.cloud.vmwareengine.v1 + * @interface IPeeringRoute + * @property {string|null} [destRange] PeeringRoute destRange + * @property {google.cloud.vmwareengine.v1.PeeringRoute.Type|null} [type] PeeringRoute type + * @property {string|null} [nextHopRegion] PeeringRoute nextHopRegion + * @property {number|Long|null} [priority] PeeringRoute priority + * @property {boolean|null} [imported] PeeringRoute imported + * @property {google.cloud.vmwareengine.v1.PeeringRoute.Direction|null} [direction] PeeringRoute direction + */ + + /** + * Constructs a new PeeringRoute. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a PeeringRoute. + * @implements IPeeringRoute + * @constructor + * @param {google.cloud.vmwareengine.v1.IPeeringRoute=} [properties] Properties to set + */ + function PeeringRoute(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]]; + } + + /** + * PeeringRoute destRange. + * @member {string} destRange + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @instance + */ + PeeringRoute.prototype.destRange = ""; + + /** + * PeeringRoute type. + * @member {google.cloud.vmwareengine.v1.PeeringRoute.Type} type + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @instance + */ + PeeringRoute.prototype.type = 0; + + /** + * PeeringRoute nextHopRegion. + * @member {string} nextHopRegion + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @instance + */ + PeeringRoute.prototype.nextHopRegion = ""; + + /** + * PeeringRoute priority. + * @member {number|Long} priority + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @instance + */ + PeeringRoute.prototype.priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PeeringRoute imported. + * @member {boolean} imported + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @instance + */ + PeeringRoute.prototype.imported = false; + + /** + * PeeringRoute direction. + * @member {google.cloud.vmwareengine.v1.PeeringRoute.Direction} direction + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @instance + */ + PeeringRoute.prototype.direction = 0; + + /** + * Creates a new PeeringRoute instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {google.cloud.vmwareengine.v1.IPeeringRoute=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.PeeringRoute} PeeringRoute instance + */ + PeeringRoute.create = function create(properties) { + return new PeeringRoute(properties); + }; + + /** + * Encodes the specified PeeringRoute message. Does not implicitly {@link google.cloud.vmwareengine.v1.PeeringRoute.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {google.cloud.vmwareengine.v1.IPeeringRoute} message PeeringRoute message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PeeringRoute.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.destRange != null && Object.hasOwnProperty.call(message, "destRange")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.destRange); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.nextHopRegion != null && Object.hasOwnProperty.call(message, "nextHopRegion")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nextHopRegion); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.priority); + if (message.imported != null && Object.hasOwnProperty.call(message, "imported")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.imported); + if (message.direction != null && Object.hasOwnProperty.call(message, "direction")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.direction); + return writer; + }; + + /** + * Encodes the specified PeeringRoute message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PeeringRoute.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {google.cloud.vmwareengine.v1.IPeeringRoute} message PeeringRoute message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PeeringRoute.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PeeringRoute message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.PeeringRoute} PeeringRoute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PeeringRoute.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PeeringRoute(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.destRange = reader.string(); + break; + } + case 2: { + message.type = reader.int32(); + break; + } + case 3: { + message.nextHopRegion = reader.string(); + break; + } + case 4: { + message.priority = reader.int64(); + break; + } + case 5: { + message.imported = reader.bool(); + break; + } + case 6: { + message.direction = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PeeringRoute message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.PeeringRoute} PeeringRoute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PeeringRoute.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PeeringRoute message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PeeringRoute.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.destRange != null && message.hasOwnProperty("destRange")) + if (!$util.isString(message.destRange)) + return "destRange: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.nextHopRegion != null && message.hasOwnProperty("nextHopRegion")) + if (!$util.isString(message.nextHopRegion)) + return "nextHopRegion: string expected"; + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority) && !(message.priority && $util.isInteger(message.priority.low) && $util.isInteger(message.priority.high))) + return "priority: integer|Long expected"; + if (message.imported != null && message.hasOwnProperty("imported")) + if (typeof message.imported !== "boolean") + return "imported: boolean expected"; + if (message.direction != null && message.hasOwnProperty("direction")) + switch (message.direction) { + default: + return "direction: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a PeeringRoute message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.PeeringRoute} PeeringRoute + */ + PeeringRoute.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.PeeringRoute) + return object; + var message = new $root.google.cloud.vmwareengine.v1.PeeringRoute(); + if (object.destRange != null) + message.destRange = String(object.destRange); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "DYNAMIC_PEERING_ROUTE": + case 1: + message.type = 1; + break; + case "STATIC_PEERING_ROUTE": + case 2: + message.type = 2; + break; + case "SUBNET_PEERING_ROUTE": + case 3: + message.type = 3; + break; + } + if (object.nextHopRegion != null) + message.nextHopRegion = String(object.nextHopRegion); + if (object.priority != null) + if ($util.Long) + (message.priority = $util.Long.fromValue(object.priority)).unsigned = false; + else if (typeof object.priority === "string") + message.priority = parseInt(object.priority, 10); + else if (typeof object.priority === "number") + message.priority = object.priority; + else if (typeof object.priority === "object") + message.priority = new $util.LongBits(object.priority.low >>> 0, object.priority.high >>> 0).toNumber(); + if (object.imported != null) + message.imported = Boolean(object.imported); + switch (object.direction) { + default: + if (typeof object.direction === "number") { + message.direction = object.direction; + break; + } + break; + case "DIRECTION_UNSPECIFIED": + case 0: + message.direction = 0; + break; + case "INCOMING": + case 1: + message.direction = 1; + break; + case "OUTGOING": + case 2: + message.direction = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a PeeringRoute message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {google.cloud.vmwareengine.v1.PeeringRoute} message PeeringRoute + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PeeringRoute.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.destRange = ""; + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.nextHopRegion = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.priority = options.longs === String ? "0" : 0; + object.imported = false; + object.direction = options.enums === String ? "DIRECTION_UNSPECIFIED" : 0; + } + if (message.destRange != null && message.hasOwnProperty("destRange")) + object.destRange = message.destRange; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.PeeringRoute.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.PeeringRoute.Type[message.type] : message.type; + if (message.nextHopRegion != null && message.hasOwnProperty("nextHopRegion")) + object.nextHopRegion = message.nextHopRegion; + if (message.priority != null && message.hasOwnProperty("priority")) + if (typeof message.priority === "number") + object.priority = options.longs === String ? String(message.priority) : message.priority; + else + object.priority = options.longs === String ? $util.Long.prototype.toString.call(message.priority) : options.longs === Number ? new $util.LongBits(message.priority.low >>> 0, message.priority.high >>> 0).toNumber() : message.priority; + if (message.imported != null && message.hasOwnProperty("imported")) + object.imported = message.imported; + if (message.direction != null && message.hasOwnProperty("direction")) + object.direction = options.enums === String ? $root.google.cloud.vmwareengine.v1.PeeringRoute.Direction[message.direction] === undefined ? message.direction : $root.google.cloud.vmwareengine.v1.PeeringRoute.Direction[message.direction] : message.direction; + return object; + }; + + /** + * Converts this PeeringRoute to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @instance + * @returns {Object.} JSON object + */ + PeeringRoute.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PeeringRoute + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.PeeringRoute + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PeeringRoute.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PeeringRoute"; + }; + + /** + * Type enum. + * @name google.cloud.vmwareengine.v1.PeeringRoute.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} DYNAMIC_PEERING_ROUTE=1 DYNAMIC_PEERING_ROUTE value + * @property {number} STATIC_PEERING_ROUTE=2 STATIC_PEERING_ROUTE value + * @property {number} SUBNET_PEERING_ROUTE=3 SUBNET_PEERING_ROUTE value + */ + PeeringRoute.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DYNAMIC_PEERING_ROUTE"] = 1; + values[valuesById[2] = "STATIC_PEERING_ROUTE"] = 2; + values[valuesById[3] = "SUBNET_PEERING_ROUTE"] = 3; + return values; + })(); + + /** + * Direction enum. + * @name google.cloud.vmwareengine.v1.PeeringRoute.Direction + * @enum {number} + * @property {number} DIRECTION_UNSPECIFIED=0 DIRECTION_UNSPECIFIED value + * @property {number} INCOMING=1 INCOMING value + * @property {number} OUTGOING=2 OUTGOING value + */ + PeeringRoute.Direction = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DIRECTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "INCOMING"] = 1; + values[valuesById[2] = "OUTGOING"] = 2; + return values; + })(); + + return PeeringRoute; + })(); + + v1.NetworkPolicy = (function() { + + /** + * Properties of a NetworkPolicy. + * @memberof google.cloud.vmwareengine.v1 + * @interface INetworkPolicy + * @property {string|null} [name] NetworkPolicy name + * @property {google.protobuf.ITimestamp|null} [createTime] NetworkPolicy createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NetworkPolicy updateTime + * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [internetAccess] NetworkPolicy internetAccess + * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [externalIp] NetworkPolicy externalIp + * @property {string|null} [edgeServicesCidr] NetworkPolicy edgeServicesCidr + * @property {string|null} [uid] NetworkPolicy uid + * @property {string|null} [vmwareEngineNetwork] NetworkPolicy vmwareEngineNetwork + * @property {string|null} [description] NetworkPolicy description + * @property {string|null} [vmwareEngineNetworkCanonical] NetworkPolicy vmwareEngineNetworkCanonical + */ + + /** + * Constructs a new NetworkPolicy. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a NetworkPolicy. + * @implements INetworkPolicy + * @constructor + * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set + */ + function NetworkPolicy(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]]; + } + + /** + * NetworkPolicy name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.name = ""; + + /** + * NetworkPolicy createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.createTime = null; + + /** + * NetworkPolicy updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.updateTime = null; + + /** + * NetworkPolicy internetAccess. + * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} internetAccess + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.internetAccess = null; + + /** + * NetworkPolicy externalIp. + * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} externalIp + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.externalIp = null; + + /** + * NetworkPolicy edgeServicesCidr. + * @member {string} edgeServicesCidr + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.edgeServicesCidr = ""; + + /** + * NetworkPolicy uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.uid = ""; + + /** + * NetworkPolicy vmwareEngineNetwork. + * @member {string} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.vmwareEngineNetwork = ""; + + /** + * NetworkPolicy description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.description = ""; + + /** + * NetworkPolicy vmwareEngineNetworkCanonical. + * @member {string} vmwareEngineNetworkCanonical + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.vmwareEngineNetworkCanonical = ""; + + /** + * Creates a new NetworkPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy instance + */ + NetworkPolicy.create = function create(properties) { + return new NetworkPolicy(properties); + }; + + /** + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.internetAccess != null && Object.hasOwnProperty.call(message, "internetAccess")) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.internetAccess, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.externalIp != null && Object.hasOwnProperty.call(message, "externalIp")) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.externalIp, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.edgeServicesCidr != null && Object.hasOwnProperty.call(message, "edgeServicesCidr")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.edgeServicesCidr); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.uid); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.vmwareEngineNetwork); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.description); + if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.vmwareEngineNetworkCanonical); + return writer; + }; + + /** + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32()); + break; + } + case 7: { + message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32()); + break; + } + case 9: { + message.edgeServicesCidr = reader.string(); + break; + } + case 10: { + message.uid = reader.string(); + break; + } + case 12: { + message.vmwareEngineNetwork = reader.string(); + break; + } + case 13: { + message.description = reader.string(); + break; + } + case 14: { + message.vmwareEngineNetworkCanonical = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkPolicy message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.internetAccess); + if (error) + return "internetAccess." + error; + } + if (message.externalIp != null && message.hasOwnProperty("externalIp")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.externalIp); + if (error) + return "externalIp." + error; + } + if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr")) + if (!$util.isString(message.edgeServicesCidr)) + return "edgeServicesCidr: string expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + if (!$util.isString(message.vmwareEngineNetwork)) + return "vmwareEngineNetwork: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + if (!$util.isString(message.vmwareEngineNetworkCanonical)) + return "vmwareEngineNetworkCanonical: string expected"; + return null; + }; + + /** + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + */ + NetworkPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy) + return object; + var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.internetAccess != null) { + if (typeof object.internetAccess !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.internetAccess: object expected"); + message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.internetAccess); + } + if (object.externalIp != null) { + if (typeof object.externalIp !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.externalIp: object expected"); + message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.externalIp); + } + if (object.edgeServicesCidr != null) + message.edgeServicesCidr = String(object.edgeServicesCidr); + if (object.uid != null) + message.uid = String(object.uid); + if (object.vmwareEngineNetwork != null) + message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); + if (object.description != null) + message.description = String(object.description); + if (object.vmwareEngineNetworkCanonical != null) + message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); + return message; + }; + + /** + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy} message NetworkPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.internetAccess = null; + object.externalIp = null; + object.edgeServicesCidr = ""; + object.uid = ""; + object.vmwareEngineNetwork = ""; + object.description = ""; + object.vmwareEngineNetworkCanonical = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) + object.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.internetAccess, options); + if (message.externalIp != null && message.hasOwnProperty("externalIp")) + object.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.externalIp, options); + if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr")) + object.edgeServicesCidr = message.edgeServicesCidr; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = message.vmwareEngineNetwork; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; + return object; + }; + + /** + * Converts this NetworkPolicy to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + * @returns {Object.} JSON object + */ + NetworkPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkPolicy + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy"; + }; + + NetworkPolicy.NetworkService = (function() { + + /** + * Properties of a NetworkService. + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @interface INetworkService + * @property {boolean|null} [enabled] NetworkService enabled + * @property {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null} [state] NetworkService state + */ + + /** + * Constructs a new NetworkService. + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @classdesc Represents a NetworkService. + * @implements INetworkService + * @constructor + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set + */ + function NetworkService(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]]; + } + + /** + * NetworkService enabled. + * @member {boolean} enabled + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @instance + */ + NetworkService.prototype.enabled = false; + + /** + * NetworkService state. + * @member {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State} state + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @instance + */ + NetworkService.prototype.state = 0; + + /** + * Creates a new NetworkService instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService instance + */ + NetworkService.create = function create(properties) { + return new NetworkService(properties); + }; + + /** + * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkService.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkService.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkService message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkService.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkService message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkService.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkService message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkService.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates a NetworkService message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService + */ + NetworkService.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) + return object; + var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "UNPROVISIONED": + case 1: + message.state = 1; + break; + case "RECONCILING": + case 2: + message.state = 2; + break; + case "ACTIVE": + case 3: + message.state = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a NetworkService message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} message NetworkService + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkService.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enabled = false; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State[message.state] : message.state; + return object; + }; + + /** + * Converts this NetworkService to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @instance + * @returns {Object.} JSON object + */ + NetworkService.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkService + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkService.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} UNPROVISIONED=1 UNPROVISIONED value + * @property {number} RECONCILING=2 RECONCILING value + * @property {number} ACTIVE=3 ACTIVE value + */ + NetworkService.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "UNPROVISIONED"] = 1; + values[valuesById[2] = "RECONCILING"] = 2; + values[valuesById[3] = "ACTIVE"] = 3; + return values; + })(); + + return NetworkService; + })(); + + return NetworkPolicy; + })(); + + v1.ManagementDnsZoneBinding = (function() { + + /** + * Properties of a ManagementDnsZoneBinding. + * @memberof google.cloud.vmwareengine.v1 + * @interface IManagementDnsZoneBinding + * @property {string|null} [name] ManagementDnsZoneBinding name + * @property {google.protobuf.ITimestamp|null} [createTime] ManagementDnsZoneBinding createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ManagementDnsZoneBinding updateTime + * @property {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State|null} [state] ManagementDnsZoneBinding state + * @property {string|null} [description] ManagementDnsZoneBinding description + * @property {string|null} [vpcNetwork] ManagementDnsZoneBinding vpcNetwork + * @property {string|null} [vmwareEngineNetwork] ManagementDnsZoneBinding vmwareEngineNetwork + * @property {string|null} [uid] ManagementDnsZoneBinding uid + */ + + /** + * Constructs a new ManagementDnsZoneBinding. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ManagementDnsZoneBinding. + * @implements IManagementDnsZoneBinding + * @constructor + * @param {google.cloud.vmwareengine.v1.IManagementDnsZoneBinding=} [properties] Properties to set + */ + function ManagementDnsZoneBinding(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]]; + } + + /** + * ManagementDnsZoneBinding name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + ManagementDnsZoneBinding.prototype.name = ""; + + /** + * ManagementDnsZoneBinding createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + ManagementDnsZoneBinding.prototype.createTime = null; + + /** + * ManagementDnsZoneBinding updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + ManagementDnsZoneBinding.prototype.updateTime = null; + + /** + * ManagementDnsZoneBinding state. + * @member {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State} state + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + ManagementDnsZoneBinding.prototype.state = 0; + + /** + * ManagementDnsZoneBinding description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + ManagementDnsZoneBinding.prototype.description = ""; + + /** + * ManagementDnsZoneBinding vpcNetwork. + * @member {string|null|undefined} vpcNetwork + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + ManagementDnsZoneBinding.prototype.vpcNetwork = null; + + /** + * ManagementDnsZoneBinding vmwareEngineNetwork. + * @member {string|null|undefined} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + ManagementDnsZoneBinding.prototype.vmwareEngineNetwork = null; + + /** + * ManagementDnsZoneBinding uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + ManagementDnsZoneBinding.prototype.uid = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ManagementDnsZoneBinding bindNetwork. + * @member {"vpcNetwork"|"vmwareEngineNetwork"|undefined} bindNetwork + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + */ + Object.defineProperty(ManagementDnsZoneBinding.prototype, "bindNetwork", { + get: $util.oneOfGetter($oneOfFields = ["vpcNetwork", "vmwareEngineNetwork"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ManagementDnsZoneBinding instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {google.cloud.vmwareengine.v1.IManagementDnsZoneBinding=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} ManagementDnsZoneBinding instance + */ + ManagementDnsZoneBinding.create = function create(properties) { + return new ManagementDnsZoneBinding(properties); + }; + + /** + * Encodes the specified ManagementDnsZoneBinding message. Does not implicitly {@link google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {google.cloud.vmwareengine.v1.IManagementDnsZoneBinding} message ManagementDnsZoneBinding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagementDnsZoneBinding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.uid); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.description); + if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.vpcNetwork); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.vmwareEngineNetwork); + return writer; + }; + + /** + * Encodes the specified ManagementDnsZoneBinding message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {google.cloud.vmwareengine.v1.IManagementDnsZoneBinding} message ManagementDnsZoneBinding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagementDnsZoneBinding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ManagementDnsZoneBinding message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} ManagementDnsZoneBinding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagementDnsZoneBinding.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.state = reader.int32(); + break; + } + case 13: { + message.description = reader.string(); + break; + } + case 14: { + message.vpcNetwork = reader.string(); + break; + } + case 15: { + message.vmwareEngineNetwork = reader.string(); + break; + } + case 9: { + message.uid = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ManagementDnsZoneBinding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} ManagementDnsZoneBinding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagementDnsZoneBinding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ManagementDnsZoneBinding message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ManagementDnsZoneBinding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) { + properties.bindNetwork = 1; + if (!$util.isString(message.vpcNetwork)) + return "vpcNetwork: string expected"; + } + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { + if (properties.bindNetwork === 1) + return "bindNetwork: multiple values"; + properties.bindNetwork = 1; + if (!$util.isString(message.vmwareEngineNetwork)) + return "vmwareEngineNetwork: string expected"; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + return null; + }; + + /** + * Creates a ManagementDnsZoneBinding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} ManagementDnsZoneBinding + */ + ManagementDnsZoneBinding.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + case "FAILED": + case 5: + message.state = 5; + break; + } + if (object.description != null) + message.description = String(object.description); + if (object.vpcNetwork != null) + message.vpcNetwork = String(object.vpcNetwork); + if (object.vmwareEngineNetwork != null) + message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); + if (object.uid != null) + message.uid = String(object.uid); + return message; + }; + + /** + * Creates a plain object from a ManagementDnsZoneBinding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} message ManagementDnsZoneBinding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ManagementDnsZoneBinding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.uid = ""; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State[message.state] : message.state; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) { + object.vpcNetwork = message.vpcNetwork; + if (options.oneofs) + object.bindNetwork = "vpcNetwork"; + } + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { + object.vmwareEngineNetwork = message.vmwareEngineNetwork; + if (options.oneofs) + object.bindNetwork = "vmwareEngineNetwork"; + } + return object; + }; + + /** + * Converts this ManagementDnsZoneBinding to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @instance + * @returns {Object.} JSON object + */ + ManagementDnsZoneBinding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ManagementDnsZoneBinding + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ManagementDnsZoneBinding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ManagementDnsZoneBinding"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + * @property {number} FAILED=5 FAILED value + */ + ManagementDnsZoneBinding.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + values[valuesById[5] = "FAILED"] = 5; + return values; + })(); + + return ManagementDnsZoneBinding; + })(); + + v1.VmwareEngineNetwork = (function() { + + /** + * Properties of a VmwareEngineNetwork. + * @memberof google.cloud.vmwareengine.v1 + * @interface IVmwareEngineNetwork + * @property {string|null} [name] VmwareEngineNetwork name + * @property {google.protobuf.ITimestamp|null} [createTime] VmwareEngineNetwork createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] VmwareEngineNetwork updateTime + * @property {string|null} [description] VmwareEngineNetwork description + * @property {Array.|null} [vpcNetworks] VmwareEngineNetwork vpcNetworks + * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null} [state] VmwareEngineNetwork state + * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null} [type] VmwareEngineNetwork type + * @property {string|null} [uid] VmwareEngineNetwork uid + * @property {string|null} [etag] VmwareEngineNetwork etag + */ + + /** + * Constructs a new VmwareEngineNetwork. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a VmwareEngineNetwork. + * @implements IVmwareEngineNetwork + * @constructor + * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork=} [properties] Properties to set + */ + function VmwareEngineNetwork(properties) { + this.vpcNetworks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VmwareEngineNetwork name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.name = ""; + + /** + * VmwareEngineNetwork createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.createTime = null; + + /** + * VmwareEngineNetwork updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.updateTime = null; + + /** + * VmwareEngineNetwork description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.description = ""; + + /** + * VmwareEngineNetwork vpcNetworks. + * @member {Array.} vpcNetworks + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.vpcNetworks = $util.emptyArray; + + /** + * VmwareEngineNetwork state. + * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.State} state + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.state = 0; + + /** + * VmwareEngineNetwork type. + * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type} type + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.type = 0; + + /** + * VmwareEngineNetwork uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.uid = ""; + + /** + * VmwareEngineNetwork etag. + * @member {string} etag + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.etag = ""; + + /** + * Creates a new VmwareEngineNetwork instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork instance + */ + VmwareEngineNetwork.create = function create(properties) { + return new VmwareEngineNetwork(properties); + }; + + /** + * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork} message VmwareEngineNetwork message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmwareEngineNetwork.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.description); + if (message.vpcNetworks != null && message.vpcNetworks.length) + for (var i = 0; i < message.vpcNetworks.length; ++i) + $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.encode(message.vpcNetworks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.type); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.uid); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.etag); + return writer; + }; + + /** + * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork} message VmwareEngineNetwork message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmwareEngineNetwork.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmwareEngineNetwork message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmwareEngineNetwork.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.description = reader.string(); + break; + } + case 6: { + if (!(message.vpcNetworks && message.vpcNetworks.length)) + message.vpcNetworks = []; + message.vpcNetworks.push($root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.decode(reader, reader.uint32())); + break; + } + case 7: { + message.state = reader.int32(); + break; + } + case 8: { + message.type = reader.int32(); + break; + } + case 9: { + message.uid = reader.string(); + break; + } + case 10: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmwareEngineNetwork.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmwareEngineNetwork message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmwareEngineNetwork.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.vpcNetworks != null && message.hasOwnProperty("vpcNetworks")) { + if (!Array.isArray(message.vpcNetworks)) + return "vpcNetworks: array expected"; + for (var i = 0; i < message.vpcNetworks.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify(message.vpcNetworks[i]); + if (error) + return "vpcNetworks." + error; + } + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; + + /** + * Creates a VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + */ + VmwareEngineNetwork.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork) + return object; + var message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.description != null) + message.description = String(object.description); + if (object.vpcNetworks) { + if (!Array.isArray(object.vpcNetworks)) + throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.vpcNetworks: array expected"); + message.vpcNetworks = []; + for (var i = 0; i < object.vpcNetworks.length; ++i) { + if (typeof object.vpcNetworks[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.vpcNetworks: object expected"); + message.vpcNetworks[i] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.fromObject(object.vpcNetworks[i]); + } + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "CREATING": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "LEGACY": + case 1: + message.type = 1; + break; + case "STANDARD": + case 2: + message.type = 2; + break; + } + if (object.uid != null) + message.uid = String(object.uid); + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; + + /** + * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} message VmwareEngineNetwork + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmwareEngineNetwork.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.vpcNetworks = []; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.description = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.uid = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.vpcNetworks && message.vpcNetworks.length) { + object.vpcNetworks = []; + for (var j = 0; j < message.vpcNetworks.length; ++j) + object.vpcNetworks[j] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.toObject(message.vpcNetworks[j], options); + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State[message.state] : message.state; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type[message.type] : message.type; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; + + /** + * Converts this VmwareEngineNetwork to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + * @returns {Object.} JSON object + */ + VmwareEngineNetwork.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VmwareEngineNetwork + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VmwareEngineNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.VmwareEngineNetwork"; + }; + + VmwareEngineNetwork.VpcNetwork = (function() { + + /** + * Properties of a VpcNetwork. + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @interface IVpcNetwork + * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null} [type] VpcNetwork type + * @property {string|null} [network] VpcNetwork network + */ + + /** + * Constructs a new VpcNetwork. + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @classdesc Represents a VpcNetwork. + * @implements IVpcNetwork + * @constructor + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork=} [properties] Properties to set + */ + function VpcNetwork(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]]; + } + + /** + * VpcNetwork type. + * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type} type + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @instance + */ + VpcNetwork.prototype.type = 0; + + /** + * VpcNetwork network. + * @member {string} network + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @instance + */ + VpcNetwork.prototype.network = ""; + + /** + * Creates a new VpcNetwork instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork instance + */ + VpcNetwork.create = function create(properties) { + return new VpcNetwork(properties); + }; + + /** + * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork} message VpcNetwork message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpcNetwork.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); + return writer; + }; + + /** + * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork} message VpcNetwork message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VpcNetwork message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpcNetwork.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.network = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VpcNetwork message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpcNetwork.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VpcNetwork message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VpcNetwork.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + return null; + }; + + /** + * Creates a VpcNetwork message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork + */ + VpcNetwork.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) + return object; + var message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTRANET": + case 1: + message.type = 1; + break; + case "INTERNET": + case 2: + message.type = 2; + break; + case "GOOGLE_CLOUD": + case 3: + message.type = 3; + break; + } + if (object.network != null) + message.network = String(object.network); + return message; + }; + + /** + * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} message VpcNetwork + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VpcNetwork.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.network = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type[message.type] : message.type; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + return object; + }; + + /** + * Converts this VpcNetwork to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @instance + * @returns {Object.} JSON object + */ + VpcNetwork.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VpcNetwork + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork"; + }; + + /** + * Type enum. + * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} INTRANET=1 INTRANET value + * @property {number} INTERNET=2 INTERNET value + * @property {number} GOOGLE_CLOUD=3 GOOGLE_CLOUD value + */ + VpcNetwork.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTRANET"] = 1; + values[valuesById[2] = "INTERNET"] = 2; + values[valuesById[3] = "GOOGLE_CLOUD"] = 3; + return values; + })(); + + return VpcNetwork; + })(); + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} CREATING=1 CREATING value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + */ + VmwareEngineNetwork.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATING"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + return values; + })(); + + /** + * Type enum. + * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} LEGACY=1 LEGACY value + * @property {number} STANDARD=2 STANDARD value + */ + VmwareEngineNetwork.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LEGACY"] = 1; + values[valuesById[2] = "STANDARD"] = 2; + return values; + })(); + + return VmwareEngineNetwork; + })(); + + v1.PrivateConnection = (function() { + + /** + * Properties of a PrivateConnection. + * @memberof google.cloud.vmwareengine.v1 + * @interface IPrivateConnection + * @property {string|null} [name] PrivateConnection name + * @property {google.protobuf.ITimestamp|null} [createTime] PrivateConnection createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PrivateConnection updateTime + * @property {string|null} [description] PrivateConnection description + * @property {google.cloud.vmwareengine.v1.PrivateConnection.State|null} [state] PrivateConnection state + * @property {string|null} [vmwareEngineNetwork] PrivateConnection vmwareEngineNetwork + * @property {string|null} [vmwareEngineNetworkCanonical] PrivateConnection vmwareEngineNetworkCanonical + * @property {google.cloud.vmwareengine.v1.PrivateConnection.Type|null} [type] PrivateConnection type + * @property {string|null} [peeringId] PrivateConnection peeringId + * @property {google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode|null} [routingMode] PrivateConnection routingMode + * @property {string|null} [uid] PrivateConnection uid + * @property {string|null} [serviceNetwork] PrivateConnection serviceNetwork + * @property {google.cloud.vmwareengine.v1.PrivateConnection.PeeringState|null} [peeringState] PrivateConnection peeringState + */ + + /** + * Constructs a new PrivateConnection. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a PrivateConnection. + * @implements IPrivateConnection + * @constructor + * @param {google.cloud.vmwareengine.v1.IPrivateConnection=} [properties] Properties to set + */ + function PrivateConnection(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]]; + } + + /** + * PrivateConnection name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.name = ""; + + /** + * PrivateConnection createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.createTime = null; + + /** + * PrivateConnection updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.updateTime = null; + + /** + * PrivateConnection description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.description = ""; + + /** + * PrivateConnection state. + * @member {google.cloud.vmwareengine.v1.PrivateConnection.State} state + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.state = 0; + + /** + * PrivateConnection vmwareEngineNetwork. + * @member {string} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.vmwareEngineNetwork = ""; + + /** + * PrivateConnection vmwareEngineNetworkCanonical. + * @member {string} vmwareEngineNetworkCanonical + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.vmwareEngineNetworkCanonical = ""; + + /** + * PrivateConnection type. + * @member {google.cloud.vmwareengine.v1.PrivateConnection.Type} type + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.type = 0; + + /** + * PrivateConnection peeringId. + * @member {string} peeringId + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.peeringId = ""; + + /** + * PrivateConnection routingMode. + * @member {google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode} routingMode + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.routingMode = 0; + + /** + * PrivateConnection uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.uid = ""; + + /** + * PrivateConnection serviceNetwork. + * @member {string} serviceNetwork + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.serviceNetwork = ""; + + /** + * PrivateConnection peeringState. + * @member {google.cloud.vmwareengine.v1.PrivateConnection.PeeringState} peeringState + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + */ + PrivateConnection.prototype.peeringState = 0; + + /** + * Creates a new PrivateConnection instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {google.cloud.vmwareengine.v1.IPrivateConnection=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.PrivateConnection} PrivateConnection instance + */ + PrivateConnection.create = function create(properties) { + return new PrivateConnection(properties); + }; + + /** + * Encodes the specified PrivateConnection message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateConnection.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {google.cloud.vmwareengine.v1.IPrivateConnection} message PrivateConnection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateConnection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.vmwareEngineNetwork); + if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.vmwareEngineNetworkCanonical); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.type); + if (message.peeringId != null && Object.hasOwnProperty.call(message, "peeringId")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.peeringId); + if (message.routingMode != null && Object.hasOwnProperty.call(message, "routingMode")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.routingMode); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.uid); + if (message.serviceNetwork != null && Object.hasOwnProperty.call(message, "serviceNetwork")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.serviceNetwork); + if (message.peeringState != null && Object.hasOwnProperty.call(message, "peeringState")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.peeringState); + return writer; + }; + + /** + * Encodes the specified PrivateConnection message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateConnection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {google.cloud.vmwareengine.v1.IPrivateConnection} message PrivateConnection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateConnection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateConnection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.PrivateConnection} PrivateConnection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateConnection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateConnection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.description = reader.string(); + break; + } + case 5: { + message.state = reader.int32(); + break; + } + case 8: { + message.vmwareEngineNetwork = reader.string(); + break; + } + case 9: { + message.vmwareEngineNetworkCanonical = reader.string(); + break; + } + case 10: { + message.type = reader.int32(); + break; + } + case 12: { + message.peeringId = reader.string(); + break; + } + case 13: { + message.routingMode = reader.int32(); + break; + } + case 14: { + message.uid = reader.string(); + break; + } + case 16: { + message.serviceNetwork = reader.string(); + break; + } + case 17: { + message.peeringState = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - case 5: { - message["delete"] = reader.string(); + return message; + }; + + /** + * Decodes a PrivateConnection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.PrivateConnection} PrivateConnection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateConnection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateConnection message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateConnection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + if (!$util.isString(message.vmwareEngineNetwork)) + return "vmwareEngineNetwork: string expected"; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + if (!$util.isString(message.vmwareEngineNetworkCanonical)) + return "vmwareEngineNetworkCanonical: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.peeringId != null && message.hasOwnProperty("peeringId")) + if (!$util.isString(message.peeringId)) + return "peeringId: string expected"; + if (message.routingMode != null && message.hasOwnProperty("routingMode")) + switch (message.routingMode) { + default: + return "routingMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.serviceNetwork != null && message.hasOwnProperty("serviceNetwork")) + if (!$util.isString(message.serviceNetwork)) + return "serviceNetwork: string expected"; + if (message.peeringState != null && message.hasOwnProperty("peeringState")) + switch (message.peeringState) { + default: + return "peeringState: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a PrivateConnection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.PrivateConnection} PrivateConnection + */ + PrivateConnection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateConnection) + return object; + var message = new $root.google.cloud.vmwareengine.v1.PrivateConnection(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateConnection.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateConnection.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.description != null) + message.description = String(object.description); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "CREATING": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + case "UNPROVISIONED": + case 5: + message.state = 5; + break; + case "FAILED": + case 6: + message.state = 6; + break; + } + if (object.vmwareEngineNetwork != null) + message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); + if (object.vmwareEngineNetworkCanonical != null) + message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "PRIVATE_SERVICE_ACCESS": + case 1: + message.type = 1; + break; + case "NETAPP_CLOUD_VOLUMES": + case 2: + message.type = 2; + break; + case "DELL_POWERSCALE": + case 3: + message.type = 3; + break; + case "THIRD_PARTY_SERVICE": + case 4: + message.type = 4; + break; + } + if (object.peeringId != null) + message.peeringId = String(object.peeringId); + switch (object.routingMode) { + default: + if (typeof object.routingMode === "number") { + message.routingMode = object.routingMode; + break; + } + break; + case "ROUTING_MODE_UNSPECIFIED": + case 0: + message.routingMode = 0; + break; + case "GLOBAL": + case 1: + message.routingMode = 1; + break; + case "REGIONAL": + case 2: + message.routingMode = 2; + break; + } + if (object.uid != null) + message.uid = String(object.uid); + if (object.serviceNetwork != null) + message.serviceNetwork = String(object.serviceNetwork); + switch (object.peeringState) { + default: + if (typeof object.peeringState === "number") { + message.peeringState = object.peeringState; + break; + } + break; + case "PEERING_STATE_UNSPECIFIED": + case 0: + message.peeringState = 0; + break; + case "PEERING_ACTIVE": + case 1: + message.peeringState = 1; break; - } - case 6: { - message.patch = reader.string(); + case "PEERING_INACTIVE": + case 2: + message.peeringState = 2; break; } - case 8: { - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; + return message; + }; + + /** + * Creates a plain object from a PrivateConnection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {google.cloud.vmwareengine.v1.PrivateConnection} message PrivateConnection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateConnection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.description = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.vmwareEngineNetwork = ""; + object.vmwareEngineNetworkCanonical = ""; + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.peeringId = ""; + object.routingMode = options.enums === String ? "ROUTING_MODE_UNSPECIFIED" : 0; + object.uid = ""; + object.serviceNetwork = ""; + object.peeringState = options.enums === String ? "PEERING_STATE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateConnection.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.PrivateConnection.State[message.state] : message.state; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = message.vmwareEngineNetwork; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateConnection.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.PrivateConnection.Type[message.type] : message.type; + if (message.peeringId != null && message.hasOwnProperty("peeringId")) + object.peeringId = message.peeringId; + if (message.routingMode != null && message.hasOwnProperty("routingMode")) + object.routingMode = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode[message.routingMode] === undefined ? message.routingMode : $root.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode[message.routingMode] : message.routingMode; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.serviceNetwork != null && message.hasOwnProperty("serviceNetwork")) + object.serviceNetwork = message.serviceNetwork; + if (message.peeringState != null && message.hasOwnProperty("peeringState")) + object.peeringState = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState[message.peeringState] === undefined ? message.peeringState : $root.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState[message.peeringState] : message.peeringState; + return object; + }; + + /** + * Converts this PrivateConnection to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @instance + * @returns {Object.} JSON object + */ + PrivateConnection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateConnection + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.PrivateConnection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateConnection"; + }; + + /** + * State enum. + * @name google.cloud.vmwareengine.v1.PrivateConnection.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} CREATING=1 CREATING value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + * @property {number} UNPROVISIONED=5 UNPROVISIONED value + * @property {number} FAILED=6 FAILED value + */ + PrivateConnection.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATING"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + values[valuesById[5] = "UNPROVISIONED"] = 5; + values[valuesById[6] = "FAILED"] = 6; + return values; + })(); + + /** + * Type enum. + * @name google.cloud.vmwareengine.v1.PrivateConnection.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} PRIVATE_SERVICE_ACCESS=1 PRIVATE_SERVICE_ACCESS value + * @property {number} NETAPP_CLOUD_VOLUMES=2 NETAPP_CLOUD_VOLUMES value + * @property {number} DELL_POWERSCALE=3 DELL_POWERSCALE value + * @property {number} THIRD_PARTY_SERVICE=4 THIRD_PARTY_SERVICE value + */ + PrivateConnection.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PRIVATE_SERVICE_ACCESS"] = 1; + values[valuesById[2] = "NETAPP_CLOUD_VOLUMES"] = 2; + values[valuesById[3] = "DELL_POWERSCALE"] = 3; + values[valuesById[4] = "THIRD_PARTY_SERVICE"] = 4; + return values; + })(); + + /** + * RoutingMode enum. + * @name google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode + * @enum {number} + * @property {number} ROUTING_MODE_UNSPECIFIED=0 ROUTING_MODE_UNSPECIFIED value + * @property {number} GLOBAL=1 GLOBAL value + * @property {number} REGIONAL=2 REGIONAL value + */ + PrivateConnection.RoutingMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ROUTING_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GLOBAL"] = 1; + values[valuesById[2] = "REGIONAL"] = 2; + return values; + })(); + + /** + * PeeringState enum. + * @name google.cloud.vmwareengine.v1.PrivateConnection.PeeringState + * @enum {number} + * @property {number} PEERING_STATE_UNSPECIFIED=0 PEERING_STATE_UNSPECIFIED value + * @property {number} PEERING_ACTIVE=1 PEERING_ACTIVE value + * @property {number} PEERING_INACTIVE=2 PEERING_INACTIVE value + */ + PrivateConnection.PeeringState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PEERING_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PEERING_ACTIVE"] = 1; + values[valuesById[2] = "PEERING_INACTIVE"] = 2; + return values; + })(); + + return PrivateConnection; + })(); + + v1.LocationMetadata = (function() { + + /** + * Properties of a LocationMetadata. + * @memberof google.cloud.vmwareengine.v1 + * @interface ILocationMetadata + * @property {Array.|null} [capabilities] LocationMetadata capabilities + */ + + /** + * Constructs a new LocationMetadata. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a LocationMetadata. + * @implements ILocationMetadata + * @constructor + * @param {google.cloud.vmwareengine.v1.ILocationMetadata=} [properties] Properties to set + */ + function LocationMetadata(properties) { + this.capabilities = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LocationMetadata capabilities. + * @member {Array.} capabilities + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @instance + */ + LocationMetadata.prototype.capabilities = $util.emptyArray; + + /** + * Creates a new LocationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {google.cloud.vmwareengine.v1.ILocationMetadata=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.LocationMetadata} LocationMetadata instance + */ + LocationMetadata.create = function create(properties) { + return new LocationMetadata(properties); + }; + + /** + * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.LocationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {google.cloud.vmwareengine.v1.ILocationMetadata} message LocationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.capabilities != null && message.capabilities.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.capabilities.length; ++i) + writer.int32(message.capabilities[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.LocationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {google.cloud.vmwareengine.v1.ILocationMetadata} message LocationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LocationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.LocationMetadata} LocationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.LocationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.capabilities && message.capabilities.length)) + message.capabilities = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.capabilities.push(reader.int32()); + } else + message.capabilities.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.LocationMetadata} LocationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LocationMetadata message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.capabilities != null && message.hasOwnProperty("capabilities")) { + if (!Array.isArray(message.capabilities)) + return "capabilities: array expected"; + for (var i = 0; i < message.capabilities.length; ++i) + switch (message.capabilities[i]) { + default: + return "capabilities: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.LocationMetadata} LocationMetadata + */ + LocationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.LocationMetadata) + return object; + var message = new $root.google.cloud.vmwareengine.v1.LocationMetadata(); + if (object.capabilities) { + if (!Array.isArray(object.capabilities)) + throw TypeError(".google.cloud.vmwareengine.v1.LocationMetadata.capabilities: array expected"); + message.capabilities = []; + for (var i = 0; i < object.capabilities.length; ++i) + switch (object.capabilities[i]) { + default: + if (typeof object.capabilities[i] === "number") { + message.capabilities[i] = object.capabilities[i]; + break; + } + case "CAPABILITY_UNSPECIFIED": + case 0: + message.capabilities[i] = 0; + break; + case "STRETCHED_CLUSTERS": + case 1: + message.capabilities[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {google.cloud.vmwareengine.v1.LocationMetadata} message LocationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.capabilities = []; + if (message.capabilities && message.capabilities.length) { + object.capabilities = []; + for (var j = 0; j < message.capabilities.length; ++j) + object.capabilities[j] = options.enums === String ? $root.google.cloud.vmwareengine.v1.LocationMetadata.Capability[message.capabilities[j]] === undefined ? message.capabilities[j] : $root.google.cloud.vmwareengine.v1.LocationMetadata.Capability[message.capabilities[j]] : message.capabilities[j]; + } + return object; + }; + + /** + * Converts this LocationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @instance + * @returns {Object.} JSON object + */ + LocationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LocationMetadata + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.LocationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LocationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.LocationMetadata"; + }; + + /** + * Capability enum. + * @name google.cloud.vmwareengine.v1.LocationMetadata.Capability + * @enum {number} + * @property {number} CAPABILITY_UNSPECIFIED=0 CAPABILITY_UNSPECIFIED value + * @property {number} STRETCHED_CLUSTERS=1 STRETCHED_CLUSTERS value + */ + LocationMetadata.Capability = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CAPABILITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "STRETCHED_CLUSTERS"] = 1; + return values; + })(); + + return LocationMetadata; + })(); + + v1.DnsBindPermission = (function() { + + /** + * Properties of a DnsBindPermission. + * @memberof google.cloud.vmwareengine.v1 + * @interface IDnsBindPermission + * @property {string|null} [name] DnsBindPermission name + * @property {Array.|null} [principals] DnsBindPermission principals + */ + + /** + * Constructs a new DnsBindPermission. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a DnsBindPermission. + * @implements IDnsBindPermission + * @constructor + * @param {google.cloud.vmwareengine.v1.IDnsBindPermission=} [properties] Properties to set + */ + function DnsBindPermission(properties) { + this.principals = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DnsBindPermission name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @instance + */ + DnsBindPermission.prototype.name = ""; + + /** + * DnsBindPermission principals. + * @member {Array.} principals + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @instance + */ + DnsBindPermission.prototype.principals = $util.emptyArray; + + /** + * Creates a new DnsBindPermission instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {google.cloud.vmwareengine.v1.IDnsBindPermission=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DnsBindPermission} DnsBindPermission instance + */ + DnsBindPermission.create = function create(properties) { + return new DnsBindPermission(properties); + }; + + /** + * Encodes the specified DnsBindPermission message. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsBindPermission.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {google.cloud.vmwareengine.v1.IDnsBindPermission} message DnsBindPermission message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DnsBindPermission.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.principals != null && message.principals.length) + for (var i = 0; i < message.principals.length; ++i) + $root.google.cloud.vmwareengine.v1.Principal.encode(message.principals[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DnsBindPermission message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DnsBindPermission.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {google.cloud.vmwareengine.v1.IDnsBindPermission} message DnsBindPermission message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DnsBindPermission.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DnsBindPermission message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DnsBindPermission} DnsBindPermission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DnsBindPermission.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DnsBindPermission(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.principals && message.principals.length)) + message.principals = []; + message.principals.push($root.google.cloud.vmwareengine.v1.Principal.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DnsBindPermission message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DnsBindPermission} DnsBindPermission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DnsBindPermission.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DnsBindPermission message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DnsBindPermission.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.principals != null && message.hasOwnProperty("principals")) { + if (!Array.isArray(message.principals)) + return "principals: array expected"; + for (var i = 0; i < message.principals.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.Principal.verify(message.principals[i]); + if (error) + return "principals." + error; + } + } + return null; + }; + + /** + * Creates a DnsBindPermission message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DnsBindPermission} DnsBindPermission + */ + DnsBindPermission.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DnsBindPermission) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DnsBindPermission(); + if (object.name != null) + message.name = String(object.name); + if (object.principals) { + if (!Array.isArray(object.principals)) + throw TypeError(".google.cloud.vmwareengine.v1.DnsBindPermission.principals: array expected"); + message.principals = []; + for (var i = 0; i < object.principals.length; ++i) { + if (typeof object.principals[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.DnsBindPermission.principals: object expected"); + message.principals[i] = $root.google.cloud.vmwareengine.v1.Principal.fromObject(object.principals[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a DnsBindPermission message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {google.cloud.vmwareengine.v1.DnsBindPermission} message DnsBindPermission + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DnsBindPermission.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.principals = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.principals && message.principals.length) { + object.principals = []; + for (var j = 0; j < message.principals.length; ++j) + object.principals[j] = $root.google.cloud.vmwareengine.v1.Principal.toObject(message.principals[j], options); + } + return object; + }; + + /** + * Converts this DnsBindPermission to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @instance + * @returns {Object.} JSON object + */ + DnsBindPermission.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DnsBindPermission + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DnsBindPermission + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DnsBindPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DnsBindPermission"; + }; + + return DnsBindPermission; + })(); + + v1.Principal = (function() { + + /** + * Properties of a Principal. + * @memberof google.cloud.vmwareengine.v1 + * @interface IPrincipal + * @property {string|null} [user] Principal user + * @property {string|null} [serviceAccount] Principal serviceAccount + */ + + /** + * Constructs a new Principal. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Principal. + * @implements IPrincipal + * @constructor + * @param {google.cloud.vmwareengine.v1.IPrincipal=} [properties] Properties to set + */ + function Principal(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]]; + } + + /** + * Principal user. + * @member {string|null|undefined} user + * @memberof google.cloud.vmwareengine.v1.Principal + * @instance + */ + Principal.prototype.user = null; + + /** + * Principal serviceAccount. + * @member {string|null|undefined} serviceAccount + * @memberof google.cloud.vmwareengine.v1.Principal + * @instance + */ + Principal.prototype.serviceAccount = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Principal principal. + * @member {"user"|"serviceAccount"|undefined} principal + * @memberof google.cloud.vmwareengine.v1.Principal + * @instance + */ + Object.defineProperty(Principal.prototype, "principal", { + get: $util.oneOfGetter($oneOfFields = ["user", "serviceAccount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Principal instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {google.cloud.vmwareengine.v1.IPrincipal=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Principal} Principal instance + */ + Principal.create = function create(properties) { + return new Principal(properties); + }; + + /** + * Encodes the specified Principal message. Does not implicitly {@link google.cloud.vmwareengine.v1.Principal.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {google.cloud.vmwareengine.v1.IPrincipal} message Principal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Principal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.user != null && Object.hasOwnProperty.call(message, "user")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.user); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); + return writer; + }; + + /** + * Encodes the specified Principal message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Principal.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {google.cloud.vmwareengine.v1.IPrincipal} message Principal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Principal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Principal message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Principal} Principal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Principal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Principal(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.user = reader.string(); + break; + } + case 2: { + message.serviceAccount = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Principal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Principal} Principal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Principal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Principal message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Principal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.user != null && message.hasOwnProperty("user")) { + properties.principal = 1; + if (!$util.isString(message.user)) + return "user: string expected"; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) { + if (properties.principal === 1) + return "principal: multiple values"; + properties.principal = 1; + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; } - case 7: { - message.body = reader.string(); - break; + return null; + }; + + /** + * Creates a Principal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Principal} Principal + */ + Principal.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Principal) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Principal(); + if (object.user != null) + message.user = String(object.user); + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + return message; + }; + + /** + * Creates a plain object from a Principal message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {google.cloud.vmwareengine.v1.Principal} message Principal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Principal.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.user != null && message.hasOwnProperty("user")) { + object.user = message.user; + if (options.oneofs) + object.principal = "user"; } - case 12: { - message.responseBody = reader.string(); - break; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) { + object.serviceAccount = message.serviceAccount; + if (options.oneofs) + object.principal = "serviceAccount"; } - case 11: { - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; + return object; + }; + + /** + * Converts this Principal to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Principal + * @instance + * @returns {Object.} JSON object + */ + Principal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Principal + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Principal + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Principal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Principal"; + }; + + return Principal; + })(); + + return v1; + })(); + + return vmwareengine; + })(); + + return cloud; + })(); + + google.longrunning = (function() { + + /** + * Namespace longrunning. + * @memberof google + * @namespace + */ + var longrunning = {}; + + longrunning.Operations = (function() { /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new Operations service. + * @memberof google.longrunning + * @classdesc Represents an Operations + * @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 */ - HttpRule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + function Operations(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Operations.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Operations; /** - * Verifies a HttpRule message. - * @function verify - * @memberof google.api.HttpRule + * Creates new Operations service using the specified rpc implementation. + * @function create + * @memberof google.longrunning.Operations * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Operations} RPC service. Useful where requests and/or responses are streamed. */ - HttpRule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - var error = $root.google.api.CustomHttpPattern.verify(message.custom); - if (error) - return "custom." + error; - } - } - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - if (!$util.isString(message.responseBody)) - return "responseBody: string expected"; - if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { - if (!Array.isArray(message.additionalBindings)) - return "additionalBindings: array expected"; - for (var i = 0; i < message.additionalBindings.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); - if (error) - return "additionalBindings." + error; - } - } - return null; + Operations.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.HttpRule - * @static - * @param {Object.} object Plain object - * @returns {google.api.HttpRule} HttpRule + * Callback as used by {@link google.longrunning.Operations|listOperations}. + * @memberof google.longrunning.Operations + * @typedef ListOperationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.ListOperationsResponse} [response] ListOperationsResponse */ - HttpRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.HttpRule) - return object; - var message = new $root.google.api.HttpRule(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.get != null) - message.get = String(object.get); - if (object.put != null) - message.put = String(object.put); - if (object.post != null) - message.post = String(object.post); - if (object["delete"] != null) - message["delete"] = String(object["delete"]); - if (object.patch != null) - message.patch = String(object.patch); - if (object.custom != null) { - if (typeof object.custom !== "object") - throw TypeError(".google.api.HttpRule.custom: object expected"); - message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); - } - if (object.body != null) - message.body = String(object.body); - if (object.responseBody != null) - message.responseBody = String(object.responseBody); - if (object.additionalBindings) { - if (!Array.isArray(object.additionalBindings)) - throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); - message.additionalBindings = []; - for (var i = 0; i < object.additionalBindings.length; ++i) { - if (typeof object.additionalBindings[i] !== "object") - throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); - message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); - } - } - return message; - }; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.HttpRule - * @static - * @param {google.api.HttpRule} message HttpRule - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListOperations. + * @function listOperations + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IListOperationsRequest} request ListOperationsRequest message or plain object + * @param {google.longrunning.Operations.ListOperationsCallback} callback Node-style callback called with the error, if any, and ListOperationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.listOperations = function listOperations(request, callback) { + return this.rpcCall(listOperations, $root.google.longrunning.ListOperationsRequest, $root.google.longrunning.ListOperationsResponse, request, callback); + }, "name", { value: "ListOperations" }); + + /** + * Calls ListOperations. + * @function listOperations + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IListOperationsRequest} request ListOperationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.longrunning.Operations|getOperation}. + * @memberof google.longrunning.Operations + * @typedef GetOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls GetOperation. + * @function getOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IGetOperationRequest} request GetOperationRequest message or plain object + * @param {google.longrunning.Operations.GetOperationCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.getOperation = function getOperation(request, callback) { + return this.rpcCall(getOperation, $root.google.longrunning.GetOperationRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "GetOperation" }); + + /** + * Calls GetOperation. + * @function getOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IGetOperationRequest} request GetOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * @memberof google.longrunning.Operations + * @typedef DeleteOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteOperation. + * @function deleteOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IDeleteOperationRequest} request DeleteOperationRequest message or plain object + * @param {google.longrunning.Operations.DeleteOperationCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.deleteOperation = function deleteOperation(request, callback) { + return this.rpcCall(deleteOperation, $root.google.longrunning.DeleteOperationRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteOperation" }); + + /** + * Calls DeleteOperation. + * @function deleteOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IDeleteOperationRequest} request DeleteOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * @memberof google.longrunning.Operations + * @typedef CancelOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelOperation. + * @function cancelOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.ICancelOperationRequest} request CancelOperationRequest message or plain object + * @param {google.longrunning.Operations.CancelOperationCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.cancelOperation = function cancelOperation(request, callback) { + return this.rpcCall(cancelOperation, $root.google.longrunning.CancelOperationRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelOperation" }); + + /** + * Calls CancelOperation. + * @function cancelOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.ICancelOperationRequest} request CancelOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - HttpRule.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.additionalBindings = []; - if (options.defaults) { - object.selector = ""; - object.body = ""; - object.responseBody = ""; - } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.get != null && message.hasOwnProperty("get")) { - object.get = message.get; - if (options.oneofs) - object.pattern = "get"; - } - if (message.put != null && message.hasOwnProperty("put")) { - object.put = message.put; - if (options.oneofs) - object.pattern = "put"; - } - if (message.post != null && message.hasOwnProperty("post")) { - object.post = message.post; - if (options.oneofs) - object.pattern = "post"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - object["delete"] = message["delete"]; - if (options.oneofs) - object.pattern = "delete"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - object.patch = message.patch; - if (options.oneofs) - object.pattern = "patch"; - } - if (message.body != null && message.hasOwnProperty("body")) - object.body = message.body; - if (message.custom != null && message.hasOwnProperty("custom")) { - object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); - if (options.oneofs) - object.pattern = "custom"; - } - if (message.additionalBindings && message.additionalBindings.length) { - object.additionalBindings = []; - for (var j = 0; j < message.additionalBindings.length; ++j) - object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); - } - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - object.responseBody = message.responseBody; - return object; - }; /** - * Converts this HttpRule to JSON. - * @function toJSON - * @memberof google.api.HttpRule + * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * @memberof google.longrunning.Operations + * @typedef WaitOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls WaitOperation. + * @function waitOperation + * @memberof google.longrunning.Operations * @instance - * @returns {Object.} JSON object + * @param {google.longrunning.IWaitOperationRequest} request WaitOperationRequest message or plain object + * @param {google.longrunning.Operations.WaitOperationCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - HttpRule.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Operations.prototype.waitOperation = function waitOperation(request, callback) { + return this.rpcCall(waitOperation, $root.google.longrunning.WaitOperationRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "WaitOperation" }); /** - * Gets the default type url for HttpRule - * @function getTypeUrl - * @memberof google.api.HttpRule - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls WaitOperation. + * @function waitOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IWaitOperationRequest} request WaitOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.HttpRule"; - }; - return HttpRule; + return Operations; })(); - api.CustomHttpPattern = (function() { + longrunning.Operation = (function() { /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path + * Properties of an Operation. + * @memberof google.longrunning + * @interface IOperation + * @property {string|null} [name] Operation name + * @property {google.protobuf.IAny|null} [metadata] Operation metadata + * @property {boolean|null} [done] Operation done + * @property {google.rpc.IStatus|null} [error] Operation error + * @property {google.protobuf.IAny|null} [response] Operation response */ /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern + * Constructs a new Operation. + * @memberof google.longrunning + * @classdesc Represents an Operation. + * @implements IOperation * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @param {google.longrunning.IOperation=} [properties] Properties to set */ - function CustomHttpPattern(properties) { + function Operation(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21523,89 +38362,145 @@ } /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern + * Operation name. + * @member {string} name + * @memberof google.longrunning.Operation * @instance */ - CustomHttpPattern.prototype.kind = ""; + Operation.prototype.name = ""; /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern + * Operation metadata. + * @member {google.protobuf.IAny|null|undefined} metadata + * @memberof google.longrunning.Operation * @instance */ - CustomHttpPattern.prototype.path = ""; + Operation.prototype.metadata = null; /** - * Creates a new CustomHttpPattern instance using the specified properties. + * Operation done. + * @member {boolean} done + * @memberof google.longrunning.Operation + * @instance + */ + Operation.prototype.done = false; + + /** + * Operation error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.longrunning.Operation + * @instance + */ + Operation.prototype.error = null; + + /** + * Operation response. + * @member {google.protobuf.IAny|null|undefined} response + * @memberof google.longrunning.Operation + * @instance + */ + Operation.prototype.response = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Operation result. + * @member {"error"|"response"|undefined} result + * @memberof google.longrunning.Operation + * @instance + */ + Object.defineProperty(Operation.prototype, "result", { + get: $util.oneOfGetter($oneOfFields = ["error", "response"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Operation instance using the specified properties. * @function create - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + * @param {google.longrunning.IOperation=} [properties] Properties to set + * @returns {google.longrunning.Operation} Operation instance */ - CustomHttpPattern.create = function create(properties) { - return new CustomHttpPattern(properties); + Operation.create = function create(properties) { + return new Operation(properties); }; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. * @function encode - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.longrunning.IOperation} message Operation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encode = function encode(message, writer) { + Operation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Any.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.done != null && Object.hasOwnProperty.call(message, "done")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.done); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.response != null && Object.hasOwnProperty.call(message, "response")) + $root.google.protobuf.Any.encode(message.response, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.longrunning.IOperation} message Operation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + Operation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * Decodes an Operation message from the specified reader or buffer. * @function decode - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.longrunning.Operation} Operation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decode = function decode(reader, length) { + Operation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.Operation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.kind = reader.string(); + message.name = reader.string(); break; } case 2: { - message.path = reader.string(); + message.metadata = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + } + case 3: { + message.done = reader.bool(); + break; + } + case 4: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 5: { + message.response = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; } default: @@ -21617,133 +38512,183 @@ }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes an Operation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.longrunning.Operation} Operation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + Operation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CustomHttpPattern message. + * Verifies an Operation message. * @function verify - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomHttpPattern.verify = function verify(message) { + Operation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Any.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.done != null && message.hasOwnProperty("done")) + if (typeof message.done !== "boolean") + return "done: boolean expected"; + if (message.error != null && message.hasOwnProperty("error")) { + properties.result = 1; + { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.response != null && message.hasOwnProperty("response")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + { + var error = $root.google.protobuf.Any.verify(message.response); + if (error) + return "response." + error; + } + } return null; }; /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * Creates an Operation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static * @param {Object.} object Plain object - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.longrunning.Operation} Operation */ - CustomHttpPattern.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CustomHttpPattern) + Operation.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.Operation) return object; - var message = new $root.google.api.CustomHttpPattern(); - if (object.kind != null) - message.kind = String(object.kind); - if (object.path != null) - message.path = String(object.path); + var message = new $root.google.longrunning.Operation(); + if (object.name != null) + message.name = String(object.name); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.longrunning.Operation.metadata: object expected"); + message.metadata = $root.google.protobuf.Any.fromObject(object.metadata); + } + if (object.done != null) + message.done = Boolean(object.done); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.longrunning.Operation.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.response != null) { + if (typeof object.response !== "object") + throw TypeError(".google.longrunning.Operation.response: object expected"); + message.response = $root.google.protobuf.Any.fromObject(object.response); + } return message; }; /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * Creates a plain object from an Operation message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static - * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {google.longrunning.Operation} message Operation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomHttpPattern.toObject = function toObject(message, options) { + Operation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.kind = ""; - object.path = ""; + object.name = ""; + object.metadata = null; + object.done = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Any.toObject(message.metadata, options); + if (message.done != null && message.hasOwnProperty("done")) + object.done = message.done; + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (options.oneofs) + object.result = "error"; + } + if (message.response != null && message.hasOwnProperty("response")) { + object.response = $root.google.protobuf.Any.toObject(message.response, options); + if (options.oneofs) + object.result = "response"; } - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; return object; }; /** - * Converts this CustomHttpPattern to JSON. + * Converts this Operation to JSON. * @function toJSON - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @instance * @returns {Object.} JSON object */ - CustomHttpPattern.prototype.toJSON = function toJSON() { + Operation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CustomHttpPattern + * Gets the default type url for Operation * @function getTypeUrl - * @memberof google.api.CustomHttpPattern + * @memberof google.longrunning.Operation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Operation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.CustomHttpPattern"; + return typeUrlPrefix + "/google.longrunning.Operation"; }; - return CustomHttpPattern; + return Operation; })(); - api.CommonLanguageSettings = (function() { + longrunning.GetOperationRequest = (function() { /** - * Properties of a CommonLanguageSettings. - * @memberof google.api - * @interface ICommonLanguageSettings - * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri - * @property {Array.|null} [destinations] CommonLanguageSettings destinations + * Properties of a GetOperationRequest. + * @memberof google.longrunning + * @interface IGetOperationRequest + * @property {string|null} [name] GetOperationRequest name */ /** - * Constructs a new CommonLanguageSettings. - * @memberof google.api - * @classdesc Represents a CommonLanguageSettings. - * @implements ICommonLanguageSettings + * Constructs a new GetOperationRequest. + * @memberof google.longrunning + * @classdesc Represents a GetOperationRequest. + * @implements IGetOperationRequest * @constructor - * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set + * @param {google.longrunning.IGetOperationRequest=} [properties] Properties to set */ - function CommonLanguageSettings(properties) { - this.destinations = []; + function GetOperationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21751,100 +38696,75 @@ } /** - * CommonLanguageSettings referenceDocsUri. - * @member {string} referenceDocsUri - * @memberof google.api.CommonLanguageSettings - * @instance - */ - CommonLanguageSettings.prototype.referenceDocsUri = ""; - - /** - * CommonLanguageSettings destinations. - * @member {Array.} destinations - * @memberof google.api.CommonLanguageSettings + * GetOperationRequest name. + * @member {string} name + * @memberof google.longrunning.GetOperationRequest * @instance */ - CommonLanguageSettings.prototype.destinations = $util.emptyArray; + GetOperationRequest.prototype.name = ""; /** - * Creates a new CommonLanguageSettings instance using the specified properties. + * Creates a new GetOperationRequest instance using the specified properties. * @function create - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static - * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set - * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance + * @param {google.longrunning.IGetOperationRequest=} [properties] Properties to set + * @returns {google.longrunning.GetOperationRequest} GetOperationRequest instance */ - CommonLanguageSettings.create = function create(properties) { - return new CommonLanguageSettings(properties); + GetOperationRequest.create = function create(properties) { + return new GetOperationRequest(properties); }; /** - * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. + * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. * @function encode - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static - * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode + * @param {google.longrunning.IGetOperationRequest} message GetOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommonLanguageSettings.encode = function encode(message, writer) { + GetOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri); - if (message.destinations != null && message.destinations.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.destinations.length; ++i) - writer.int32(message.destinations[i]); - writer.ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. + * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static - * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode + * @param {google.longrunning.IGetOperationRequest} message GetOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) { + GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommonLanguageSettings message from the specified reader or buffer. + * Decodes a GetOperationRequest message from the specified reader or buffer. * @function decode - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + * @returns {google.longrunning.GetOperationRequest} GetOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommonLanguageSettings.decode = function decode(reader, length) { + GetOperationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.GetOperationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.referenceDocsUri = reader.string(); - break; - } - case 2: { - if (!(message.destinations && message.destinations.length)) - message.destinations = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.destinations.push(reader.int32()); - } else - message.destinations.push(reader.int32()); + message.name = reader.string(); break; } default: @@ -21856,177 +38776,125 @@ }; /** - * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited. + * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + * @returns {google.longrunning.GetOperationRequest} GetOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) { + GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommonLanguageSettings message. + * Verifies a GetOperationRequest message. * @function verify - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommonLanguageSettings.verify = function verify(message) { + GetOperationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) - if (!$util.isString(message.referenceDocsUri)) - return "referenceDocsUri: string expected"; - if (message.destinations != null && message.hasOwnProperty("destinations")) { - if (!Array.isArray(message.destinations)) - return "destinations: array expected"; - for (var i = 0; i < message.destinations.length; ++i) - switch (message.destinations[i]) { - default: - return "destinations: enum value[] expected"; - case 0: - case 10: - case 20: - break; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static * @param {Object.} object Plain object - * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + * @returns {google.longrunning.GetOperationRequest} GetOperationRequest */ - CommonLanguageSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CommonLanguageSettings) + GetOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.GetOperationRequest) return object; - var message = new $root.google.api.CommonLanguageSettings(); - if (object.referenceDocsUri != null) - message.referenceDocsUri = String(object.referenceDocsUri); - if (object.destinations) { - if (!Array.isArray(object.destinations)) - throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected"); - message.destinations = []; - for (var i = 0; i < object.destinations.length; ++i) - switch (object.destinations[i]) { - default: - if (typeof object.destinations[i] === "number") { - message.destinations[i] = object.destinations[i]; - break; - } - case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": - case 0: - message.destinations[i] = 0; - break; - case "GITHUB": - case 10: - message.destinations[i] = 10; - break; - case "PACKAGE_MANAGER": - case 20: - message.destinations[i] = 20; - break; - } - } + var message = new $root.google.longrunning.GetOperationRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified. + * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static - * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings + * @param {google.longrunning.GetOperationRequest} message GetOperationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommonLanguageSettings.toObject = function toObject(message, options) { + GetOperationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.destinations = []; if (options.defaults) - object.referenceDocsUri = ""; - if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) - object.referenceDocsUri = message.referenceDocsUri; - if (message.destinations && message.destinations.length) { - object.destinations = []; - for (var j = 0; j < message.destinations.length; ++j) - object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j]; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CommonLanguageSettings to JSON. + * Converts this GetOperationRequest to JSON. * @function toJSON - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @instance * @returns {Object.} JSON object */ - CommonLanguageSettings.prototype.toJSON = function toJSON() { + GetOperationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CommonLanguageSettings + * Gets the default type url for GetOperationRequest * @function getTypeUrl - * @memberof google.api.CommonLanguageSettings + * @memberof google.longrunning.GetOperationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.CommonLanguageSettings"; + return typeUrlPrefix + "/google.longrunning.GetOperationRequest"; }; - return CommonLanguageSettings; + return GetOperationRequest; })(); - api.ClientLibrarySettings = (function() { + longrunning.ListOperationsRequest = (function() { /** - * Properties of a ClientLibrarySettings. - * @memberof google.api - * @interface IClientLibrarySettings - * @property {string|null} [version] ClientLibrarySettings version - * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage - * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums - * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings - * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings - * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings - * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings - * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings - * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings - * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings - * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings + * Properties of a ListOperationsRequest. + * @memberof google.longrunning + * @interface IListOperationsRequest + * @property {string|null} [name] ListOperationsRequest name + * @property {string|null} [filter] ListOperationsRequest filter + * @property {number|null} [pageSize] ListOperationsRequest pageSize + * @property {string|null} [pageToken] ListOperationsRequest pageToken */ /** - * Constructs a new ClientLibrarySettings. - * @memberof google.api - * @classdesc Represents a ClientLibrarySettings. - * @implements IClientLibrarySettings + * Constructs a new ListOperationsRequest. + * @memberof google.longrunning + * @classdesc Represents a ListOperationsRequest. + * @implements IListOperationsRequest * @constructor - * @param {google.api.IClientLibrarySettings=} [properties] Properties to set + * @param {google.longrunning.IListOperationsRequest=} [properties] Properties to set */ - function ClientLibrarySettings(properties) { + function ListOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22034,215 +38902,117 @@ } /** - * ClientLibrarySettings version. - * @member {string} version - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.version = ""; - - /** - * ClientLibrarySettings launchStage. - * @member {google.api.LaunchStage} launchStage - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.launchStage = 0; - - /** - * ClientLibrarySettings restNumericEnums. - * @member {boolean} restNumericEnums - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.restNumericEnums = false; - - /** - * ClientLibrarySettings javaSettings. - * @member {google.api.IJavaSettings|null|undefined} javaSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.javaSettings = null; - - /** - * ClientLibrarySettings cppSettings. - * @member {google.api.ICppSettings|null|undefined} cppSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.cppSettings = null; - - /** - * ClientLibrarySettings phpSettings. - * @member {google.api.IPhpSettings|null|undefined} phpSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.phpSettings = null; - - /** - * ClientLibrarySettings pythonSettings. - * @member {google.api.IPythonSettings|null|undefined} pythonSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.pythonSettings = null; - - /** - * ClientLibrarySettings nodeSettings. - * @member {google.api.INodeSettings|null|undefined} nodeSettings - * @memberof google.api.ClientLibrarySettings + * ListOperationsRequest name. + * @member {string} name + * @memberof google.longrunning.ListOperationsRequest * @instance */ - ClientLibrarySettings.prototype.nodeSettings = null; + ListOperationsRequest.prototype.name = ""; /** - * ClientLibrarySettings dotnetSettings. - * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings - * @memberof google.api.ClientLibrarySettings + * ListOperationsRequest filter. + * @member {string} filter + * @memberof google.longrunning.ListOperationsRequest * @instance */ - ClientLibrarySettings.prototype.dotnetSettings = null; + ListOperationsRequest.prototype.filter = ""; /** - * ClientLibrarySettings rubySettings. - * @member {google.api.IRubySettings|null|undefined} rubySettings - * @memberof google.api.ClientLibrarySettings + * ListOperationsRequest pageSize. + * @member {number} pageSize + * @memberof google.longrunning.ListOperationsRequest * @instance */ - ClientLibrarySettings.prototype.rubySettings = null; + ListOperationsRequest.prototype.pageSize = 0; /** - * ClientLibrarySettings goSettings. - * @member {google.api.IGoSettings|null|undefined} goSettings - * @memberof google.api.ClientLibrarySettings + * ListOperationsRequest pageToken. + * @member {string} pageToken + * @memberof google.longrunning.ListOperationsRequest * @instance */ - ClientLibrarySettings.prototype.goSettings = null; + ListOperationsRequest.prototype.pageToken = ""; /** - * Creates a new ClientLibrarySettings instance using the specified properties. + * Creates a new ListOperationsRequest instance using the specified properties. * @function create - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static - * @param {google.api.IClientLibrarySettings=} [properties] Properties to set - * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance + * @param {google.longrunning.IListOperationsRequest=} [properties] Properties to set + * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest instance */ - ClientLibrarySettings.create = function create(properties) { - return new ClientLibrarySettings(properties); + ListOperationsRequest.create = function create(properties) { + return new ListOperationsRequest(properties); }; /** - * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. + * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static - * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode + * @param {google.longrunning.IListOperationsRequest} message ListOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientLibrarySettings.encode = function encode(message, writer) { + ListOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage); - if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums); - if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings")) - $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings")) - $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings")) - $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings")) - $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); - if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings")) - $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); - if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings")) - $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); - if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings")) - $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); - if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings")) - $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. + * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static - * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode + * @param {google.longrunning.IListOperationsRequest} message ListOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) { + ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientLibrarySettings message from the specified reader or buffer. + * Decodes a ListOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientLibrarySettings.decode = function decode(reader, length) { + ListOperationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.ListOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 4: { + message.name = reader.string(); + break; + } case 1: { - message.version = reader.string(); + message.filter = reader.string(); break; } case 2: { - message.launchStage = reader.int32(); + message.pageSize = reader.int32(); break; } case 3: { - message.restNumericEnums = reader.bool(); - break; - } - case 21: { - message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32()); - break; - } - case 22: { - message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32()); - break; - } - case 23: { - message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32()); - break; - } - case 24: { - message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32()); - break; - } - case 25: { - message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32()); - break; - } - case 26: { - message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32()); - break; - } - case 27: { - message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32()); - break; - } - case 28: { - message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; } default: @@ -22254,303 +39024,149 @@ }; /** - * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited. + * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) { + ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientLibrarySettings message. + * Verifies a ListOperationsRequest message. * @function verify - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientLibrarySettings.verify = function verify(message) { + ListOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.launchStage != null && message.hasOwnProperty("launchStage")) - switch (message.launchStage) { - default: - return "launchStage: enum value expected"; - case 0: - case 6: - case 7: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) - if (typeof message.restNumericEnums !== "boolean") - return "restNumericEnums: boolean expected"; - if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) { - var error = $root.google.api.JavaSettings.verify(message.javaSettings); - if (error) - return "javaSettings." + error; - } - if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) { - var error = $root.google.api.CppSettings.verify(message.cppSettings); - if (error) - return "cppSettings." + error; - } - if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) { - var error = $root.google.api.PhpSettings.verify(message.phpSettings); - if (error) - return "phpSettings." + error; - } - if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) { - var error = $root.google.api.PythonSettings.verify(message.pythonSettings); - if (error) - return "pythonSettings." + error; - } - if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) { - var error = $root.google.api.NodeSettings.verify(message.nodeSettings); - if (error) - return "nodeSettings." + error; - } - if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) { - var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings); - if (error) - return "dotnetSettings." + error; - } - if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) { - var error = $root.google.api.RubySettings.verify(message.rubySettings); - if (error) - return "rubySettings." + error; - } - if (message.goSettings != null && message.hasOwnProperty("goSettings")) { - var error = $root.google.api.GoSettings.verify(message.goSettings); - if (error) - return "goSettings." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types. + * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest */ - ClientLibrarySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ClientLibrarySettings) + ListOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.ListOperationsRequest) return object; - var message = new $root.google.api.ClientLibrarySettings(); - if (object.version != null) - message.version = String(object.version); - switch (object.launchStage) { - default: - if (typeof object.launchStage === "number") { - message.launchStage = object.launchStage; - break; - } - break; - case "LAUNCH_STAGE_UNSPECIFIED": - case 0: - message.launchStage = 0; - break; - case "UNIMPLEMENTED": - case 6: - message.launchStage = 6; - break; - case "PRELAUNCH": - case 7: - message.launchStage = 7; - break; - case "EARLY_ACCESS": - case 1: - message.launchStage = 1; - break; - case "ALPHA": - case 2: - message.launchStage = 2; - break; - case "BETA": - case 3: - message.launchStage = 3; - break; - case "GA": - case 4: - message.launchStage = 4; - break; - case "DEPRECATED": - case 5: - message.launchStage = 5; - break; - } - if (object.restNumericEnums != null) - message.restNumericEnums = Boolean(object.restNumericEnums); - if (object.javaSettings != null) { - if (typeof object.javaSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected"); - message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings); - } - if (object.cppSettings != null) { - if (typeof object.cppSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected"); - message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings); - } - if (object.phpSettings != null) { - if (typeof object.phpSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected"); - message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings); - } - if (object.pythonSettings != null) { - if (typeof object.pythonSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected"); - message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings); - } - if (object.nodeSettings != null) { - if (typeof object.nodeSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected"); - message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings); - } - if (object.dotnetSettings != null) { - if (typeof object.dotnetSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected"); - message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings); - } - if (object.rubySettings != null) { - if (typeof object.rubySettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected"); - message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings); - } - if (object.goSettings != null) { - if (typeof object.goSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected"); - message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings); - } + var message = new $root.google.longrunning.ListOperationsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified. + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static - * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings + * @param {google.longrunning.ListOperationsRequest} message ListOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientLibrarySettings.toObject = function toObject(message, options) { + ListOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.version = ""; - object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0; - object.restNumericEnums = false; - object.javaSettings = null; - object.cppSettings = null; - object.phpSettings = null; - object.pythonSettings = null; - object.nodeSettings = null; - object.dotnetSettings = null; - object.rubySettings = null; - object.goSettings = null; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.name = ""; } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.launchStage != null && message.hasOwnProperty("launchStage")) - object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage; - if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) - object.restNumericEnums = message.restNumericEnums; - if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) - object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options); - if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) - object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options); - if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) - object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options); - if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) - object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options); - if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) - object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options); - if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) - object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options); - if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) - object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options); - if (message.goSettings != null && message.hasOwnProperty("goSettings")) - object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options); + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ClientLibrarySettings to JSON. + * Converts this ListOperationsRequest to JSON. * @function toJSON - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @instance * @returns {Object.} JSON object */ - ClientLibrarySettings.prototype.toJSON = function toJSON() { + ListOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ClientLibrarySettings + * Gets the default type url for ListOperationsRequest * @function getTypeUrl - * @memberof google.api.ClientLibrarySettings + * @memberof google.longrunning.ListOperationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.ClientLibrarySettings"; + return typeUrlPrefix + "/google.longrunning.ListOperationsRequest"; }; - return ClientLibrarySettings; + return ListOperationsRequest; })(); - api.Publishing = (function() { + longrunning.ListOperationsResponse = (function() { /** - * Properties of a Publishing. - * @memberof google.api - * @interface IPublishing - * @property {Array.|null} [methodSettings] Publishing methodSettings - * @property {string|null} [newIssueUri] Publishing newIssueUri - * @property {string|null} [documentationUri] Publishing documentationUri - * @property {string|null} [apiShortName] Publishing apiShortName - * @property {string|null} [githubLabel] Publishing githubLabel - * @property {Array.|null} [codeownerGithubTeams] Publishing codeownerGithubTeams - * @property {string|null} [docTagPrefix] Publishing docTagPrefix - * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization - * @property {Array.|null} [librarySettings] Publishing librarySettings + * Properties of a ListOperationsResponse. + * @memberof google.longrunning + * @interface IListOperationsResponse + * @property {Array.|null} [operations] ListOperationsResponse operations + * @property {string|null} [nextPageToken] ListOperationsResponse nextPageToken */ /** - * Constructs a new Publishing. - * @memberof google.api - * @classdesc Represents a Publishing. - * @implements IPublishing + * Constructs a new ListOperationsResponse. + * @memberof google.longrunning + * @classdesc Represents a ListOperationsResponse. + * @implements IListOperationsResponse * @constructor - * @param {google.api.IPublishing=} [properties] Properties to set + * @param {google.longrunning.IListOperationsResponse=} [properties] Properties to set */ - function Publishing(properties) { - this.methodSettings = []; - this.codeownerGithubTeams = []; - this.librarySettings = []; + function ListOperationsResponse(properties) { + this.operations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22558,196 +39174,92 @@ } /** - * Publishing methodSettings. - * @member {Array.} methodSettings - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.methodSettings = $util.emptyArray; - - /** - * Publishing newIssueUri. - * @member {string} newIssueUri - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.newIssueUri = ""; - - /** - * Publishing documentationUri. - * @member {string} documentationUri - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.documentationUri = ""; - - /** - * Publishing apiShortName. - * @member {string} apiShortName - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.apiShortName = ""; - - /** - * Publishing githubLabel. - * @member {string} githubLabel - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.githubLabel = ""; - - /** - * Publishing codeownerGithubTeams. - * @member {Array.} codeownerGithubTeams - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.codeownerGithubTeams = $util.emptyArray; - - /** - * Publishing docTagPrefix. - * @member {string} docTagPrefix - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.docTagPrefix = ""; - - /** - * Publishing organization. - * @member {google.api.ClientLibraryOrganization} organization - * @memberof google.api.Publishing + * ListOperationsResponse operations. + * @member {Array.} operations + * @memberof google.longrunning.ListOperationsResponse * @instance */ - Publishing.prototype.organization = 0; + ListOperationsResponse.prototype.operations = $util.emptyArray; /** - * Publishing librarySettings. - * @member {Array.} librarySettings - * @memberof google.api.Publishing + * ListOperationsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.longrunning.ListOperationsResponse * @instance */ - Publishing.prototype.librarySettings = $util.emptyArray; + ListOperationsResponse.prototype.nextPageToken = ""; /** - * Creates a new Publishing instance using the specified properties. + * Creates a new ListOperationsResponse instance using the specified properties. * @function create - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static - * @param {google.api.IPublishing=} [properties] Properties to set - * @returns {google.api.Publishing} Publishing instance + * @param {google.longrunning.IListOperationsResponse=} [properties] Properties to set + * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse instance */ - Publishing.create = function create(properties) { - return new Publishing(properties); + ListOperationsResponse.create = function create(properties) { + return new ListOperationsResponse(properties); }; /** - * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages. + * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. * @function encode - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static - * @param {google.api.IPublishing} message Publishing message or plain object to encode + * @param {google.longrunning.IListOperationsResponse} message ListOperationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Publishing.encode = function encode(message, writer) { + ListOperationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.methodSettings != null && message.methodSettings.length) - for (var i = 0; i < message.methodSettings.length; ++i) - $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri); - if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri")) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri); - if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName")) - writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName); - if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel")) - writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel); - if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length) - for (var i = 0; i < message.codeownerGithubTeams.length; ++i) - writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]); - if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix")) - writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix); - if (message.organization != null && Object.hasOwnProperty.call(message, "organization")) - writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization); - if (message.librarySettings != null && message.librarySettings.length) - for (var i = 0; i < message.librarySettings.length; ++i) - $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.operations != null && message.operations.length) + for (var i = 0; i < message.operations.length; ++i) + $root.google.longrunning.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages. + * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static - * @param {google.api.IPublishing} message Publishing message or plain object to encode + * @param {google.longrunning.IListOperationsResponse} message ListOperationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Publishing.encodeDelimited = function encodeDelimited(message, writer) { + ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Publishing message from the specified reader or buffer. + * Decodes a ListOperationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.Publishing} Publishing + * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Publishing.decode = function decode(reader, length) { + ListOperationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.ListOperationsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.methodSettings && message.methodSettings.length)) - message.methodSettings = []; - message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32())); - break; - } - case 101: { - message.newIssueUri = reader.string(); - break; - } - case 102: { - message.documentationUri = reader.string(); - break; - } - case 103: { - message.apiShortName = reader.string(); - break; - } - case 104: { - message.githubLabel = reader.string(); - break; - } - case 105: { - if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length)) - message.codeownerGithubTeams = []; - message.codeownerGithubTeams.push(reader.string()); - break; - } - case 106: { - message.docTagPrefix = reader.string(); - break; - } - case 107: { - message.organization = reader.int32(); + case 1: { + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.google.longrunning.Operation.decode(reader, reader.uint32())); break; } - case 109: { - if (!(message.librarySettings && message.librarySettings.length)) - message.librarySettings = []; - message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32())); + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -22759,272 +39271,148 @@ }; /** - * Decodes a Publishing message from the specified reader or buffer, length delimited. + * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Publishing} Publishing + * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Publishing.decodeDelimited = function decodeDelimited(reader) { + ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Publishing message. + * Verifies a ListOperationsResponse message. * @function verify - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Publishing.verify = function verify(message) { + ListOperationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) { - if (!Array.isArray(message.methodSettings)) - return "methodSettings: array expected"; - for (var i = 0; i < message.methodSettings.length; ++i) { - var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]); - if (error) - return "methodSettings." + error; - } - } - if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) - if (!$util.isString(message.newIssueUri)) - return "newIssueUri: string expected"; - if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) - if (!$util.isString(message.documentationUri)) - return "documentationUri: string expected"; - if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) - if (!$util.isString(message.apiShortName)) - return "apiShortName: string expected"; - if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) - if (!$util.isString(message.githubLabel)) - return "githubLabel: string expected"; - if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) { - if (!Array.isArray(message.codeownerGithubTeams)) - return "codeownerGithubTeams: array expected"; - for (var i = 0; i < message.codeownerGithubTeams.length; ++i) - if (!$util.isString(message.codeownerGithubTeams[i])) - return "codeownerGithubTeams: string[] expected"; - } - if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) - if (!$util.isString(message.docTagPrefix)) - return "docTagPrefix: string expected"; - if (message.organization != null && message.hasOwnProperty("organization")) - switch (message.organization) { - default: - return "organization: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) { - if (!Array.isArray(message.librarySettings)) - return "librarySettings: array expected"; - for (var i = 0; i < message.librarySettings.length; ++i) { - var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]); + if (message.operations != null && message.hasOwnProperty("operations")) { + if (!Array.isArray(message.operations)) + return "operations: array expected"; + for (var i = 0; i < message.operations.length; ++i) { + var error = $root.google.longrunning.Operation.verify(message.operations[i]); if (error) - return "librarySettings." + error; + return "operations." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a Publishing message from a plain object. Also converts values to their respective internal types. + * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static * @param {Object.} object Plain object - * @returns {google.api.Publishing} Publishing + * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse */ - Publishing.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Publishing) + ListOperationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.ListOperationsResponse) return object; - var message = new $root.google.api.Publishing(); - if (object.methodSettings) { - if (!Array.isArray(object.methodSettings)) - throw TypeError(".google.api.Publishing.methodSettings: array expected"); - message.methodSettings = []; - for (var i = 0; i < object.methodSettings.length; ++i) { - if (typeof object.methodSettings[i] !== "object") - throw TypeError(".google.api.Publishing.methodSettings: object expected"); - message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]); - } - } - if (object.newIssueUri != null) - message.newIssueUri = String(object.newIssueUri); - if (object.documentationUri != null) - message.documentationUri = String(object.documentationUri); - if (object.apiShortName != null) - message.apiShortName = String(object.apiShortName); - if (object.githubLabel != null) - message.githubLabel = String(object.githubLabel); - if (object.codeownerGithubTeams) { - if (!Array.isArray(object.codeownerGithubTeams)) - throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected"); - message.codeownerGithubTeams = []; - for (var i = 0; i < object.codeownerGithubTeams.length; ++i) - message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]); - } - if (object.docTagPrefix != null) - message.docTagPrefix = String(object.docTagPrefix); - switch (object.organization) { - default: - if (typeof object.organization === "number") { - message.organization = object.organization; - break; - } - break; - case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": - case 0: - message.organization = 0; - break; - case "CLOUD": - case 1: - message.organization = 1; - break; - case "ADS": - case 2: - message.organization = 2; - break; - case "PHOTOS": - case 3: - message.organization = 3; - break; - case "STREET_VIEW": - case 4: - message.organization = 4; - break; - } - if (object.librarySettings) { - if (!Array.isArray(object.librarySettings)) - throw TypeError(".google.api.Publishing.librarySettings: array expected"); - message.librarySettings = []; - for (var i = 0; i < object.librarySettings.length; ++i) { - if (typeof object.librarySettings[i] !== "object") - throw TypeError(".google.api.Publishing.librarySettings: object expected"); - message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]); + var message = new $root.google.longrunning.ListOperationsResponse(); + if (object.operations) { + if (!Array.isArray(object.operations)) + throw TypeError(".google.longrunning.ListOperationsResponse.operations: array expected"); + message.operations = []; + for (var i = 0; i < object.operations.length; ++i) { + if (typeof object.operations[i] !== "object") + throw TypeError(".google.longrunning.ListOperationsResponse.operations: object expected"); + message.operations[i] = $root.google.longrunning.Operation.fromObject(object.operations[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a Publishing message. Also converts values to other types if specified. + * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static - * @param {google.api.Publishing} message Publishing + * @param {google.longrunning.ListOperationsResponse} message ListOperationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Publishing.toObject = function toObject(message, options) { + ListOperationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.methodSettings = []; - object.codeownerGithubTeams = []; - object.librarySettings = []; - } - if (options.defaults) { - object.newIssueUri = ""; - object.documentationUri = ""; - object.apiShortName = ""; - object.githubLabel = ""; - object.docTagPrefix = ""; - object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0; - } - if (message.methodSettings && message.methodSettings.length) { - object.methodSettings = []; - for (var j = 0; j < message.methodSettings.length; ++j) - object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options); - } - if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) - object.newIssueUri = message.newIssueUri; - if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) - object.documentationUri = message.documentationUri; - if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) - object.apiShortName = message.apiShortName; - if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) - object.githubLabel = message.githubLabel; - if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) { - object.codeownerGithubTeams = []; - for (var j = 0; j < message.codeownerGithubTeams.length; ++j) - object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j]; - } - if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) - object.docTagPrefix = message.docTagPrefix; - if (message.organization != null && message.hasOwnProperty("organization")) - object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization; - if (message.librarySettings && message.librarySettings.length) { - object.librarySettings = []; - for (var j = 0; j < message.librarySettings.length; ++j) - object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options); + if (options.arrays || options.defaults) + object.operations = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.operations && message.operations.length) { + object.operations = []; + for (var j = 0; j < message.operations.length; ++j) + object.operations[j] = $root.google.longrunning.Operation.toObject(message.operations[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this Publishing to JSON. + * Converts this ListOperationsResponse to JSON. * @function toJSON - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @instance * @returns {Object.} JSON object */ - Publishing.prototype.toJSON = function toJSON() { + ListOperationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Publishing + * Gets the default type url for ListOperationsResponse * @function getTypeUrl - * @memberof google.api.Publishing + * @memberof google.longrunning.ListOperationsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListOperationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.Publishing"; + return typeUrlPrefix + "/google.longrunning.ListOperationsResponse"; }; - return Publishing; + return ListOperationsResponse; })(); - api.JavaSettings = (function() { + longrunning.CancelOperationRequest = (function() { /** - * Properties of a JavaSettings. - * @memberof google.api - * @interface IJavaSettings - * @property {string|null} [libraryPackage] JavaSettings libraryPackage - * @property {Object.|null} [serviceClassNames] JavaSettings serviceClassNames - * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common + * Properties of a CancelOperationRequest. + * @memberof google.longrunning + * @interface ICancelOperationRequest + * @property {string|null} [name] CancelOperationRequest name */ /** - * Constructs a new JavaSettings. - * @memberof google.api - * @classdesc Represents a JavaSettings. - * @implements IJavaSettings + * Constructs a new CancelOperationRequest. + * @memberof google.longrunning + * @classdesc Represents a CancelOperationRequest. + * @implements ICancelOperationRequest * @constructor - * @param {google.api.IJavaSettings=} [properties] Properties to set + * @param {google.longrunning.ICancelOperationRequest=} [properties] Properties to set */ - function JavaSettings(properties) { - this.serviceClassNames = {}; + function CancelOperationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23032,123 +39420,75 @@ } /** - * JavaSettings libraryPackage. - * @member {string} libraryPackage - * @memberof google.api.JavaSettings - * @instance - */ - JavaSettings.prototype.libraryPackage = ""; - - /** - * JavaSettings serviceClassNames. - * @member {Object.} serviceClassNames - * @memberof google.api.JavaSettings - * @instance - */ - JavaSettings.prototype.serviceClassNames = $util.emptyObject; - - /** - * JavaSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.JavaSettings + * CancelOperationRequest name. + * @member {string} name + * @memberof google.longrunning.CancelOperationRequest * @instance */ - JavaSettings.prototype.common = null; + CancelOperationRequest.prototype.name = ""; /** - * Creates a new JavaSettings instance using the specified properties. + * Creates a new CancelOperationRequest instance using the specified properties. * @function create - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static - * @param {google.api.IJavaSettings=} [properties] Properties to set - * @returns {google.api.JavaSettings} JavaSettings instance + * @param {google.longrunning.ICancelOperationRequest=} [properties] Properties to set + * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest instance */ - JavaSettings.create = function create(properties) { - return new JavaSettings(properties); + CancelOperationRequest.create = function create(properties) { + return new CancelOperationRequest(properties); }; /** - * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. + * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. * @function encode - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static - * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode + * @param {google.longrunning.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JavaSettings.encode = function encode(message, writer) { + CancelOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage); - if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames")) - for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. + * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static - * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode + * @param {google.longrunning.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JavaSettings.encodeDelimited = function encodeDelimited(message, writer) { + CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a JavaSettings message from the specified reader or buffer. + * Decodes a CancelOperationRequest message from the specified reader or buffer. * @function decode - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.JavaSettings} JavaSettings + * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JavaSettings.decode = function decode(reader, length) { + CancelOperationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.CancelOperationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.libraryPackage = reader.string(); - break; - } - case 2: { - if (message.serviceClassNames === $util.emptyObject) - message.serviceClassNames = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.serviceClassNames[key] = value; - break; - } - case 3: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -23160,159 +39500,122 @@ }; /** - * Decodes a JavaSettings message from the specified reader or buffer, length delimited. + * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.JavaSettings} JavaSettings + * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JavaSettings.decodeDelimited = function decodeDelimited(reader) { + CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a JavaSettings message. + * Verifies a CancelOperationRequest message. * @function verify - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - JavaSettings.verify = function verify(message) { + CancelOperationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) - if (!$util.isString(message.libraryPackage)) - return "libraryPackage: string expected"; - if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) { - if (!$util.isObject(message.serviceClassNames)) - return "serviceClassNames: object expected"; - var key = Object.keys(message.serviceClassNames); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.serviceClassNames[key[i]])) - return "serviceClassNames: string{k:string} expected"; - } - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types. + * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static * @param {Object.} object Plain object - * @returns {google.api.JavaSettings} JavaSettings + * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest */ - JavaSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.JavaSettings) + CancelOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.CancelOperationRequest) return object; - var message = new $root.google.api.JavaSettings(); - if (object.libraryPackage != null) - message.libraryPackage = String(object.libraryPackage); - if (object.serviceClassNames) { - if (typeof object.serviceClassNames !== "object") - throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected"); - message.serviceClassNames = {}; - for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i) - message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]); - } - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.JavaSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } + var message = new $root.google.longrunning.CancelOperationRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a JavaSettings message. Also converts values to other types if specified. + * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static - * @param {google.api.JavaSettings} message JavaSettings + * @param {google.longrunning.CancelOperationRequest} message CancelOperationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - JavaSettings.toObject = function toObject(message, options) { + CancelOperationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.serviceClassNames = {}; - if (options.defaults) { - object.libraryPackage = ""; - object.common = null; - } - if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) - object.libraryPackage = message.libraryPackage; - var keys2; - if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) { - object.serviceClassNames = {}; - for (var j = 0; j < keys2.length; ++j) - object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]]; - } - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this JavaSettings to JSON. + * Converts this CancelOperationRequest to JSON. * @function toJSON - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @instance * @returns {Object.} JSON object */ - JavaSettings.prototype.toJSON = function toJSON() { + CancelOperationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for JavaSettings + * Gets the default type url for CancelOperationRequest * @function getTypeUrl - * @memberof google.api.JavaSettings + * @memberof google.longrunning.CancelOperationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.JavaSettings"; + return typeUrlPrefix + "/google.longrunning.CancelOperationRequest"; }; - return JavaSettings; + return CancelOperationRequest; })(); - api.CppSettings = (function() { + longrunning.DeleteOperationRequest = (function() { /** - * Properties of a CppSettings. - * @memberof google.api - * @interface ICppSettings - * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common + * Properties of a DeleteOperationRequest. + * @memberof google.longrunning + * @interface IDeleteOperationRequest + * @property {string|null} [name] DeleteOperationRequest name */ /** - * Constructs a new CppSettings. - * @memberof google.api - * @classdesc Represents a CppSettings. - * @implements ICppSettings + * Constructs a new DeleteOperationRequest. + * @memberof google.longrunning + * @classdesc Represents a DeleteOperationRequest. + * @implements IDeleteOperationRequest * @constructor - * @param {google.api.ICppSettings=} [properties] Properties to set + * @param {google.longrunning.IDeleteOperationRequest=} [properties] Properties to set */ - function CppSettings(properties) { + function DeleteOperationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23320,75 +39623,75 @@ } /** - * CppSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.CppSettings + * DeleteOperationRequest name. + * @member {string} name + * @memberof google.longrunning.DeleteOperationRequest * @instance */ - CppSettings.prototype.common = null; + DeleteOperationRequest.prototype.name = ""; /** - * Creates a new CppSettings instance using the specified properties. + * Creates a new DeleteOperationRequest instance using the specified properties. * @function create - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static - * @param {google.api.ICppSettings=} [properties] Properties to set - * @returns {google.api.CppSettings} CppSettings instance + * @param {google.longrunning.IDeleteOperationRequest=} [properties] Properties to set + * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest instance */ - CppSettings.create = function create(properties) { - return new CppSettings(properties); + DeleteOperationRequest.create = function create(properties) { + return new DeleteOperationRequest(properties); }; /** - * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. + * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. * @function encode - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static - * @param {google.api.ICppSettings} message CppSettings message or plain object to encode + * @param {google.longrunning.IDeleteOperationRequest} message DeleteOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CppSettings.encode = function encode(message, writer) { + DeleteOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. + * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static - * @param {google.api.ICppSettings} message CppSettings message or plain object to encode + * @param {google.longrunning.IDeleteOperationRequest} message DeleteOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CppSettings.encodeDelimited = function encodeDelimited(message, writer) { + DeleteOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CppSettings message from the specified reader or buffer. + * Decodes a DeleteOperationRequest message from the specified reader or buffer. * @function decode - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.CppSettings} CppSettings + * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CppSettings.decode = function decode(reader, length) { + DeleteOperationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.DeleteOperationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -23400,127 +39703,123 @@ }; /** - * Decodes a CppSettings message from the specified reader or buffer, length delimited. + * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CppSettings} CppSettings + * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CppSettings.decodeDelimited = function decodeDelimited(reader) { + DeleteOperationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CppSettings message. + * Verifies a DeleteOperationRequest message. * @function verify - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CppSettings.verify = function verify(message) { + DeleteOperationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CppSettings message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static * @param {Object.} object Plain object - * @returns {google.api.CppSettings} CppSettings + * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest */ - CppSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CppSettings) + DeleteOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.DeleteOperationRequest) return object; - var message = new $root.google.api.CppSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.CppSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } + var message = new $root.google.longrunning.DeleteOperationRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CppSettings message. Also converts values to other types if specified. + * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static - * @param {google.api.CppSettings} message CppSettings + * @param {google.longrunning.DeleteOperationRequest} message DeleteOperationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CppSettings.toObject = function toObject(message, options) { + DeleteOperationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CppSettings to JSON. + * Converts this DeleteOperationRequest to JSON. * @function toJSON - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @instance * @returns {Object.} JSON object */ - CppSettings.prototype.toJSON = function toJSON() { + DeleteOperationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CppSettings + * Gets the default type url for DeleteOperationRequest * @function getTypeUrl - * @memberof google.api.CppSettings + * @memberof google.longrunning.DeleteOperationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.CppSettings"; + return typeUrlPrefix + "/google.longrunning.DeleteOperationRequest"; }; - return CppSettings; + return DeleteOperationRequest; })(); - api.PhpSettings = (function() { + longrunning.WaitOperationRequest = (function() { /** - * Properties of a PhpSettings. - * @memberof google.api - * @interface IPhpSettings - * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common + * Properties of a WaitOperationRequest. + * @memberof google.longrunning + * @interface IWaitOperationRequest + * @property {string|null} [name] WaitOperationRequest name + * @property {google.protobuf.IDuration|null} [timeout] WaitOperationRequest timeout */ /** - * Constructs a new PhpSettings. - * @memberof google.api - * @classdesc Represents a PhpSettings. - * @implements IPhpSettings + * Constructs a new WaitOperationRequest. + * @memberof google.longrunning + * @classdesc Represents a WaitOperationRequest. + * @implements IWaitOperationRequest * @constructor - * @param {google.api.IPhpSettings=} [properties] Properties to set + * @param {google.longrunning.IWaitOperationRequest=} [properties] Properties to set */ - function PhpSettings(properties) { + function WaitOperationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23528,75 +39827,89 @@ } /** - * PhpSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.PhpSettings + * WaitOperationRequest name. + * @member {string} name + * @memberof google.longrunning.WaitOperationRequest * @instance */ - PhpSettings.prototype.common = null; + WaitOperationRequest.prototype.name = ""; /** - * Creates a new PhpSettings instance using the specified properties. + * WaitOperationRequest timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.longrunning.WaitOperationRequest + * @instance + */ + WaitOperationRequest.prototype.timeout = null; + + /** + * Creates a new WaitOperationRequest instance using the specified properties. * @function create - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static - * @param {google.api.IPhpSettings=} [properties] Properties to set - * @returns {google.api.PhpSettings} PhpSettings instance + * @param {google.longrunning.IWaitOperationRequest=} [properties] Properties to set + * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest instance */ - PhpSettings.create = function create(properties) { - return new PhpSettings(properties); + WaitOperationRequest.create = function create(properties) { + return new WaitOperationRequest(properties); }; /** - * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. + * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. * @function encode - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static - * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode + * @param {google.longrunning.IWaitOperationRequest} message WaitOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PhpSettings.encode = function encode(message, writer) { + WaitOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. + * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static - * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode + * @param {google.longrunning.IWaitOperationRequest} message WaitOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PhpSettings.encodeDelimited = function encodeDelimited(message, writer) { + WaitOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PhpSettings message from the specified reader or buffer. + * Decodes a WaitOperationRequest message from the specified reader or buffer. * @function decode - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.PhpSettings} PhpSettings + * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PhpSettings.decode = function decode(reader, length) { + WaitOperationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.WaitOperationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + } + case 2: { + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -23608,127 +39921,137 @@ }; /** - * Decodes a PhpSettings message from the specified reader or buffer, length delimited. + * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.PhpSettings} PhpSettings + * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PhpSettings.decodeDelimited = function decodeDelimited(reader) { + WaitOperationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PhpSettings message. + * Verifies a WaitOperationRequest message. * @function verify - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PhpSettings.verify = function verify(message) { + WaitOperationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); if (error) - return "common." + error; + return "timeout." + error; } return null; }; /** - * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static * @param {Object.} object Plain object - * @returns {google.api.PhpSettings} PhpSettings + * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest */ - PhpSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.PhpSettings) + WaitOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.WaitOperationRequest) return object; - var message = new $root.google.api.PhpSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.PhpSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + var message = new $root.google.longrunning.WaitOperationRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.timeout != null) { + if (typeof object.timeout !== "object") + throw TypeError(".google.longrunning.WaitOperationRequest.timeout: object expected"); + message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); } return message; }; /** - * Creates a plain object from a PhpSettings message. Also converts values to other types if specified. + * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static - * @param {google.api.PhpSettings} message PhpSettings + * @param {google.longrunning.WaitOperationRequest} message WaitOperationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PhpSettings.toObject = function toObject(message, options) { + WaitOperationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + if (options.defaults) { + object.name = ""; + object.timeout = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); return object; }; /** - * Converts this PhpSettings to JSON. + * Converts this WaitOperationRequest to JSON. * @function toJSON - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @instance * @returns {Object.} JSON object */ - PhpSettings.prototype.toJSON = function toJSON() { + WaitOperationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PhpSettings + * Gets the default type url for WaitOperationRequest * @function getTypeUrl - * @memberof google.api.PhpSettings + * @memberof google.longrunning.WaitOperationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WaitOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.PhpSettings"; + return typeUrlPrefix + "/google.longrunning.WaitOperationRequest"; }; - return PhpSettings; + return WaitOperationRequest; })(); - api.PythonSettings = (function() { + longrunning.OperationInfo = (function() { /** - * Properties of a PythonSettings. - * @memberof google.api - * @interface IPythonSettings - * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common + * Properties of an OperationInfo. + * @memberof google.longrunning + * @interface IOperationInfo + * @property {string|null} [responseType] OperationInfo responseType + * @property {string|null} [metadataType] OperationInfo metadataType */ /** - * Constructs a new PythonSettings. - * @memberof google.api - * @classdesc Represents a PythonSettings. - * @implements IPythonSettings + * Constructs a new OperationInfo. + * @memberof google.longrunning + * @classdesc Represents an OperationInfo. + * @implements IOperationInfo * @constructor - * @param {google.api.IPythonSettings=} [properties] Properties to set + * @param {google.longrunning.IOperationInfo=} [properties] Properties to set */ - function PythonSettings(properties) { + function OperationInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23736,75 +40059,89 @@ } /** - * PythonSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.PythonSettings + * OperationInfo responseType. + * @member {string} responseType + * @memberof google.longrunning.OperationInfo * @instance */ - PythonSettings.prototype.common = null; + OperationInfo.prototype.responseType = ""; /** - * Creates a new PythonSettings instance using the specified properties. + * OperationInfo metadataType. + * @member {string} metadataType + * @memberof google.longrunning.OperationInfo + * @instance + */ + OperationInfo.prototype.metadataType = ""; + + /** + * Creates a new OperationInfo instance using the specified properties. * @function create - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static - * @param {google.api.IPythonSettings=} [properties] Properties to set - * @returns {google.api.PythonSettings} PythonSettings instance + * @param {google.longrunning.IOperationInfo=} [properties] Properties to set + * @returns {google.longrunning.OperationInfo} OperationInfo instance */ - PythonSettings.create = function create(properties) { - return new PythonSettings(properties); + OperationInfo.create = function create(properties) { + return new OperationInfo(properties); }; /** - * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. + * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. * @function encode - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static - * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode + * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PythonSettings.encode = function encode(message, writer) { + OperationInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseType); + if (message.metadataType != null && Object.hasOwnProperty.call(message, "metadataType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadataType); return writer; }; /** - * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. + * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static - * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode + * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PythonSettings.encodeDelimited = function encodeDelimited(message, writer) { + OperationInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PythonSettings message from the specified reader or buffer. + * Decodes an OperationInfo message from the specified reader or buffer. * @function decode - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.PythonSettings} PythonSettings + * @returns {google.longrunning.OperationInfo} OperationInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PythonSettings.decode = function decode(reader, length) { + OperationInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.OperationInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + message.responseType = reader.string(); + break; + } + case 2: { + message.metadataType = reader.string(); break; } default: @@ -23816,127 +40153,145 @@ }; /** - * Decodes a PythonSettings message from the specified reader or buffer, length delimited. + * Decodes an OperationInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.PythonSettings} PythonSettings + * @returns {google.longrunning.OperationInfo} OperationInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PythonSettings.decodeDelimited = function decodeDelimited(reader) { + OperationInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PythonSettings message. + * Verifies an OperationInfo message. * @function verify - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PythonSettings.verify = function verify(message) { + OperationInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } + if (message.responseType != null && message.hasOwnProperty("responseType")) + if (!$util.isString(message.responseType)) + return "responseType: string expected"; + if (message.metadataType != null && message.hasOwnProperty("metadataType")) + if (!$util.isString(message.metadataType)) + return "metadataType: string expected"; return null; }; /** - * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types. + * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static * @param {Object.} object Plain object - * @returns {google.api.PythonSettings} PythonSettings + * @returns {google.longrunning.OperationInfo} OperationInfo */ - PythonSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.PythonSettings) + OperationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.OperationInfo) return object; - var message = new $root.google.api.PythonSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.PythonSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } + var message = new $root.google.longrunning.OperationInfo(); + if (object.responseType != null) + message.responseType = String(object.responseType); + if (object.metadataType != null) + message.metadataType = String(object.metadataType); return message; }; /** - * Creates a plain object from a PythonSettings message. Also converts values to other types if specified. + * Creates a plain object from an OperationInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static - * @param {google.api.PythonSettings} message PythonSettings + * @param {google.longrunning.OperationInfo} message OperationInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PythonSettings.toObject = function toObject(message, options) { + OperationInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + if (options.defaults) { + object.responseType = ""; + object.metadataType = ""; + } + if (message.responseType != null && message.hasOwnProperty("responseType")) + object.responseType = message.responseType; + if (message.metadataType != null && message.hasOwnProperty("metadataType")) + object.metadataType = message.metadataType; return object; }; /** - * Converts this PythonSettings to JSON. + * Converts this OperationInfo to JSON. * @function toJSON - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @instance * @returns {Object.} JSON object */ - PythonSettings.prototype.toJSON = function toJSON() { + OperationInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PythonSettings + * Gets the default type url for OperationInfo * @function getTypeUrl - * @memberof google.api.PythonSettings + * @memberof google.longrunning.OperationInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OperationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.PythonSettings"; + return typeUrlPrefix + "/google.longrunning.OperationInfo"; }; - return PythonSettings; + return OperationInfo; })(); - api.NodeSettings = (function() { + return longrunning; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + api.Http = (function() { /** - * Properties of a NodeSettings. + * Properties of a Http. * @memberof google.api - * @interface INodeSettings - * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion */ /** - * Constructs a new NodeSettings. + * Constructs a new Http. * @memberof google.api - * @classdesc Represents a NodeSettings. - * @implements INodeSettings + * @classdesc Represents a Http. + * @implements IHttp * @constructor - * @param {google.api.INodeSettings=} [properties] Properties to set + * @param {google.api.IHttp=} [properties] Properties to set */ - function NodeSettings(properties) { + function Http(properties) { + this.rules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23944,75 +40299,92 @@ } /** - * NodeSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.NodeSettings + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http * @instance */ - NodeSettings.prototype.common = null; + Http.prototype.rules = $util.emptyArray; /** - * Creates a new NodeSettings instance using the specified properties. + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. * @function create - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static - * @param {google.api.INodeSettings=} [properties] Properties to set - * @returns {google.api.NodeSettings} NodeSettings instance + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance */ - NodeSettings.create = function create(properties) { - return new NodeSettings(properties); + Http.create = function create(properties) { + return new Http(properties); }; /** - * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. * @function encode - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static - * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode + * @param {google.api.IHttp} message Http message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeSettings.encode = function encode(message, writer) { + Http.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); return writer; }; /** - * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static - * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode + * @param {google.api.IHttp} message Http message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeSettings.encodeDelimited = function encodeDelimited(message, writer) { + Http.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeSettings message from the specified reader or buffer. + * Decodes a Http message from the specified reader or buffer. * @function decode - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.NodeSettings} NodeSettings + * @returns {google.api.Http} Http * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeSettings.decode = function decode(reader, length) { + Http.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); break; } default: @@ -24024,127 +40396,158 @@ }; /** - * Decodes a NodeSettings message from the specified reader or buffer, length delimited. + * Decodes a Http message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.NodeSettings} NodeSettings + * @returns {google.api.Http} Http * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeSettings.decodeDelimited = function decodeDelimited(reader) { + Http.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeSettings message. + * Verifies a Http message. * @function verify - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeSettings.verify = function verify(message) { + Http.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; return null; }; /** - * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a Http message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static * @param {Object.} object Plain object - * @returns {google.api.NodeSettings} NodeSettings + * @returns {google.api.Http} Http */ - NodeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.NodeSettings) + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) return object; - var message = new $root.google.api.NodeSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.NodeSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); return message; }; /** - * Creates a plain object from a NodeSettings message. Also converts values to other types if specified. + * Creates a plain object from a Http message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static - * @param {google.api.NodeSettings} message NodeSettings + * @param {google.api.Http} message Http * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeSettings.toObject = function toObject(message, options) { + Http.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.rules = []; if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; return object; }; /** - * Converts this NodeSettings to JSON. + * Converts this Http to JSON. * @function toJSON - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @instance * @returns {Object.} JSON object */ - NodeSettings.prototype.toJSON = function toJSON() { + Http.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NodeSettings + * Gets the default type url for Http * @function getTypeUrl - * @memberof google.api.NodeSettings + * @memberof google.api.Http * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.NodeSettings"; + return typeUrlPrefix + "/google.api.Http"; }; - return NodeSettings; + return Http; })(); - api.DotnetSettings = (function() { + api.HttpRule = (function() { /** - * Properties of a DotnetSettings. + * Properties of a HttpRule. * @memberof google.api - * @interface IDotnetSettings - * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings */ /** - * Constructs a new DotnetSettings. + * Constructs a new HttpRule. * @memberof google.api - * @classdesc Represents a DotnetSettings. - * @implements IDotnetSettings + * @classdesc Represents a HttpRule. + * @implements IHttpRule * @constructor - * @param {google.api.IDotnetSettings=} [properties] Properties to set + * @param {google.api.IHttpRule=} [properties] Properties to set */ - function DotnetSettings(properties) { + function HttpRule(properties) { + this.additionalBindings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24152,75 +40555,218 @@ } /** - * DotnetSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.DotnetSettings + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule * @instance */ - DotnetSettings.prototype.common = null; + HttpRule.prototype.selector = ""; /** - * Creates a new DotnetSettings instance using the specified properties. + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; + + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; + + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; + + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; + + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. * @function create - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static - * @param {google.api.IDotnetSettings=} [properties] Properties to set - * @returns {google.api.DotnetSettings} DotnetSettings instance + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance */ - DotnetSettings.create = function create(properties) { - return new DotnetSettings(properties); + HttpRule.create = function create(properties) { + return new HttpRule(properties); }; /** - * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. * @function encode - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static - * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DotnetSettings.encode = function encode(message, writer) { + HttpRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); return writer; }; /** - * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static - * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) { + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DotnetSettings message from the specified reader or buffer. + * Decodes a HttpRule message from the specified reader or buffer. * @function decode - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.DotnetSettings} DotnetSettings + * @returns {google.api.HttpRule} HttpRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DotnetSettings.decode = function decode(reader, length) { + HttpRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); break; } default: @@ -24232,127 +40778,255 @@ }; /** - * Decodes a DotnetSettings message from the specified reader or buffer, length delimited. + * Decodes a HttpRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.DotnetSettings} DotnetSettings + * @returns {google.api.HttpRule} HttpRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DotnetSettings.decodeDelimited = function decodeDelimited(reader) { + HttpRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DotnetSettings message. + * Verifies a HttpRule message. * @function verify - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DotnetSettings.verify = function verify(message) { + HttpRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } } return null; }; /** - * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types. + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static * @param {Object.} object Plain object - * @returns {google.api.DotnetSettings} DotnetSettings + * @returns {google.api.HttpRule} HttpRule */ - DotnetSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.DotnetSettings) + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) return object; - var message = new $root.google.api.DotnetSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.DotnetSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } } return message; }; /** - * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified. + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static - * @param {google.api.DotnetSettings} message DotnetSettings + * @param {google.api.HttpRule} message HttpRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DotnetSettings.toObject = function toObject(message, options) { + HttpRule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; return object; }; /** - * Converts this DotnetSettings to JSON. + * Converts this HttpRule to JSON. * @function toJSON - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @instance * @returns {Object.} JSON object */ - DotnetSettings.prototype.toJSON = function toJSON() { + HttpRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DotnetSettings + * Gets the default type url for HttpRule * @function getTypeUrl - * @memberof google.api.DotnetSettings + * @memberof google.api.HttpRule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.DotnetSettings"; + return typeUrlPrefix + "/google.api.HttpRule"; }; - return DotnetSettings; + return HttpRule; })(); - api.RubySettings = (function() { + api.CustomHttpPattern = (function() { /** - * Properties of a RubySettings. + * Properties of a CustomHttpPattern. * @memberof google.api - * @interface IRubySettings - * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path */ /** - * Constructs a new RubySettings. + * Constructs a new CustomHttpPattern. * @memberof google.api - * @classdesc Represents a RubySettings. - * @implements IRubySettings + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern * @constructor - * @param {google.api.IRubySettings=} [properties] Properties to set + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set */ - function RubySettings(properties) { + function CustomHttpPattern(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24360,75 +41034,89 @@ } /** - * RubySettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.RubySettings + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern * @instance */ - RubySettings.prototype.common = null; + CustomHttpPattern.prototype.kind = ""; /** - * Creates a new RubySettings instance using the specified properties. + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. * @function create - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static - * @param {google.api.IRubySettings=} [properties] Properties to set - * @returns {google.api.RubySettings} RubySettings instance + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance */ - RubySettings.create = function create(properties) { - return new RubySettings(properties); + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); }; /** - * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. * @function encode - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static - * @param {google.api.IRubySettings} message RubySettings message or plain object to encode + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RubySettings.encode = function encode(message, writer) { + CustomHttpPattern.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); return writer; }; /** - * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static - * @param {google.api.IRubySettings} message RubySettings message or plain object to encode + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RubySettings.encodeDelimited = function encodeDelimited(message, writer) { + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RubySettings message from the specified reader or buffer. + * Decodes a CustomHttpPattern message from the specified reader or buffer. * @function decode - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.RubySettings} RubySettings + * @returns {google.api.CustomHttpPattern} CustomHttpPattern * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RubySettings.decode = function decode(reader, length) { + CustomHttpPattern.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); break; } default: @@ -24440,127 +41128,133 @@ }; /** - * Decodes a RubySettings message from the specified reader or buffer, length delimited. + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.RubySettings} RubySettings + * @returns {google.api.CustomHttpPattern} CustomHttpPattern * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RubySettings.decodeDelimited = function decodeDelimited(reader) { + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RubySettings message. + * Verifies a CustomHttpPattern message. * @function verify - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RubySettings.verify = function verify(message) { + CustomHttpPattern.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; return null; }; /** - * Creates a RubySettings message from a plain object. Also converts values to their respective internal types. + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static * @param {Object.} object Plain object - * @returns {google.api.RubySettings} RubySettings + * @returns {google.api.CustomHttpPattern} CustomHttpPattern */ - RubySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.RubySettings) + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) return object; - var message = new $root.google.api.RubySettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.RubySettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); return message; }; /** - * Creates a plain object from a RubySettings message. Also converts values to other types if specified. + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static - * @param {google.api.RubySettings} message RubySettings + * @param {google.api.CustomHttpPattern} message CustomHttpPattern * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RubySettings.toObject = function toObject(message, options) { + CustomHttpPattern.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; return object; }; /** - * Converts this RubySettings to JSON. + * Converts this CustomHttpPattern to JSON. * @function toJSON - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @instance * @returns {Object.} JSON object */ - RubySettings.prototype.toJSON = function toJSON() { + CustomHttpPattern.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RubySettings + * Gets the default type url for CustomHttpPattern * @function getTypeUrl - * @memberof google.api.RubySettings + * @memberof google.api.CustomHttpPattern * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.RubySettings"; + return typeUrlPrefix + "/google.api.CustomHttpPattern"; }; - return RubySettings; + return CustomHttpPattern; })(); - api.GoSettings = (function() { + api.CommonLanguageSettings = (function() { /** - * Properties of a GoSettings. + * Properties of a CommonLanguageSettings. * @memberof google.api - * @interface IGoSettings - * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common + * @interface ICommonLanguageSettings + * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri + * @property {Array.|null} [destinations] CommonLanguageSettings destinations */ /** - * Constructs a new GoSettings. + * Constructs a new CommonLanguageSettings. * @memberof google.api - * @classdesc Represents a GoSettings. - * @implements IGoSettings + * @classdesc Represents a CommonLanguageSettings. + * @implements ICommonLanguageSettings * @constructor - * @param {google.api.IGoSettings=} [properties] Properties to set + * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set */ - function GoSettings(properties) { + function CommonLanguageSettings(properties) { + this.destinations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24568,75 +41262,100 @@ } /** - * GoSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.GoSettings + * CommonLanguageSettings referenceDocsUri. + * @member {string} referenceDocsUri + * @memberof google.api.CommonLanguageSettings * @instance */ - GoSettings.prototype.common = null; + CommonLanguageSettings.prototype.referenceDocsUri = ""; /** - * Creates a new GoSettings instance using the specified properties. + * CommonLanguageSettings destinations. + * @member {Array.} destinations + * @memberof google.api.CommonLanguageSettings + * @instance + */ + CommonLanguageSettings.prototype.destinations = $util.emptyArray; + + /** + * Creates a new CommonLanguageSettings instance using the specified properties. * @function create - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static - * @param {google.api.IGoSettings=} [properties] Properties to set - * @returns {google.api.GoSettings} GoSettings instance + * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance */ - GoSettings.create = function create(properties) { - return new GoSettings(properties); + CommonLanguageSettings.create = function create(properties) { + return new CommonLanguageSettings(properties); }; /** - * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. + * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. * @function encode - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static - * @param {google.api.IGoSettings} message GoSettings message or plain object to encode + * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoSettings.encode = function encode(message, writer) { + CommonLanguageSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri); + if (message.destinations != null && message.destinations.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.destinations.length; ++i) + writer.int32(message.destinations[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. + * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static - * @param {google.api.IGoSettings} message GoSettings message or plain object to encode + * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoSettings.encodeDelimited = function encodeDelimited(message, writer) { + CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GoSettings message from the specified reader or buffer. + * Decodes a CommonLanguageSettings message from the specified reader or buffer. * @function decode - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.GoSettings} GoSettings + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoSettings.decode = function decode(reader, length) { + CommonLanguageSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + message.referenceDocsUri = reader.string(); + break; + } + case 2: { + if (!(message.destinations && message.destinations.length)) + message.destinations = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.destinations.push(reader.int32()); + } else + message.destinations.push(reader.int32()); break; } default: @@ -24648,128 +41367,177 @@ }; /** - * Decodes a GoSettings message from the specified reader or buffer, length delimited. + * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.GoSettings} GoSettings + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoSettings.decodeDelimited = function decodeDelimited(reader) { + CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GoSettings message. + * Verifies a CommonLanguageSettings message. * @function verify - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GoSettings.verify = function verify(message) { + CommonLanguageSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; + if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) + if (!$util.isString(message.referenceDocsUri)) + return "referenceDocsUri: string expected"; + if (message.destinations != null && message.hasOwnProperty("destinations")) { + if (!Array.isArray(message.destinations)) + return "destinations: array expected"; + for (var i = 0; i < message.destinations.length; ++i) + switch (message.destinations[i]) { + default: + return "destinations: enum value[] expected"; + case 0: + case 10: + case 20: + break; + } } return null; }; /** - * Creates a GoSettings message from a plain object. Also converts values to their respective internal types. + * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static * @param {Object.} object Plain object - * @returns {google.api.GoSettings} GoSettings + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings */ - GoSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.GoSettings) + CommonLanguageSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CommonLanguageSettings) return object; - var message = new $root.google.api.GoSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.GoSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + var message = new $root.google.api.CommonLanguageSettings(); + if (object.referenceDocsUri != null) + message.referenceDocsUri = String(object.referenceDocsUri); + if (object.destinations) { + if (!Array.isArray(object.destinations)) + throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected"); + message.destinations = []; + for (var i = 0; i < object.destinations.length; ++i) + switch (object.destinations[i]) { + default: + if (typeof object.destinations[i] === "number") { + message.destinations[i] = object.destinations[i]; + break; + } + case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": + case 0: + message.destinations[i] = 0; + break; + case "GITHUB": + case 10: + message.destinations[i] = 10; + break; + case "PACKAGE_MANAGER": + case 20: + message.destinations[i] = 20; + break; + } } return message; }; /** - * Creates a plain object from a GoSettings message. Also converts values to other types if specified. + * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static - * @param {google.api.GoSettings} message GoSettings + * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GoSettings.toObject = function toObject(message, options) { + CommonLanguageSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.destinations = []; if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + object.referenceDocsUri = ""; + if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) + object.referenceDocsUri = message.referenceDocsUri; + if (message.destinations && message.destinations.length) { + object.destinations = []; + for (var j = 0; j < message.destinations.length; ++j) + object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j]; + } return object; }; /** - * Converts this GoSettings to JSON. + * Converts this CommonLanguageSettings to JSON. * @function toJSON - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @instance * @returns {Object.} JSON object */ - GoSettings.prototype.toJSON = function toJSON() { + CommonLanguageSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GoSettings + * Gets the default type url for CommonLanguageSettings * @function getTypeUrl - * @memberof google.api.GoSettings + * @memberof google.api.CommonLanguageSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.GoSettings"; + return typeUrlPrefix + "/google.api.CommonLanguageSettings"; }; - return GoSettings; + return CommonLanguageSettings; })(); - api.MethodSettings = (function() { + api.ClientLibrarySettings = (function() { /** - * Properties of a MethodSettings. + * Properties of a ClientLibrarySettings. * @memberof google.api - * @interface IMethodSettings - * @property {string|null} [selector] MethodSettings selector - * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning + * @interface IClientLibrarySettings + * @property {string|null} [version] ClientLibrarySettings version + * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage + * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums + * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings + * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings + * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings + * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings + * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings + * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings + * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings + * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings */ /** - * Constructs a new MethodSettings. + * Constructs a new ClientLibrarySettings. * @memberof google.api - * @classdesc Represents a MethodSettings. - * @implements IMethodSettings + * @classdesc Represents a ClientLibrarySettings. + * @implements IClientLibrarySettings * @constructor - * @param {google.api.IMethodSettings=} [properties] Properties to set + * @param {google.api.IClientLibrarySettings=} [properties] Properties to set */ - function MethodSettings(properties) { + function ClientLibrarySettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24777,89 +41545,215 @@ } /** - * MethodSettings selector. - * @member {string} selector - * @memberof google.api.MethodSettings + * ClientLibrarySettings version. + * @member {string} version + * @memberof google.api.ClientLibrarySettings * @instance */ - MethodSettings.prototype.selector = ""; + ClientLibrarySettings.prototype.version = ""; /** - * MethodSettings longRunning. - * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning - * @memberof google.api.MethodSettings + * ClientLibrarySettings launchStage. + * @member {google.api.LaunchStage} launchStage + * @memberof google.api.ClientLibrarySettings * @instance */ - MethodSettings.prototype.longRunning = null; + ClientLibrarySettings.prototype.launchStage = 0; /** - * Creates a new MethodSettings instance using the specified properties. + * ClientLibrarySettings restNumericEnums. + * @member {boolean} restNumericEnums + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.restNumericEnums = false; + + /** + * ClientLibrarySettings javaSettings. + * @member {google.api.IJavaSettings|null|undefined} javaSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.javaSettings = null; + + /** + * ClientLibrarySettings cppSettings. + * @member {google.api.ICppSettings|null|undefined} cppSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.cppSettings = null; + + /** + * ClientLibrarySettings phpSettings. + * @member {google.api.IPhpSettings|null|undefined} phpSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.phpSettings = null; + + /** + * ClientLibrarySettings pythonSettings. + * @member {google.api.IPythonSettings|null|undefined} pythonSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.pythonSettings = null; + + /** + * ClientLibrarySettings nodeSettings. + * @member {google.api.INodeSettings|null|undefined} nodeSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.nodeSettings = null; + + /** + * ClientLibrarySettings dotnetSettings. + * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.dotnetSettings = null; + + /** + * ClientLibrarySettings rubySettings. + * @member {google.api.IRubySettings|null|undefined} rubySettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.rubySettings = null; + + /** + * ClientLibrarySettings goSettings. + * @member {google.api.IGoSettings|null|undefined} goSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.goSettings = null; + + /** + * Creates a new ClientLibrarySettings instance using the specified properties. * @function create - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @static - * @param {google.api.IMethodSettings=} [properties] Properties to set - * @returns {google.api.MethodSettings} MethodSettings instance + * @param {google.api.IClientLibrarySettings=} [properties] Properties to set + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance */ - MethodSettings.create = function create(properties) { - return new MethodSettings(properties); + ClientLibrarySettings.create = function create(properties) { + return new ClientLibrarySettings(properties); }; /** - * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. + * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. * @function encode - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @static - * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode + * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodSettings.encode = function encode(message, writer) { + ClientLibrarySettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning")) - $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage); + if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums); + if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings")) + $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings")) + $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings")) + $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings")) + $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings")) + $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings")) + $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings")) + $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings")) + $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); return writer; }; /** - * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. + * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @static - * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode + * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodSettings.encodeDelimited = function encodeDelimited(message, writer) { + ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodSettings message from the specified reader or buffer. + * Decodes a ClientLibrarySettings message from the specified reader or buffer. * @function decode - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.MethodSettings} MethodSettings + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodSettings.decode = function decode(reader, length) { + ClientLibrarySettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.selector = reader.string(); + message.version = reader.string(); break; } case 2: { - message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32()); + message.launchStage = reader.int32(); + break; + } + case 3: { + message.restNumericEnums = reader.bool(); + break; + } + case 21: { + message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32()); + break; + } + case 22: { + message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32()); + break; + } + case 23: { + message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32()); + break; + } + case 24: { + message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32()); + break; + } + case 25: { + message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32()); + break; + } + case 26: { + message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32()); + break; + } + case 27: { + message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32()); + break; + } + case 28: { + message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32()); break; } default: @@ -24871,520 +41765,303 @@ }; /** - * Decodes a MethodSettings message from the specified reader or buffer, length delimited. + * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.MethodSettings} MethodSettings + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodSettings.decodeDelimited = function decodeDelimited(reader) { + ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodSettings message. + * Verifies a ClientLibrarySettings message. * @function verify - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodSettings.verify = function verify(message) { + ClientLibrarySettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.longRunning != null && message.hasOwnProperty("longRunning")) { - var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning); + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.launchStage != null && message.hasOwnProperty("launchStage")) + switch (message.launchStage) { + default: + return "launchStage: enum value expected"; + case 0: + case 6: + case 7: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) + if (typeof message.restNumericEnums !== "boolean") + return "restNumericEnums: boolean expected"; + if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) { + var error = $root.google.api.JavaSettings.verify(message.javaSettings); if (error) - return "longRunning." + error; + return "javaSettings." + error; + } + if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) { + var error = $root.google.api.CppSettings.verify(message.cppSettings); + if (error) + return "cppSettings." + error; + } + if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) { + var error = $root.google.api.PhpSettings.verify(message.phpSettings); + if (error) + return "phpSettings." + error; + } + if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) { + var error = $root.google.api.PythonSettings.verify(message.pythonSettings); + if (error) + return "pythonSettings." + error; + } + if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) { + var error = $root.google.api.NodeSettings.verify(message.nodeSettings); + if (error) + return "nodeSettings." + error; + } + if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) { + var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings); + if (error) + return "dotnetSettings." + error; + } + if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) { + var error = $root.google.api.RubySettings.verify(message.rubySettings); + if (error) + return "rubySettings." + error; + } + if (message.goSettings != null && message.hasOwnProperty("goSettings")) { + var error = $root.google.api.GoSettings.verify(message.goSettings); + if (error) + return "goSettings." + error; + } + return null; + }; + + /** + * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ClientLibrarySettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + */ + ClientLibrarySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ClientLibrarySettings) + return object; + var message = new $root.google.api.ClientLibrarySettings(); + if (object.version != null) + message.version = String(object.version); + switch (object.launchStage) { + default: + if (typeof object.launchStage === "number") { + message.launchStage = object.launchStage; + break; + } + break; + case "LAUNCH_STAGE_UNSPECIFIED": + case 0: + message.launchStage = 0; + break; + case "UNIMPLEMENTED": + case 6: + message.launchStage = 6; + break; + case "PRELAUNCH": + case 7: + message.launchStage = 7; + break; + case "EARLY_ACCESS": + case 1: + message.launchStage = 1; + break; + case "ALPHA": + case 2: + message.launchStage = 2; + break; + case "BETA": + case 3: + message.launchStage = 3; + break; + case "GA": + case 4: + message.launchStage = 4; + break; + case "DEPRECATED": + case 5: + message.launchStage = 5; + break; + } + if (object.restNumericEnums != null) + message.restNumericEnums = Boolean(object.restNumericEnums); + if (object.javaSettings != null) { + if (typeof object.javaSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected"); + message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings); + } + if (object.cppSettings != null) { + if (typeof object.cppSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected"); + message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings); + } + if (object.phpSettings != null) { + if (typeof object.phpSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected"); + message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings); + } + if (object.pythonSettings != null) { + if (typeof object.pythonSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected"); + message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings); + } + if (object.nodeSettings != null) { + if (typeof object.nodeSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected"); + message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings); + } + if (object.dotnetSettings != null) { + if (typeof object.dotnetSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected"); + message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings); + } + if (object.rubySettings != null) { + if (typeof object.rubySettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected"); + message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings); } - return null; - }; - - /** - * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.MethodSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.MethodSettings} MethodSettings - */ - MethodSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.MethodSettings) - return object; - var message = new $root.google.api.MethodSettings(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.longRunning != null) { - if (typeof object.longRunning !== "object") - throw TypeError(".google.api.MethodSettings.longRunning: object expected"); - message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning); + if (object.goSettings != null) { + if (typeof object.goSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected"); + message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings); } return message; }; /** - * Creates a plain object from a MethodSettings message. Also converts values to other types if specified. + * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @static - * @param {google.api.MethodSettings} message MethodSettings + * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodSettings.toObject = function toObject(message, options) { + ClientLibrarySettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.selector = ""; - object.longRunning = null; + object.version = ""; + object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0; + object.restNumericEnums = false; + object.javaSettings = null; + object.cppSettings = null; + object.phpSettings = null; + object.pythonSettings = null; + object.nodeSettings = null; + object.dotnetSettings = null; + object.rubySettings = null; + object.goSettings = null; } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.longRunning != null && message.hasOwnProperty("longRunning")) - object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.launchStage != null && message.hasOwnProperty("launchStage")) + object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage; + if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) + object.restNumericEnums = message.restNumericEnums; + if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) + object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options); + if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) + object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options); + if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) + object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options); + if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) + object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options); + if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) + object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options); + if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) + object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options); + if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) + object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options); + if (message.goSettings != null && message.hasOwnProperty("goSettings")) + object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options); return object; }; /** - * Converts this MethodSettings to JSON. + * Converts this ClientLibrarySettings to JSON. * @function toJSON - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @instance * @returns {Object.} JSON object */ - MethodSettings.prototype.toJSON = function toJSON() { + ClientLibrarySettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MethodSettings + * Gets the default type url for ClientLibrarySettings * @function getTypeUrl - * @memberof google.api.MethodSettings + * @memberof google.api.ClientLibrarySettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.MethodSettings"; + return typeUrlPrefix + "/google.api.ClientLibrarySettings"; }; - MethodSettings.LongRunning = (function() { - - /** - * Properties of a LongRunning. - * @memberof google.api.MethodSettings - * @interface ILongRunning - * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay - * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier - * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay - * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout - */ - - /** - * Constructs a new LongRunning. - * @memberof google.api.MethodSettings - * @classdesc Represents a LongRunning. - * @implements ILongRunning - * @constructor - * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set - */ - function LongRunning(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]]; - } - - /** - * LongRunning initialPollDelay. - * @member {google.protobuf.IDuration|null|undefined} initialPollDelay - * @memberof google.api.MethodSettings.LongRunning - * @instance - */ - LongRunning.prototype.initialPollDelay = null; - - /** - * LongRunning pollDelayMultiplier. - * @member {number} pollDelayMultiplier - * @memberof google.api.MethodSettings.LongRunning - * @instance - */ - LongRunning.prototype.pollDelayMultiplier = 0; - - /** - * LongRunning maxPollDelay. - * @member {google.protobuf.IDuration|null|undefined} maxPollDelay - * @memberof google.api.MethodSettings.LongRunning - * @instance - */ - LongRunning.prototype.maxPollDelay = null; - - /** - * LongRunning totalPollTimeout. - * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout - * @memberof google.api.MethodSettings.LongRunning - * @instance - */ - LongRunning.prototype.totalPollTimeout = null; - - /** - * Creates a new LongRunning instance using the specified properties. - * @function create - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set - * @returns {google.api.MethodSettings.LongRunning} LongRunning instance - */ - LongRunning.create = function create(properties) { - return new LongRunning(properties); - }; - - /** - * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. - * @function encode - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LongRunning.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay")) - $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier); - if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay")) - $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout")) - $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LongRunning.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LongRunning message from the specified reader or buffer. - * @function decode - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.MethodSettings.LongRunning} LongRunning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LongRunning.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 2: { - message.pollDelayMultiplier = reader.float(); - break; - } - case 3: { - message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 4: { - message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LongRunning message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.MethodSettings.LongRunning} LongRunning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LongRunning.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LongRunning message. - * @function verify - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LongRunning.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) { - var error = $root.google.protobuf.Duration.verify(message.initialPollDelay); - if (error) - return "initialPollDelay." + error; - } - if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) - if (typeof message.pollDelayMultiplier !== "number") - return "pollDelayMultiplier: number expected"; - if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) { - var error = $root.google.protobuf.Duration.verify(message.maxPollDelay); - if (error) - return "maxPollDelay." + error; - } - if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) { - var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout); - if (error) - return "totalPollTimeout." + error; - } - return null; - }; - - /** - * Creates a LongRunning message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {Object.} object Plain object - * @returns {google.api.MethodSettings.LongRunning} LongRunning - */ - LongRunning.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.MethodSettings.LongRunning) - return object; - var message = new $root.google.api.MethodSettings.LongRunning(); - if (object.initialPollDelay != null) { - if (typeof object.initialPollDelay !== "object") - throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected"); - message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay); - } - if (object.pollDelayMultiplier != null) - message.pollDelayMultiplier = Number(object.pollDelayMultiplier); - if (object.maxPollDelay != null) { - if (typeof object.maxPollDelay !== "object") - throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected"); - message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay); - } - if (object.totalPollTimeout != null) { - if (typeof object.totalPollTimeout !== "object") - throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected"); - message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout); - } - return message; - }; - - /** - * Creates a plain object from a LongRunning message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {google.api.MethodSettings.LongRunning} message LongRunning - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LongRunning.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.initialPollDelay = null; - object.pollDelayMultiplier = 0; - object.maxPollDelay = null; - object.totalPollTimeout = null; - } - if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) - object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options); - if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) - object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier; - if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) - object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options); - if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) - object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options); - return object; - }; - - /** - * Converts this LongRunning to JSON. - * @function toJSON - * @memberof google.api.MethodSettings.LongRunning - * @instance - * @returns {Object.} JSON object - */ - LongRunning.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LongRunning - * @function getTypeUrl - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.MethodSettings.LongRunning"; - }; - - return LongRunning; - })(); - - return MethodSettings; - })(); - - /** - * ClientLibraryOrganization enum. - * @name google.api.ClientLibraryOrganization - * @enum {number} - * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value - * @property {number} CLOUD=1 CLOUD value - * @property {number} ADS=2 ADS value - * @property {number} PHOTOS=3 PHOTOS value - * @property {number} STREET_VIEW=4 STREET_VIEW value - */ - api.ClientLibraryOrganization = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0; - values[valuesById[1] = "CLOUD"] = 1; - values[valuesById[2] = "ADS"] = 2; - values[valuesById[3] = "PHOTOS"] = 3; - values[valuesById[4] = "STREET_VIEW"] = 4; - return values; - })(); - - /** - * ClientLibraryDestination enum. - * @name google.api.ClientLibraryDestination - * @enum {number} - * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value - * @property {number} GITHUB=10 GITHUB value - * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value - */ - api.ClientLibraryDestination = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0; - values[valuesById[10] = "GITHUB"] = 10; - values[valuesById[20] = "PACKAGE_MANAGER"] = 20; - return values; - })(); - - /** - * LaunchStage enum. - * @name google.api.LaunchStage - * @enum {number} - * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value - * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value - * @property {number} PRELAUNCH=7 PRELAUNCH value - * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value - * @property {number} ALPHA=2 ALPHA value - * @property {number} BETA=3 BETA value - * @property {number} GA=4 GA value - * @property {number} DEPRECATED=5 DEPRECATED value - */ - api.LaunchStage = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0; - values[valuesById[6] = "UNIMPLEMENTED"] = 6; - values[valuesById[7] = "PRELAUNCH"] = 7; - values[valuesById[1] = "EARLY_ACCESS"] = 1; - values[valuesById[2] = "ALPHA"] = 2; - values[valuesById[3] = "BETA"] = 3; - values[valuesById[4] = "GA"] = 4; - values[valuesById[5] = "DEPRECATED"] = 5; - return values; - })(); - - /** - * FieldBehavior enum. - * @name google.api.FieldBehavior - * @enum {number} - * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value - * @property {number} OPTIONAL=1 OPTIONAL value - * @property {number} REQUIRED=2 REQUIRED value - * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value - * @property {number} INPUT_ONLY=4 INPUT_ONLY value - * @property {number} IMMUTABLE=5 IMMUTABLE value - * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value - * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value - */ - api.FieldBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "OPTIONAL"] = 1; - values[valuesById[2] = "REQUIRED"] = 2; - values[valuesById[3] = "OUTPUT_ONLY"] = 3; - values[valuesById[4] = "INPUT_ONLY"] = 4; - values[valuesById[5] = "IMMUTABLE"] = 5; - values[valuesById[6] = "UNORDERED_LIST"] = 6; - values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; - return values; + return ClientLibrarySettings; })(); - api.ResourceDescriptor = (function() { + api.Publishing = (function() { /** - * Properties of a ResourceDescriptor. + * Properties of a Publishing. * @memberof google.api - * @interface IResourceDescriptor - * @property {string|null} [type] ResourceDescriptor type - * @property {Array.|null} [pattern] ResourceDescriptor pattern - * @property {string|null} [nameField] ResourceDescriptor nameField - * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history - * @property {string|null} [plural] ResourceDescriptor plural - * @property {string|null} [singular] ResourceDescriptor singular - * @property {Array.|null} [style] ResourceDescriptor style + * @interface IPublishing + * @property {Array.|null} [methodSettings] Publishing methodSettings + * @property {string|null} [newIssueUri] Publishing newIssueUri + * @property {string|null} [documentationUri] Publishing documentationUri + * @property {string|null} [apiShortName] Publishing apiShortName + * @property {string|null} [githubLabel] Publishing githubLabel + * @property {Array.|null} [codeownerGithubTeams] Publishing codeownerGithubTeams + * @property {string|null} [docTagPrefix] Publishing docTagPrefix + * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization + * @property {Array.|null} [librarySettings] Publishing librarySettings */ /** - * Constructs a new ResourceDescriptor. + * Constructs a new Publishing. * @memberof google.api - * @classdesc Represents a ResourceDescriptor. - * @implements IResourceDescriptor + * @classdesc Represents a Publishing. + * @implements IPublishing * @constructor - * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @param {google.api.IPublishing=} [properties] Properties to set */ - function ResourceDescriptor(properties) { - this.pattern = []; - this.style = []; + function Publishing(properties) { + this.methodSettings = []; + this.codeownerGithubTeams = []; + this.librarySettings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25392,173 +42069,196 @@ } /** - * ResourceDescriptor type. - * @member {string} type - * @memberof google.api.ResourceDescriptor + * Publishing methodSettings. + * @member {Array.} methodSettings + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.methodSettings = $util.emptyArray; + + /** + * Publishing newIssueUri. + * @member {string} newIssueUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.newIssueUri = ""; + + /** + * Publishing documentationUri. + * @member {string} documentationUri + * @memberof google.api.Publishing * @instance */ - ResourceDescriptor.prototype.type = ""; + Publishing.prototype.documentationUri = ""; /** - * ResourceDescriptor pattern. - * @member {Array.} pattern - * @memberof google.api.ResourceDescriptor + * Publishing apiShortName. + * @member {string} apiShortName + * @memberof google.api.Publishing * @instance */ - ResourceDescriptor.prototype.pattern = $util.emptyArray; + Publishing.prototype.apiShortName = ""; /** - * ResourceDescriptor nameField. - * @member {string} nameField - * @memberof google.api.ResourceDescriptor + * Publishing githubLabel. + * @member {string} githubLabel + * @memberof google.api.Publishing * @instance */ - ResourceDescriptor.prototype.nameField = ""; + Publishing.prototype.githubLabel = ""; /** - * ResourceDescriptor history. - * @member {google.api.ResourceDescriptor.History} history - * @memberof google.api.ResourceDescriptor + * Publishing codeownerGithubTeams. + * @member {Array.} codeownerGithubTeams + * @memberof google.api.Publishing * @instance */ - ResourceDescriptor.prototype.history = 0; + Publishing.prototype.codeownerGithubTeams = $util.emptyArray; /** - * ResourceDescriptor plural. - * @member {string} plural - * @memberof google.api.ResourceDescriptor + * Publishing docTagPrefix. + * @member {string} docTagPrefix + * @memberof google.api.Publishing * @instance */ - ResourceDescriptor.prototype.plural = ""; + Publishing.prototype.docTagPrefix = ""; /** - * ResourceDescriptor singular. - * @member {string} singular - * @memberof google.api.ResourceDescriptor + * Publishing organization. + * @member {google.api.ClientLibraryOrganization} organization + * @memberof google.api.Publishing * @instance */ - ResourceDescriptor.prototype.singular = ""; + Publishing.prototype.organization = 0; /** - * ResourceDescriptor style. - * @member {Array.} style - * @memberof google.api.ResourceDescriptor + * Publishing librarySettings. + * @member {Array.} librarySettings + * @memberof google.api.Publishing * @instance */ - ResourceDescriptor.prototype.style = $util.emptyArray; + Publishing.prototype.librarySettings = $util.emptyArray; /** - * Creates a new ResourceDescriptor instance using the specified properties. + * Creates a new Publishing instance using the specified properties. * @function create - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static - * @param {google.api.IResourceDescriptor=} [properties] Properties to set - * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + * @param {google.api.IPublishing=} [properties] Properties to set + * @returns {google.api.Publishing} Publishing instance */ - ResourceDescriptor.create = function create(properties) { - return new ResourceDescriptor(properties); + Publishing.create = function create(properties) { + return new Publishing(properties); }; /** - * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages. * @function encode - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static - * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {google.api.IPublishing} message Publishing message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceDescriptor.encode = function encode(message, writer) { + Publishing.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.pattern != null && message.pattern.length) - for (var i = 0; i < message.pattern.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); - if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); - if (message.history != null && Object.hasOwnProperty.call(message, "history")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); - if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); - if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); - if (message.style != null && message.style.length) { - writer.uint32(/* id 10, wireType 2 =*/82).fork(); - for (var i = 0; i < message.style.length; ++i) - writer.int32(message.style[i]); - writer.ldelim(); - } + if (message.methodSettings != null && message.methodSettings.length) + for (var i = 0; i < message.methodSettings.length; ++i) + $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri); + if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri")) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri); + if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName")) + writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName); + if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel); + if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length) + for (var i = 0; i < message.codeownerGithubTeams.length; ++i) + writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]); + if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix); + if (message.organization != null && Object.hasOwnProperty.call(message, "organization")) + writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization); + if (message.librarySettings != null && message.librarySettings.length) + for (var i = 0; i < message.librarySettings.length; ++i) + $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static - * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {google.api.IPublishing} message Publishing message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + Publishing.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer. + * Decodes a Publishing message from the specified reader or buffer. * @function decode - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @returns {google.api.Publishing} Publishing * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceDescriptor.decode = function decode(reader, length) { + Publishing.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.type = reader.string(); + case 2: { + if (!(message.methodSettings && message.methodSettings.length)) + message.methodSettings = []; + message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.pattern && message.pattern.length)) - message.pattern = []; - message.pattern.push(reader.string()); + case 101: { + message.newIssueUri = reader.string(); break; } - case 3: { - message.nameField = reader.string(); + case 102: { + message.documentationUri = reader.string(); break; } - case 4: { - message.history = reader.int32(); + case 103: { + message.apiShortName = reader.string(); break; } - case 5: { - message.plural = reader.string(); + case 104: { + message.githubLabel = reader.string(); break; } - case 6: { - message.singular = reader.string(); + case 105: { + if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length)) + message.codeownerGithubTeams = []; + message.codeownerGithubTeams.push(reader.string()); break; } - case 10: { - if (!(message.style && message.style.length)) - message.style = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.style.push(reader.int32()); - } else - message.style.push(reader.int32()); + case 106: { + message.docTagPrefix = reader.string(); + break; + } + case 107: { + message.organization = reader.int32(); + break; + } + case 109: { + if (!(message.librarySettings && message.librarySettings.length)) + message.librarySettings = []; + message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32())); break; } default: @@ -25570,271 +42270,272 @@ }; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * Decodes a Publishing message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @returns {google.api.Publishing} Publishing * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + Publishing.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceDescriptor message. + * Verifies a Publishing message. * @function verify - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceDescriptor.verify = function verify(message) { + Publishing.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.pattern != null && message.hasOwnProperty("pattern")) { - if (!Array.isArray(message.pattern)) - return "pattern: array expected"; - for (var i = 0; i < message.pattern.length; ++i) - if (!$util.isString(message.pattern[i])) - return "pattern: string[] expected"; + if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) { + if (!Array.isArray(message.methodSettings)) + return "methodSettings: array expected"; + for (var i = 0; i < message.methodSettings.length; ++i) { + var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]); + if (error) + return "methodSettings." + error; + } } - if (message.nameField != null && message.hasOwnProperty("nameField")) - if (!$util.isString(message.nameField)) - return "nameField: string expected"; - if (message.history != null && message.hasOwnProperty("history")) - switch (message.history) { + if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) + if (!$util.isString(message.newIssueUri)) + return "newIssueUri: string expected"; + if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) + if (!$util.isString(message.documentationUri)) + return "documentationUri: string expected"; + if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) + if (!$util.isString(message.apiShortName)) + return "apiShortName: string expected"; + if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) + if (!$util.isString(message.githubLabel)) + return "githubLabel: string expected"; + if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) { + if (!Array.isArray(message.codeownerGithubTeams)) + return "codeownerGithubTeams: array expected"; + for (var i = 0; i < message.codeownerGithubTeams.length; ++i) + if (!$util.isString(message.codeownerGithubTeams[i])) + return "codeownerGithubTeams: string[] expected"; + } + if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) + if (!$util.isString(message.docTagPrefix)) + return "docTagPrefix: string expected"; + if (message.organization != null && message.hasOwnProperty("organization")) + switch (message.organization) { default: - return "history: enum value expected"; + return "organization: enum value expected"; case 0: case 1: case 2: + case 3: + case 4: break; } - if (message.plural != null && message.hasOwnProperty("plural")) - if (!$util.isString(message.plural)) - return "plural: string expected"; - if (message.singular != null && message.hasOwnProperty("singular")) - if (!$util.isString(message.singular)) - return "singular: string expected"; - if (message.style != null && message.hasOwnProperty("style")) { - if (!Array.isArray(message.style)) - return "style: array expected"; - for (var i = 0; i < message.style.length; ++i) - switch (message.style[i]) { - default: - return "style: enum value[] expected"; - case 0: - case 1: - break; - } + if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) { + if (!Array.isArray(message.librarySettings)) + return "librarySettings: array expected"; + for (var i = 0; i < message.librarySettings.length; ++i) { + var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]); + if (error) + return "librarySettings." + error; + } } return null; }; /** - * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates a Publishing message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static * @param {Object.} object Plain object - * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @returns {google.api.Publishing} Publishing */ - ResourceDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ResourceDescriptor) + Publishing.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Publishing) return object; - var message = new $root.google.api.ResourceDescriptor(); - if (object.type != null) - message.type = String(object.type); - if (object.pattern) { - if (!Array.isArray(object.pattern)) - throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); - message.pattern = []; - for (var i = 0; i < object.pattern.length; ++i) - message.pattern[i] = String(object.pattern[i]); + var message = new $root.google.api.Publishing(); + if (object.methodSettings) { + if (!Array.isArray(object.methodSettings)) + throw TypeError(".google.api.Publishing.methodSettings: array expected"); + message.methodSettings = []; + for (var i = 0; i < object.methodSettings.length; ++i) { + if (typeof object.methodSettings[i] !== "object") + throw TypeError(".google.api.Publishing.methodSettings: object expected"); + message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]); + } } - if (object.nameField != null) - message.nameField = String(object.nameField); - switch (object.history) { + if (object.newIssueUri != null) + message.newIssueUri = String(object.newIssueUri); + if (object.documentationUri != null) + message.documentationUri = String(object.documentationUri); + if (object.apiShortName != null) + message.apiShortName = String(object.apiShortName); + if (object.githubLabel != null) + message.githubLabel = String(object.githubLabel); + if (object.codeownerGithubTeams) { + if (!Array.isArray(object.codeownerGithubTeams)) + throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected"); + message.codeownerGithubTeams = []; + for (var i = 0; i < object.codeownerGithubTeams.length; ++i) + message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]); + } + if (object.docTagPrefix != null) + message.docTagPrefix = String(object.docTagPrefix); + switch (object.organization) { default: - if (typeof object.history === "number") { - message.history = object.history; + if (typeof object.organization === "number") { + message.organization = object.organization; break; } break; - case "HISTORY_UNSPECIFIED": + case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": case 0: - message.history = 0; + message.organization = 0; break; - case "ORIGINALLY_SINGLE_PATTERN": + case "CLOUD": case 1: - message.history = 1; + message.organization = 1; break; - case "FUTURE_MULTI_PATTERN": + case "ADS": case 2: - message.history = 2; + message.organization = 2; + break; + case "PHOTOS": + case 3: + message.organization = 3; + break; + case "STREET_VIEW": + case 4: + message.organization = 4; break; } - if (object.plural != null) - message.plural = String(object.plural); - if (object.singular != null) - message.singular = String(object.singular); - if (object.style) { - if (!Array.isArray(object.style)) - throw TypeError(".google.api.ResourceDescriptor.style: array expected"); - message.style = []; - for (var i = 0; i < object.style.length; ++i) - switch (object.style[i]) { - default: - if (typeof object.style[i] === "number") { - message.style[i] = object.style[i]; - break; - } - case "STYLE_UNSPECIFIED": - case 0: - message.style[i] = 0; - break; - case "DECLARATIVE_FRIENDLY": - case 1: - message.style[i] = 1; - break; - } + if (object.librarySettings) { + if (!Array.isArray(object.librarySettings)) + throw TypeError(".google.api.Publishing.librarySettings: array expected"); + message.librarySettings = []; + for (var i = 0; i < object.librarySettings.length; ++i) { + if (typeof object.librarySettings[i] !== "object") + throw TypeError(".google.api.Publishing.librarySettings: object expected"); + message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]); + } } return message; }; /** - * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * Creates a plain object from a Publishing message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static - * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {google.api.Publishing} message Publishing * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceDescriptor.toObject = function toObject(message, options) { + Publishing.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.pattern = []; - object.style = []; + object.methodSettings = []; + object.codeownerGithubTeams = []; + object.librarySettings = []; } if (options.defaults) { - object.type = ""; - object.nameField = ""; - object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; - object.plural = ""; - object.singular = ""; + object.newIssueUri = ""; + object.documentationUri = ""; + object.apiShortName = ""; + object.githubLabel = ""; + object.docTagPrefix = ""; + object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.pattern && message.pattern.length) { - object.pattern = []; - for (var j = 0; j < message.pattern.length; ++j) - object.pattern[j] = message.pattern[j]; + if (message.methodSettings && message.methodSettings.length) { + object.methodSettings = []; + for (var j = 0; j < message.methodSettings.length; ++j) + object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options); } - if (message.nameField != null && message.hasOwnProperty("nameField")) - object.nameField = message.nameField; - if (message.history != null && message.hasOwnProperty("history")) - object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; - if (message.plural != null && message.hasOwnProperty("plural")) - object.plural = message.plural; - if (message.singular != null && message.hasOwnProperty("singular")) - object.singular = message.singular; - if (message.style && message.style.length) { - object.style = []; - for (var j = 0; j < message.style.length; ++j) - object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) + object.newIssueUri = message.newIssueUri; + if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) + object.documentationUri = message.documentationUri; + if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) + object.apiShortName = message.apiShortName; + if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) + object.githubLabel = message.githubLabel; + if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) { + object.codeownerGithubTeams = []; + for (var j = 0; j < message.codeownerGithubTeams.length; ++j) + object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j]; + } + if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) + object.docTagPrefix = message.docTagPrefix; + if (message.organization != null && message.hasOwnProperty("organization")) + object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization; + if (message.librarySettings && message.librarySettings.length) { + object.librarySettings = []; + for (var j = 0; j < message.librarySettings.length; ++j) + object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options); } return object; }; /** - * Converts this ResourceDescriptor to JSON. + * Converts this Publishing to JSON. * @function toJSON - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @instance * @returns {Object.} JSON object */ - ResourceDescriptor.prototype.toJSON = function toJSON() { + Publishing.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResourceDescriptor + * Gets the default type url for Publishing * @function getTypeUrl - * @memberof google.api.ResourceDescriptor + * @memberof google.api.Publishing * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.ResourceDescriptor"; + return typeUrlPrefix + "/google.api.Publishing"; }; - /** - * History enum. - * @name google.api.ResourceDescriptor.History - * @enum {number} - * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value - * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value - * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value - */ - ResourceDescriptor.History = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; - values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; - return values; - })(); - - /** - * Style enum. - * @name google.api.ResourceDescriptor.Style - * @enum {number} - * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value - * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value - */ - ResourceDescriptor.Style = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; - return values; - })(); - - return ResourceDescriptor; + return Publishing; })(); - api.ResourceReference = (function() { + api.JavaSettings = (function() { /** - * Properties of a ResourceReference. + * Properties of a JavaSettings. * @memberof google.api - * @interface IResourceReference - * @property {string|null} [type] ResourceReference type - * @property {string|null} [childType] ResourceReference childType + * @interface IJavaSettings + * @property {string|null} [libraryPackage] JavaSettings libraryPackage + * @property {Object.|null} [serviceClassNames] JavaSettings serviceClassNames + * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common */ /** - * Constructs a new ResourceReference. + * Constructs a new JavaSettings. * @memberof google.api - * @classdesc Represents a ResourceReference. - * @implements IResourceReference + * @classdesc Represents a JavaSettings. + * @implements IJavaSettings * @constructor - * @param {google.api.IResourceReference=} [properties] Properties to set + * @param {google.api.IJavaSettings=} [properties] Properties to set */ - function ResourceReference(properties) { + function JavaSettings(properties) { + this.serviceClassNames = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25842,89 +42543,123 @@ } /** - * ResourceReference type. - * @member {string} type - * @memberof google.api.ResourceReference + * JavaSettings libraryPackage. + * @member {string} libraryPackage + * @memberof google.api.JavaSettings * @instance */ - ResourceReference.prototype.type = ""; + JavaSettings.prototype.libraryPackage = ""; /** - * ResourceReference childType. - * @member {string} childType - * @memberof google.api.ResourceReference + * JavaSettings serviceClassNames. + * @member {Object.} serviceClassNames + * @memberof google.api.JavaSettings * @instance */ - ResourceReference.prototype.childType = ""; + JavaSettings.prototype.serviceClassNames = $util.emptyObject; /** - * Creates a new ResourceReference instance using the specified properties. + * JavaSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.JavaSettings + * @instance + */ + JavaSettings.prototype.common = null; + + /** + * Creates a new JavaSettings instance using the specified properties. * @function create - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static - * @param {google.api.IResourceReference=} [properties] Properties to set - * @returns {google.api.ResourceReference} ResourceReference instance + * @param {google.api.IJavaSettings=} [properties] Properties to set + * @returns {google.api.JavaSettings} JavaSettings instance */ - ResourceReference.create = function create(properties) { - return new ResourceReference(properties); + JavaSettings.create = function create(properties) { + return new JavaSettings(properties); }; /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. * @function encode - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static - * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceReference.encode = function encode(message, writer) { + JavaSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage); + if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames")) + for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static - * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + JavaSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceReference message from the specified reader or buffer. + * Decodes a JavaSettings message from the specified reader or buffer. * @function decode - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.ResourceReference} ResourceReference + * @returns {google.api.JavaSettings} JavaSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceReference.decode = function decode(reader, length) { + JavaSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.string(); + message.libraryPackage = reader.string(); break; } case 2: { - message.childType = reader.string(); + if (message.serviceClassNames === $util.emptyObject) + message.serviceClassNames = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.serviceClassNames[key] = value; + break; + } + case 3: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } default: @@ -25936,144 +42671,159 @@ }; /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * Decodes a JavaSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ResourceReference} ResourceReference + * @returns {google.api.JavaSettings} JavaSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceReference.decodeDelimited = function decodeDelimited(reader) { + JavaSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceReference message. + * Verifies a JavaSettings message. * @function verify - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceReference.verify = function verify(message) { + JavaSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.childType != null && message.hasOwnProperty("childType")) - if (!$util.isString(message.childType)) - return "childType: string expected"; + if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) + if (!$util.isString(message.libraryPackage)) + return "libraryPackage: string expected"; + if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) { + if (!$util.isObject(message.serviceClassNames)) + return "serviceClassNames: object expected"; + var key = Object.keys(message.serviceClassNames); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.serviceClassNames[key[i]])) + return "serviceClassNames: string{k:string} expected"; + } + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } return null; }; /** - * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static * @param {Object.} object Plain object - * @returns {google.api.ResourceReference} ResourceReference + * @returns {google.api.JavaSettings} JavaSettings */ - ResourceReference.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ResourceReference) + JavaSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.JavaSettings) return object; - var message = new $root.google.api.ResourceReference(); - if (object.type != null) - message.type = String(object.type); - if (object.childType != null) - message.childType = String(object.childType); + var message = new $root.google.api.JavaSettings(); + if (object.libraryPackage != null) + message.libraryPackage = String(object.libraryPackage); + if (object.serviceClassNames) { + if (typeof object.serviceClassNames !== "object") + throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected"); + message.serviceClassNames = {}; + for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i) + message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]); + } + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.JavaSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } return message; }; /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * Creates a plain object from a JavaSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static - * @param {google.api.ResourceReference} message ResourceReference + * @param {google.api.JavaSettings} message JavaSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceReference.toObject = function toObject(message, options) { + JavaSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.serviceClassNames = {}; if (options.defaults) { - object.type = ""; - object.childType = ""; + object.libraryPackage = ""; + object.common = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.childType != null && message.hasOwnProperty("childType")) - object.childType = message.childType; + if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) + object.libraryPackage = message.libraryPackage; + var keys2; + if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) { + object.serviceClassNames = {}; + for (var j = 0; j < keys2.length; ++j) + object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]]; + } + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); return object; }; /** - * Converts this ResourceReference to JSON. + * Converts this JavaSettings to JSON. * @function toJSON - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @instance * @returns {Object.} JSON object */ - ResourceReference.prototype.toJSON = function toJSON() { + JavaSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResourceReference + * Gets the default type url for JavaSettings * @function getTypeUrl - * @memberof google.api.ResourceReference + * @memberof google.api.JavaSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.ResourceReference"; + return typeUrlPrefix + "/google.api.JavaSettings"; }; - return ResourceReference; + return JavaSettings; })(); - return api; - })(); - - google.protobuf = (function() { - - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; - - protobuf.FileDescriptorSet = (function() { + api.CppSettings = (function() { /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file + * Properties of a CppSettings. + * @memberof google.api + * @interface ICppSettings + * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common */ /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet + * Constructs a new CppSettings. + * @memberof google.api + * @classdesc Represents a CppSettings. + * @implements ICppSettings * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @param {google.api.ICppSettings=} [properties] Properties to set */ - function FileDescriptorSet(properties) { - this.file = []; + function CppSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26081,78 +42831,75 @@ } /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet + * CppSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.CppSettings * @instance */ - FileDescriptorSet.prototype.file = $util.emptyArray; + CppSettings.prototype.common = null; /** - * Creates a new FileDescriptorSet instance using the specified properties. + * Creates a new CppSettings instance using the specified properties. * @function create - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.api.CppSettings * @static - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + * @param {google.api.ICppSettings=} [properties] Properties to set + * @returns {google.api.CppSettings} CppSettings instance */ - FileDescriptorSet.create = function create(properties) { - return new FileDescriptorSet(properties); + CppSettings.create = function create(properties) { + return new CppSettings(properties); }; /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.api.CppSettings * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {google.api.ICppSettings} message CppSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorSet.encode = function encode(message, writer) { + CppSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.file != null && message.file.length) - for (var i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.api.CppSettings * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {google.api.ICppSettings} message CppSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + CppSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. + * Decodes a CppSettings message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.api.CppSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @returns {google.api.CppSettings} CppSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorSet.decode = function decode(reader, length) { + CppSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } default: @@ -26164,433 +42911,203 @@ }; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * Decodes a CppSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.api.CppSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @returns {google.api.CppSettings} CppSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + CppSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileDescriptorSet message. + * Verifies a CppSettings message. * @function verify - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.api.CppSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileDescriptorSet.verify = function verify(message) { + CppSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (var i = 0; i < message.file.length; ++i) { - var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); - if (error) - return "file." + error; - } + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; } return null; }; /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * Creates a CppSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.api.CppSettings * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @returns {google.api.CppSettings} CppSettings */ - FileDescriptorSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorSet) + CppSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CppSettings) return object; - var message = new $root.google.protobuf.FileDescriptorSet(); - if (object.file) { - if (!Array.isArray(object.file)) - throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); - message.file = []; - for (var i = 0; i < object.file.length; ++i) { - if (typeof object.file[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); - message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorSet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.file = []; - if (message.file && message.file.length) { - object.file = []; - for (var j = 0; j < message.file.length; ++j) - object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); - } - return object; - }; - - /** - * Converts this FileDescriptorSet to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorSet - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FileDescriptorSet - * @function getTypeUrl - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; - }; - - return FileDescriptorSet; - })(); - - protobuf.FileDescriptorProto = (function() { - - /** - * Properties of a FileDescriptorProto. - * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency - * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency - * @property {Array.|null} [messageType] FileDescriptorProto messageType - * @property {Array.|null} [enumType] FileDescriptorProto enumType - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo - * @property {string|null} [syntax] FileDescriptorProto syntax - * @property {string|null} [edition] FileDescriptorProto edition - */ - - /** - * Constructs a new FileDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto - * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.publicDependency = []; - this.weakDependency = []; - this.messageType = []; - this.enumType = []; - this.service = []; - this.extension = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; - - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; - - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; - - /** - * FileDescriptorProto publicDependency. - * @member {Array.} publicDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.publicDependency = $util.emptyArray; - - /** - * FileDescriptorProto weakDependency. - * @member {Array.} weakDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - - /** - * FileDescriptorProto messageType. - * @member {Array.} messageType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.messageType = $util.emptyArray; - - /** - * FileDescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.enumType = $util.emptyArray; + var message = new $root.google.api.CppSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.CppSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance + * Creates a plain object from a CppSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CppSettings + * @static + * @param {google.api.CppSettings} message CppSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FileDescriptorProto.prototype.service = $util.emptyArray; + CppSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto + * Converts this CppSettings to JSON. + * @function toJSON + * @memberof google.api.CppSettings * @instance + * @returns {Object.} JSON object */ - FileDescriptorProto.prototype.extension = $util.emptyArray; + CppSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance + * Gets the default type url for CppSettings + * @function getTypeUrl + * @memberof google.api.CppSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - FileDescriptorProto.prototype.options = null; + CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CppSettings"; + }; + + return CppSettings; + })(); + + api.PhpSettings = (function() { /** - * FileDescriptorProto sourceCodeInfo. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo - * @memberof google.protobuf.FileDescriptorProto - * @instance + * Properties of a PhpSettings. + * @memberof google.api + * @interface IPhpSettings + * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common */ - FileDescriptorProto.prototype.sourceCodeInfo = null; /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto - * @instance + * Constructs a new PhpSettings. + * @memberof google.api + * @classdesc Represents a PhpSettings. + * @implements IPhpSettings + * @constructor + * @param {google.api.IPhpSettings=} [properties] Properties to set */ - FileDescriptorProto.prototype.syntax = ""; + function PhpSettings(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]]; + } /** - * FileDescriptorProto edition. - * @member {string} edition - * @memberof google.protobuf.FileDescriptorProto + * PhpSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.PhpSettings * @instance */ - FileDescriptorProto.prototype.edition = ""; + PhpSettings.prototype.common = null; /** - * Creates a new FileDescriptorProto instance using the specified properties. + * Creates a new PhpSettings instance using the specified properties. * @function create - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + * @param {google.api.IPhpSettings=} [properties] Properties to set + * @returns {google.api.PhpSettings} PhpSettings instance */ - FileDescriptorProto.create = function create(properties) { - return new FileDescriptorProto(properties); + PhpSettings.create = function create(properties) { + return new PhpSettings(properties); }; /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorProto.encode = function encode(message, writer) { + PhpSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (var i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.messageType != null && message.messageType.length) - for (var i = 0; i < message.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (var i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.publicDependency != null && message.publicDependency.length) - for (var i = 0; i < message.publicDependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); - if (message.weakDependency != null && message.weakDependency.length) - for (var i = 0; i < message.weakDependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + PhpSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. + * Decodes a PhpSettings message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {google.api.PhpSettings} PhpSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorProto.decode = function decode(reader, length) { + PhpSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message["package"] = reader.string(); - break; - } - case 3: { - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - } - case 10: { - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - } - case 11: { - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - } - case 4: { - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 8: { - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - } - case 9: { - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - } - case 12: { - message.syntax = reader.string(); - break; - } - case 13: { - message.edition = reader.string(); + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } default: @@ -26602,352 +43119,127 @@ }; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a PhpSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {google.api.PhpSettings} PhpSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + PhpSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileDescriptorProto message. + * Verifies a PhpSettings message. * @function verify - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileDescriptorProto.verify = function verify(message) { + PhpSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (var i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { - if (!Array.isArray(message.publicDependency)) - return "publicDependency: array expected"; - for (var i = 0; i < message.publicDependency.length; ++i) - if (!$util.isInteger(message.publicDependency[i])) - return "publicDependency: integer[] expected"; - } - if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { - if (!Array.isArray(message.weakDependency)) - return "weakDependency: array expected"; - for (var i = 0; i < message.weakDependency.length; ++i) - if (!$util.isInteger(message.weakDependency[i])) - return "weakDependency: integer[] expected"; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) { - if (!Array.isArray(message.messageType)) - return "messageType: array expected"; - for (var i = 0; i < message.messageType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); - if (error) - return "messageType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); - if (error) - return "service." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); if (error) - return "sourceCodeInfo." + error; + return "common." + error; } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; - if (message.edition != null && message.hasOwnProperty("edition")) - if (!$util.isString(message.edition)) - return "edition: string expected"; return null; }; /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {google.api.PhpSettings} PhpSettings */ - FileDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorProto) + PhpSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.PhpSettings) return object; - var message = new $root.google.protobuf.FileDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object["package"] != null) - message["package"] = String(object["package"]); - if (object.dependency) { - if (!Array.isArray(object.dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); - message.dependency = []; - for (var i = 0; i < object.dependency.length; ++i) - message.dependency[i] = String(object.dependency[i]); - } - if (object.publicDependency) { - if (!Array.isArray(object.publicDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); - message.publicDependency = []; - for (var i = 0; i < object.publicDependency.length; ++i) - message.publicDependency[i] = object.publicDependency[i] | 0; - } - if (object.weakDependency) { - if (!Array.isArray(object.weakDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); - message.weakDependency = []; - for (var i = 0; i < object.weakDependency.length; ++i) - message.weakDependency[i] = object.weakDependency[i] | 0; - } - if (object.messageType) { - if (!Array.isArray(object.messageType)) - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); - message.messageType = []; - for (var i = 0; i < object.messageType.length; ++i) { - if (typeof object.messageType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); - message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.service) { - if (!Array.isArray(object.service)) - throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); - message.service = []; - for (var i = 0; i < object.service.length; ++i) { - if (typeof object.service[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); - message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FileOptions.fromObject(object.options); - } - if (object.sourceCodeInfo != null) { - if (typeof object.sourceCodeInfo !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + var message = new $root.google.api.PhpSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.PhpSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); } - if (object.syntax != null) - message.syntax = String(object.syntax); - if (object.edition != null) - message.edition = String(object.edition); return message; }; /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a PhpSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static - * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {google.api.PhpSettings} message PhpSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileDescriptorProto.toObject = function toObject(message, options) { + PhpSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.dependency = []; - object.messageType = []; - object.enumType = []; - object.service = []; - object.extension = []; - object.publicDependency = []; - object.weakDependency = []; - } - if (options.defaults) { - object.name = ""; - object["package"] = ""; - object.options = null; - object.sourceCodeInfo = null; - object.syntax = ""; - object.edition = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message["package"] != null && message.hasOwnProperty("package")) - object["package"] = message["package"]; - if (message.dependency && message.dependency.length) { - object.dependency = []; - for (var j = 0; j < message.dependency.length; ++j) - object.dependency[j] = message.dependency[j]; - } - if (message.messageType && message.messageType.length) { - object.messageType = []; - for (var j = 0; j < message.messageType.length; ++j) - object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.service && message.service.length) { - object.service = []; - for (var j = 0; j < message.service.length; ++j) - object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) - object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); - if (message.publicDependency && message.publicDependency.length) { - object.publicDependency = []; - for (var j = 0; j < message.publicDependency.length; ++j) - object.publicDependency[j] = message.publicDependency[j]; - } - if (message.weakDependency && message.weakDependency.length) { - object.weakDependency = []; - for (var j = 0; j < message.weakDependency.length; ++j) - object.weakDependency[j] = message.weakDependency[j]; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - object.syntax = message.syntax; - if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = message.edition; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); return object; }; /** - * Converts this FileDescriptorProto to JSON. + * Converts this PhpSettings to JSON. * @function toJSON - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @instance * @returns {Object.} JSON object */ - FileDescriptorProto.prototype.toJSON = function toJSON() { + PhpSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FileDescriptorProto + * Gets the default type url for PhpSettings * @function getTypeUrl - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.api.PhpSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + return typeUrlPrefix + "/google.api.PhpSettings"; }; - return FileDescriptorProto; + return PhpSettings; })(); - protobuf.DescriptorProto = (function() { + api.PythonSettings = (function() { /** - * Properties of a DescriptorProto. - * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nestedType] DescriptorProto nestedType - * @property {Array.|null} [enumType] DescriptorProto enumType - * @property {Array.|null} [extensionRange] DescriptorProto extensionRange - * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reservedRange] DescriptorProto reservedRange - * @property {Array.|null} [reservedName] DescriptorProto reservedName + * Properties of a PythonSettings. + * @memberof google.api + * @interface IPythonSettings + * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common */ /** - * Constructs a new DescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto + * Constructs a new PythonSettings. + * @memberof google.api + * @classdesc Represents a PythonSettings. + * @implements IPythonSettings * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @param {google.api.IPythonSettings=} [properties] Properties to set */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nestedType = []; - this.enumType = []; - this.extensionRange = []; - this.oneofDecl = []; - this.reservedRange = []; - this.reservedName = []; + function PythonSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26955,225 +43247,75 @@ } /** - * DescriptorProto name. - * @member {string} name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.name = ""; - - /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.field = $util.emptyArray; - - /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension = $util.emptyArray; - - /** - * DescriptorProto nestedType. - * @member {Array.} nestedType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.nestedType = $util.emptyArray; - - /** - * DescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.enumType = $util.emptyArray; - - /** - * DescriptorProto extensionRange. - * @member {Array.} extensionRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extensionRange = $util.emptyArray; - - /** - * DescriptorProto oneofDecl. - * @member {Array.} oneofDecl - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.oneofDecl = $util.emptyArray; - - /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.options = null; - - /** - * DescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedRange = $util.emptyArray; - - /** - * DescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.DescriptorProto + * PythonSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.PythonSettings * @instance */ - DescriptorProto.prototype.reservedName = $util.emptyArray; + PythonSettings.prototype.common = null; /** - * Creates a new DescriptorProto instance using the specified properties. + * Creates a new PythonSettings instance using the specified properties. * @function create - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + * @param {google.api.IPythonSettings=} [properties] Properties to set + * @returns {google.api.PythonSettings} PythonSettings instance */ - DescriptorProto.create = function create(properties) { - return new DescriptorProto(properties); + PythonSettings.create = function create(properties) { + return new PythonSettings(properties); }; /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encode = function encode(message, writer) { + PythonSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.field != null && message.field.length) - for (var i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nestedType != null && message.nestedType.length) - for (var i = 0; i < message.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extensionRange != null && message.extensionRange.length) - for (var i = 0; i < message.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneofDecl != null && message.oneofDecl.length) - for (var i = 0; i < message.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + PythonSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DescriptorProto message from the specified reader or buffer. + * Decodes a PythonSettings message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.api.PythonSettings} PythonSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DescriptorProto.decode = function decode(reader, length) { + PythonSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - } - case 4: { - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - } - case 8: { - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 7: { - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - } - case 9: { - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - } - case 10: { - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } default: @@ -27185,816 +43327,335 @@ }; /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a PythonSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.api.PythonSettings} PythonSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + PythonSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DescriptorProto message. + * Verifies a PythonSettings message. * @function verify - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DescriptorProto.verify = function verify(message) { + PythonSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (var i = 0; i < message.field.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.nestedType != null && message.hasOwnProperty("nestedType")) { - if (!Array.isArray(message.nestedType)) - return "nestedType: array expected"; - for (var i = 0; i < message.nestedType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); - if (error) - return "nestedType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { - if (!Array.isArray(message.extensionRange)) - return "extensionRange: array expected"; - for (var i = 0; i < message.extensionRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); - if (error) - return "extensionRange." + error; - } - } - if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { - if (!Array.isArray(message.oneofDecl)) - return "oneofDecl: array expected"; - for (var i = 0; i < message.oneofDecl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); - if (error) - return "oneofDecl." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); - if (error) - return "reservedRange." + error; - } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; + return "common." + error; } return null; }; /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.api.PythonSettings} PythonSettings */ - DescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto) + PythonSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.PythonSettings) return object; - var message = new $root.google.protobuf.DescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.field) { - if (!Array.isArray(object.field)) - throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); - message.field = []; - for (var i = 0; i < object.field.length; ++i) { - if (typeof object.field[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); - message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } - if (object.nestedType) { - if (!Array.isArray(object.nestedType)) - throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); - message.nestedType = []; - for (var i = 0; i < object.nestedType.length; ++i) { - if (typeof object.nestedType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); - message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.extensionRange) { - if (!Array.isArray(object.extensionRange)) - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); - message.extensionRange = []; - for (var i = 0; i < object.extensionRange.length; ++i) { - if (typeof object.extensionRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); - message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); - } - } - if (object.oneofDecl) { - if (!Array.isArray(object.oneofDecl)) - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); - message.oneofDecl = []; - for (var i = 0; i < object.oneofDecl.length; ++i) { - if (typeof object.oneofDecl[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); - message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); - } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); - } - } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); + var message = new $root.google.api.PythonSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.PythonSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); } return message; }; /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a PythonSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static - * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {google.api.PythonSettings} message PythonSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DescriptorProto.toObject = function toObject(message, options) { + PythonSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.field = []; - object.nestedType = []; - object.enumType = []; - object.extensionRange = []; - object.extension = []; - object.oneofDecl = []; - object.reservedRange = []; - object.reservedName = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.field && message.field.length) { - object.field = []; - for (var j = 0; j < message.field.length; ++j) - object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); - } - if (message.nestedType && message.nestedType.length) { - object.nestedType = []; - for (var j = 0; j < message.nestedType.length; ++j) - object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.extensionRange && message.extensionRange.length) { - object.extensionRange = []; - for (var j = 0; j < message.extensionRange.length; ++j) - object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); - if (message.oneofDecl && message.oneofDecl.length) { - object.oneofDecl = []; - for (var j = 0; j < message.oneofDecl.length; ++j) - object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); - } - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); - } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; - } + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); return object; }; /** - * Converts this DescriptorProto to JSON. + * Converts this PythonSettings to JSON. * @function toJSON - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @instance * @returns {Object.} JSON object */ - DescriptorProto.prototype.toJSON = function toJSON() { + PythonSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DescriptorProto + * Gets the default type url for PythonSettings * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto + * @memberof google.api.PythonSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + return typeUrlPrefix + "/google.api.PythonSettings"; }; - DescriptorProto.ExtensionRange = (function() { - - /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end - * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options - */ + return PythonSettings; + })(); - /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange - * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - */ - function ExtensionRange(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]]; - } + api.NodeSettings = (function() { - /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.start = 0; + /** + * Properties of a NodeSettings. + * @memberof google.api + * @interface INodeSettings + * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common + */ - /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.end = 0; + /** + * Constructs a new NodeSettings. + * @memberof google.api + * @classdesc Represents a NodeSettings. + * @implements INodeSettings + * @constructor + * @param {google.api.INodeSettings=} [properties] Properties to set + */ + function NodeSettings(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]]; + } - /** - * ExtensionRange options. - * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.options = null; + /** + * NodeSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.NodeSettings + * @instance + */ + NodeSettings.prototype.common = null; - /** - * Creates a new ExtensionRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance - */ - ExtensionRange.create = function create(properties) { - return new ExtensionRange(properties); - }; + /** + * Creates a new NodeSettings instance using the specified properties. + * @function create + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings=} [properties] Properties to set + * @returns {google.api.NodeSettings} NodeSettings instance + */ + NodeSettings.create = function create(properties) { + return new NodeSettings(properties); + }; - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * @function encode + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - case 3: { - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a NodeSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.NodeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.NodeSettings} NodeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExtensionRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - */ - ExtensionRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); - message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtensionRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - object.options = null; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); - return object; - }; - - /** - * Converts this ExtensionRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - * @returns {Object.} JSON object - */ - ExtensionRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ExtensionRange - * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; - }; - - return ExtensionRange; - })(); - - DescriptorProto.ReservedRange = (function() { - - /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end - */ - - /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange - * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - */ - function ReservedRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; } + return message; + }; - /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.start = 0; - - /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.end = 0; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance - */ - ReservedRange.create = function create(properties) { - return new ReservedRange(properties); - }; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReservedRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; + /** + * Decodes a NodeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.NodeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.NodeSettings} NodeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - */ - ReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; + /** + * Verifies a NodeSettings message. + * @function verify + * @memberof google.api.NodeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; + /** + * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.NodeSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.NodeSettings} NodeSettings + */ + NodeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.NodeSettings) return object; - }; + var message = new $root.google.api.NodeSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.NodeSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; - /** - * Converts this ReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - * @returns {Object.} JSON object - */ - ReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a NodeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.NodeSettings + * @static + * @param {google.api.NodeSettings} message NodeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; - /** - * Gets the default type url for ReservedRange - * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; - }; + /** + * Converts this NodeSettings to JSON. + * @function toJSON + * @memberof google.api.NodeSettings + * @instance + * @returns {Object.} JSON object + */ + NodeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ReservedRange; - })(); + /** + * Gets the default type url for NodeSettings + * @function getTypeUrl + * @memberof google.api.NodeSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.NodeSettings"; + }; - return DescriptorProto; + return NodeSettings; })(); - protobuf.ExtensionRangeOptions = (function() { + api.DotnetSettings = (function() { /** - * Properties of an ExtensionRangeOptions. - * @memberof google.protobuf - * @interface IExtensionRangeOptions - * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + * Properties of a DotnetSettings. + * @memberof google.api + * @interface IDotnetSettings + * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common */ /** - * Constructs a new ExtensionRangeOptions. - * @memberof google.protobuf - * @classdesc Represents an ExtensionRangeOptions. - * @implements IExtensionRangeOptions + * Constructs a new DotnetSettings. + * @memberof google.api + * @classdesc Represents a DotnetSettings. + * @implements IDotnetSettings * @constructor - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @param {google.api.IDotnetSettings=} [properties] Properties to set */ - function ExtensionRangeOptions(properties) { - this.uninterpretedOption = []; + function DotnetSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28002,78 +43663,75 @@ } /** - * ExtensionRangeOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ExtensionRangeOptions + * DotnetSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.DotnetSettings * @instance */ - ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + DotnetSettings.prototype.common = null; /** - * Creates a new ExtensionRangeOptions instance using the specified properties. + * Creates a new DotnetSettings instance using the specified properties. * @function create - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + * @param {google.api.IDotnetSettings=} [properties] Properties to set + * @returns {google.api.DotnetSettings} DotnetSettings instance */ - ExtensionRangeOptions.create = function create(properties) { - return new ExtensionRangeOptions(properties); + DotnetSettings.create = function create(properties) { + return new DotnetSettings(properties); }; /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. * @function encode - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRangeOptions.encode = function encode(message, writer) { + DotnetSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * Decodes a DotnetSettings message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.api.DotnetSettings} DotnetSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRangeOptions.decode = function decode(reader, length) { + DotnetSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } default: @@ -28085,149 +43743,127 @@ }; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * Decodes a DotnetSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.api.DotnetSettings} DotnetSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + DotnetSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExtensionRangeOptions message. + * Verifies a DotnetSettings message. * @function verify - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExtensionRangeOptions.verify = function verify(message) { + DotnetSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; } return null; }; /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.api.DotnetSettings} DotnetSettings */ - ExtensionRangeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + DotnetSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.DotnetSettings) return object; - var message = new $root.google.protobuf.ExtensionRangeOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } + var message = new $root.google.api.DotnetSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.DotnetSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); } return message; }; /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static - * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {google.api.DotnetSettings} message DotnetSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExtensionRangeOptions.toObject = function toObject(message, options) { + DotnetSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); return object; }; /** - * Converts this ExtensionRangeOptions to JSON. + * Converts this DotnetSettings to JSON. * @function toJSON - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @instance * @returns {Object.} JSON object */ - ExtensionRangeOptions.prototype.toJSON = function toJSON() { + DotnetSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExtensionRangeOptions + * Gets the default type url for DotnetSettings * @function getTypeUrl - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.api.DotnetSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + return typeUrlPrefix + "/google.api.DotnetSettings"; }; - return ExtensionRangeOptions; + return DotnetSettings; })(); - protobuf.FieldDescriptorProto = (function() { + api.RubySettings = (function() { /** - * Properties of a FieldDescriptorProto. - * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [typeName] FieldDescriptorProto typeName - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue - * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex - * @property {string|null} [jsonName] FieldDescriptorProto jsonName - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + * Properties of a RubySettings. + * @memberof google.api + * @interface IRubySettings + * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common */ /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto + * Constructs a new RubySettings. + * @memberof google.api + * @classdesc Represents a RubySettings. + * @implements IRubySettings * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @param {google.api.IRubySettings=} [properties] Properties to set */ - function FieldDescriptorProto(properties) { + function RubySettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28235,215 +43871,283 @@ } /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto + * RubySettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.RubySettings * @instance */ - FieldDescriptorProto.prototype.name = ""; + RubySettings.prototype.common = null; /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Creates a new RubySettings instance using the specified properties. + * @function create + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings=} [properties] Properties to set + * @returns {google.api.RubySettings} RubySettings instance */ - FieldDescriptorProto.prototype.number = 0; + RubySettings.create = function create(properties) { + return new RubySettings(properties); + }; /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * @function encode + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings} message RubySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.prototype.label = 1; + RubySettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings} message RubySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.prototype.type = 1; + RubySettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * FieldDescriptorProto typeName. - * @member {string} typeName - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Decodes a RubySettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.RubySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.RubySettings} RubySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldDescriptorProto.prototype.typeName = ""; + RubySettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RubySettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.RubySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.RubySettings} RubySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RubySettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RubySettings message. + * @function verify + * @memberof google.api.RubySettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RubySettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a RubySettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.RubySettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.RubySettings} RubySettings + */ + RubySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.RubySettings) + return object; + var message = new $root.google.api.RubySettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.RubySettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a RubySettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.RubySettings + * @static + * @param {google.api.RubySettings} message RubySettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RubySettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto + * Converts this RubySettings to JSON. + * @function toJSON + * @memberof google.api.RubySettings * @instance + * @returns {Object.} JSON object */ - FieldDescriptorProto.prototype.extendee = ""; + RubySettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * FieldDescriptorProto defaultValue. - * @member {string} defaultValue - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Gets the default type url for RubySettings + * @function getTypeUrl + * @memberof google.api.RubySettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - FieldDescriptorProto.prototype.defaultValue = ""; + RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.RubySettings"; + }; - /** - * FieldDescriptorProto oneofIndex. - * @member {number} oneofIndex - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneofIndex = 0; + return RubySettings; + })(); + + api.GoSettings = (function() { /** - * FieldDescriptorProto jsonName. - * @member {string} jsonName - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Properties of a GoSettings. + * @memberof google.api + * @interface IGoSettings + * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common */ - FieldDescriptorProto.prototype.jsonName = ""; /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Constructs a new GoSettings. + * @memberof google.api + * @classdesc Represents a GoSettings. + * @implements IGoSettings + * @constructor + * @param {google.api.IGoSettings=} [properties] Properties to set */ - FieldDescriptorProto.prototype.options = null; + function GoSettings(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]]; + } /** - * FieldDescriptorProto proto3Optional. - * @member {boolean} proto3Optional - * @memberof google.protobuf.FieldDescriptorProto + * GoSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.GoSettings * @instance */ - FieldDescriptorProto.prototype.proto3Optional = false; + GoSettings.prototype.common = null; /** - * Creates a new FieldDescriptorProto instance using the specified properties. + * Creates a new GoSettings instance using the specified properties. * @function create - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.api.GoSettings * @static - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + * @param {google.api.IGoSettings=} [properties] Properties to set + * @returns {google.api.GoSettings} GoSettings instance */ - FieldDescriptorProto.create = function create(properties) { - return new FieldDescriptorProto(properties); + GoSettings.create = function create(properties) { + return new GoSettings(properties); }; /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.api.GoSettings * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {google.api.IGoSettings} message GoSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encode = function encode(message, writer) { + GoSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); - if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.api.GoSettings * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {google.api.IGoSettings} message GoSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + GoSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * Decodes a GoSettings message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.api.GoSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {google.api.GoSettings} GoSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldDescriptorProto.decode = function decode(reader, length) { + GoSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.number = reader.int32(); - break; - } - case 4: { - message.label = reader.int32(); - break; - } - case 5: { - message.type = reader.int32(); - break; - } - case 6: { - message.typeName = reader.string(); - break; - } - case 2: { - message.extendee = reader.string(); - break; - } - case 7: { - message.defaultValue = reader.string(); - break; - } - case 9: { - message.oneofIndex = reader.int32(); - break; - } - case 10: { - message.jsonName = reader.string(); - break; - } - case 8: { - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - } - case 17: { - message.proto3Optional = reader.bool(); + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } default: @@ -28455,394 +44159,128 @@ }; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a GoSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.api.GoSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {google.api.GoSettings} GoSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + GoSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldDescriptorProto message. + * Verifies a GoSettings message. * @function verify - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.api.GoSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldDescriptorProto.verify = function verify(message) { + GoSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.typeName != null && message.hasOwnProperty("typeName")) - if (!$util.isString(message.typeName)) - return "typeName: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - if (!$util.isInteger(message.oneofIndex)) - return "oneofIndex: integer expected"; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - if (!$util.isString(message.jsonName)) - return "jsonName: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); if (error) - return "options." + error; + return "common." + error; } - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - if (typeof message.proto3Optional !== "boolean") - return "proto3Optional: boolean expected"; return null; }; /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a GoSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.api.GoSettings * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {google.api.GoSettings} GoSettings */ - FieldDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldDescriptorProto) + GoSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.GoSettings) return object; - var message = new $root.google.protobuf.FieldDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - switch (object.label) { - default: - if (typeof object.label === "number") { - message.label = object.label; - break; - } - break; - case "LABEL_OPTIONAL": - case 1: - message.label = 1; - break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; - case "LABEL_REPEATED": - case 3: - message.label = 3; - break; - } - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_DOUBLE": - case 1: - message.type = 1; - break; - case "TYPE_FLOAT": - case 2: - message.type = 2; - break; - case "TYPE_INT64": - case 3: - message.type = 3; - break; - case "TYPE_UINT64": - case 4: - message.type = 4; - break; - case "TYPE_INT32": - case 5: - message.type = 5; - break; - case "TYPE_FIXED64": - case 6: - message.type = 6; - break; - case "TYPE_FIXED32": - case 7: - message.type = 7; - break; - case "TYPE_BOOL": - case 8: - message.type = 8; - break; - case "TYPE_STRING": - case 9: - message.type = 9; - break; - case "TYPE_GROUP": - case 10: - message.type = 10; - break; - case "TYPE_MESSAGE": - case 11: - message.type = 11; - break; - case "TYPE_BYTES": - case 12: - message.type = 12; - break; - case "TYPE_UINT32": - case 13: - message.type = 13; - break; - case "TYPE_ENUM": - case 14: - message.type = 14; - break; - case "TYPE_SFIXED32": - case 15: - message.type = 15; - break; - case "TYPE_SFIXED64": - case 16: - message.type = 16; - break; - case "TYPE_SINT32": - case 17: - message.type = 17; - break; - case "TYPE_SINT64": - case 18: - message.type = 18; - break; - } - if (object.typeName != null) - message.typeName = String(object.typeName); - if (object.extendee != null) - message.extendee = String(object.extendee); - if (object.defaultValue != null) - message.defaultValue = String(object.defaultValue); - if (object.oneofIndex != null) - message.oneofIndex = object.oneofIndex | 0; - if (object.jsonName != null) - message.jsonName = String(object.jsonName); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + var message = new $root.google.api.GoSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.GoSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); } - if (object.proto3Optional != null) - message.proto3Optional = Boolean(object.proto3Optional); return message; }; /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a GoSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.api.GoSettings * @static - * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {google.api.GoSettings} message GoSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldDescriptorProto.toObject = function toObject(message, options) { + GoSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.extendee = ""; - object.number = 0; - object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; - object.type = options.enums === String ? "TYPE_DOUBLE" : 1; - object.typeName = ""; - object.defaultValue = ""; - object.options = null; - object.oneofIndex = 0; - object.jsonName = ""; - object.proto3Optional = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.extendee != null && message.hasOwnProperty("extendee")) - object.extendee = message.extendee; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; - if (message.typeName != null && message.hasOwnProperty("typeName")) - object.typeName = message.typeName; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - object.defaultValue = message.defaultValue; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - object.oneofIndex = message.oneofIndex; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - object.jsonName = message.jsonName; - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - object.proto3Optional = message.proto3Optional; - return object; - }; - - /** - * Converts this FieldDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FieldDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FieldDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FieldDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; - }; - - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {number} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label - * @enum {number} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + * Converts this GoSettings to JSON. + * @function toJSON + * @memberof google.api.GoSettings + * @instance + * @returns {Object.} JSON object */ - FieldDescriptorProto.Label = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - values[valuesById[3] = "LABEL_REPEATED"] = 3; - return values; - })(); + GoSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return FieldDescriptorProto; + /** + * Gets the default type url for GoSettings + * @function getTypeUrl + * @memberof google.api.GoSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.GoSettings"; + }; + + return GoSettings; })(); - protobuf.OneofDescriptorProto = (function() { + api.MethodSettings = (function() { /** - * Properties of an OneofDescriptorProto. - * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + * Properties of a MethodSettings. + * @memberof google.api + * @interface IMethodSettings + * @property {string|null} [selector] MethodSettings selector + * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning */ /** - * Constructs a new OneofDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto + * Constructs a new MethodSettings. + * @memberof google.api + * @classdesc Represents a MethodSettings. + * @implements IMethodSettings * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @param {google.api.IMethodSettings=} [properties] Properties to set */ - function OneofDescriptorProto(properties) { + function MethodSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28850,89 +44288,89 @@ } /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto + * MethodSettings selector. + * @member {string} selector + * @memberof google.api.MethodSettings * @instance */ - OneofDescriptorProto.prototype.name = ""; + MethodSettings.prototype.selector = ""; /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto + * MethodSettings longRunning. + * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning + * @memberof google.api.MethodSettings * @instance */ - OneofDescriptorProto.prototype.options = null; + MethodSettings.prototype.longRunning = null; /** - * Creates a new OneofDescriptorProto instance using the specified properties. + * Creates a new MethodSettings instance using the specified properties. * @function create - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.api.MethodSettings * @static - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + * @param {google.api.IMethodSettings=} [properties] Properties to set + * @returns {google.api.MethodSettings} MethodSettings instance */ - OneofDescriptorProto.create = function create(properties) { - return new OneofDescriptorProto(properties); + MethodSettings.create = function create(properties) { + return new MethodSettings(properties); }; /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. * @function encode - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.api.MethodSettings * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encode = function encode(message, writer) { + MethodSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning")) + $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.api.MethodSettings * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + MethodSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * Decodes a MethodSettings message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.api.MethodSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {google.api.MethodSettings} MethodSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofDescriptorProto.decode = function decode(reader, length) { + MethodSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.selector = reader.string(); break; } case 2: { - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32()); break; } default: @@ -28943,144 +44381,521 @@ return message; }; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MethodSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.MethodSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.MethodSettings} MethodSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodSettings message. + * @function verify + * @memberof google.api.MethodSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.longRunning != null && message.hasOwnProperty("longRunning")) { + var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning); + if (error) + return "longRunning." + error; + } + return null; + }; + + /** + * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.MethodSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.MethodSettings} MethodSettings + */ + MethodSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.MethodSettings) + return object; + var message = new $root.google.api.MethodSettings(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.longRunning != null) { + if (typeof object.longRunning !== "object") + throw TypeError(".google.api.MethodSettings.longRunning: object expected"); + message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning); + } + return message; + }; + + /** + * Creates a plain object from a MethodSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.MethodSettings + * @static + * @param {google.api.MethodSettings} message MethodSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.selector = ""; + object.longRunning = null; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.longRunning != null && message.hasOwnProperty("longRunning")) + object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options); + return object; + }; + + /** + * Converts this MethodSettings to JSON. + * @function toJSON + * @memberof google.api.MethodSettings + * @instance + * @returns {Object.} JSON object + */ + MethodSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodSettings + * @function getTypeUrl + * @memberof google.api.MethodSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.MethodSettings"; + }; + + MethodSettings.LongRunning = (function() { + + /** + * Properties of a LongRunning. + * @memberof google.api.MethodSettings + * @interface ILongRunning + * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay + * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier + * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay + * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout + */ + + /** + * Constructs a new LongRunning. + * @memberof google.api.MethodSettings + * @classdesc Represents a LongRunning. + * @implements ILongRunning + * @constructor + * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set + */ + function LongRunning(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]]; + } + + /** + * LongRunning initialPollDelay. + * @member {google.protobuf.IDuration|null|undefined} initialPollDelay + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.initialPollDelay = null; + + /** + * LongRunning pollDelayMultiplier. + * @member {number} pollDelayMultiplier + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.pollDelayMultiplier = 0; + + /** + * LongRunning maxPollDelay. + * @member {google.protobuf.IDuration|null|undefined} maxPollDelay + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.maxPollDelay = null; + + /** + * LongRunning totalPollTimeout. + * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.totalPollTimeout = null; + + /** + * Creates a new LongRunning instance using the specified properties. + * @function create + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set + * @returns {google.api.MethodSettings.LongRunning} LongRunning instance + */ + LongRunning.create = function create(properties) { + return new LongRunning(properties); + }; + + /** + * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. + * @function encode + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LongRunning.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay")) + $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier); + if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay")) + $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout")) + $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LongRunning.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LongRunning message from the specified reader or buffer. + * @function decode + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.MethodSettings.LongRunning} LongRunning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LongRunning.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.pollDelayMultiplier = reader.float(); + break; + } + case 3: { + message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LongRunning message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.MethodSettings.LongRunning} LongRunning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LongRunning.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LongRunning message. + * @function verify + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LongRunning.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) { + var error = $root.google.protobuf.Duration.verify(message.initialPollDelay); + if (error) + return "initialPollDelay." + error; + } + if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) + if (typeof message.pollDelayMultiplier !== "number") + return "pollDelayMultiplier: number expected"; + if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) { + var error = $root.google.protobuf.Duration.verify(message.maxPollDelay); + if (error) + return "maxPollDelay." + error; + } + if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) { + var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout); + if (error) + return "totalPollTimeout." + error; + } + return null; + }; + + /** + * Creates a LongRunning message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {Object.} object Plain object + * @returns {google.api.MethodSettings.LongRunning} LongRunning + */ + LongRunning.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.MethodSettings.LongRunning) + return object; + var message = new $root.google.api.MethodSettings.LongRunning(); + if (object.initialPollDelay != null) { + if (typeof object.initialPollDelay !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected"); + message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay); + } + if (object.pollDelayMultiplier != null) + message.pollDelayMultiplier = Number(object.pollDelayMultiplier); + if (object.maxPollDelay != null) { + if (typeof object.maxPollDelay !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected"); + message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay); + } + if (object.totalPollTimeout != null) { + if (typeof object.totalPollTimeout !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected"); + message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout); + } + return message; + }; + + /** + * Creates a plain object from a LongRunning message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.LongRunning} message LongRunning + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LongRunning.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.initialPollDelay = null; + object.pollDelayMultiplier = 0; + object.maxPollDelay = null; + object.totalPollTimeout = null; + } + if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) + object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options); + if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) + object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier; + if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) + object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options); + if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) + object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options); + return object; + }; + + /** + * Converts this LongRunning to JSON. + * @function toJSON + * @memberof google.api.MethodSettings.LongRunning + * @instance + * @returns {Object.} JSON object + */ + LongRunning.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LongRunning + * @function getTypeUrl + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.MethodSettings.LongRunning"; + }; - /** - * Verifies an OneofDescriptorProto message. - * @function verify - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.OneofOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + return LongRunning; + })(); - /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - */ - OneofDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofDescriptorProto) - return object; - var message = new $root.google.protobuf.OneofDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); - } - return message; - }; + return MethodSettings; + })(); - /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OneofDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); - return object; - }; + /** + * ClientLibraryOrganization enum. + * @name google.api.ClientLibraryOrganization + * @enum {number} + * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value + * @property {number} CLOUD=1 CLOUD value + * @property {number} ADS=2 ADS value + * @property {number} PHOTOS=3 PHOTOS value + * @property {number} STREET_VIEW=4 STREET_VIEW value + */ + api.ClientLibraryOrganization = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD"] = 1; + values[valuesById[2] = "ADS"] = 2; + values[valuesById[3] = "PHOTOS"] = 3; + values[valuesById[4] = "STREET_VIEW"] = 4; + return values; + })(); - /** - * Converts this OneofDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.OneofDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - OneofDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ClientLibraryDestination enum. + * @name google.api.ClientLibraryDestination + * @enum {number} + * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value + * @property {number} GITHUB=10 GITHUB value + * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value + */ + api.ClientLibraryDestination = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0; + values[valuesById[10] = "GITHUB"] = 10; + values[valuesById[20] = "PACKAGE_MANAGER"] = 20; + return values; + })(); - /** - * Gets the default type url for OneofDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; - }; + /** + * LaunchStage enum. + * @name google.api.LaunchStage + * @enum {number} + * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value + * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value + * @property {number} PRELAUNCH=7 PRELAUNCH value + * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value + * @property {number} ALPHA=2 ALPHA value + * @property {number} BETA=3 BETA value + * @property {number} GA=4 GA value + * @property {number} DEPRECATED=5 DEPRECATED value + */ + api.LaunchStage = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0; + values[valuesById[6] = "UNIMPLEMENTED"] = 6; + values[valuesById[7] = "PRELAUNCH"] = 7; + values[valuesById[1] = "EARLY_ACCESS"] = 1; + values[valuesById[2] = "ALPHA"] = 2; + values[valuesById[3] = "BETA"] = 3; + values[valuesById[4] = "GA"] = 4; + values[valuesById[5] = "DEPRECATED"] = 5; + return values; + })(); - return OneofDescriptorProto; + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + return values; })(); - protobuf.EnumDescriptorProto = (function() { + api.ResourceDescriptor = (function() { /** - * Properties of an EnumDescriptorProto. - * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options - * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange - * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style */ /** - * Constructs a new EnumDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @param {google.api.IResourceDescriptor=} [properties] Properties to set */ - function EnumDescriptorProto(properties) { - this.value = []; - this.reservedRange = []; - this.reservedName = []; + function ResourceDescriptor(properties) { + this.pattern = []; + this.style = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29088,140 +44903,173 @@ } /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor * @instance */ - EnumDescriptorProto.prototype.name = ""; + ResourceDescriptor.prototype.type = ""; /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor * @instance */ - EnumDescriptorProto.prototype.value = $util.emptyArray; + ResourceDescriptor.prototype.pattern = $util.emptyArray; /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor * @instance */ - EnumDescriptorProto.prototype.options = null; + ResourceDescriptor.prototype.nameField = ""; /** - * EnumDescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.EnumDescriptorProto + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor * @instance */ - EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + ResourceDescriptor.prototype.history = 0; /** - * EnumDescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.EnumDescriptorProto + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor * @instance */ - EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + ResourceDescriptor.prototype.plural = ""; /** - * Creates a new EnumDescriptorProto instance using the specified properties. + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. * @function create - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @static - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance */ - EnumDescriptorProto.create = function create(properties) { - return new EnumDescriptorProto(properties); + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); }; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encode = function encode(message, writer) { + ResourceDescriptor.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && message.value.length) - for (var i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes a ResourceDescriptor message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.api.ResourceDescriptor} ResourceDescriptor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decode = function decode(reader, length) { + ResourceDescriptor.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.type = reader.string(); break; } case 2: { - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); break; } case 3: { - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + message.nameField = reader.string(); break; } case 4: { - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + message.history = reader.int32(); break; } case 5: { - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); break; } default: @@ -29233,437 +45081,271 @@ }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.api.ResourceDescriptor} ResourceDescriptor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumDescriptorProto message. + * Verifies a ResourceDescriptor message. * @function verify - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumDescriptorProto.verify = function verify(message) { + ResourceDescriptor.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (var i = 0; i < message.value.length; ++i) { - var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); - if (error) - return "value." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); - if (error) - return "reservedRange." + error; + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } } return null; }; - - /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - */ - EnumDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto) - return object; - var message = new $root.google.protobuf.EnumDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.value) { - if (!Array.isArray(object.value)) - throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); - message.value = []; - for (var i = 0; i < object.value.length; ++i) { - if (typeof object.value[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); - message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; } + break; + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } } return message; }; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @static - * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {google.api.ResourceDescriptor} message ResourceDescriptor * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumDescriptorProto.toObject = function toObject(message, options) { + ResourceDescriptor.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.value = []; - object.reservedRange = []; - object.reservedName = []; + object.pattern = []; + object.style = []; } if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value && message.value.length) { - object.value = []; - for (var j = 0; j < message.value.length; ++j) - object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; } return object; }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this ResourceDescriptor to JSON. * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @instance * @returns {Object.} JSON object */ - EnumDescriptorProto.prototype.toJSON = function toJSON() { + ResourceDescriptor.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EnumDescriptorProto + * Gets the default type url for ResourceDescriptor * @function getTypeUrl - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.api.ResourceDescriptor * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + return typeUrlPrefix + "/google.api.ResourceDescriptor"; }; - EnumDescriptorProto.EnumReservedRange = (function() { - - /** - * Properties of an EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @interface IEnumReservedRange - * @property {number|null} [start] EnumReservedRange start - * @property {number|null} [end] EnumReservedRange end - */ - - /** - * Constructs a new EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @classdesc Represents an EnumReservedRange. - * @implements IEnumReservedRange - * @constructor - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - */ - function EnumReservedRange(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]]; - } - - /** - * EnumReservedRange start. - * @member {number} start - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.start = 0; - - /** - * EnumReservedRange end. - * @member {number} end - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.end = 0; - - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance - */ - EnumReservedRange.create = function create(properties) { - return new EnumReservedRange(properties); - }; - - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumReservedRange message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - */ - EnumReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) - return object; - var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; - - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; - - /** - * Converts this EnumReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - * @returns {Object.} JSON object - */ - EnumReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EnumReservedRange - * @function getTypeUrl - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; - }; + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); - return EnumReservedRange; + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; })(); - return EnumDescriptorProto; + return ResourceDescriptor; })(); - protobuf.EnumValueDescriptorProto = (function() { + api.ResourceReference = (function() { /** - * Properties of an EnumValueDescriptorProto. - * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType */ /** - * Constructs a new EnumValueDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @param {google.api.IResourceReference=} [properties] Properties to set */ - function EnumValueDescriptorProto(properties) { + function ResourceReference(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29671,103 +45353,89 @@ } /** - * EnumValueDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.name = ""; - - /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference * @instance */ - EnumValueDescriptorProto.prototype.number = 0; + ResourceReference.prototype.type = ""; /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference * @instance */ - EnumValueDescriptorProto.prototype.options = null; + ResourceReference.prototype.childType = ""; /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. + * Creates a new ResourceReference instance using the specified properties. * @function create - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance */ - EnumValueDescriptorProto.create = function create(properties) { - return new EnumValueDescriptorProto(properties); + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); }; /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encode = function encode(message, writer) { + ResourceReference.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); return writer; }; /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * Decodes a ResourceReference message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.api.ResourceReference} ResourceReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueDescriptorProto.decode = function decode(reader, length) { + ResourceReference.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.type = reader.string(); break; } case 2: { - message.number = reader.int32(); - break; - } - case 3: { - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + message.childType = reader.string(); break; } default: @@ -29779,147 +45447,144 @@ }; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.api.ResourceReference} ResourceReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + ResourceReference.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumValueDescriptorProto message. + * Verifies a ResourceReference message. * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueDescriptorProto.verify = function verify(message) { + ResourceReference.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; - } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; return null; }; /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.api.ResourceReference} ResourceReference */ - EnumValueDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) return object; - var message = new $root.google.protobuf.EnumValueDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); - } + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); return message; }; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static - * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {google.api.ResourceReference} message ResourceReference * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueDescriptorProto.toObject = function toObject(message, options) { + ResourceReference.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.number = 0; - object.options = null; + object.type = ""; + object.childType = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; return object; }; /** - * Converts this EnumValueDescriptorProto to JSON. + * Converts this ResourceReference to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @instance * @returns {Object.} JSON object */ - EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + ResourceReference.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EnumValueDescriptorProto + * Gets the default type url for ResourceReference * @function getTypeUrl - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.api.ResourceReference * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + return typeUrlPrefix + "/google.api.ResourceReference"; }; - return EnumValueDescriptorProto; + return ResourceReference; })(); - protobuf.ServiceDescriptorProto = (function() { + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { /** - * Properties of a ServiceDescriptorProto. + * Properties of a FileDescriptorSet. * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file */ /** - * Constructs a new ServiceDescriptorProto. + * Constructs a new FileDescriptorSet. * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set */ - function ServiceDescriptorProto(properties) { - this.method = []; + function FileDescriptorSet(properties) { + this.file = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29927,106 +45592,78 @@ } /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.name = ""; - - /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; - - /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet * @instance */ - ServiceDescriptorProto.prototype.options = null; + FileDescriptorSet.prototype.file = $util.emptyArray; /** - * Creates a new ServiceDescriptorProto instance using the specified properties. + * Creates a new FileDescriptorSet instance using the specified properties. * @function create - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance */ - ServiceDescriptorProto.create = function create(properties) { - return new ServiceDescriptorProto(properties); + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); }; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encode = function encode(message, writer) { + FileDescriptorSet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.method != null && message.method.length) - for (var i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * Decodes a FileDescriptorSet message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decode = function decode(reader, length) { + FileDescriptorSet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 3: { - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); break; } default: @@ -30038,167 +45675,158 @@ }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceDescriptorProto message. + * Verifies a FileDescriptorSet message. * @function verify - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceDescriptorProto.verify = function verify(message) { + FileDescriptorSet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (var i = 0; i < message.method.length; ++i) { - var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); if (error) - return "method." + error; + return "file." + error; } } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); - if (error) - return "options." + error; - } return null; }; /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet */ - ServiceDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) return object; - var message = new $root.google.protobuf.ServiceDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.method) { - if (!Array.isArray(object.method)) - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); - message.method = []; - for (var i = 0; i < object.method.length; ++i) { - if (typeof object.method[i] !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); - message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); } } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); - } return message; }; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDescriptorProto.toObject = function toObject(message, options) { + FileDescriptorSet.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.method = []; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.method && message.method.length) { - object.method = []; - for (var j = 0; j < message.method.length; ++j) - object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); return object; }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this FileDescriptorSet to JSON. * @function toJSON - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @instance * @returns {Object.} JSON object */ - ServiceDescriptorProto.prototype.toJSON = function toJSON() { + FileDescriptorSet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceDescriptorProto + * Gets the default type url for FileDescriptorSet * @function getTypeUrl - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; }; - return ServiceDescriptorProto; + return FileDescriptorSet; })(); - protobuf.MethodDescriptorProto = (function() { + protobuf.FileDescriptorProto = (function() { /** - * Properties of a MethodDescriptorProto. + * Properties of a FileDescriptorProto. * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [inputType] MethodDescriptorProto inputType - * @property {string|null} [outputType] MethodDescriptorProto outputType - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming - * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {string|null} [edition] FileDescriptorProto edition */ /** - * Constructs a new MethodDescriptorProto. + * Constructs a new FileDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set */ - function MethodDescriptorProto(properties) { + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30206,120 +45834,197 @@ } /** - * MethodDescriptorProto name. + * FileDescriptorProto name. * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @instance */ - MethodDescriptorProto.prototype.name = ""; + FileDescriptorProto.prototype.name = ""; /** - * MethodDescriptorProto inputType. - * @member {string} inputType - * @memberof google.protobuf.MethodDescriptorProto + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto * @instance */ - MethodDescriptorProto.prototype.inputType = ""; + FileDescriptorProto.prototype["package"] = ""; /** - * MethodDescriptorProto outputType. - * @member {string} outputType - * @memberof google.protobuf.MethodDescriptorProto + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto * @instance */ - MethodDescriptorProto.prototype.outputType = ""; + FileDescriptorProto.prototype.dependency = $util.emptyArray; /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto * @instance */ - MethodDescriptorProto.prototype.options = null; + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; /** - * MethodDescriptorProto clientStreaming. - * @member {boolean} clientStreaming - * @memberof google.protobuf.MethodDescriptorProto + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto * @instance */ - MethodDescriptorProto.prototype.clientStreaming = false; + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; /** - * MethodDescriptorProto serverStreaming. - * @member {boolean} serverStreaming - * @memberof google.protobuf.MethodDescriptorProto + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto * @instance */ - MethodDescriptorProto.prototype.serverStreaming = false; + FileDescriptorProto.prototype.messageType = $util.emptyArray; /** - * Creates a new MethodDescriptorProto instance using the specified properties. + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * FileDescriptorProto edition. + * @member {string} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance */ - MethodDescriptorProto.create = function create(properties) { - return new MethodDescriptorProto(properties); + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); }; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encode = function encode(message, writer) { + FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); return writer; }; /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * Decodes a FileDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decode = function decode(reader, length) { + FileDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -30328,23 +46033,75 @@ break; } case 2: { - message.inputType = reader.string(); + message["package"] = reader.string(); break; } case 3: { - message.outputType = reader.string(); + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); break; } case 4: { - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); break; } case 5: { - message.clientStreaming = reader.bool(); + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); break; } case 6: { - message.serverStreaming = reader.bool(); + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 13: { + message.edition = reader.string(); break; } default: @@ -30356,567 +46113,578 @@ }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodDescriptorProto message. + * Verifies a FileDescriptorProto message. * @function verify - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodDescriptorProto.verify = function verify(message) { + FileDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.inputType != null && message.hasOwnProperty("inputType")) - if (!$util.isString(message.inputType)) - return "inputType: string expected"; - if (message.outputType != null && message.hasOwnProperty("outputType")) - if (!$util.isString(message.outputType)) - return "outputType: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MethodOptions.verify(message.options); + var error = $root.google.protobuf.FileOptions.verify(message.options); if (error) return "options." + error; } - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - if (typeof message.clientStreaming !== "boolean") - return "clientStreaming: boolean expected"; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - if (typeof message.serverStreaming !== "boolean") - return "serverStreaming: boolean expected"; + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + if (!$util.isString(message.edition)) + return "edition: string expected"; return null; }; /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto */ - MethodDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodDescriptorProto) + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) return object; - var message = new $root.google.protobuf.MethodDescriptorProto(); + var message = new $root.google.protobuf.FileDescriptorProto(); if (object.name != null) message.name = String(object.name); - if (object.inputType != null) - message.inputType = String(object.inputType); - if (object.outputType != null) - message.outputType = String(object.outputType); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); } - if (object.clientStreaming != null) - message.clientStreaming = Boolean(object.clientStreaming); - if (object.serverStreaming != null) - message.serverStreaming = Boolean(object.serverStreaming); + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + if (object.edition != null) + message.edition = String(object.edition); return message; }; /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodDescriptorProto.toObject = function toObject(message, options) { + FileDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } if (options.defaults) { object.name = ""; - object.inputType = ""; - object.outputType = ""; + object["package"] = ""; object.options = null; - object.clientStreaming = false; - object.serverStreaming = false; + object.sourceCodeInfo = null; + object.syntax = ""; + object.edition = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.inputType != null && message.hasOwnProperty("inputType")) - object.inputType = message.inputType; - if (message.outputType != null && message.hasOwnProperty("outputType")) - object.outputType = message.outputType; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - object.clientStreaming = message.clientStreaming; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - object.serverStreaming = message.serverStreaming; + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = message.edition; return object; }; /** - * Converts this MethodDescriptorProto to JSON. + * Converts this FileDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @instance * @returns {Object.} JSON object */ - MethodDescriptorProto.prototype.toJSON = function toJSON() { + FileDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MethodDescriptorProto + * Gets the default type url for FileDescriptorProto * @function getTypeUrl - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; }; - return MethodDescriptorProto; + return FileDescriptorProto; })(); - protobuf.FileOptions = (function() { - - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [javaPackage] FileOptions javaPackage - * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname - * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles - * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash - * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor - * @property {string|null} [goPackage] FileOptions goPackage - * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices - * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices - * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas - * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix - * @property {string|null} [csharpNamespace] FileOptions csharpNamespace - * @property {string|null} [swiftPrefix] FileOptions swiftPrefix - * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix - * @property {string|null} [phpNamespace] FileOptions phpNamespace - * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace - * @property {string|null} [rubyPackage] FileOptions rubyPackage - * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption - * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition - */ - - /** - * Constructs a new FileOptions. - * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions - * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - */ - function FileOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.resourceDefinition"] = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileOptions javaPackage. - * @member {string} javaPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaPackage = ""; - - /** - * FileOptions javaOuterClassname. - * @member {string} javaOuterClassname - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaOuterClassname = ""; - - /** - * FileOptions javaMultipleFiles. - * @member {boolean} javaMultipleFiles - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaMultipleFiles = false; - - /** - * FileOptions javaGenerateEqualsAndHash. - * @member {boolean} javaGenerateEqualsAndHash - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenerateEqualsAndHash = false; - - /** - * FileOptions javaStringCheckUtf8. - * @member {boolean} javaStringCheckUtf8 - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaStringCheckUtf8 = false; - - /** - * FileOptions optimizeFor. - * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.optimizeFor = 1; - - /** - * FileOptions goPackage. - * @member {string} goPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.goPackage = ""; - - /** - * FileOptions ccGenericServices. - * @member {boolean} ccGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccGenericServices = false; - - /** - * FileOptions javaGenericServices. - * @member {boolean} javaGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenericServices = false; - - /** - * FileOptions pyGenericServices. - * @member {boolean} pyGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.pyGenericServices = false; + protobuf.DescriptorProto = (function() { - /** - * FileOptions phpGenericServices. - * @member {boolean} phpGenericServices - * @memberof google.protobuf.FileOptions - * @instance + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName */ - FileOptions.prototype.phpGenericServices = false; /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set */ - FileOptions.prototype.deprecated = false; + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * FileOptions ccEnableArenas. - * @member {boolean} ccEnableArenas - * @memberof google.protobuf.FileOptions + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.ccEnableArenas = true; + DescriptorProto.prototype.name = ""; /** - * FileOptions objcClassPrefix. - * @member {string} objcClassPrefix - * @memberof google.protobuf.FileOptions + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.objcClassPrefix = ""; + DescriptorProto.prototype.field = $util.emptyArray; /** - * FileOptions csharpNamespace. - * @member {string} csharpNamespace - * @memberof google.protobuf.FileOptions + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.csharpNamespace = ""; + DescriptorProto.prototype.extension = $util.emptyArray; /** - * FileOptions swiftPrefix. - * @member {string} swiftPrefix - * @memberof google.protobuf.FileOptions + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.swiftPrefix = ""; + DescriptorProto.prototype.nestedType = $util.emptyArray; /** - * FileOptions phpClassPrefix. - * @member {string} phpClassPrefix - * @memberof google.protobuf.FileOptions + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.phpClassPrefix = ""; + DescriptorProto.prototype.enumType = $util.emptyArray; /** - * FileOptions phpNamespace. - * @member {string} phpNamespace - * @memberof google.protobuf.FileOptions + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.phpNamespace = ""; + DescriptorProto.prototype.extensionRange = $util.emptyArray; /** - * FileOptions phpMetadataNamespace. - * @member {string} phpMetadataNamespace - * @memberof google.protobuf.FileOptions + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.phpMetadataNamespace = ""; + DescriptorProto.prototype.oneofDecl = $util.emptyArray; /** - * FileOptions rubyPackage. - * @member {string} rubyPackage - * @memberof google.protobuf.FileOptions + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.rubyPackage = ""; + DescriptorProto.prototype.options = null; /** - * FileOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FileOptions + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype.uninterpretedOption = $util.emptyArray; + DescriptorProto.prototype.reservedRange = $util.emptyArray; /** - * FileOptions .google.api.resourceDefinition. - * @member {Array.} .google.api.resourceDefinition - * @memberof google.protobuf.FileOptions + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + DescriptorProto.prototype.reservedName = $util.emptyArray; /** - * Creates a new FileOptions instance using the specified properties. + * Creates a new DescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance */ - FileOptions.create = function create(properties) { - return new FileOptions(properties); + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); }; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encode = function encode(message, writer) { + DescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) - writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) - writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) - writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) - writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); - if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) - writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) - writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) - for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) - $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); return writer; }; /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileOptions message from the specified reader or buffer. + * Decodes a DescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.DescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.DescriptorProto} DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.decode = function decode(reader, length) { + DescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.javaPackage = reader.string(); - break; - } - case 8: { - message.javaOuterClassname = reader.string(); - break; - } - case 10: { - message.javaMultipleFiles = reader.bool(); - break; - } - case 20: { - message.javaGenerateEqualsAndHash = reader.bool(); - break; - } - case 27: { - message.javaStringCheckUtf8 = reader.bool(); - break; - } - case 9: { - message.optimizeFor = reader.int32(); - break; - } - case 11: { - message.goPackage = reader.string(); - break; - } - case 16: { - message.ccGenericServices = reader.bool(); - break; - } - case 17: { - message.javaGenericServices = reader.bool(); - break; - } - case 18: { - message.pyGenericServices = reader.bool(); - break; - } - case 42: { - message.phpGenericServices = reader.bool(); - break; - } - case 23: { - message.deprecated = reader.bool(); - break; - } - case 31: { - message.ccEnableArenas = reader.bool(); + message.name = reader.string(); break; } - case 36: { - message.objcClassPrefix = reader.string(); + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; } - case 37: { - message.csharpNamespace = reader.string(); + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; } - case 39: { - message.swiftPrefix = reader.string(); + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); break; } - case 40: { - message.phpClassPrefix = reader.string(); + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); break; } - case 41: { - message.phpNamespace = reader.string(); + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); break; } - case 44: { - message.phpMetadataNamespace = reader.string(); + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); break; } - case 45: { - message.rubyPackage = reader.string(); + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); break; } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); break; } - case 1053: { - if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) - message[".google.api.resourceDefinition"] = []; - message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); break; } default: @@ -30928,373 +46696,815 @@ }; /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileOptions + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FileOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; }; /** - * Verifies a FileOptions message. - * @function verify - * @memberof google.protobuf.FileOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object */ - FileOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - if (!$util.isString(message.javaPackage)) - return "javaPackage: string expected"; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - if (!$util.isString(message.javaOuterClassname)) - return "javaOuterClassname: string expected"; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - if (typeof message.javaMultipleFiles !== "boolean") - return "javaMultipleFiles: boolean expected"; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - if (typeof message.javaGenerateEqualsAndHash !== "boolean") - return "javaGenerateEqualsAndHash: boolean expected"; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - if (typeof message.javaStringCheckUtf8 !== "boolean") - return "javaStringCheckUtf8: boolean expected"; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - switch (message.optimizeFor) { - default: - return "optimizeFor: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - if (!$util.isString(message.goPackage)) - return "goPackage: string expected"; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - if (typeof message.ccGenericServices !== "boolean") - return "ccGenericServices: boolean expected"; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - if (typeof message.javaGenericServices !== "boolean") - return "javaGenericServices: boolean expected"; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - if (typeof message.pyGenericServices !== "boolean") - return "pyGenericServices: boolean expected"; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - if (typeof message.phpGenericServices !== "boolean") - return "phpGenericServices: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - if (typeof message.ccEnableArenas !== "boolean") - return "ccEnableArenas: boolean expected"; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - if (!$util.isString(message.objcClassPrefix)) - return "objcClassPrefix: string expected"; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - if (!$util.isString(message.csharpNamespace)) - return "csharpNamespace: string expected"; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - if (!$util.isString(message.swiftPrefix)) - return "swiftPrefix: string expected"; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - if (!$util.isString(message.phpClassPrefix)) - return "phpClassPrefix: string expected"; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - if (!$util.isString(message.phpNamespace)) - return "phpNamespace: string expected"; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - if (!$util.isString(message.phpMetadataNamespace)) - return "phpMetadataNamespace: string expected"; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - if (!$util.isString(message.rubyPackage)) - return "rubyPackage: string expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { - if (!Array.isArray(message[".google.api.resourceDefinition"])) - return ".google.api.resourceDefinition: array expected"; - for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { - var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); - if (error) - return ".google.api.resourceDefinition." + error; - } - } - return null; + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileOptions + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileOptions} FileOptions + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - FileOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileOptions) - return object; - var message = new $root.google.protobuf.FileOptions(); - if (object.javaPackage != null) - message.javaPackage = String(object.javaPackage); - if (object.javaOuterClassname != null) - message.javaOuterClassname = String(object.javaOuterClassname); - if (object.javaMultipleFiles != null) - message.javaMultipleFiles = Boolean(object.javaMultipleFiles); - if (object.javaGenerateEqualsAndHash != null) - message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); - if (object.javaStringCheckUtf8 != null) - message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); - switch (object.optimizeFor) { - default: - if (typeof object.optimizeFor === "number") { - message.optimizeFor = object.optimizeFor; - break; - } - break; - case "SPEED": - case 1: - message.optimizeFor = 1; - break; - case "CODE_SIZE": - case 2: - message.optimizeFor = 2; - break; - case "LITE_RUNTIME": - case 3: - message.optimizeFor = 3; - break; + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (object.goPackage != null) - message.goPackage = String(object.goPackage); - if (object.ccGenericServices != null) - message.ccGenericServices = Boolean(object.ccGenericServices); - if (object.javaGenericServices != null) - message.javaGenericServices = Boolean(object.javaGenericServices); - if (object.pyGenericServices != null) - message.pyGenericServices = Boolean(object.pyGenericServices); - if (object.phpGenericServices != null) - message.phpGenericServices = Boolean(object.phpGenericServices); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.ccEnableArenas != null) - message.ccEnableArenas = Boolean(object.ccEnableArenas); - if (object.objcClassPrefix != null) - message.objcClassPrefix = String(object.objcClassPrefix); - if (object.csharpNamespace != null) - message.csharpNamespace = String(object.csharpNamespace); - if (object.swiftPrefix != null) - message.swiftPrefix = String(object.swiftPrefix); - if (object.phpClassPrefix != null) - message.phpClassPrefix = String(object.phpClassPrefix); - if (object.phpNamespace != null) - message.phpNamespace = String(object.phpNamespace); - if (object.phpMetadataNamespace != null) - message.phpMetadataNamespace = String(object.phpMetadataNamespace); - if (object.rubyPackage != null) - message.rubyPackage = String(object.rubyPackage); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; } - } - if (object[".google.api.resourceDefinition"]) { - if (!Array.isArray(object[".google.api.resourceDefinition"])) - throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); - message[".google.api.resourceDefinition"] = []; - for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { - if (typeof object[".google.api.resourceDefinition"][i] !== "object") - throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); - message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - return message; - }; + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; - /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.FileOptions} message FileOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.resourceDefinition"] = []; - } - if (options.defaults) { - object.javaPackage = ""; - object.javaOuterClassname = ""; - object.optimizeFor = options.enums === String ? "SPEED" : 1; - object.javaMultipleFiles = false; - object.goPackage = ""; - object.ccGenericServices = false; - object.javaGenericServices = false; - object.pyGenericServices = false; - object.javaGenerateEqualsAndHash = false; - object.deprecated = false; - object.javaStringCheckUtf8 = false; - object.ccEnableArenas = true; - object.objcClassPrefix = ""; - object.csharpNamespace = ""; - object.swiftPrefix = ""; - object.phpClassPrefix = ""; - object.phpNamespace = ""; - object.phpGenericServices = false; - object.phpMetadataNamespace = ""; - object.rubyPackage = ""; - } - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - object.javaPackage = message.javaPackage; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - object.javaOuterClassname = message.javaOuterClassname; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - object.javaMultipleFiles = message.javaMultipleFiles; - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - object.goPackage = message.goPackage; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - object.ccGenericServices = message.ccGenericServices; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - object.javaGenericServices = message.javaGenericServices; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - object.pyGenericServices = message.pyGenericServices; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - object.javaStringCheckUtf8 = message.javaStringCheckUtf8; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - object.ccEnableArenas = message.ccEnableArenas; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - object.objcClassPrefix = message.objcClassPrefix; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - object.csharpNamespace = message.csharpNamespace; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - object.swiftPrefix = message.swiftPrefix; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - object.phpClassPrefix = message.phpClassPrefix; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - object.phpNamespace = message.phpNamespace; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - object.phpGenericServices = message.phpGenericServices; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - object.phpMetadataNamespace = message.phpMetadataNamespace; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - object.rubyPackage = message.rubyPackage; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { - object[".google.api.resourceDefinition"] = []; - for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) - object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); - } - return object; - }; + return ExtensionRange; + })(); - /** - * Converts this FileOptions to JSON. - * @function toJSON - * @memberof google.protobuf.FileOptions - * @instance - * @returns {Object.} JSON object - */ - FileOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + DescriptorProto.ReservedRange = (function() { - /** - * Gets the default type url for FileOptions - * @function getTypeUrl - * @memberof google.protobuf.FileOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.protobuf.FileOptions"; - }; - /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode - * @enum {number} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value - */ - FileOptions.OptimizeMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; - return values; + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + + return ReservedRange; })(); - return FileOptions; + return DescriptorProto; })(); - protobuf.MessageOptions = (function() { + protobuf.ExtensionRangeOptions = (function() { /** - * Properties of a MessageOptions. + * Properties of an ExtensionRangeOptions. * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat - * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [mapEntry] MessageOptions mapEntry - * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts - * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption - * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption */ /** - * Constructs a new MessageOptions. + * Constructs a new ExtensionRangeOptions. * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set */ - function MessageOptions(properties) { + function ExtensionRangeOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -31303,164 +47513,80 @@ } /** - * MessageOptions messageSetWireFormat. - * @member {boolean} messageSetWireFormat - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.messageSetWireFormat = false; - - /** - * MessageOptions noStandardDescriptorAccessor. - * @member {boolean} noStandardDescriptorAccessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.noStandardDescriptorAccessor = false; - - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = false; - - /** - * MessageOptions mapEntry. - * @member {boolean} mapEntry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.mapEntry = false; - - /** - * MessageOptions deprecatedLegacyJsonFieldConflicts. - * @member {boolean} deprecatedLegacyJsonFieldConflicts - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; - - /** - * MessageOptions uninterpretedOption. + * ExtensionRangeOptions uninterpretedOption. * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * MessageOptions .google.api.resource. - * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @instance */ - MessageOptions.prototype[".google.api.resource"] = null; + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new MessageOptions instance using the specified properties. + * Creates a new ExtensionRangeOptions instance using the specified properties. * @function create - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance */ - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); }; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); - if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts); + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) - $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decode = function decode(reader, length) { + ExtensionRangeOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.messageSetWireFormat = reader.bool(); - break; - } - case 2: { - message.noStandardDescriptorAccessor = reader.bool(); - break; - } - case 3: { - message.deprecated = reader.bool(); - break; - } - case 7: { - message.mapEntry = reader.bool(); - break; - } - case 11: { - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - break; - } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } - case 1053: { - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -31470,47 +47596,32 @@ }; /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decodeDelimited = function decodeDelimited(reader) { + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageOptions message. + * Verifies an ExtensionRangeOptions message. * @function verify - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageOptions.verify = function verify(message) { + ExtensionRangeOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - if (typeof message.messageSetWireFormat !== "boolean") - return "messageSetWireFormat: boolean expected"; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - if (typeof message.noStandardDescriptorAccessor !== "boolean") - return "noStandardDescriptorAccessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - if (typeof message.mapEntry !== "boolean") - return "mapEntry: boolean expected"; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") - return "deprecatedLegacyJsonFieldConflicts: boolean expected"; if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -31520,158 +47631,114 @@ return "uninterpretedOption." + error; } } - if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { - var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); - if (error) - return ".google.api.resource." + error; - } return null; }; /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions */ - MessageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MessageOptions) + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) return object; - var message = new $root.google.protobuf.MessageOptions(); - if (object.messageSetWireFormat != null) - message.messageSetWireFormat = Boolean(object.messageSetWireFormat); - if (object.noStandardDescriptorAccessor != null) - message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.mapEntry != null) - message.mapEntry = Boolean(object.mapEntry); - if (object.deprecatedLegacyJsonFieldConflicts != null) - message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + var message = new $root.google.protobuf.ExtensionRangeOptions(); if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (var i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } - if (object[".google.api.resource"] != null) { - if (typeof object[".google.api.resource"] !== "object") - throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); - } return message; }; /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static - * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageOptions.toObject = function toObject(message, options) { + ExtensionRangeOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; - if (options.defaults) { - object.messageSetWireFormat = false; - object.noStandardDescriptorAccessor = false; - object.deprecated = false; - object.mapEntry = false; - object.deprecatedLegacyJsonFieldConflicts = false; - object[".google.api.resource"] = null; - } - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - object.messageSetWireFormat = message.messageSetWireFormat; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - object.mapEntry = message.mapEntry; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) - object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); return object; }; /** - * Converts this MessageOptions to JSON. + * Converts this ExtensionRangeOptions to JSON. * @function toJSON - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @instance * @returns {Object.} JSON object */ - MessageOptions.prototype.toJSON = function toJSON() { + ExtensionRangeOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MessageOptions + * Gets the default type url for ExtensionRangeOptions * @function getTypeUrl - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.ExtensionRangeOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.MessageOptions"; + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; }; - return MessageOptions; + return ExtensionRangeOptions; })(); - protobuf.FieldOptions = (function() { + protobuf.FieldDescriptorProto = (function() { /** - * Properties of a FieldOptions. + * Properties of a FieldDescriptorProto. * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {boolean|null} [debugRedact] FieldOptions debugRedact - * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention - * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target - * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption - * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior - * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional */ /** - * Constructs a new FieldOptions. + * Constructs a new FieldDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set */ - function FieldOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.fieldBehavior"] = []; + function FieldDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31679,257 +47746,215 @@ } /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.jstype = 0; + FieldDescriptorProto.prototype.name = ""; /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.lazy = false; + FieldDescriptorProto.prototype.number = 0; /** - * FieldOptions unverifiedLazy. - * @member {boolean} unverifiedLazy - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.unverifiedLazy = false; + FieldDescriptorProto.prototype.label = 1; /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.deprecated = false; + FieldDescriptorProto.prototype.type = 1; /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.weak = false; + FieldDescriptorProto.prototype.typeName = ""; /** - * FieldOptions debugRedact. - * @member {boolean} debugRedact - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.debugRedact = false; + FieldDescriptorProto.prototype.extendee = ""; /** - * FieldOptions retention. - * @member {google.protobuf.FieldOptions.OptionRetention} retention - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.retention = 0; + FieldDescriptorProto.prototype.defaultValue = ""; /** - * FieldOptions target. - * @member {google.protobuf.FieldOptions.OptionTargetType} target - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.target = 0; + FieldDescriptorProto.prototype.oneofIndex = 0; /** - * FieldOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + FieldDescriptorProto.prototype.jsonName = ""; /** - * FieldOptions .google.api.fieldBehavior. - * @member {Array.} .google.api.fieldBehavior - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + FieldDescriptorProto.prototype.options = null; /** - * FieldOptions .google.api.resourceReference. - * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference - * @memberof google.protobuf.FieldOptions + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FieldOptions.prototype[".google.api.resourceReference"] = null; + FieldDescriptorProto.prototype.proto3Optional = false; /** - * Creates a new FieldOptions instance using the specified properties. + * Creates a new FieldDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance */ - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); }; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encode = function encode(message, writer) { + FieldDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); - if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact); - if (message.retention != null && Object.hasOwnProperty.call(message, "retention")) - writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { - writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - writer.int32(message[".google.api.fieldBehavior"][i]); - writer.ldelim(); - } - if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) - $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); return writer; }; /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decode = function decode(reader, length) { + FieldDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.ctype = reader.int32(); + message.name = reader.string(); break; } - case 2: { - message.packed = reader.bool(); + case 3: { + message.number = reader.int32(); break; } - case 6: { - message.jstype = reader.int32(); + case 4: { + message.label = reader.int32(); break; } case 5: { - message.lazy = reader.bool(); - break; - } - case 15: { - message.unverifiedLazy = reader.bool(); - break; - } - case 3: { - message.deprecated = reader.bool(); + message.type = reader.int32(); break; } - case 10: { - message.weak = reader.bool(); + case 6: { + message.typeName = reader.string(); break; } - case 16: { - message.debugRedact = reader.bool(); + case 2: { + message.extendee = reader.string(); break; } - case 17: { - message.retention = reader.int32(); + case 7: { + message.defaultValue = reader.string(); break; } - case 18: { - message.target = reader.int32(); + case 9: { + message.oneofIndex = reader.int32(); break; } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 10: { + message.jsonName = reader.string(); break; } - case 1052: { - if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) - message[".google.api.fieldBehavior"] = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message[".google.api.fieldBehavior"].push(reader.int32()); - } else - message[".google.api.fieldBehavior"].push(reader.int32()); + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); break; } - case 1055: { - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + case 17: { + message.proto3Optional = reader.bool(); break; } default: @@ -31941,82 +47966,51 @@ }; /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decodeDelimited = function decodeDelimited(reader) { + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldOptions message. + * Verifies a FieldDescriptorProto message. * @function verify - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldOptions.verify = function verify(message) { + FieldDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - if (typeof message.unverifiedLazy !== "boolean") - return "unverifiedLazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - if (typeof message.debugRedact !== "boolean") - return "debugRedact: boolean expected"; - if (message.retention != null && message.hasOwnProperty("retention")) - switch (message.retention) { - default: - return "retention: enum value expected"; - case 0: + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; case 1: case 2: + case 3: break; } - if (message.target != null && message.hasOwnProperty("target")) - switch (message.target) { + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { default: - return "target: enum value expected"; - case 0: + return "type: enum value expected"; case 1: case 2: case 3: @@ -32026,429 +48020,340 @@ case 7: case 8: case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: break; } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { - if (!Array.isArray(message[".google.api.fieldBehavior"])) - return ".google.api.fieldBehavior: array expected"; - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - switch (message[".google.api.fieldBehavior"][i]) { - default: - return ".google.api.fieldBehavior: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - } - if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { - var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); if (error) - return ".google.api.resourceReference." + error; + return "options." + error; } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; return null; }; /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto */ - FieldOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions) + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) return object; - var message = new $root.google.protobuf.FieldOptions(); - switch (object.ctype) { - default: - if (typeof object.ctype === "number") { - message.ctype = object.ctype; - break; - } - break; - case "STRING": - case 0: - message.ctype = 0; - break; - case "CORD": - case 1: - message.ctype = 1; - break; - case "STRING_PIECE": - case 2: - message.ctype = 2; - break; - } - if (object.packed != null) - message.packed = Boolean(object.packed); - switch (object.jstype) { + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { default: - if (typeof object.jstype === "number") { - message.jstype = object.jstype; + if (typeof object.label === "number") { + message.label = object.label; break; } break; - case "JS_NORMAL": - case 0: - message.jstype = 0; - break; - case "JS_STRING": + case "LABEL_OPTIONAL": case 1: - message.jstype = 1; + message.label = 1; break; - case "JS_NUMBER": + case "LABEL_REQUIRED": case 2: - message.jstype = 2; - break; - } - if (object.lazy != null) - message.lazy = Boolean(object.lazy); - if (object.unverifiedLazy != null) - message.unverifiedLazy = Boolean(object.unverifiedLazy); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.weak != null) - message.weak = Boolean(object.weak); - if (object.debugRedact != null) - message.debugRedact = Boolean(object.debugRedact); - switch (object.retention) { - default: - if (typeof object.retention === "number") { - message.retention = object.retention; - break; - } - break; - case "RETENTION_UNKNOWN": - case 0: - message.retention = 0; - break; - case "RETENTION_RUNTIME": - case 1: - message.retention = 1; + message.label = 2; break; - case "RETENTION_SOURCE": - case 2: - message.retention = 2; + case "LABEL_REPEATED": + case 3: + message.label = 3; break; } - switch (object.target) { + switch (object.type) { default: - if (typeof object.target === "number") { - message.target = object.target; + if (typeof object.type === "number") { + message.type = object.type; break; } break; - case "TARGET_TYPE_UNKNOWN": - case 0: - message.target = 0; - break; - case "TARGET_TYPE_FILE": + case "TYPE_DOUBLE": case 1: - message.target = 1; + message.type = 1; break; - case "TARGET_TYPE_EXTENSION_RANGE": + case "TYPE_FLOAT": case 2: - message.target = 2; + message.type = 2; break; - case "TARGET_TYPE_MESSAGE": + case "TYPE_INT64": case 3: - message.target = 3; + message.type = 3; break; - case "TARGET_TYPE_FIELD": + case "TYPE_UINT64": case 4: - message.target = 4; + message.type = 4; break; - case "TARGET_TYPE_ONEOF": + case "TYPE_INT32": case 5: - message.target = 5; + message.type = 5; break; - case "TARGET_TYPE_ENUM": + case "TYPE_FIXED64": case 6: - message.target = 6; + message.type = 6; break; - case "TARGET_TYPE_ENUM_ENTRY": + case "TYPE_FIXED32": case 7: - message.target = 7; + message.type = 7; break; - case "TARGET_TYPE_SERVICE": + case "TYPE_BOOL": case 8: - message.target = 8; + message.type = 8; break; - case "TARGET_TYPE_METHOD": + case "TYPE_STRING": case 9: - message.target = 9; + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; break; } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.fieldBehavior"]) { - if (!Array.isArray(object[".google.api.fieldBehavior"])) - throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); - message[".google.api.fieldBehavior"] = []; - for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) - switch (object[".google.api.fieldBehavior"][i]) { - default: - if (typeof object[".google.api.fieldBehavior"][i] === "number") { - message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; - break; - } - case "FIELD_BEHAVIOR_UNSPECIFIED": - case 0: - message[".google.api.fieldBehavior"][i] = 0; - break; - case "OPTIONAL": - case 1: - message[".google.api.fieldBehavior"][i] = 1; - break; - case "REQUIRED": - case 2: - message[".google.api.fieldBehavior"][i] = 2; - break; - case "OUTPUT_ONLY": - case 3: - message[".google.api.fieldBehavior"][i] = 3; - break; - case "INPUT_ONLY": - case 4: - message[".google.api.fieldBehavior"][i] = 4; - break; - case "IMMUTABLE": - case 5: - message[".google.api.fieldBehavior"][i] = 5; - break; - case "UNORDERED_LIST": - case 6: - message[".google.api.fieldBehavior"][i] = 6; - break; - case "NON_EMPTY_DEFAULT": - case 7: - message[".google.api.fieldBehavior"][i] = 7; - break; - } - } - if (object[".google.api.resourceReference"] != null) { - if (typeof object[".google.api.resourceReference"] !== "object") - throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); return message; }; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldOptions.toObject = function toObject(message, options) { + FieldDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.fieldBehavior"] = []; - } if (options.defaults) { - object.ctype = options.enums === String ? "STRING" : 0; - object.packed = false; - object.deprecated = false; - object.lazy = false; - object.jstype = options.enums === String ? "JS_NORMAL" : 0; - object.weak = false; - object.unverifiedLazy = false; - object.debugRedact = false; - object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; - object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0; - object[".google.api.resourceReference"] = null; - } - if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; - if (message.packed != null && message.hasOwnProperty("packed")) - object.packed = message.packed; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.lazy != null && message.hasOwnProperty("lazy")) - object.lazy = message.lazy; - if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; - if (message.weak != null && message.hasOwnProperty("weak")) - object.weak = message.weak; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - object.unverifiedLazy = message.unverifiedLazy; - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - object.debugRedact = message.debugRedact; - if (message.retention != null && message.hasOwnProperty("retention")) - object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention; - if (message.target != null && message.hasOwnProperty("target")) - object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { - object[".google.api.fieldBehavior"] = []; - for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) - object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; } - if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) - object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; return object; }; /** - * Converts this FieldOptions to JSON. + * Converts this FieldDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @instance * @returns {Object.} JSON object */ - FieldOptions.prototype.toJSON = function toJSON() { + FieldDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FieldOptions + * Gets the default type url for FieldDescriptorProto * @function getTypeUrl - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.FieldOptions"; + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; }; /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {number} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value - */ - FieldOptions.CType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); - - /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {number} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value - */ - FieldOptions.JSType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); - - /** - * OptionRetention enum. - * @name google.protobuf.FieldOptions.OptionRetention + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type * @enum {number} - * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value - * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value - * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value */ - FieldOptions.OptionRetention = (function() { + FieldDescriptorProto.Type = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETENTION_UNKNOWN"] = 0; - values[valuesById[1] = "RETENTION_RUNTIME"] = 1; - values[valuesById[2] = "RETENTION_SOURCE"] = 2; + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; return values; })(); /** - * OptionTargetType enum. - * @name google.protobuf.FieldOptions.OptionTargetType - * @enum {number} - * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value - * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value - * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value - * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value - * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value - * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value - * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value - * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value - * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value - * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value */ - FieldOptions.OptionTargetType = (function() { + FieldDescriptorProto.Label = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0; - values[valuesById[1] = "TARGET_TYPE_FILE"] = 1; - values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2; - values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3; - values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4; - values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5; - values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6; - values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7; - values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8; - values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9; + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; return values; })(); - return FieldOptions; + return FieldDescriptorProto; })(); - protobuf.OneofOptions = (function() { + protobuf.OneofDescriptorProto = (function() { /** - * Properties of an OneofOptions. + * Properties of an OneofDescriptorProto. * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options */ /** - * Constructs a new OneofOptions. + * Constructs a new OneofDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set */ - function OneofOptions(properties) { - this.uninterpretedOption = []; + function OneofDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32456,78 +48361,89 @@ } /** - * OneofOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.OneofOptions + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + OneofDescriptorProto.prototype.name = ""; /** - * Creates a new OneofOptions instance using the specified properties. + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance */ - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); }; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encode = function encode(message, writer) { + OneofDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes an OneofDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decode = function decode(reader, length) { + OneofDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); break; } default: @@ -32539,143 +48455,143 @@ }; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OneofOptions message. + * Verifies an OneofDescriptorProto message. * @function verify - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneofOptions.verify = function verify(message) { + OneofDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; } return null; }; /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto */ - OneofOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofOptions) + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) return object; - var message = new $root.google.protobuf.OneofOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); } return message; }; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static - * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofOptions.toObject = function toObject(message, options) { + OneofDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + if (options.defaults) { + object.name = ""; + object.options = null; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); return object; }; /** - * Converts this OneofOptions to JSON. + * Converts this OneofDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @instance * @returns {Object.} JSON object */ - OneofOptions.prototype.toJSON = function toJSON() { + OneofDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OneofOptions + * Gets the default type url for OneofDescriptorProto * @function getTypeUrl - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.OneofDescriptorProto * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.OneofOptions"; + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; }; - return OneofOptions; + return OneofDescriptorProto; })(); - protobuf.EnumOptions = (function() { + protobuf.EnumDescriptorProto = (function() { /** - * Properties of an EnumOptions. + * Properties of an EnumDescriptorProto. * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allowAlias] EnumOptions allowAlias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts - * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName */ /** - * Constructs a new EnumOptions. + * Constructs a new EnumDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set */ - function EnumOptions(properties) { - this.uninterpretedOption = []; + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32683,120 +48599,140 @@ } /** - * EnumOptions allowAlias. - * @member {boolean} allowAlias - * @memberof google.protobuf.EnumOptions + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - EnumOptions.prototype.allowAlias = false; + EnumDescriptorProto.prototype.name = ""; /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - EnumOptions.prototype.deprecated = false; + EnumDescriptorProto.prototype.value = $util.emptyArray; /** - * EnumOptions deprecatedLegacyJsonFieldConflicts. - * @member {boolean} deprecatedLegacyJsonFieldConflicts - * @memberof google.protobuf.EnumOptions + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + EnumDescriptorProto.prototype.options = null; /** - * EnumOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumOptions + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; /** - * Creates a new EnumOptions instance using the specified properties. + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance */ - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); }; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumOptions.encode = function encode(message, writer) { + EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); return writer; }; /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumOptions.decode = function decode(reader, length) { + EnumDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } case 2: { - message.allowAlias = reader.bool(); + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); break; } case 3: { - message.deprecated = reader.bool(); + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); break; } - case 6: { - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); break; } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); break; } default: @@ -32808,167 +48744,437 @@ }; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumOptions message. + * Verifies an EnumDescriptorProto message. * @function verify - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumOptions.verify = function verify(message) { + EnumDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - if (typeof message.allowAlias !== "boolean") - return "allowAlias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") - return "deprecatedLegacyJsonFieldConflicts: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); if (error) - return "uninterpretedOption." + error; + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; } } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } return null; }; /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto */ - EnumOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumOptions) + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) return object; - var message = new $root.google.protobuf.EnumOptions(); - if (object.allowAlias != null) - message.allowAlias = Boolean(object.allowAlias); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.deprecatedLegacyJsonFieldConflicts != null) - message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); } } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } return message; }; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumOptions.toObject = function toObject(message, options) { + EnumDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } if (options.defaults) { - object.allowAlias = false; - object.deprecated = false; - object.deprecatedLegacyJsonFieldConflicts = false; + object.name = ""; + object.options = null; } - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - object.allowAlias = message.allowAlias; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; } return object; }; /** - * Converts this EnumOptions to JSON. + * Converts this EnumDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @instance * @returns {Object.} JSON object */ - EnumOptions.prototype.toJSON = function toJSON() { + EnumDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EnumOptions + * Gets the default type url for EnumDescriptorProto * @function getTypeUrl - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.EnumOptions"; + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; }; - return EnumOptions; + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(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]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; })(); - protobuf.EnumValueOptions = (function() { + protobuf.EnumValueDescriptorProto = (function() { /** - * Properties of an EnumValueOptions. + * Properties of an EnumValueDescriptorProto. * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options */ /** - * Constructs a new EnumValueOptions. + * Constructs a new EnumValueDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set */ - function EnumValueOptions(properties) { - this.uninterpretedOption = []; + function EnumValueDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32976,92 +49182,103 @@ } /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - EnumValueOptions.prototype.deprecated = false; + EnumValueDescriptorProto.prototype.name = ""; /** - * EnumValueOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumValueOptions + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + EnumValueDescriptorProto.prototype.number = 0; /** - * Creates a new EnumValueOptions instance using the specified properties. + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance */ - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); }; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encode = function encode(message, writer) { + EnumValueDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decode = function decode(reader, length) { + EnumValueDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deprecated = reader.bool(); + message.name = reader.string(); break; } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); break; } default: @@ -33073,152 +49290,147 @@ }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumValueOptions message. + * Verifies an EnumValueDescriptorProto message. * @function verify - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueOptions.verify = function verify(message) { + EnumValueDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; } return null; }; /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto */ - EnumValueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueOptions) + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) return object; - var message = new $root.google.protobuf.EnumValueOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); } return message; }; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueOptions.toObject = function toObject(message, options) { + EnumValueDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) - object.deprecated = false; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); return object; }; /** - * Converts this EnumValueOptions to JSON. + * Converts this EnumValueDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @instance * @returns {Object.} JSON object */ - EnumValueOptions.prototype.toJSON = function toJSON() { + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EnumValueOptions + * Gets the default type url for EnumValueDescriptorProto * @function getTypeUrl - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; }; - return EnumValueOptions; + return EnumValueDescriptorProto; })(); - protobuf.ServiceOptions = (function() { + protobuf.ServiceDescriptorProto = (function() { /** - * Properties of a ServiceOptions. + * Properties of a ServiceDescriptorProto. * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption - * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost - * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options */ /** - * Constructs a new ServiceOptions. + * Constructs a new ServiceDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set */ - function ServiceOptions(properties) { - this.uninterpretedOption = []; + function ServiceDescriptorProto(properties) { + this.method = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33226,120 +49438,106 @@ } /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.deprecated = false; - - /** - * ServiceOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ServiceOptions + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + ServiceDescriptorProto.prototype.name = ""; /** - * ServiceOptions .google.api.defaultHost. - * @member {string} .google.api.defaultHost - * @memberof google.protobuf.ServiceOptions + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - ServiceOptions.prototype[".google.api.defaultHost"] = ""; + ServiceDescriptorProto.prototype.method = $util.emptyArray; /** - * ServiceOptions .google.api.oauthScopes. - * @member {string} .google.api.oauthScopes - * @memberof google.protobuf.ServiceOptions + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + ServiceDescriptorProto.prototype.options = null; /** - * Creates a new ServiceOptions instance using the specified properties. + * Creates a new ServiceDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance */ - ServiceOptions.create = function create(properties) { - return new ServiceOptions(properties); + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); }; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceOptions.encode = function encode(message, writer) { + ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) - writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) - writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceOptions.decode = function decode(reader, length) { + ServiceDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: { - message.deprecated = reader.bool(); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: { + message.name = reader.string(); break; } - case 1049: { - message[".google.api.defaultHost"] = reader.string(); + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); break; } - case 1050: { - message[".google.api.oauthScopes"] = reader.string(); + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); break; } default: @@ -33351,172 +49549,167 @@ }; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceOptions message. + * Verifies a ServiceDescriptorProto message. * @function verify - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceOptions.verify = function verify(message) { + ServiceDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); if (error) - return "uninterpretedOption." + error; + return "method." + error; } } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - if (!$util.isString(message[".google.api.defaultHost"])) - return ".google.api.defaultHost: string expected"; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - if (!$util.isString(message[".google.api.oauthScopes"])) - return ".google.api.oauthScopes: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto */ - ServiceOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceOptions) + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) return object; - var message = new $root.google.protobuf.ServiceOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); } } - if (object[".google.api.defaultHost"] != null) - message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); - if (object[".google.api.oauthScopes"] != null) - message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceOptions.toObject = function toObject(message, options) { + ServiceDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.uninterpretedOption = []; + object.method = []; if (options.defaults) { - object.deprecated = false; - object[".google.api.defaultHost"] = ""; - object[".google.api.oauthScopes"] = ""; + object.name = ""; + object.options = null; } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); return object; }; /** - * Converts this ServiceOptions to JSON. + * Converts this ServiceDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @instance * @returns {Object.} JSON object */ - ServiceOptions.prototype.toJSON = function toJSON() { + ServiceDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceOptions + * Gets the default type url for ServiceDescriptorProto * @function getTypeUrl - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; }; - return ServiceOptions; + return ServiceDescriptorProto; })(); - protobuf.MethodOptions = (function() { + protobuf.MethodDescriptorProto = (function() { /** - * Properties of a MethodOptions. + * Properties of a MethodDescriptorProto. * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel - * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http - * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature - * @property {google.longrunning.IOperationInfo|null} [".google.longrunning.operationInfo"] MethodOptions .google.longrunning.operationInfo + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming */ /** - * Constructs a new MethodOptions. + * Constructs a new MethodDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set */ - function MethodOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.methodSignature"] = []; + function MethodDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33524,151 +49717,145 @@ } /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - MethodOptions.prototype.deprecated = false; + MethodDescriptorProto.prototype.name = ""; /** - * MethodOptions idempotencyLevel. - * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel - * @memberof google.protobuf.MethodOptions + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - MethodOptions.prototype.idempotencyLevel = 0; + MethodDescriptorProto.prototype.inputType = ""; /** - * MethodOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MethodOptions + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + MethodDescriptorProto.prototype.outputType = ""; /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - MethodOptions.prototype[".google.api.http"] = null; + MethodDescriptorProto.prototype.options = null; /** - * MethodOptions .google.api.methodSignature. - * @member {Array.} .google.api.methodSignature - * @memberof google.protobuf.MethodOptions + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + MethodDescriptorProto.prototype.clientStreaming = false; /** - * MethodOptions .google.longrunning.operationInfo. - * @member {google.longrunning.IOperationInfo|null|undefined} .google.longrunning.operationInfo - * @memberof google.protobuf.MethodOptions + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - MethodOptions.prototype[".google.longrunning.operationInfo"] = null; + MethodDescriptorProto.prototype.serverStreaming = false; /** - * Creates a new MethodOptions instance using the specified properties. + * Creates a new MethodDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - * @returns {google.protobuf.MethodOptions} MethodOptions instance + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance */ - MethodOptions.create = function create(properties) { - return new MethodOptions(properties); + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); }; /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodOptions.encode = function encode(message, writer) { + MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) - writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.longrunning.operationInfo"] != null && Object.hasOwnProperty.call(message, ".google.longrunning.operationInfo")) - $root.google.longrunning.OperationInfo.encode(message[".google.longrunning.operationInfo"], writer.uint32(/* id 1049, wireType 2 =*/8394).fork()).ldelim(); - if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); return writer; }; /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodOptions message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodOptions.decode = function decode(reader, length) { + MethodDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: { - message.deprecated = reader.bool(); + case 1: { + message.name = reader.string(); break; } - case 34: { - message.idempotencyLevel = reader.int32(); + case 2: { + message.inputType = reader.string(); break; } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 3: { + message.outputType = reader.string(); break; } - case 72295728: { - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); break; } - case 1051: { - if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) - message[".google.api.methodSignature"] = []; - message[".google.api.methodSignature"].push(reader.string()); + case 5: { + message.clientStreaming = reader.bool(); break; } - case 1049: { - message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.decode(reader, reader.uint32()); + case 6: { + message.serverStreaming = reader.bool(); break; } default: @@ -33680,251 +49867,191 @@ }; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MethodOptions message. - * @function verify - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - switch (message.idempotencyLevel) { - default: - return "idempotencyLevel: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; - } - if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { - if (!Array.isArray(message[".google.api.methodSignature"])) - return ".google.api.methodSignature: array expected"; - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - if (!$util.isString(message[".google.api.methodSignature"][i])) - return ".google.api.methodSignature: string[] expected"; - } - if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) { - var error = $root.google.longrunning.OperationInfo.verify(message[".google.longrunning.operationInfo"]); - if (error) - return ".google.longrunning.operationInfo." + error; - } - return null; - }; - - /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MethodOptions} MethodOptions - */ - MethodOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodOptions) - return object; - var message = new $root.google.protobuf.MethodOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - switch (object.idempotencyLevel) { - default: - if (typeof object.idempotencyLevel === "number") { - message.idempotencyLevel = object.idempotencyLevel; - break; - } - break; - case "IDEMPOTENCY_UNKNOWN": - case 0: - message.idempotencyLevel = 0; - break; - case "NO_SIDE_EFFECTS": - case 1: - message.idempotencyLevel = 1; - break; - case "IDEMPOTENT": - case 2: - message.idempotencyLevel = 2; - break; - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.http"] != null) { - if (typeof object[".google.api.http"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); - message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); - } - if (object[".google.api.methodSignature"]) { - if (!Array.isArray(object[".google.api.methodSignature"])) - throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); - message[".google.api.methodSignature"] = []; - for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) - message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; } - if (object[".google.longrunning.operationInfo"] != null) { - if (typeof object[".google.longrunning.operationInfo"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.longrunning.operationInfo: object expected"); - message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.fromObject(object[".google.longrunning.operationInfo"]); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); return message; }; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodOptions.toObject = function toObject(message, options) { + MethodDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.methodSignature"] = []; - } if (options.defaults) { - object.deprecated = false; - object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; - object[".google.longrunning.operationInfo"] = null; - object[".google.api.http"] = null; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) - object[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.toObject(message[".google.longrunning.operationInfo"], options); - if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { - object[".google.api.methodSignature"] = []; - for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) - object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; return object; }; /** - * Converts this MethodOptions to JSON. + * Converts this MethodDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.MethodDescriptorProto * @instance * @returns {Object.} JSON object */ - MethodOptions.prototype.toJSON = function toJSON() { + MethodDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MethodOptions + * Gets the default type url for MethodDescriptorProto * @function getTypeUrl - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.MethodOptions"; + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; }; - /** - * IdempotencyLevel enum. - * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {number} - * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value - * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value - * @property {number} IDEMPOTENT=2 IDEMPOTENT value - */ - MethodOptions.IdempotencyLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; - values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; - values[valuesById[2] = "IDEMPOTENT"] = 2; - return values; - })(); - - return MethodOptions; + return MethodDescriptorProto; })(); - protobuf.UninterpretedOption = (function() { + protobuf.FileOptions = (function() { /** - * Properties of an UninterpretedOption. + * Properties of a FileOptions. * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifierValue] UninterpretedOption identifierValue - * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue - * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue - * @property {number|null} [doubleValue] UninterpretedOption doubleValue - * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue - * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition */ /** - * Constructs a new UninterpretedOption. + * Constructs a new FileOptions. * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption + * @classdesc Represents a FileOptions. + * @implements IFileOptions * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @param {google.protobuf.IFileOptions=} [properties] Properties to set */ - function UninterpretedOption(properties) { - this.name = []; + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33932,162 +50059,375 @@ } /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.name = $util.emptyArray; + FileOptions.prototype.javaPackage = ""; /** - * UninterpretedOption identifierValue. - * @member {string} identifierValue - * @memberof google.protobuf.UninterpretedOption + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.identifierValue = ""; + FileOptions.prototype.javaOuterClassname = ""; /** - * UninterpretedOption positiveIntValue. - * @member {number|Long} positiveIntValue - * @memberof google.protobuf.UninterpretedOption + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + FileOptions.prototype.javaMultipleFiles = false; /** - * UninterpretedOption negativeIntValue. - * @member {number|Long} negativeIntValue - * @memberof google.protobuf.UninterpretedOption + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FileOptions.prototype.javaGenerateEqualsAndHash = false; /** - * UninterpretedOption doubleValue. - * @member {number} doubleValue - * @memberof google.protobuf.UninterpretedOption + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.doubleValue = 0; + FileOptions.prototype.javaStringCheckUtf8 = false; /** - * UninterpretedOption stringValue. - * @member {Uint8Array} stringValue - * @memberof google.protobuf.UninterpretedOption + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + FileOptions.prototype.optimizeFor = 1; /** - * UninterpretedOption aggregateValue. - * @member {string} aggregateValue - * @memberof google.protobuf.UninterpretedOption + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.aggregateValue = ""; + FileOptions.prototype.goPackage = ""; /** - * Creates a new UninterpretedOption instance using the specified properties. + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. * @function create - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance */ - UninterpretedOption.create = function create(properties) { - return new UninterpretedOption(properties); + FileOptions.create = function create(properties) { + return new FileOptions(properties); }; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encode = function encode(message, writer) { + FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.name.length) - for (var i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); return writer; }; /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decode = function decode(reader, length) { + FileOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); break; } - case 3: { - message.identifierValue = reader.string(); + case 18: { + message.pyGenericServices = reader.bool(); break; } - case 4: { - message.positiveIntValue = reader.uint64(); + case 42: { + message.phpGenericServices = reader.bool(); break; } - case 5: { - message.negativeIntValue = reader.int64(); + case 23: { + message.deprecated = reader.bool(); break; } - case 6: { - message.doubleValue = reader.double(); + case 31: { + message.ccEnableArenas = reader.bool(); break; } - case 7: { - message.stringValue = reader.bytes(); + case 36: { + message.objcClassPrefix = reader.string(); break; } - case 8: { - message.aggregateValue = reader.string(); + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); break; } default: @@ -34099,454 +50439,374 @@ }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + FileOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UninterpretedOption message. + * Verifies a FileOptions message. * @function verify - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UninterpretedOption.verify = function verify(message) { + FileOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (var i = 0; i < message.name.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) - return "name." + error; + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; } } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - if (!$util.isString(message.identifierValue)) - return "identifierValue: string expected"; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) - return "positiveIntValue: integer|Long expected"; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) - return "negativeIntValue: integer|Long expected"; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) - return "stringValue: buffer expected"; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - if (!$util.isString(message.aggregateValue)) - return "aggregateValue: string expected"; return null; }; /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - */ - UninterpretedOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption) - return object; - var message = new $root.google.protobuf.UninterpretedOption(); - if (object.name) { - if (!Array.isArray(object.name)) - throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); - message.name = []; - for (var i = 0; i < object.name.length; ++i) { - if (typeof object.name[i] !== "object") - throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); - message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); - } - } - if (object.identifierValue != null) - message.identifierValue = String(object.identifierValue); - if (object.positiveIntValue != null) - if ($util.Long) - (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; - else if (typeof object.positiveIntValue === "string") - message.positiveIntValue = parseInt(object.positiveIntValue, 10); - else if (typeof object.positiveIntValue === "number") - message.positiveIntValue = object.positiveIntValue; - else if (typeof object.positiveIntValue === "object") - message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); - if (object.negativeIntValue != null) - if ($util.Long) - (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; - else if (typeof object.negativeIntValue === "string") - message.negativeIntValue = parseInt(object.negativeIntValue, 10); - else if (typeof object.negativeIntValue === "number") - message.negativeIntValue = object.negativeIntValue; - else if (typeof object.negativeIntValue === "object") - message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - if (typeof object.stringValue === "string") - $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length >= 0) - message.stringValue = object.stringValue; - if (object.aggregateValue != null) - message.aggregateValue = String(object.aggregateValue); - return message; - }; - - /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UninterpretedOption.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.name = []; - if (options.defaults) { - object.identifierValue = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.positiveIntValue = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.negativeIntValue = options.longs === String ? "0" : 0; - object.doubleValue = 0; - if (options.bytes === String) - object.stringValue = ""; - else { - object.stringValue = []; - if (options.bytes !== Array) - object.stringValue = $util.newBuffer(object.stringValue); - } - object.aggregateValue = ""; - } - if (message.name && message.name.length) { - object.name = []; - for (var j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - object.identifierValue = message.identifierValue; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (typeof message.positiveIntValue === "number") - object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; - else - object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (typeof message.negativeIntValue === "number") - object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; - else - object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - object.aggregateValue = message.aggregateValue; - return object; - }; - - /** - * Converts this UninterpretedOption to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption - * @instance - * @returns {Object.} JSON object - */ - UninterpretedOption.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UninterpretedOption - * @function getTypeUrl - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * @returns {google.protobuf.FileOptions} FileOptions */ - UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; - }; - - UninterpretedOption.NamePart = (function() { - - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} namePart NamePart namePart - * @property {boolean} isExtension NamePart isExtension - */ - - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(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]]; - } - - /** - * NamePart namePart. - * @member {string} namePart - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.namePart = ""; - - /** - * NamePart isExtension. - * @member {boolean} isExtension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.isExtension = false; - - /** - * Creates a new NamePart instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance - */ - NamePart.create = function create(properties) { - return new NamePart(properties); - }; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); - return writer; - }; - - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.namePart = reader.string(); - break; - } - case 2: { - message.isExtension = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - if (!message.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); - return message; - }; - - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.namePart)) - return "namePart: string expected"; - if (typeof message.isExtension !== "boolean") - return "isExtension: boolean expected"; - return null; - }; - - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - */ - NamePart.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) - return object; - var message = new $root.google.protobuf.UninterpretedOption.NamePart(); - if (object.namePart != null) - message.namePart = String(object.namePart); - if (object.isExtension != null) - message.isExtension = Boolean(object.isExtension); - return message; - }; - - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NamePart.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.namePart = ""; - object.isExtension = false; - } - if (message.namePart != null && message.hasOwnProperty("namePart")) - object.namePart = message.namePart; - if (message.isExtension != null && message.hasOwnProperty("isExtension")) - object.isExtension = message.isExtension; + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) return object; - }; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } + } + return message; + }; - /** - * Converts this NamePart to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - * @returns {Object.} JSON object - */ - NamePart.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; - /** - * Gets the default type url for NamePart - * @function getTypeUrl - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; - }; + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return NamePart; + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; })(); - return UninterpretedOption; + return FileOptions; })(); - protobuf.SourceCodeInfo = (function() { + protobuf.MessageOptions = (function() { /** - * Properties of a SourceCodeInfo. + * Properties of a MessageOptions. * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource */ /** - * Constructs a new SourceCodeInfo. + * Constructs a new MessageOptions. * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set */ - function SourceCodeInfo(properties) { - this.location = []; + function MessageOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34554,78 +50814,162 @@ } /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions * @instance */ - SourceCodeInfo.prototype.location = $util.emptyArray; + MessageOptions.prototype.messageSetWireFormat = false; /** - * Creates a new SourceCodeInfo instance using the specified properties. + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions deprecatedLegacyJsonFieldConflicts. + * @member {boolean} deprecatedLegacyJsonFieldConflicts + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; + + /** + * Creates a new MessageOptions instance using the specified properties. * @function create - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance */ - SourceCodeInfo.create = function create(properties) { - return new SourceCodeInfo(properties); + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); }; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encode = function encode(message, writer) { + MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && message.location.length) - for (var i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); return writer; }; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decode = function decode(reader, length) { + MessageOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 11: { + message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); break; } default: @@ -34637,581 +50981,466 @@ }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + MessageOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceCodeInfo message. + * Verifies a MessageOptions message. * @function verify - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceCodeInfo.verify = function verify(message) { + MessageOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (var i = 0; i < message.location.length; ++i) { - var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") + return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) - return "location." + error; + return "uninterpretedOption." + error; } } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } return null; }; /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.MessageOptions} MessageOptions */ - SourceCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo) + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) return object; - var message = new $root.google.protobuf.SourceCodeInfo(); - if (object.location) { - if (!Array.isArray(object.location)) - throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); - message.location = []; - for (var i = 0; i < object.location.length; ++i) { - if (typeof object.location[i] !== "object") - throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); - message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.deprecatedLegacyJsonFieldConflicts != null) + message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } return message; }; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {google.protobuf.MessageOptions} message MessageOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceCodeInfo.toObject = function toObject(message, options) { + MessageOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.location = []; - if (message.location && message.location.length) { - object.location = []; - for (var j = 0; j < message.location.length; ++j) - object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object.deprecatedLegacyJsonFieldConflicts = false; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); return object; }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this MessageOptions to JSON. * @function toJSON - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @instance * @returns {Object.} JSON object */ - SourceCodeInfo.prototype.toJSON = function toJSON() { + MessageOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SourceCodeInfo + * Gets the default type url for MessageOptions * @function getTypeUrl - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.MessageOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + return typeUrlPrefix + "/google.protobuf.MessageOptions"; }; - SourceCodeInfo.Location = (function() { - - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leadingComments] Location leadingComments - * @property {string|null} [trailingComments] Location trailingComments - * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments - */ - - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leadingDetachedComments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; - - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; - - /** - * Location leadingComments. - * @member {string} leadingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingComments = ""; - - /** - * Location trailingComments. - * @member {string} trailingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailingComments = ""; - - /** - * Location leadingDetachedComments. - * @member {Array.} leadingDetachedComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingDetachedComments = $util.emptyArray; - - /** - * Creates a new Location instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo.Location} Location instance - */ - Location.create = function create(properties) { - return new Location(properties); - }; + return MessageOptions; + })(); - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); - if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); - return writer; - }; + protobuf.FieldOptions = (function() { - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {boolean|null} [debugRedact] FieldOptions debugRedact + * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention + * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + */ - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - } - case 2: { - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - } - case 3: { - message.leadingComments = reader.string(); - break; - } - case 4: { - message.trailingComments = reader.string(); - break; - } - case 6: { - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (var i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - if (!$util.isString(message.leadingComments)) - return "leadingComments: string expected"; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - if (!$util.isString(message.trailingComments)) - return "trailingComments: string expected"; - if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { - if (!Array.isArray(message.leadingDetachedComments)) - return "leadingDetachedComments: array expected"; - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - if (!$util.isString(message.leadingDetachedComments[i])) - return "leadingDetachedComments: string[] expected"; - } - return null; - }; + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo.Location} Location - */ - Location.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) - return object; - var message = new $root.google.protobuf.SourceCodeInfo.Location(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.span) { - if (!Array.isArray(object.span)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); - message.span = []; - for (var i = 0; i < object.span.length; ++i) - message.span[i] = object.span[i] | 0; - } - if (object.leadingComments != null) - message.leadingComments = String(object.leadingComments); - if (object.trailingComments != null) - message.trailingComments = String(object.trailingComments); - if (object.leadingDetachedComments) { - if (!Array.isArray(object.leadingDetachedComments)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); - message.leadingDetachedComments = []; - for (var i = 0; i < object.leadingDetachedComments.length; ++i) - message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); - } - return message; - }; + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.Location} message Location - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Location.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.path = []; - object.span = []; - object.leadingDetachedComments = []; - } - if (options.defaults) { - object.leadingComments = ""; - object.trailingComments = ""; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.span && message.span.length) { - object.span = []; - for (var j = 0; j < message.span.length; ++j) - object.span[j] = message.span[j]; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - object.leadingComments = message.leadingComments; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - object.trailingComments = message.trailingComments; - if (message.leadingDetachedComments && message.leadingDetachedComments.length) { - object.leadingDetachedComments = []; - for (var j = 0; j < message.leadingDetachedComments.length; ++j) - object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; - } - return object; - }; + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; - /** - * Converts this Location to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - * @returns {Object.} JSON object - */ - Location.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; - /** - * Gets the default type url for Location - * @function getTypeUrl - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; - }; + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; - return Location; - })(); + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; - return SourceCodeInfo; - })(); + /** + * FieldOptions debugRedact. + * @member {boolean} debugRedact + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.debugRedact = false; - protobuf.GeneratedCodeInfo = (function() { + /** + * FieldOptions retention. + * @member {google.protobuf.FieldOptions.OptionRetention} retention + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.retention = 0; /** - * Properties of a GeneratedCodeInfo. - * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + * FieldOptions target. + * @member {google.protobuf.FieldOptions.OptionTargetType} target + * @memberof google.protobuf.FieldOptions + * @instance */ + FieldOptions.prototype.target = 0; /** - * Constructs a new GeneratedCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo - * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance */ - function GeneratedCodeInfo(properties) { - this.annotation = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions * @instance */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + FieldOptions.prototype[".google.api.resourceReference"] = null; /** - * Creates a new GeneratedCodeInfo instance using the specified properties. + * Creates a new FieldOptions instance using the specified properties. * @function create - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance */ - GeneratedCodeInfo.create = function create(properties) { - return new GeneratedCodeInfo(properties); + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); }; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encode = function encode(message, writer) { + FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (var i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact); + if (message.retention != null && Object.hasOwnProperty.call(message, "retention")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); return writer; }; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes a FieldOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decode = function decode(reader, length) { + FieldOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 16: { + message.debugRedact = reader.bool(); + break; + } + case 17: { + message.retention = reader.int32(); + break; + } + case 18: { + message.target = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); break; } default: @@ -35223,501 +51452,514 @@ }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + FieldOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GeneratedCodeInfo message. + * Verifies a FieldOptions message. * @function verify - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GeneratedCodeInfo.verify = function verify(message) { + FieldOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (var i = 0; i < message.annotation.length; ++i) { - var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (typeof message.debugRedact !== "boolean") + return "debugRedact: boolean expected"; + if (message.retention != null && message.hasOwnProperty("retention")) + switch (message.retention) { + default: + return "retention: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.target != null && message.hasOwnProperty("target")) + switch (message.target) { + default: + return "target: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) - return "annotation." + error; + return "uninterpretedOption." + error; } } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } return null; }; /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.FieldOptions} FieldOptions */ - GeneratedCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) return object; - var message = new $root.google.protobuf.GeneratedCodeInfo(); - if (object.annotation) { - if (!Array.isArray(object.annotation)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); - message.annotation = []; - for (var i = 0; i < object.annotation.length; ++i) { - if (typeof object.annotation[i] !== "object") - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); - message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.debugRedact != null) + message.debugRedact = Boolean(object.debugRedact); + switch (object.retention) { + default: + if (typeof object.retention === "number") { + message.retention = object.retention; + break; + } + break; + case "RETENTION_UNKNOWN": + case 0: + message.retention = 0; + break; + case "RETENTION_RUNTIME": + case 1: + message.retention = 1; + break; + case "RETENTION_SOURCE": + case 2: + message.retention = 2; + break; + } + switch (object.target) { + default: + if (typeof object.target === "number") { + message.target = object.target; + break; + } + break; + case "TARGET_TYPE_UNKNOWN": + case 0: + message.target = 0; + break; + case "TARGET_TYPE_FILE": + case 1: + message.target = 1; + break; + case "TARGET_TYPE_EXTENSION_RANGE": + case 2: + message.target = 2; + break; + case "TARGET_TYPE_MESSAGE": + case 3: + message.target = 3; + break; + case "TARGET_TYPE_FIELD": + case 4: + message.target = 4; + break; + case "TARGET_TYPE_ONEOF": + case 5: + message.target = 5; + break; + case "TARGET_TYPE_ENUM": + case 6: + message.target = 6; + break; + case "TARGET_TYPE_ENUM_ENTRY": + case 7: + message.target = 7; + break; + case "TARGET_TYPE_SERVICE": + case 8: + message.target = 8; + break; + case "TARGET_TYPE_METHOD": + case 9: + message.target = 9; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } return message; }; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {google.protobuf.FieldOptions} message FieldOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GeneratedCodeInfo.toObject = function toObject(message, options) { + FieldOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.annotation = []; - if (message.annotation && message.annotation.length) { - object.annotation = []; - for (var j = 0; j < message.annotation.length; ++j) - object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object.unverifiedLazy = false; + object.debugRedact = false; + object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; + object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + object.debugRedact = message.debugRedact; + if (message.retention != null && message.hasOwnProperty("retention")) + object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention; + if (message.target != null && message.hasOwnProperty("target")) + object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); return object; }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this FieldOptions to JSON. * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @instance * @returns {Object.} JSON object */ - GeneratedCodeInfo.prototype.toJSON = function toJSON() { + FieldOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GeneratedCodeInfo + * Gets the default type url for FieldOptions * @function getTypeUrl - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + return typeUrlPrefix + "/google.protobuf.FieldOptions"; }; - GeneratedCodeInfo.Annotation = (function() { - - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [sourceFile] Annotation sourceFile - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic - */ - - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; - - /** - * Annotation sourceFile. - * @member {string} sourceFile - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.sourceFile = ""; - - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; - - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; - - /** - * Annotation semantic. - * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.semantic = 0; - - /** - * Creates a new Annotation instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance - */ - Annotation.create = function create(properties) { - return new Annotation(properties); - }; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); - return writer; - }; - - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - } - case 2: { - message.sourceFile = reader.string(); - break; - } - case 3: { - message.begin = reader.int32(); - break; - } - case 4: { - message.end = reader.int32(); - break; - } - case 5: { - message.semantic = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - if (!$util.isString(message.sourceFile)) - return "sourceFile: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - if (message.semantic != null && message.hasOwnProperty("semantic")) - switch (message.semantic) { - default: - return "semantic: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - */ - Annotation.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) - return object; - var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.sourceFile != null) - message.sourceFile = String(object.sourceFile); - if (object.begin != null) - message.begin = object.begin | 0; - if (object.end != null) - message.end = object.end | 0; - switch (object.semantic) { - default: - if (typeof object.semantic === "number") { - message.semantic = object.semantic; - break; - } - break; - case "NONE": - case 0: - message.semantic = 0; - break; - case "SET": - case 1: - message.semantic = 1; - break; - case "ALIAS": - case 2: - message.semantic = 2; - break; - } - return message; - }; - - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Annotation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - object.sourceFile = ""; - object.begin = 0; - object.end = 0; - object.semantic = options.enums === String ? "NONE" : 0; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - object.sourceFile = message.sourceFile; - if (message.begin != null && message.hasOwnProperty("begin")) - object.begin = message.begin; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - if (message.semantic != null && message.hasOwnProperty("semantic")) - object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; - return object; - }; - - /** - * Converts this Annotation to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - * @returns {Object.} JSON object - */ - Annotation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); - /** - * Gets the default type url for Annotation - * @function getTypeUrl - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; - }; + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); - /** - * Semantic enum. - * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} SET=1 SET value - * @property {number} ALIAS=2 ALIAS value - */ - Annotation.Semantic = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "SET"] = 1; - values[valuesById[2] = "ALIAS"] = 2; - return values; - })(); + /** + * OptionRetention enum. + * @name google.protobuf.FieldOptions.OptionRetention + * @enum {number} + * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value + * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value + * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value + */ + FieldOptions.OptionRetention = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETENTION_UNKNOWN"] = 0; + values[valuesById[1] = "RETENTION_RUNTIME"] = 1; + values[valuesById[2] = "RETENTION_SOURCE"] = 2; + return values; + })(); - return Annotation; + /** + * OptionTargetType enum. + * @name google.protobuf.FieldOptions.OptionTargetType + * @enum {number} + * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value + * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value + * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value + * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value + * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value + * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value + * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value + * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value + * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value + * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value + */ + FieldOptions.OptionTargetType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "TARGET_TYPE_FILE"] = 1; + values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2; + values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3; + values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4; + values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5; + values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6; + values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7; + values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8; + values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9; + return values; })(); - return GeneratedCodeInfo; + return FieldOptions; })(); - protobuf.Duration = (function() { + protobuf.OneofOptions = (function() { /** - * Properties of a Duration. + * Properties of an OneofOptions. * @memberof google.protobuf - * @interface IDuration - * @property {number|Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption */ /** - * Constructs a new Duration. + * Constructs a new OneofOptions. * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set */ - function Duration(properties) { + function OneofOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35725,89 +51967,78 @@ } /** - * Duration seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions * @instance */ - Duration.prototype.nanos = 0; + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new Duration instance using the specified properties. + * Creates a new OneofOptions instance using the specified properties. * @function create - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance */ - Duration.create = function create(properties) { - return new Duration(properties); + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); }; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encode = function encode(message, writer) { + OneofOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes an OneofOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decode = function decode(reader, length) { + OneofOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.seconds = reader.int64(); - break; - } - case 2: { - message.nanos = reader.int32(); + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: @@ -35819,146 +52050,143 @@ }; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decodeDelimited = function decodeDelimited(reader) { + OneofOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Duration message. + * Verifies an OneofOptions message. * @function verify - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Duration.verify = function verify(message) { + OneofOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } return null; }; /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.OneofOptions} OneofOptions */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) return object; - var message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } return message; }; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.Duration} message Duration + * @param {google.protobuf.OneofOptions} message OneofOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Duration.toObject = function toObject(message, options) { + OneofOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; return object; }; /** - * Converts this Duration to JSON. + * Converts this OneofOptions to JSON. * @function toJSON - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @instance * @returns {Object.} JSON object */ - Duration.prototype.toJSON = function toJSON() { + OneofOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Duration + * Gets the default type url for OneofOptions * @function getTypeUrl - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.Duration"; + return typeUrlPrefix + "/google.protobuf.OneofOptions"; }; - return Duration; + return OneofOptions; })(); - protobuf.Timestamp = (function() { + protobuf.EnumOptions = (function() { /** - * Properties of a Timestamp. + * Properties of an EnumOptions. * @memberof google.protobuf - * @interface ITimestamp - * @property {number|Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption */ /** - * Constructs a new Timestamp. + * Constructs a new EnumOptions. * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set */ - function Timestamp(properties) { + function EnumOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35966,89 +52194,120 @@ } /** - * Timestamp seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Timestamp + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions * @instance */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnumOptions.prototype.allowAlias = false; /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions * @instance */ - Timestamp.prototype.nanos = 0; + EnumOptions.prototype.deprecated = false; /** - * Creates a new Timestamp instance using the specified properties. + * EnumOptions deprecatedLegacyJsonFieldConflicts. + * @member {boolean} deprecatedLegacyJsonFieldConflicts + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. * @function create - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - * @returns {google.protobuf.Timestamp} Timestamp instance + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); }; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encode = function encode(message, writer) { + EnumOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes an EnumOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.EnumOptions} EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decode = function decode(reader, length) { + EnumOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.seconds = reader.int64(); + case 2: { + message.allowAlias = reader.bool(); break; } - case 2: { - message.nanos = reader.int32(); + case 3: { + message.deprecated = reader.bool(); + break; + } + case 6: { + message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: @@ -36060,146 +52319,167 @@ }; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.EnumOptions} EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { + EnumOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Timestamp message. + * Verifies an EnumOptions message. * @function verify - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Timestamp.verify = function verify(message) { + EnumOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") + return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } return null; }; /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.EnumOptions} EnumOptions */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) return object; - var message = new $root.google.protobuf.Timestamp(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.deprecatedLegacyJsonFieldConflicts != null) + message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } return message; }; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.Timestamp} message Timestamp + * @param {google.protobuf.EnumOptions} message EnumOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Timestamp.toObject = function toObject(message, options) { + EnumOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + object.allowAlias = false; + object.deprecated = false; + object.deprecatedLegacyJsonFieldConflicts = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; return object; }; /** - * Converts this Timestamp to JSON. + * Converts this EnumOptions to JSON. * @function toJSON - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @instance * @returns {Object.} JSON object */ - Timestamp.prototype.toJSON = function toJSON() { + EnumOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Timestamp + * Gets the default type url for EnumOptions * @function getTypeUrl - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.EnumOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.Timestamp"; + return typeUrlPrefix + "/google.protobuf.EnumOptions"; }; - return Timestamp; + return EnumOptions; })(); - protobuf.Any = (function() { + protobuf.EnumValueOptions = (function() { /** - * Properties of an Any. + * Properties of an EnumValueOptions. * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption */ /** - * Constructs a new Any. + * Constructs a new EnumValueOptions. * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set */ - function Any(properties) { + function EnumValueOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36207,89 +52487,92 @@ } /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions * @instance */ - Any.prototype.type_url = ""; + EnumValueOptions.prototype.deprecated = false; /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions * @instance */ - Any.prototype.value = $util.newBuffer([]); + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new Any instance using the specified properties. + * Creates a new EnumValueOptions instance using the specified properties. * @function create - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IAny=} [properties] Properties to set - * @returns {google.protobuf.Any} Any instance + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance */ - Any.create = function create(properties) { - return new Any(properties); + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); }; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encode = function encode(message, writer) { + EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decode = function decode(reader, length) { + EnumValueOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type_url = reader.string(); + message.deprecated = reader.bool(); break; } - case 2: { - message.value = reader.bytes(); + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: @@ -36301,139 +52584,152 @@ }; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decodeDelimited = function decodeDelimited(reader) { + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Any message. + * Verifies an EnumValueOptions message. * @function verify - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Any.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type_url != null && message.hasOwnProperty("type_url")) - if (!$util.isString(message.type_url)) - return "type_url: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } return null; }; /** - * Creates an Any message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions */ - Any.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Any) + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) return object; - var message = new $root.google.protobuf.Any(); - if (object.type_url != null) - message.type_url = String(object.type_url); - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } return message; }; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.Any} message Any + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Any.toObject = function toObject(message, options) { + EnumValueOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.type_url = ""; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.type_url != null && message.hasOwnProperty("type_url")) - object.type_url = message.type_url; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this Any to JSON. + * Converts this EnumValueOptions to JSON. * @function toJSON - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @instance * @returns {Object.} JSON object */ - Any.prototype.toJSON = function toJSON() { + EnumValueOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Any + * Gets the default type url for EnumValueOptions * @function getTypeUrl - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.Any"; + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; }; - return Any; + return EnumValueOptions; })(); - protobuf.Empty = (function() { + protobuf.ServiceOptions = (function() { /** - * Properties of an Empty. + * Properties of a ServiceOptions. * @memberof google.protobuf - * @interface IEmpty + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes */ /** - * Constructs a new Empty. + * Constructs a new ServiceOptions. * @memberof google.protobuf - * @classdesc Represents an Empty. - * @implements IEmpty + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions * @constructor - * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set */ - function Empty(properties) { + function ServiceOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36441,63 +52737,122 @@ } /** - * Creates a new Empty instance using the specified properties. + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + + /** + * Creates a new ServiceOptions instance using the specified properties. * @function create - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.IEmpty=} [properties] Properties to set - * @returns {google.protobuf.Empty} Empty instance + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance */ - Empty.create = function create(properties) { - return new Empty(properties); + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); }; /** - * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Empty.encode = function encode(message, writer) { + ServiceOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); return writer; }; /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Empty.encodeDelimited = function encodeDelimited(message, writer) { + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Empty message from the specified reader or buffer. + * Decodes a ServiceOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Empty.decode = function decode(reader, length) { + ServiceOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -36507,110 +52862,172 @@ }; /** - * Decodes an Empty message from the specified reader or buffer, length delimited. + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Empty.decodeDelimited = function decodeDelimited(reader) { + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Empty message. + * Verifies a ServiceOptions message. * @function verify - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Empty.verify = function verify(message) { + ServiceOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; return null; }; /** - * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.ServiceOptions} ServiceOptions */ - Empty.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Empty) + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) return object; - return new $root.google.protobuf.Empty(); + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; }; /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.Empty} message Empty + * @param {google.protobuf.ServiceOptions} message ServiceOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Empty.toObject = function toObject() { - return {}; + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; }; /** - * Converts this Empty to JSON. + * Converts this ServiceOptions to JSON. * @function toJSON - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @instance * @returns {Object.} JSON object */ - Empty.prototype.toJSON = function toJSON() { + ServiceOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Empty + * Gets the default type url for ServiceOptions * @function getTypeUrl - * @memberof google.protobuf.Empty + * @memberof google.protobuf.ServiceOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.Empty"; + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; }; - return Empty; + return ServiceOptions; })(); - protobuf.FieldMask = (function() { + protobuf.MethodOptions = (function() { /** - * Properties of a FieldMask. + * Properties of a MethodOptions. * @memberof google.protobuf - * @interface IFieldMask - * @property {Array.|null} [paths] FieldMask paths + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.longrunning.IOperationInfo|null} [".google.longrunning.operationInfo"] MethodOptions .google.longrunning.operationInfo + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature */ /** - * Constructs a new FieldMask. + * Constructs a new MethodOptions. * @memberof google.protobuf - * @classdesc Represents a FieldMask. - * @implements IFieldMask + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions * @constructor - * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set */ - function FieldMask(properties) { - this.paths = []; + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36618,78 +53035,151 @@ } /** - * FieldMask paths. - * @member {Array.} paths - * @memberof google.protobuf.FieldMask + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions * @instance */ - FieldMask.prototype.paths = $util.emptyArray; + MethodOptions.prototype.deprecated = false; /** - * Creates a new FieldMask instance using the specified properties. + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.longrunning.operationInfo. + * @member {google.longrunning.IOperationInfo|null|undefined} .google.longrunning.operationInfo + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.longrunning.operationInfo"] = null; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + + /** + * Creates a new MethodOptions instance using the specified properties. * @function create - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - * @returns {google.protobuf.FieldMask} FieldMask instance + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance */ - FieldMask.create = function create(properties) { - return new FieldMask(properties); + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); }; /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldMask.encode = function encode(message, writer) { + MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.longrunning.operationInfo"] != null && Object.hasOwnProperty.call(message, ".google.longrunning.operationInfo")) + $root.google.longrunning.OperationInfo.encode(message[".google.longrunning.operationInfo"], writer.uint32(/* id 1049, wireType 2 =*/8394).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldMask message from the specified reader or buffer. + * Decodes a MethodOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldMask} FieldMask + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldMask.decode = function decode(reader, length) { + MethodOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.decode(reader, reader.uint32()); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); break; } default: @@ -36701,350 +53191,251 @@ }; /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldMask} FieldMask + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldMask.decodeDelimited = function decodeDelimited(reader) { + MethodOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldMask message. + * Verifies a MethodOptions message. * @function verify - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldMask.verify = function verify(message) { + MethodOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) { + var error = $root.google.longrunning.OperationInfo.verify(message[".google.longrunning.operationInfo"]); + if (error) + return ".google.longrunning.operationInfo." + error; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; } return null; }; /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldMask} FieldMask + * @returns {google.protobuf.MethodOptions} MethodOptions */ - FieldMask.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldMask) + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) return object; - var message = new $root.google.protobuf.FieldMask(); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".google.protobuf.FieldMask.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.longrunning.operationInfo"] != null) { + if (typeof object[".google.longrunning.operationInfo"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.longrunning.operationInfo: object expected"); + message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.fromObject(object[".google.longrunning.operationInfo"]); + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); } return message; }; /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.FieldMask} message FieldMask + * @param {google.protobuf.MethodOptions} message MethodOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldMask.toObject = function toObject(message, options) { + MethodOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.longrunning.operationInfo"] = null; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) + object[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.toObject(message[".google.longrunning.operationInfo"], options); + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; }; /** - * Converts this FieldMask to JSON. + * Converts this MethodOptions to JSON. * @function toJSON - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @instance * @returns {Object.} JSON object */ - FieldMask.prototype.toJSON = function toJSON() { + MethodOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FieldMask + * Gets the default type url for MethodOptions * @function getTypeUrl - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.MethodOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.FieldMask"; - }; - - return FieldMask; - })(); - - return protobuf; - })(); - - google.longrunning = (function() { - - /** - * Namespace longrunning. - * @memberof google - * @namespace - */ - var longrunning = {}; - - longrunning.Operations = (function() { - - /** - * Constructs a new Operations service. - * @memberof google.longrunning - * @classdesc Represents an Operations - * @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 Operations(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Operations.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Operations; - - /** - * Creates new Operations service using the specified rpc implementation. - * @function create - * @memberof google.longrunning.Operations - * @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 {Operations} RPC service. Useful where requests and/or responses are streamed. - */ - Operations.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + return typeUrlPrefix + "/google.protobuf.MethodOptions"; }; /** - * Callback as used by {@link google.longrunning.Operations|listOperations}. - * @memberof google.longrunning.Operations - * @typedef ListOperationsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.ListOperationsResponse} [response] ListOperationsResponse - */ - - /** - * Calls ListOperations. - * @function listOperations - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.IListOperationsRequest} request ListOperationsRequest message or plain object - * @param {google.longrunning.Operations.ListOperationsCallback} callback Node-style callback called with the error, if any, and ListOperationsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Operations.prototype.listOperations = function listOperations(request, callback) { - return this.rpcCall(listOperations, $root.google.longrunning.ListOperationsRequest, $root.google.longrunning.ListOperationsResponse, request, callback); - }, "name", { value: "ListOperations" }); - - /** - * Calls ListOperations. - * @function listOperations - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.IListOperationsRequest} request ListOperationsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.longrunning.Operations|getOperation}. - * @memberof google.longrunning.Operations - * @typedef GetOperationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls GetOperation. - * @function getOperation - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.IGetOperationRequest} request GetOperationRequest message or plain object - * @param {google.longrunning.Operations.GetOperationCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Operations.prototype.getOperation = function getOperation(request, callback) { - return this.rpcCall(getOperation, $root.google.longrunning.GetOperationRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "GetOperation" }); - - /** - * Calls GetOperation. - * @function getOperation - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.IGetOperationRequest} request GetOperationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.longrunning.Operations|deleteOperation}. - * @memberof google.longrunning.Operations - * @typedef DeleteOperationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteOperation. - * @function deleteOperation - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.IDeleteOperationRequest} request DeleteOperationRequest message or plain object - * @param {google.longrunning.Operations.DeleteOperationCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Operations.prototype.deleteOperation = function deleteOperation(request, callback) { - return this.rpcCall(deleteOperation, $root.google.longrunning.DeleteOperationRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteOperation" }); - - /** - * Calls DeleteOperation. - * @function deleteOperation - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.IDeleteOperationRequest} request DeleteOperationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.longrunning.Operations|cancelOperation}. - * @memberof google.longrunning.Operations - * @typedef CancelOperationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls CancelOperation. - * @function cancelOperation - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.ICancelOperationRequest} request CancelOperationRequest message or plain object - * @param {google.longrunning.Operations.CancelOperationCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Operations.prototype.cancelOperation = function cancelOperation(request, callback) { - return this.rpcCall(cancelOperation, $root.google.longrunning.CancelOperationRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelOperation" }); - - /** - * Calls CancelOperation. - * @function cancelOperation - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.ICancelOperationRequest} request CancelOperationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.longrunning.Operations|waitOperation}. - * @memberof google.longrunning.Operations - * @typedef WaitOperationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls WaitOperation. - * @function waitOperation - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.IWaitOperationRequest} request WaitOperationRequest message or plain object - * @param {google.longrunning.Operations.WaitOperationCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Operations.prototype.waitOperation = function waitOperation(request, callback) { - return this.rpcCall(waitOperation, $root.google.longrunning.WaitOperationRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "WaitOperation" }); - - /** - * Calls WaitOperation. - * @function waitOperation - * @memberof google.longrunning.Operations - * @instance - * @param {google.longrunning.IWaitOperationRequest} request WaitOperationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); - return Operations; + return MethodOptions; })(); - longrunning.Operation = (function() { + protobuf.UninterpretedOption = (function() { /** - * Properties of an Operation. - * @memberof google.longrunning - * @interface IOperation - * @property {string|null} [name] Operation name - * @property {google.protobuf.IAny|null} [metadata] Operation metadata - * @property {boolean|null} [done] Operation done - * @property {google.rpc.IStatus|null} [error] Operation error - * @property {google.protobuf.IAny|null} [response] Operation response + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue */ /** - * Constructs a new Operation. - * @memberof google.longrunning - * @classdesc Represents an Operation. - * @implements IOperation + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption * @constructor - * @param {google.longrunning.IOperation=} [properties] Properties to set + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set */ - function Operation(properties) { + function UninterpretedOption(properties) { + this.name = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37052,145 +53443,162 @@ } /** - * Operation name. - * @member {string} name - * @memberof google.longrunning.Operation + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption * @instance */ - Operation.prototype.name = ""; + UninterpretedOption.prototype.name = $util.emptyArray; /** - * Operation metadata. - * @member {google.protobuf.IAny|null|undefined} metadata - * @memberof google.longrunning.Operation + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - Operation.prototype.metadata = null; + UninterpretedOption.prototype.identifierValue = ""; /** - * Operation done. - * @member {boolean} done - * @memberof google.longrunning.Operation + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - Operation.prototype.done = false; + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Operation error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.longrunning.Operation + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - Operation.prototype.error = null; + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Operation response. - * @member {google.protobuf.IAny|null|undefined} response - * @memberof google.longrunning.Operation + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - Operation.prototype.response = null; + UninterpretedOption.prototype.doubleValue = 0; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); /** - * Operation result. - * @member {"error"|"response"|undefined} result - * @memberof google.longrunning.Operation + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - Object.defineProperty(Operation.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["error", "response"]), - set: $util.oneOfSetter($oneOfFields) - }); + UninterpretedOption.prototype.aggregateValue = ""; /** - * Creates a new Operation instance using the specified properties. + * Creates a new UninterpretedOption instance using the specified properties. * @function create - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.longrunning.IOperation=} [properties] Properties to set - * @returns {google.longrunning.Operation} Operation instance + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance */ - Operation.create = function create(properties) { - return new Operation(properties); + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); }; /** - * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. * @function encode - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.longrunning.IOperation} message Operation message or plain object to encode + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operation.encode = function encode(message, writer) { + UninterpretedOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Any.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.done != null && Object.hasOwnProperty.call(message, "done")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.done); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.response != null && Object.hasOwnProperty.call(message, "response")) - $root.google.protobuf.Any.encode(message.response, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); return writer; }; /** - * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. * @function encodeDelimited - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.longrunning.IOperation} message Operation message or plain object to encode + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operation.encodeDelimited = function encodeDelimited(message, writer) { + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Operation message from the specified reader or buffer. + * Decodes an UninterpretedOption message from the specified reader or buffer. * @function decode - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.longrunning.Operation} Operation + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operation.decode = function decode(reader, length) { + UninterpretedOption.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.Operation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } case 2: { - message.metadata = $root.google.protobuf.Any.decode(reader, reader.uint32()); + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); break; } case 3: { - message.done = reader.bool(); + message.identifierValue = reader.string(); break; } case 4: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + message.positiveIntValue = reader.uint64(); break; } case 5: { - message.response = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); break; } default: @@ -37202,183 +53610,454 @@ }; /** - * Decodes an Operation message from the specified reader or buffer, length delimited. + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.longrunning.Operation} Operation + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operation.decodeDelimited = function decodeDelimited(reader) { + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Operation message. + * Verifies an UninterpretedOption message. * @function verify - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Operation.verify = function verify(message) { + UninterpretedOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Any.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.done != null && message.hasOwnProperty("done")) - if (typeof message.done !== "boolean") - return "done: boolean expected"; - if (message.error != null && message.hasOwnProperty("error")) { - properties.result = 1; - { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.response != null && message.hasOwnProperty("response")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - { - var error = $root.google.protobuf.Any.verify(message.response); + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); if (error) - return "response." + error; + return "name." + error; } } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; return null; }; /** - * Creates an Operation message from a plain object. Also converts values to their respective internal types. + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static * @param {Object.} object Plain object - * @returns {google.longrunning.Operation} Operation + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ - Operation.fromObject = function fromObject(object) { - if (object instanceof $root.google.longrunning.Operation) + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) return object; - var message = new $root.google.longrunning.Operation(); - if (object.name != null) - message.name = String(object.name); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.longrunning.Operation.metadata: object expected"); - message.metadata = $root.google.protobuf.Any.fromObject(object.metadata); - } - if (object.done != null) - message.done = Boolean(object.done); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.longrunning.Operation.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.response != null) { - if (typeof object.response !== "object") - throw TypeError(".google.longrunning.Operation.response: object expected"); - message.response = $root.google.protobuf.Any.fromObject(object.response); + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); return message; }; /** - * Creates a plain object from an Operation message. Also converts values to other types if specified. + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. * @function toObject - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.longrunning.Operation} message Operation + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Operation.toObject = function toObject(message, options) { + UninterpretedOption.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.name = []; if (options.defaults) { - object.name = ""; - object.metadata = null; - object.done = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Any.toObject(message.metadata, options); - if (message.done != null && message.hasOwnProperty("done")) - object.done = message.done; - if (message.error != null && message.hasOwnProperty("error")) { - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (options.oneofs) - object.result = "error"; + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; } - if (message.response != null && message.hasOwnProperty("response")) { - object.response = $root.google.protobuf.Any.toObject(message.response, options); - if (options.oneofs) - object.result = "response"; + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; return object; }; /** - * Converts this Operation to JSON. + * Converts this UninterpretedOption to JSON. * @function toJSON - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @instance * @returns {Object.} JSON object */ - Operation.prototype.toJSON = function toJSON() { + UninterpretedOption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Operation + * Gets the default type url for UninterpretedOption * @function getTypeUrl - * @memberof google.longrunning.Operation + * @memberof google.protobuf.UninterpretedOption * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Operation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.longrunning.Operation"; + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; }; - return Operation; + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + + return NamePart; + })(); + + return UninterpretedOption; })(); - longrunning.GetOperationRequest = (function() { + protobuf.SourceCodeInfo = (function() { /** - * Properties of a GetOperationRequest. - * @memberof google.longrunning - * @interface IGetOperationRequest - * @property {string|null} [name] GetOperationRequest name + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location */ /** - * Constructs a new GetOperationRequest. - * @memberof google.longrunning - * @classdesc Represents a GetOperationRequest. - * @implements IGetOperationRequest + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo * @constructor - * @param {google.longrunning.IGetOperationRequest=} [properties] Properties to set + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set */ - function GetOperationRequest(properties) { + function SourceCodeInfo(properties) { + this.location = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37386,75 +54065,78 @@ } /** - * GetOperationRequest name. - * @member {string} name - * @memberof google.longrunning.GetOperationRequest + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo * @instance */ - GetOperationRequest.prototype.name = ""; + SourceCodeInfo.prototype.location = $util.emptyArray; /** - * Creates a new GetOperationRequest instance using the specified properties. + * Creates a new SourceCodeInfo instance using the specified properties. * @function create - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.longrunning.IGetOperationRequest=} [properties] Properties to set - * @returns {google.longrunning.GetOperationRequest} GetOperationRequest instance + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance */ - GetOperationRequest.create = function create(properties) { - return new GetOperationRequest(properties); + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); }; /** - * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encode - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.longrunning.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOperationRequest.encode = function encode(message, writer) { + SourceCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.longrunning.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetOperationRequest message from the specified reader or buffer. + * Decodes a SourceCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.longrunning.GetOperationRequest} GetOperationRequest + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOperationRequest.decode = function decode(reader, length) { + SourceCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.GetOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); break; } default: @@ -37466,125 +54148,502 @@ }; /** - * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.longrunning.GetOperationRequest} GetOperationRequest + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetOperationRequest message. + * Verifies a SourceCodeInfo message. * @function verify - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetOperationRequest.verify = function verify(message) { + SourceCodeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } return null; }; /** - * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static * @param {Object.} object Plain object - * @returns {google.longrunning.GetOperationRequest} GetOperationRequest + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo */ - GetOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.longrunning.GetOperationRequest) + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) return object; - var message = new $root.google.longrunning.GetOperationRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } return message; }; /** - * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.longrunning.GetOperationRequest} message GetOperationRequest + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetOperationRequest.toObject = function toObject(message, options) { + SourceCodeInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } return object; }; /** - * Converts this GetOperationRequest to JSON. + * Converts this SourceCodeInfo to JSON. * @function toJSON - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @instance * @returns {Object.} JSON object */ - GetOperationRequest.prototype.toJSON = function toJSON() { + SourceCodeInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetOperationRequest + * Gets the default type url for SourceCodeInfo * @function getTypeUrl - * @memberof google.longrunning.GetOperationRequest + * @memberof google.protobuf.SourceCodeInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.longrunning.GetOperationRequest"; + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; }; - return GetOperationRequest; + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + + return Location; + })(); + + return SourceCodeInfo; })(); - longrunning.ListOperationsRequest = (function() { + protobuf.GeneratedCodeInfo = (function() { /** - * Properties of a ListOperationsRequest. - * @memberof google.longrunning - * @interface IListOperationsRequest - * @property {string|null} [name] ListOperationsRequest name - * @property {string|null} [filter] ListOperationsRequest filter - * @property {number|null} [pageSize] ListOperationsRequest pageSize - * @property {string|null} [pageToken] ListOperationsRequest pageToken + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation */ /** - * Constructs a new ListOperationsRequest. - * @memberof google.longrunning - * @classdesc Represents a ListOperationsRequest. - * @implements IListOperationsRequest + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo * @constructor - * @param {google.longrunning.IListOperationsRequest=} [properties] Properties to set + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set */ - function ListOperationsRequest(properties) { + function GeneratedCodeInfo(properties) { + this.annotation = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37592,117 +54651,78 @@ } /** - * ListOperationsRequest name. - * @member {string} name - * @memberof google.longrunning.ListOperationsRequest - * @instance - */ - ListOperationsRequest.prototype.name = ""; - - /** - * ListOperationsRequest filter. - * @member {string} filter - * @memberof google.longrunning.ListOperationsRequest - * @instance - */ - ListOperationsRequest.prototype.filter = ""; - - /** - * ListOperationsRequest pageSize. - * @member {number} pageSize - * @memberof google.longrunning.ListOperationsRequest - * @instance - */ - ListOperationsRequest.prototype.pageSize = 0; - - /** - * ListOperationsRequest pageToken. - * @member {string} pageToken - * @memberof google.longrunning.ListOperationsRequest + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo * @instance */ - ListOperationsRequest.prototype.pageToken = ""; + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; /** - * Creates a new ListOperationsRequest instance using the specified properties. + * Creates a new GeneratedCodeInfo instance using the specified properties. * @function create - * @memberof google.longrunning.ListOperationsRequest + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.longrunning.IListOperationsRequest=} [properties] Properties to set - * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest instance + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance */ - ListOperationsRequest.create = function create(properties) { - return new ListOperationsRequest(properties); + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); }; /** - * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encode - * @memberof google.longrunning.ListOperationsRequest + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.longrunning.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsRequest.encode = function encode(message, writer) { + GeneratedCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.longrunning.ListOperationsRequest + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.longrunning.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.longrunning.ListOperationsRequest + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsRequest.decode = function decode(reader, length) { + GeneratedCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.ListOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: { - message.name = reader.string(); - break; - } case 1: { - message.filter = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); break; } default: @@ -37714,149 +54734,501 @@ }; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.longrunning.ListOperationsRequest + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListOperationsRequest message. + * Verifies a GeneratedCodeInfo message. * @function verify - * @memberof google.longrunning.ListOperationsRequest + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListOperationsRequest.verify = function verify(message) { + GeneratedCodeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } return null; }; /** - * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.longrunning.ListOperationsRequest + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {Object.} object Plain object - * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo */ - ListOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.longrunning.ListOperationsRequest) + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; return object; - var message = new $root.google.longrunning.ListOperationsRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - return message; - }; + }; - /** - * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.longrunning.ListOperationsRequest - * @static - * @param {google.longrunning.ListOperationsRequest} message ListOperationsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListOperationsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.name = ""; - } - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListOperationsRequest to JSON. - * @function toJSON - * @memberof google.longrunning.ListOperationsRequest - * @instance - * @returns {Object.} JSON object - */ - ListOperationsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; - /** - * Gets the default type url for ListOperationsRequest - * @function getTypeUrl - * @memberof google.longrunning.ListOperationsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.longrunning.ListOperationsRequest"; - }; + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); - return ListOperationsRequest; + return Annotation; + })(); + + return GeneratedCodeInfo; })(); - longrunning.ListOperationsResponse = (function() { + protobuf.Duration = (function() { /** - * Properties of a ListOperationsResponse. - * @memberof google.longrunning - * @interface IListOperationsResponse - * @property {Array.|null} [operations] ListOperationsResponse operations - * @property {string|null} [nextPageToken] ListOperationsResponse nextPageToken + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos */ /** - * Constructs a new ListOperationsResponse. - * @memberof google.longrunning - * @classdesc Represents a ListOperationsResponse. - * @implements IListOperationsResponse + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration * @constructor - * @param {google.longrunning.IListOperationsResponse=} [properties] Properties to set + * @param {google.protobuf.IDuration=} [properties] Properties to set */ - function ListOperationsResponse(properties) { - this.operations = []; + function Duration(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37864,92 +55236,89 @@ } /** - * ListOperationsResponse operations. - * @member {Array.} operations - * @memberof google.longrunning.ListOperationsResponse + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration * @instance */ - ListOperationsResponse.prototype.operations = $util.emptyArray; + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ListOperationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.longrunning.ListOperationsResponse + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration * @instance */ - ListOperationsResponse.prototype.nextPageToken = ""; + Duration.prototype.nanos = 0; /** - * Creates a new ListOperationsResponse instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @function create - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static - * @param {google.longrunning.IListOperationsResponse=} [properties] Properties to set - * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse instance + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance */ - ListOperationsResponse.create = function create(properties) { - return new ListOperationsResponse(properties); + Duration.create = function create(properties) { + return new Duration(properties); }; /** - * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. * @function encode - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static - * @param {google.longrunning.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {google.protobuf.IDuration} message Duration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsResponse.encode = function encode(message, writer) { + Duration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.operations != null && message.operations.length) - for (var i = 0; i < message.operations.length; ++i) - $root.google.longrunning.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; /** - * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. * @function encodeDelimited - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static - * @param {google.longrunning.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {google.protobuf.IDuration} message Duration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + Duration.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @function decode - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse + * @returns {google.protobuf.Duration} Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsResponse.decode = function decode(reader, length) { + Duration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.ListOperationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.operations && message.operations.length)) - message.operations = []; - message.operations.push($root.google.longrunning.Operation.decode(reader, reader.uint32())); + message.seconds = reader.int64(); break; } case 2: { - message.nextPageToken = reader.string(); + message.nanos = reader.int32(); break; } default: @@ -37961,148 +55330,146 @@ }; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse + * @returns {google.protobuf.Duration} Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) { + Duration.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListOperationsResponse message. + * Verifies a Duration message. * @function verify - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListOperationsResponse.verify = function verify(message) { + Duration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.operations != null && message.hasOwnProperty("operations")) { - if (!Array.isArray(message.operations)) - return "operations: array expected"; - for (var i = 0; i < message.operations.length; ++i) { - var error = $root.google.longrunning.Operation.verify(message.operations[i]); - if (error) - return "operations." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; return null; }; /** - * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static * @param {Object.} object Plain object - * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse + * @returns {google.protobuf.Duration} Duration */ - ListOperationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.longrunning.ListOperationsResponse) + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) return object; - var message = new $root.google.longrunning.ListOperationsResponse(); - if (object.operations) { - if (!Array.isArray(object.operations)) - throw TypeError(".google.longrunning.ListOperationsResponse.operations: array expected"); - message.operations = []; - for (var i = 0; i < object.operations.length; ++i) { - if (typeof object.operations[i] !== "object") - throw TypeError(".google.longrunning.ListOperationsResponse.operations: object expected"); - message.operations[i] = $root.google.longrunning.Operation.fromObject(object.operations[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; return message; }; /** - * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a Duration message. Also converts values to other types if specified. * @function toObject - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static - * @param {google.longrunning.ListOperationsResponse} message ListOperationsResponse + * @param {google.protobuf.Duration} message Duration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListOperationsResponse.toObject = function toObject(message, options) { + Duration.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.operations = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.operations && message.operations.length) { - object.operations = []; - for (var j = 0; j < message.operations.length; ++j) - object.operations[j] = $root.google.longrunning.Operation.toObject(message.operations[j], options); + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; return object; }; /** - * Converts this ListOperationsResponse to JSON. + * Converts this Duration to JSON. * @function toJSON - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @instance * @returns {Object.} JSON object */ - ListOperationsResponse.prototype.toJSON = function toJSON() { + Duration.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListOperationsResponse + * Gets the default type url for Duration * @function getTypeUrl - * @memberof google.longrunning.ListOperationsResponse + * @memberof google.protobuf.Duration * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListOperationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.longrunning.ListOperationsResponse"; + return typeUrlPrefix + "/google.protobuf.Duration"; }; - return ListOperationsResponse; + return Duration; })(); - longrunning.CancelOperationRequest = (function() { + protobuf.Any = (function() { /** - * Properties of a CancelOperationRequest. - * @memberof google.longrunning - * @interface ICancelOperationRequest - * @property {string|null} [name] CancelOperationRequest name + * Properties of an Any. + * @memberof google.protobuf + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value */ /** - * Constructs a new CancelOperationRequest. - * @memberof google.longrunning - * @classdesc Represents a CancelOperationRequest. - * @implements ICancelOperationRequest + * Constructs a new Any. + * @memberof google.protobuf + * @classdesc Represents an Any. + * @implements IAny * @constructor - * @param {google.longrunning.ICancelOperationRequest=} [properties] Properties to set + * @param {google.protobuf.IAny=} [properties] Properties to set */ - function CancelOperationRequest(properties) { + function Any(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38110,75 +55477,89 @@ } /** - * CancelOperationRequest name. - * @member {string} name - * @memberof google.longrunning.CancelOperationRequest + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any * @instance */ - CancelOperationRequest.prototype.name = ""; + Any.prototype.type_url = ""; /** - * Creates a new CancelOperationRequest instance using the specified properties. + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); + + /** + * Creates a new Any instance using the specified properties. * @function create - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static - * @param {google.longrunning.ICancelOperationRequest=} [properties] Properties to set - * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest instance + * @param {google.protobuf.IAny=} [properties] Properties to set + * @returns {google.protobuf.Any} Any instance */ - CancelOperationRequest.create = function create(properties) { - return new CancelOperationRequest(properties); + Any.create = function create(properties) { + return new Any(properties); }; /** - * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encode - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static - * @param {google.longrunning.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelOperationRequest.encode = function encode(message, writer) { + Any.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encodeDelimited - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static - * @param {google.longrunning.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + Any.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @function decode - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelOperationRequest.decode = function decode(reader, length) { + Any.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.CancelOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.type_url = reader.string(); + break; + } + case 2: { + message.value = reader.bytes(); break; } default: @@ -38190,122 +55571,139 @@ }; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { + Any.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelOperationRequest message. + * Verifies an Any message. * @function verify - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelOperationRequest.verify = function verify(message) { + Any.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static * @param {Object.} object Plain object - * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest + * @returns {google.protobuf.Any} Any */ - CancelOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.longrunning.CancelOperationRequest) + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) return object; - var message = new $root.google.longrunning.CancelOperationRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; return message; }; /** - * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from an Any message. Also converts values to other types if specified. * @function toObject - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static - * @param {google.longrunning.CancelOperationRequest} message CancelOperationRequest + * @param {google.protobuf.Any} message Any * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelOperationRequest.toObject = function toObject(message, options) { + Any.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this CancelOperationRequest to JSON. + * Converts this Any to JSON. * @function toJSON - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @instance * @returns {Object.} JSON object */ - CancelOperationRequest.prototype.toJSON = function toJSON() { + Any.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelOperationRequest + * Gets the default type url for Any * @function getTypeUrl - * @memberof google.longrunning.CancelOperationRequest + * @memberof google.protobuf.Any * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.longrunning.CancelOperationRequest"; + return typeUrlPrefix + "/google.protobuf.Any"; }; - return CancelOperationRequest; + return Any; })(); - longrunning.DeleteOperationRequest = (function() { + protobuf.Empty = (function() { /** - * Properties of a DeleteOperationRequest. - * @memberof google.longrunning - * @interface IDeleteOperationRequest - * @property {string|null} [name] DeleteOperationRequest name + * Properties of an Empty. + * @memberof google.protobuf + * @interface IEmpty */ /** - * Constructs a new DeleteOperationRequest. - * @memberof google.longrunning - * @classdesc Represents a DeleteOperationRequest. - * @implements IDeleteOperationRequest + * Constructs a new Empty. + * @memberof google.protobuf + * @classdesc Represents an Empty. + * @implements IEmpty * @constructor - * @param {google.longrunning.IDeleteOperationRequest=} [properties] Properties to set + * @param {google.protobuf.IEmpty=} [properties] Properties to set */ - function DeleteOperationRequest(properties) { + function Empty(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38313,77 +55711,63 @@ } /** - * DeleteOperationRequest name. - * @member {string} name - * @memberof google.longrunning.DeleteOperationRequest - * @instance - */ - DeleteOperationRequest.prototype.name = ""; - - /** - * Creates a new DeleteOperationRequest instance using the specified properties. + * Creates a new Empty instance using the specified properties. * @function create - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static - * @param {google.longrunning.IDeleteOperationRequest=} [properties] Properties to set - * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest instance + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance */ - DeleteOperationRequest.create = function create(properties) { - return new DeleteOperationRequest(properties); + Empty.create = function create(properties) { + return new Empty(properties); }; /** - * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @function encode - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static - * @param {google.longrunning.IDeleteOperationRequest} message DeleteOperationRequest message or plain object to encode + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteOperationRequest.encode = function encode(message, writer) { + Empty.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @function encodeDelimited - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static - * @param {google.longrunning.IDeleteOperationRequest} message DeleteOperationRequest message or plain object to encode + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + Empty.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteOperationRequest message from the specified reader or buffer. + * Decodes an Empty message from the specified reader or buffer. * @function decode - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest + * @returns {google.protobuf.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteOperationRequest.decode = function decode(reader, length) { + Empty.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.DeleteOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -38393,123 +55777,110 @@ }; /** - * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited. + * Decodes an Empty message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest + * @returns {google.protobuf.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteOperationRequest.decodeDelimited = function decodeDelimited(reader) { + Empty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteOperationRequest message. + * Verifies an Empty message. * @function verify - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteOperationRequest.verify = function verify(message) { + Empty.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; return null; }; /** - * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static * @param {Object.} object Plain object - * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest + * @returns {google.protobuf.Empty} Empty */ - DeleteOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.longrunning.DeleteOperationRequest) + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) return object; - var message = new $root.google.longrunning.DeleteOperationRequest(); - if (object.name != null) - message.name = String(object.name); - return message; + return new $root.google.protobuf.Empty(); }; /** - * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from an Empty message. Also converts values to other types if specified. * @function toObject - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static - * @param {google.longrunning.DeleteOperationRequest} message DeleteOperationRequest + * @param {google.protobuf.Empty} message Empty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteOperationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; + Empty.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteOperationRequest to JSON. + * Converts this Empty to JSON. * @function toJSON - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @instance * @returns {Object.} JSON object */ - DeleteOperationRequest.prototype.toJSON = function toJSON() { + Empty.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteOperationRequest + * Gets the default type url for Empty * @function getTypeUrl - * @memberof google.longrunning.DeleteOperationRequest + * @memberof google.protobuf.Empty * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.longrunning.DeleteOperationRequest"; + return typeUrlPrefix + "/google.protobuf.Empty"; }; - return DeleteOperationRequest; + return Empty; })(); - longrunning.WaitOperationRequest = (function() { + protobuf.Timestamp = (function() { /** - * Properties of a WaitOperationRequest. - * @memberof google.longrunning - * @interface IWaitOperationRequest - * @property {string|null} [name] WaitOperationRequest name - * @property {google.protobuf.IDuration|null} [timeout] WaitOperationRequest timeout + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos */ /** - * Constructs a new WaitOperationRequest. - * @memberof google.longrunning - * @classdesc Represents a WaitOperationRequest. - * @implements IWaitOperationRequest + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp * @constructor - * @param {google.longrunning.IWaitOperationRequest=} [properties] Properties to set + * @param {google.protobuf.ITimestamp=} [properties] Properties to set */ - function WaitOperationRequest(properties) { + function Timestamp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38517,89 +55888,89 @@ } /** - * WaitOperationRequest name. - * @member {string} name - * @memberof google.longrunning.WaitOperationRequest + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp * @instance */ - WaitOperationRequest.prototype.name = ""; + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * WaitOperationRequest timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.longrunning.WaitOperationRequest + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp * @instance */ - WaitOperationRequest.prototype.timeout = null; + Timestamp.prototype.nanos = 0; /** - * Creates a new WaitOperationRequest instance using the specified properties. + * Creates a new Timestamp instance using the specified properties. * @function create - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static - * @param {google.longrunning.IWaitOperationRequest=} [properties] Properties to set - * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest instance + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance */ - WaitOperationRequest.create = function create(properties) { - return new WaitOperationRequest(properties); + Timestamp.create = function create(properties) { + return new Timestamp(properties); }; /** - * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. * @function encode - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static - * @param {google.longrunning.IWaitOperationRequest} message WaitOperationRequest message or plain object to encode + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WaitOperationRequest.encode = function encode(message, writer) { + Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; /** - * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. * @function encodeDelimited - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static - * @param {google.longrunning.IWaitOperationRequest} message WaitOperationRequest message or plain object to encode + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WaitOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WaitOperationRequest message from the specified reader or buffer. + * Decodes a Timestamp message from the specified reader or buffer. * @function decode - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest + * @returns {google.protobuf.Timestamp} Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WaitOperationRequest.decode = function decode(reader, length) { + Timestamp.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.WaitOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.seconds = reader.int64(); break; } case 2: { - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.nanos = reader.int32(); break; } default: @@ -38611,137 +55982,146 @@ }; /** - * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest + * @returns {google.protobuf.Timestamp} Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WaitOperationRequest.decodeDelimited = function decodeDelimited(reader) { + Timestamp.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WaitOperationRequest message. + * Verifies a Timestamp message. * @function verify - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WaitOperationRequest.verify = function verify(message) { + Timestamp.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; return null; }; /** - * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static * @param {Object.} object Plain object - * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest + * @returns {google.protobuf.Timestamp} Timestamp */ - WaitOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.longrunning.WaitOperationRequest) + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) return object; - var message = new $root.google.longrunning.WaitOperationRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.timeout != null) { - if (typeof object.timeout !== "object") - throw TypeError(".google.longrunning.WaitOperationRequest.timeout: object expected"); - message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); - } + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; return message; }; /** - * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. * @function toObject - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static - * @param {google.longrunning.WaitOperationRequest} message WaitOperationRequest + * @param {google.protobuf.Timestamp} message Timestamp * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WaitOperationRequest.toObject = function toObject(message, options) { + Timestamp.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.timeout = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.timeout != null && message.hasOwnProperty("timeout")) - object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; return object; }; /** - * Converts this WaitOperationRequest to JSON. + * Converts this Timestamp to JSON. * @function toJSON - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @instance * @returns {Object.} JSON object */ - WaitOperationRequest.prototype.toJSON = function toJSON() { + Timestamp.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WaitOperationRequest + * Gets the default type url for Timestamp * @function getTypeUrl - * @memberof google.longrunning.WaitOperationRequest + * @memberof google.protobuf.Timestamp * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WaitOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.longrunning.WaitOperationRequest"; + return typeUrlPrefix + "/google.protobuf.Timestamp"; }; - return WaitOperationRequest; + return Timestamp; })(); - longrunning.OperationInfo = (function() { + protobuf.FieldMask = (function() { /** - * Properties of an OperationInfo. - * @memberof google.longrunning - * @interface IOperationInfo - * @property {string|null} [responseType] OperationInfo responseType - * @property {string|null} [metadataType] OperationInfo metadataType + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths */ /** - * Constructs a new OperationInfo. - * @memberof google.longrunning - * @classdesc Represents an OperationInfo. - * @implements IOperationInfo + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask * @constructor - * @param {google.longrunning.IOperationInfo=} [properties] Properties to set + * @param {google.protobuf.IFieldMask=} [properties] Properties to set */ - function OperationInfo(properties) { + function FieldMask(properties) { + this.paths = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38749,89 +56129,78 @@ } /** - * OperationInfo responseType. - * @member {string} responseType - * @memberof google.longrunning.OperationInfo - * @instance - */ - OperationInfo.prototype.responseType = ""; - - /** - * OperationInfo metadataType. - * @member {string} metadataType - * @memberof google.longrunning.OperationInfo + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask * @instance */ - OperationInfo.prototype.metadataType = ""; + FieldMask.prototype.paths = $util.emptyArray; /** - * Creates a new OperationInfo instance using the specified properties. + * Creates a new FieldMask instance using the specified properties. * @function create - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static - * @param {google.longrunning.IOperationInfo=} [properties] Properties to set - * @returns {google.longrunning.OperationInfo} OperationInfo instance + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance */ - OperationInfo.create = function create(properties) { - return new OperationInfo(properties); + FieldMask.create = function create(properties) { + return new FieldMask(properties); }; /** - * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. * @function encode - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static - * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationInfo.encode = function encode(message, writer) { + FieldMask.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseType); - if (message.metadataType != null && Object.hasOwnProperty.call(message, "metadataType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadataType); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); return writer; }; /** - * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. * @function encodeDelimited - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static - * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationInfo.encodeDelimited = function encodeDelimited(message, writer) { + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationInfo message from the specified reader or buffer. + * Decodes a FieldMask message from the specified reader or buffer. * @function decode - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.longrunning.OperationInfo} OperationInfo + * @returns {google.protobuf.FieldMask} FieldMask * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationInfo.decode = function decode(reader, length) { + FieldMask.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.OperationInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.responseType = reader.string(); - break; - } - case 2: { - message.metadataType = reader.string(); + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); break; } default: @@ -38843,114 +56212,117 @@ }; /** - * Decodes an OperationInfo message from the specified reader or buffer, length delimited. + * Decodes a FieldMask message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.longrunning.OperationInfo} OperationInfo + * @returns {google.protobuf.FieldMask} FieldMask * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationInfo.decodeDelimited = function decodeDelimited(reader) { + FieldMask.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OperationInfo message. + * Verifies a FieldMask message. * @function verify - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OperationInfo.verify = function verify(message) { + FieldMask.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseType != null && message.hasOwnProperty("responseType")) - if (!$util.isString(message.responseType)) - return "responseType: string expected"; - if (message.metadataType != null && message.hasOwnProperty("metadataType")) - if (!$util.isString(message.metadataType)) - return "metadataType: string expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } return null; }; /** - * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types. + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static * @param {Object.} object Plain object - * @returns {google.longrunning.OperationInfo} OperationInfo + * @returns {google.protobuf.FieldMask} FieldMask */ - OperationInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.longrunning.OperationInfo) + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) return object; - var message = new $root.google.longrunning.OperationInfo(); - if (object.responseType != null) - message.responseType = String(object.responseType); - if (object.metadataType != null) - message.metadataType = String(object.metadataType); + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } return message; }; /** - * Creates a plain object from an OperationInfo message. Also converts values to other types if specified. + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. * @function toObject - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static - * @param {google.longrunning.OperationInfo} message OperationInfo + * @param {google.protobuf.FieldMask} message FieldMask * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OperationInfo.toObject = function toObject(message, options) { + FieldMask.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.responseType = ""; - object.metadataType = ""; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; } - if (message.responseType != null && message.hasOwnProperty("responseType")) - object.responseType = message.responseType; - if (message.metadataType != null && message.hasOwnProperty("metadataType")) - object.metadataType = message.metadataType; return object; }; /** - * Converts this OperationInfo to JSON. + * Converts this FieldMask to JSON. * @function toJSON - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @instance * @returns {Object.} JSON object */ - OperationInfo.prototype.toJSON = function toJSON() { + FieldMask.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OperationInfo + * Gets the default type url for FieldMask * @function getTypeUrl - * @memberof google.longrunning.OperationInfo + * @memberof google.protobuf.FieldMask * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OperationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.longrunning.OperationInfo"; + return typeUrlPrefix + "/google.protobuf.FieldMask"; }; - return OperationInfo; + return FieldMask; })(); - return longrunning; + return protobuf; })(); google.rpc = (function() { diff --git a/packages/google-cloud-vmwareengine/protos/protos.json b/packages/google-cloud-vmwareengine/protos/protos.json index 587e4a93775..f2c2dbcd5f3 100644 --- a/packages/google-cloud-vmwareengine/protos/protos.json +++ b/packages/google-cloud-vmwareengine/protos/protos.json @@ -289,17 +289,17 @@ } ] }, - "ListSubnets": { - "requestType": "ListSubnetsRequest", - "responseType": "ListSubnetsResponse", + "ListNodes": { + "requestType": "ListNodesRequest", + "responseType": "ListNodesResponse", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets", + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateClouds/*/clusters/*}/nodes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets" + "get": "/v1/{parent=projects/*/locations/*/privateClouds/*/clusters/*}/nodes" } }, { @@ -307,17 +307,17 @@ } ] }, - "GetSubnet": { - "requestType": "GetSubnetRequest", - "responseType": "Subnet", + "GetNode": { + "requestType": "GetNodeRequest", + "responseType": "Node", "options": { - "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/subnets/*}", + "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*/nodes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/privateClouds/*/subnets/*}" + "get": "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*/nodes/*}" } }, { @@ -325,45 +325,17 @@ } ] }, - "UpdateSubnet": { - "requestType": "UpdateSubnetRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).patch": "/v1/{subnet.name=projects/*/locations/*/privateClouds/*/subnets/*}", - "(google.api.http).body": "subnet", - "(google.api.method_signature)": "subnet,update_mask", - "(google.longrunning.operation_info).response_type": "Subnet", - "(google.longrunning.operation_info).metadata_type": "OperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1/{subnet.name=projects/*/locations/*/privateClouds/*/subnets/*}", - "body": "subnet" - } - }, - { - "(google.api.method_signature)": "subnet,update_mask" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "Subnet", - "metadata_type": "OperationMetadata" - } - } - ] - }, - "ListNodeTypes": { - "requestType": "ListNodeTypesRequest", - "responseType": "ListNodeTypesResponse", + "ListExternalAddresses": { + "requestType": "ListExternalAddressesRequest", + "responseType": "ListExternalAddressesResponse", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/nodeTypes", + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*}/nodeTypes" + "get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses" } }, { @@ -371,155 +343,135 @@ } ] }, - "GetNodeType": { - "requestType": "GetNodeTypeRequest", - "responseType": "NodeType", - "options": { - "(google.api.http).get": "/v1/{name=projects/*/locations/*/nodeTypes/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/nodeTypes/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "ShowNsxCredentials": { - "requestType": "ShowNsxCredentialsRequest", - "responseType": "Credentials", + "FetchNetworkPolicyExternalAddresses": { + "requestType": "FetchNetworkPolicyExternalAddressesRequest", + "responseType": "FetchNetworkPolicyExternalAddressesResponse", "options": { - "(google.api.http).get": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials", - "(google.api.method_signature)": "private_cloud" + "(google.api.http).get": "/v1/{network_policy=projects/*/locations/*/networkPolicies/*}:fetchExternalAddresses", + "(google.api.method_signature)": "network_policy" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials" + "get": "/v1/{network_policy=projects/*/locations/*/networkPolicies/*}:fetchExternalAddresses" } }, { - "(google.api.method_signature)": "private_cloud" + "(google.api.method_signature)": "network_policy" } ] }, - "ShowVcenterCredentials": { - "requestType": "ShowVcenterCredentialsRequest", - "responseType": "Credentials", + "GetExternalAddress": { + "requestType": "GetExternalAddressRequest", + "responseType": "ExternalAddress", "options": { - "(google.api.http).get": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials", - "(google.api.method_signature)": "private_cloud" + "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials" + "get": "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}" } }, { - "(google.api.method_signature)": "private_cloud" + "(google.api.method_signature)": "name" } ] }, - "ResetNsxCredentials": { - "requestType": "ResetNsxCredentialsRequest", + "CreateExternalAddress": { + "requestType": "CreateExternalAddressRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials", - "(google.api.http).body": "*", - "(google.api.method_signature)": "private_cloud", - "(google.longrunning.operation_info).response_type": "PrivateCloud", + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses", + "(google.api.http).body": "external_address", + "(google.api.method_signature)": "parent,external_address,external_address_id", + "(google.longrunning.operation_info).response_type": "ExternalAddress", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials", - "body": "*" + "post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses", + "body": "external_address" } }, { - "(google.api.method_signature)": "private_cloud" + "(google.api.method_signature)": "parent,external_address,external_address_id" }, { "(google.longrunning.operation_info)": { - "response_type": "PrivateCloud", + "response_type": "ExternalAddress", "metadata_type": "OperationMetadata" } } ] }, - "ResetVcenterCredentials": { - "requestType": "ResetVcenterCredentialsRequest", + "UpdateExternalAddress": { + "requestType": "UpdateExternalAddressRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials", - "(google.api.http).body": "*", - "(google.api.method_signature)": "private_cloud", - "(google.longrunning.operation_info).response_type": "PrivateCloud", + "(google.api.http).patch": "/v1/{external_address.name=projects/*/locations/*/privateClouds/*/externalAddresses/*}", + "(google.api.http).body": "external_address", + "(google.api.method_signature)": "external_address,update_mask", + "(google.longrunning.operation_info).response_type": "ExternalAddress", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials", - "body": "*" + "patch": "/v1/{external_address.name=projects/*/locations/*/privateClouds/*/externalAddresses/*}", + "body": "external_address" } }, { - "(google.api.method_signature)": "private_cloud" + "(google.api.method_signature)": "external_address,update_mask" }, { "(google.longrunning.operation_info)": { - "response_type": "PrivateCloud", + "response_type": "ExternalAddress", "metadata_type": "OperationMetadata" } } ] }, - "CreateHcxActivationKey": { - "requestType": "CreateHcxActivationKeyRequest", + "DeleteExternalAddress": { + "requestType": "DeleteExternalAddressRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", - "(google.api.http).body": "hcx_activation_key", - "(google.api.method_signature)": "parent,hcx_activation_key,hcx_activation_key_id", - "(google.longrunning.operation_info).response_type": "HcxActivationKey", + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", - "body": "hcx_activation_key" + "delete": "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}" } }, { - "(google.api.method_signature)": "parent,hcx_activation_key,hcx_activation_key_id" + "(google.api.method_signature)": "name" }, { "(google.longrunning.operation_info)": { - "response_type": "HcxActivationKey", + "response_type": "google.protobuf.Empty", "metadata_type": "OperationMetadata" } } ] }, - "ListHcxActivationKeys": { - "requestType": "ListHcxActivationKeysRequest", - "responseType": "ListHcxActivationKeysResponse", + "ListSubnets": { + "requestType": "ListSubnetsRequest", + "responseType": "ListSubnetsResponse", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys" + "get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets" } }, { @@ -527,17 +479,17 @@ } ] }, - "GetHcxActivationKey": { - "requestType": "GetHcxActivationKeyRequest", - "responseType": "HcxActivationKey", + "GetSubnet": { + "requestType": "GetSubnetRequest", + "responseType": "Subnet", "options": { - "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}", + "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/subnets/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}" + "get": "/v1/{name=projects/*/locations/*/privateClouds/*/subnets/*}" } }, { @@ -545,35 +497,45 @@ } ] }, - "GetNetworkPolicy": { - "requestType": "GetNetworkPolicyRequest", - "responseType": "NetworkPolicy", + "UpdateSubnet": { + "requestType": "UpdateSubnetRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).get": "/v1/{name=projects/*/locations/*/networkPolicies/*}", - "(google.api.method_signature)": "name" + "(google.api.http).patch": "/v1/{subnet.name=projects/*/locations/*/privateClouds/*/subnets/*}", + "(google.api.http).body": "subnet", + "(google.api.method_signature)": "subnet,update_mask", + "(google.longrunning.operation_info).response_type": "Subnet", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/networkPolicies/*}" + "patch": "/v1/{subnet.name=projects/*/locations/*/privateClouds/*/subnets/*}", + "body": "subnet" } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "subnet,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Subnet", + "metadata_type": "OperationMetadata" + } } ] }, - "ListNetworkPolicies": { - "requestType": "ListNetworkPoliciesRequest", - "responseType": "ListNetworkPoliciesResponse", + "ListExternalAccessRules": { + "requestType": "ListExternalAccessRulesRequest", + "responseType": "ListExternalAccessRulesResponse", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/networkPolicies", + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*}/networkPolicies" + "get": "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules" } }, { @@ -581,67 +543,85 @@ } ] }, - "CreateNetworkPolicy": { - "requestType": "CreateNetworkPolicyRequest", + "GetExternalAccessRule": { + "requestType": "GetExternalAccessRuleRequest", + "responseType": "ExternalAccessRule", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateExternalAccessRule": { + "requestType": "CreateExternalAccessRuleRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/networkPolicies", - "(google.api.http).body": "network_policy", - "(google.api.method_signature)": "parent,network_policy,network_policy_id", - "(google.longrunning.operation_info).response_type": "NetworkPolicy", + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules", + "(google.api.http).body": "external_access_rule", + "(google.api.method_signature)": "parent,external_access_rule,external_access_rule_id", + "(google.longrunning.operation_info).response_type": "ExternalAccessRule", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{parent=projects/*/locations/*}/networkPolicies", - "body": "network_policy" + "post": "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules", + "body": "external_access_rule" } }, { - "(google.api.method_signature)": "parent,network_policy,network_policy_id" + "(google.api.method_signature)": "parent,external_access_rule,external_access_rule_id" }, { "(google.longrunning.operation_info)": { - "response_type": "NetworkPolicy", + "response_type": "ExternalAccessRule", "metadata_type": "OperationMetadata" } } ] }, - "UpdateNetworkPolicy": { - "requestType": "UpdateNetworkPolicyRequest", + "UpdateExternalAccessRule": { + "requestType": "UpdateExternalAccessRuleRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).patch": "/v1/{network_policy.name=projects/*/locations/*/networkPolicies/*}", - "(google.api.http).body": "network_policy", - "(google.api.method_signature)": "network_policy,update_mask", - "(google.longrunning.operation_info).response_type": "NetworkPolicy", + "(google.api.http).patch": "/v1/{external_access_rule.name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}", + "(google.api.http).body": "external_access_rule", + "(google.api.method_signature)": "external_access_rule,update_mask", + "(google.longrunning.operation_info).response_type": "ExternalAccessRule", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v1/{network_policy.name=projects/*/locations/*/networkPolicies/*}", - "body": "network_policy" + "patch": "/v1/{external_access_rule.name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}", + "body": "external_access_rule" } }, { - "(google.api.method_signature)": "network_policy,update_mask" + "(google.api.method_signature)": "external_access_rule,update_mask" }, { "(google.longrunning.operation_info)": { - "response_type": "NetworkPolicy", + "response_type": "ExternalAccessRule", "metadata_type": "OperationMetadata" } } ] }, - "DeleteNetworkPolicy": { - "requestType": "DeleteNetworkPolicyRequest", + "DeleteExternalAccessRule": { + "requestType": "DeleteExternalAccessRuleRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v1/{name=projects/*/locations/*/networkPolicies/*}", + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" @@ -649,7 +629,7 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1/{name=projects/*/locations/*/networkPolicies/*}" + "delete": "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}" } }, { @@ -663,67 +643,103 @@ } ] }, - "CreateVmwareEngineNetwork": { - "requestType": "CreateVmwareEngineNetworkRequest", + "ListLoggingServers": { + "requestType": "ListLoggingServersRequest", + "responseType": "ListLoggingServersResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetLoggingServer": { + "requestType": "GetLoggingServerRequest", + "responseType": "LoggingServer", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateLoggingServer": { + "requestType": "CreateLoggingServerRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks", - "(google.api.http).body": "vmware_engine_network", - "(google.api.method_signature)": "parent,vmware_engine_network,vmware_engine_network_id", - "(google.longrunning.operation_info).response_type": "VmwareEngineNetwork", + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers", + "(google.api.http).body": "logging_server", + "(google.api.method_signature)": "parent,logging_server,logging_server_id", + "(google.longrunning.operation_info).response_type": "LoggingServer", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks", - "body": "vmware_engine_network" + "post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers", + "body": "logging_server" } }, { - "(google.api.method_signature)": "parent,vmware_engine_network,vmware_engine_network_id" + "(google.api.method_signature)": "parent,logging_server,logging_server_id" }, { "(google.longrunning.operation_info)": { - "response_type": "VmwareEngineNetwork", + "response_type": "LoggingServer", "metadata_type": "OperationMetadata" } } ] }, - "UpdateVmwareEngineNetwork": { - "requestType": "UpdateVmwareEngineNetworkRequest", + "UpdateLoggingServer": { + "requestType": "UpdateLoggingServerRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).patch": "/v1/{vmware_engine_network.name=projects/*/locations/*/vmwareEngineNetworks/*}", - "(google.api.http).body": "vmware_engine_network", - "(google.api.method_signature)": "vmware_engine_network,update_mask", - "(google.longrunning.operation_info).response_type": "VmwareEngineNetwork", + "(google.api.http).patch": "/v1/{logging_server.name=projects/*/locations/*/privateClouds/*/loggingServers/*}", + "(google.api.http).body": "logging_server", + "(google.api.method_signature)": "logging_server,update_mask", + "(google.longrunning.operation_info).response_type": "LoggingServer", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v1/{vmware_engine_network.name=projects/*/locations/*/vmwareEngineNetworks/*}", - "body": "vmware_engine_network" + "patch": "/v1/{logging_server.name=projects/*/locations/*/privateClouds/*/loggingServers/*}", + "body": "logging_server" } }, { - "(google.api.method_signature)": "vmware_engine_network,update_mask" + "(google.api.method_signature)": "logging_server,update_mask" }, { "(google.longrunning.operation_info)": { - "response_type": "VmwareEngineNetwork", + "response_type": "LoggingServer", "metadata_type": "OperationMetadata" } } ] }, - "DeleteVmwareEngineNetwork": { - "requestType": "DeleteVmwareEngineNetworkRequest", + "DeleteLoggingServer": { + "requestType": "DeleteLoggingServerRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}", + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" @@ -731,7 +747,7 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}" + "delete": "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}" } }, { @@ -745,17 +761,35 @@ } ] }, - "GetVmwareEngineNetwork": { - "requestType": "GetVmwareEngineNetworkRequest", - "responseType": "VmwareEngineNetwork", + "ListNodeTypes": { + "requestType": "ListNodeTypesRequest", + "responseType": "ListNodeTypesResponse", "options": { - "(google.api.http).get": "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}", - "(google.api.method_signature)": "name" - }, + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/nodeTypes", + "(google.api.method_signature)": "parent" + }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}" + "get": "/v1/{parent=projects/*/locations/*}/nodeTypes" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetNodeType": { + "requestType": "GetNodeTypeRequest", + "responseType": "NodeType", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/nodeTypes/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/nodeTypes/*}" } }, { @@ -763,63 +797,109 @@ } ] }, - "ListVmwareEngineNetworks": { - "requestType": "ListVmwareEngineNetworksRequest", - "responseType": "ListVmwareEngineNetworksResponse", + "ShowNsxCredentials": { + "requestType": "ShowNsxCredentialsRequest", + "responseType": "Credentials", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks", - "(google.api.method_signature)": "parent" + "(google.api.http).get": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials", + "(google.api.method_signature)": "private_cloud" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks" + "get": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials" } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "private_cloud" } ] }, - "CreatePrivateConnection": { - "requestType": "CreatePrivateConnectionRequest", + "ShowVcenterCredentials": { + "requestType": "ShowVcenterCredentialsRequest", + "responseType": "Credentials", + "options": { + "(google.api.http).get": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials", + "(google.api.method_signature)": "private_cloud" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials" + } + }, + { + "(google.api.method_signature)": "private_cloud" + } + ] + }, + "ResetNsxCredentials": { + "requestType": "ResetNsxCredentialsRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/privateConnections", - "(google.api.http).body": "private_connection", - "(google.api.method_signature)": "parent,private_connection,private_connection_id", - "(google.longrunning.operation_info).response_type": "PrivateConnection", + "(google.api.http).post": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials", + "(google.api.http).body": "*", + "(google.api.method_signature)": "private_cloud", + "(google.longrunning.operation_info).response_type": "PrivateCloud", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{parent=projects/*/locations/*}/privateConnections", - "body": "private_connection" + "post": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials", + "body": "*" } }, { - "(google.api.method_signature)": "parent,private_connection,private_connection_id" + "(google.api.method_signature)": "private_cloud" }, { "(google.longrunning.operation_info)": { - "response_type": "PrivateConnection", + "response_type": "PrivateCloud", "metadata_type": "OperationMetadata" } } ] }, - "GetPrivateConnection": { - "requestType": "GetPrivateConnectionRequest", - "responseType": "PrivateConnection", + "ResetVcenterCredentials": { + "requestType": "ResetVcenterCredentialsRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateConnections/*}", + "(google.api.http).post": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials", + "(google.api.http).body": "*", + "(google.api.method_signature)": "private_cloud", + "(google.longrunning.operation_info).response_type": "PrivateCloud", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials", + "body": "*" + } + }, + { + "(google.api.method_signature)": "private_cloud" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "PrivateCloud", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "GetDnsForwarding": { + "requestType": "GetDnsForwardingRequest", + "responseType": "DnsForwarding", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/dnsForwarding}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/privateConnections/*}" + "get": "/v1/{name=projects/*/locations/*/privateClouds/*/dnsForwarding}" } }, { @@ -827,17 +907,63 @@ } ] }, - "ListPrivateConnections": { - "requestType": "ListPrivateConnectionsRequest", - "responseType": "ListPrivateConnectionsResponse", + "UpdateDnsForwarding": { + "requestType": "UpdateDnsForwardingRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/privateConnections", + "(google.api.http).patch": "/v1/{dns_forwarding.name=projects/*/locations/*/privateClouds/*/dnsForwarding}", + "(google.api.http).body": "dns_forwarding", + "(google.api.method_signature)": "dns_forwarding,update_mask", + "(google.longrunning.operation_info).response_type": "DnsForwarding", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{dns_forwarding.name=projects/*/locations/*/privateClouds/*/dnsForwarding}", + "body": "dns_forwarding" + } + }, + { + "(google.api.method_signature)": "dns_forwarding,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "DnsForwarding", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "GetNetworkPeering": { + "requestType": "GetNetworkPeeringRequest", + "responseType": "NetworkPeering", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/networkPeerings/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/networkPeerings/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNetworkPeerings": { + "requestType": "ListNetworkPeeringsRequest", + "responseType": "ListNetworkPeeringsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/networkPeerings", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*}/privateConnections" + "get": "/v1/{parent=projects/*/locations/*}/networkPeerings" } }, { @@ -845,39 +971,39 @@ } ] }, - "UpdatePrivateConnection": { - "requestType": "UpdatePrivateConnectionRequest", + "CreateNetworkPeering": { + "requestType": "CreateNetworkPeeringRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).patch": "/v1/{private_connection.name=projects/*/locations/*/privateConnections/*}", - "(google.api.http).body": "private_connection", - "(google.api.method_signature)": "private_connection,update_mask", - "(google.longrunning.operation_info).response_type": "PrivateConnection", + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/networkPeerings", + "(google.api.http).body": "network_peering", + "(google.api.method_signature)": "parent,network_peering,network_peering_id", + "(google.longrunning.operation_info).response_type": "NetworkPeering", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v1/{private_connection.name=projects/*/locations/*/privateConnections/*}", - "body": "private_connection" + "post": "/v1/{parent=projects/*/locations/*}/networkPeerings", + "body": "network_peering" } }, { - "(google.api.method_signature)": "private_connection,update_mask" + "(google.api.method_signature)": "parent,network_peering,network_peering_id" }, { "(google.longrunning.operation_info)": { - "response_type": "PrivateConnection", + "response_type": "NetworkPeering", "metadata_type": "OperationMetadata" } } ] }, - "DeletePrivateConnection": { - "requestType": "DeletePrivateConnectionRequest", + "DeleteNetworkPeering": { + "requestType": "DeleteNetworkPeeringRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v1/{name=projects/*/locations/*/privateConnections/*}", + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/networkPeerings/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" @@ -885,7 +1011,7 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1/{name=projects/*/locations/*/privateConnections/*}" + "delete": "/v1/{name=projects/*/locations/*/networkPeerings/*}" } }, { @@ -899,128 +1025,2124 @@ } ] }, - "ListPrivateConnectionPeeringRoutes": { - "requestType": "ListPrivateConnectionPeeringRoutesRequest", - "responseType": "ListPrivateConnectionPeeringRoutesResponse", + "UpdateNetworkPeering": { + "requestType": "UpdateNetworkPeeringRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateConnections/*}/peeringRoutes", + "(google.api.http).patch": "/v1/{network_peering.name=projects/*/locations/*/networkPeerings/*}", + "(google.api.http).body": "network_peering", + "(google.api.method_signature)": "network_peering,update_mask", + "(google.longrunning.operation_info).response_type": "NetworkPeering", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{network_peering.name=projects/*/locations/*/networkPeerings/*}", + "body": "network_peering" + } + }, + { + "(google.api.method_signature)": "network_peering,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "NetworkPeering", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "ListPeeringRoutes": { + "requestType": "ListPeeringRoutesRequest", + "responseType": "ListPeeringRoutesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/networkPeerings/*}/peeringRoutes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*/privateConnections/*}/peeringRoutes" + "get": "/v1/{parent=projects/*/locations/*/networkPeerings/*}/peeringRoutes" } }, { "(google.api.method_signature)": "parent" } ] - } - } - }, - "ListPrivateCloudsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "pageSize": { - "type": "int32", - "id": 2 }, - "pageToken": { - "type": "string", - "id": 3 + "CreateHcxActivationKey": { + "requestType": "CreateHcxActivationKeyRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + "(google.api.http).body": "hcx_activation_key", + "(google.api.method_signature)": "parent,hcx_activation_key,hcx_activation_key_id", + "(google.longrunning.operation_info).response_type": "HcxActivationKey", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + "body": "hcx_activation_key" + } + }, + { + "(google.api.method_signature)": "parent,hcx_activation_key,hcx_activation_key_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "HcxActivationKey", + "metadata_type": "OperationMetadata" + } + } + ] }, - "filter": { - "type": "string", - "id": 4 + "ListHcxActivationKeys": { + "requestType": "ListHcxActivationKeysRequest", + "responseType": "ListHcxActivationKeysResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, - "orderBy": { - "type": "string", - "id": 5 - } - } - }, - "ListPrivateCloudsResponse": { - "fields": { - "privateClouds": { + "GetHcxActivationKey": { + "requestType": "GetHcxActivationKeyRequest", + "responseType": "HcxActivationKey", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetNetworkPolicy": { + "requestType": "GetNetworkPolicyRequest", + "responseType": "NetworkPolicy", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/networkPolicies/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/networkPolicies/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNetworkPolicies": { + "requestType": "ListNetworkPoliciesRequest", + "responseType": "ListNetworkPoliciesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/networkPolicies", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/networkPolicies" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateNetworkPolicy": { + "requestType": "CreateNetworkPolicyRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/networkPolicies", + "(google.api.http).body": "network_policy", + "(google.api.method_signature)": "parent,network_policy,network_policy_id", + "(google.longrunning.operation_info).response_type": "NetworkPolicy", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/networkPolicies", + "body": "network_policy" + } + }, + { + "(google.api.method_signature)": "parent,network_policy,network_policy_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "NetworkPolicy", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "UpdateNetworkPolicy": { + "requestType": "UpdateNetworkPolicyRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{network_policy.name=projects/*/locations/*/networkPolicies/*}", + "(google.api.http).body": "network_policy", + "(google.api.method_signature)": "network_policy,update_mask", + "(google.longrunning.operation_info).response_type": "NetworkPolicy", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{network_policy.name=projects/*/locations/*/networkPolicies/*}", + "body": "network_policy" + } + }, + { + "(google.api.method_signature)": "network_policy,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "NetworkPolicy", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "DeleteNetworkPolicy": { + "requestType": "DeleteNetworkPolicyRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/networkPolicies/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/networkPolicies/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "ListManagementDnsZoneBindings": { + "requestType": "ListManagementDnsZoneBindingsRequest", + "responseType": "ListManagementDnsZoneBindingsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetManagementDnsZoneBinding": { + "requestType": "GetManagementDnsZoneBindingRequest", + "responseType": "ManagementDnsZoneBinding", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateManagementDnsZoneBinding": { + "requestType": "CreateManagementDnsZoneBindingRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings", + "(google.api.http).body": "management_dns_zone_binding", + "(google.api.method_signature)": "parent,management_dns_zone_binding,management_dns_zone_binding_id", + "(google.longrunning.operation_info).response_type": "ManagementDnsZoneBinding", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings", + "body": "management_dns_zone_binding" + } + }, + { + "(google.api.method_signature)": "parent,management_dns_zone_binding,management_dns_zone_binding_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ManagementDnsZoneBinding", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "UpdateManagementDnsZoneBinding": { + "requestType": "UpdateManagementDnsZoneBindingRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{management_dns_zone_binding.name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}", + "(google.api.http).body": "management_dns_zone_binding", + "(google.api.method_signature)": "management_dns_zone_binding,update_mask", + "(google.longrunning.operation_info).response_type": "ManagementDnsZoneBinding", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{management_dns_zone_binding.name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}", + "body": "management_dns_zone_binding" + } + }, + { + "(google.api.method_signature)": "management_dns_zone_binding,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ManagementDnsZoneBinding", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "DeleteManagementDnsZoneBinding": { + "requestType": "DeleteManagementDnsZoneBindingRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "RepairManagementDnsZoneBinding": { + "requestType": "RepairManagementDnsZoneBindingRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}:repair", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "ManagementDnsZoneBinding", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}:repair", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ManagementDnsZoneBinding", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "CreateVmwareEngineNetwork": { + "requestType": "CreateVmwareEngineNetworkRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks", + "(google.api.http).body": "vmware_engine_network", + "(google.api.method_signature)": "parent,vmware_engine_network,vmware_engine_network_id", + "(google.longrunning.operation_info).response_type": "VmwareEngineNetwork", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks", + "body": "vmware_engine_network" + } + }, + { + "(google.api.method_signature)": "parent,vmware_engine_network,vmware_engine_network_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "VmwareEngineNetwork", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "UpdateVmwareEngineNetwork": { + "requestType": "UpdateVmwareEngineNetworkRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{vmware_engine_network.name=projects/*/locations/*/vmwareEngineNetworks/*}", + "(google.api.http).body": "vmware_engine_network", + "(google.api.method_signature)": "vmware_engine_network,update_mask", + "(google.longrunning.operation_info).response_type": "VmwareEngineNetwork", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{vmware_engine_network.name=projects/*/locations/*/vmwareEngineNetworks/*}", + "body": "vmware_engine_network" + } + }, + { + "(google.api.method_signature)": "vmware_engine_network,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "VmwareEngineNetwork", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "DeleteVmwareEngineNetwork": { + "requestType": "DeleteVmwareEngineNetworkRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "GetVmwareEngineNetwork": { + "requestType": "GetVmwareEngineNetworkRequest", + "responseType": "VmwareEngineNetwork", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListVmwareEngineNetworks": { + "requestType": "ListVmwareEngineNetworksRequest", + "responseType": "ListVmwareEngineNetworksResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreatePrivateConnection": { + "requestType": "CreatePrivateConnectionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/privateConnections", + "(google.api.http).body": "private_connection", + "(google.api.method_signature)": "parent,private_connection,private_connection_id", + "(google.longrunning.operation_info).response_type": "PrivateConnection", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/privateConnections", + "body": "private_connection" + } + }, + { + "(google.api.method_signature)": "parent,private_connection,private_connection_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "PrivateConnection", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "GetPrivateConnection": { + "requestType": "GetPrivateConnectionRequest", + "responseType": "PrivateConnection", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/privateConnections/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/privateConnections/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListPrivateConnections": { + "requestType": "ListPrivateConnectionsRequest", + "responseType": "ListPrivateConnectionsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/privateConnections", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/privateConnections" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdatePrivateConnection": { + "requestType": "UpdatePrivateConnectionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{private_connection.name=projects/*/locations/*/privateConnections/*}", + "(google.api.http).body": "private_connection", + "(google.api.method_signature)": "private_connection,update_mask", + "(google.longrunning.operation_info).response_type": "PrivateConnection", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{private_connection.name=projects/*/locations/*/privateConnections/*}", + "body": "private_connection" + } + }, + { + "(google.api.method_signature)": "private_connection,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "PrivateConnection", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "DeletePrivateConnection": { + "requestType": "DeletePrivateConnectionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/privateConnections/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/privateConnections/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "ListPrivateConnectionPeeringRoutes": { + "requestType": "ListPrivateConnectionPeeringRoutesRequest", + "responseType": "ListPrivateConnectionPeeringRoutesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/privateConnections/*}/peeringRoutes", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/privateConnections/*}/peeringRoutes" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GrantDnsBindPermission": { + "requestType": "GrantDnsBindPermissionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/dnsBindPermission}:grant", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name,principal", + "(google.longrunning.operation_info).response_type": "DnsBindPermission", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/dnsBindPermission}:grant", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,principal" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "DnsBindPermission", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "GetDnsBindPermission": { + "requestType": "GetDnsBindPermissionRequest", + "responseType": "DnsBindPermission", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/dnsBindPermission}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/dnsBindPermission}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "RevokeDnsBindPermission": { + "requestType": "RevokeDnsBindPermissionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/dnsBindPermission}:revoke", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name,principal", + "(google.longrunning.operation_info).response_type": "DnsBindPermission", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/dnsBindPermission}:revoke", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,principal" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "DnsBindPermission", + "metadata_type": "OperationMetadata" + } + } + ] + } + } + }, + "ListPrivateCloudsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListPrivateCloudsResponse": { + "fields": { + "privateClouds": { + "rule": "repeated", + "type": "PrivateCloud", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetPrivateCloudRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + } + } + }, + "CreatePrivateCloudRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "privateCloudId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "privateCloud": { + "type": "PrivateCloud", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "validateOnly": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "UpdatePrivateCloudRequest": { + "fields": { + "privateCloud": { + "type": "PrivateCloud", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeletePrivateCloudRequest": { + "oneofs": { + "_delayHours": { + "oneof": [ + "delayHours" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "requestId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "force": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "delayHours": { + "type": "int32", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + } + }, + "UndeletePrivateCloudRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "requestId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListClustersRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListClustersResponse": { + "fields": { + "clusters": { + "rule": "repeated", + "type": "Cluster", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetClusterRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/Cluster" + } + } + } + }, + "CreateClusterRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "clusterId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "cluster": { + "type": "Cluster", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "validateOnly": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "UpdateClusterRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "cluster": { + "type": "Cluster", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "validateOnly": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteClusterRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/Cluster" + } + }, + "requestId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListNodesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/Cluster" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListNodesResponse": { + "fields": { + "nodes": { + "rule": "repeated", + "type": "Node", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetNodeRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/Node" + } + } + } + }, + "ListExternalAddressesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListExternalAddressesResponse": { + "fields": { + "externalAddresses": { + "rule": "repeated", + "type": "ExternalAddress", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "FetchNetworkPolicyExternalAddressesRequest": { + "fields": { + "networkPolicy": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "FetchNetworkPolicyExternalAddressesResponse": { + "fields": { + "externalAddresses": { + "rule": "repeated", + "type": "ExternalAddress", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetExternalAddressRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/ExternalAddress" + } + } + } + }, + "CreateExternalAddressRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "externalAddress": { + "type": "ExternalAddress", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "externalAddressId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "UpdateExternalAddressRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "externalAddress": { + "type": "ExternalAddress", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteExternalAddressRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/ExternalAddress" + } + }, + "requestId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListSubnetsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListSubnetsResponse": { + "fields": { + "subnets": { + "rule": "repeated", + "type": "Subnet", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetSubnetRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/Subnet" + } + } + } + }, + "UpdateSubnetRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "subnet": { + "type": "Subnet", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListExternalAccessRulesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListExternalAccessRulesResponse": { + "fields": { + "externalAccessRules": { + "rule": "repeated", + "type": "ExternalAccessRule", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetExternalAccessRuleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/ExternalAccessRule" + } + } + } + }, + "CreateExternalAccessRuleRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" + } + }, + "externalAccessRule": { + "type": "ExternalAccessRule", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "externalAccessRuleId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 4 + } + } + }, + "UpdateExternalAccessRuleRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "externalAccessRule": { + "type": "ExternalAccessRule", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteExternalAccessRuleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/ExternalAccessRule" + } + }, + "requestId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListLoggingServersRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListLoggingServersResponse": { + "fields": { + "loggingServers": { + "rule": "repeated", + "type": "LoggingServer", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetLoggingServerRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/LoggingServer" + } + } + } + }, + "CreateLoggingServerRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "loggingServer": { + "type": "LoggingServer", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "loggingServerId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "UpdateLoggingServerRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "loggingServer": { + "type": "LoggingServer", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteLoggingServerRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/LoggingServer" + } + }, + "requestId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "OperationMetadata": { + "fields": { + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "target": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "verb": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "statusMessage": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "requestedCancellation": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "apiVersion": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ListNodeTypesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + } + } + }, + "ListNodeTypesResponse": { + "fields": { + "nodeTypes": { "rule": "repeated", - "type": "PrivateCloud", + "type": "NodeType", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetNodeTypeRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NodeType" + } + } + } + }, + "ShowNsxCredentialsRequest": { + "fields": { + "privateCloud": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + } + } + }, + "ShowVcenterCredentialsRequest": { + "fields": { + "privateCloud": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "username": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ResetNsxCredentialsRequest": { + "fields": { + "privateCloud": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "requestId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ResetVcenterCredentialsRequest": { + "fields": { + "privateCloud": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "requestId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "username": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListHcxActivationKeysResponse": { + "fields": { + "hcxActivationKeys": { + "rule": "repeated", + "type": "HcxActivationKey", "id": 1 }, "nextPageToken": { "type": "string", - "id": 2 + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "ListHcxActivationKeysRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "GetHcxActivationKeyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/HcxActivationKey" + } + } + } + }, + "CreateHcxActivationKeyRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + } + }, + "hcxActivationKey": { + "type": "HcxActivationKey", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "hcxActivationKeyId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 4 + } + } + }, + "GetDnsForwardingRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/DnsForwarding" + } + } + } + }, + "UpdateDnsForwardingRequest": { + "fields": { + "dnsForwarding": { + "type": "DnsForwarding", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "CreateNetworkPeeringRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "networkPeeringId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "networkPeering": { + "type": "NetworkPeering", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteNetworkPeeringRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPeering" + } }, - "unreachable": { - "rule": "repeated", + "requestId": { "type": "string", - "id": 3 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "GetPrivateCloudRequest": { + "GetNetworkPeeringRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPeering" } } } }, - "CreatePrivateCloudRequest": { + "ListNetworkPeeringsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPeering" } }, - "privateCloudId": { + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { "type": "string", - "id": 2, + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "UpdateNetworkPeeringRequest": { + "fields": { + "networkPeering": { + "type": "NetworkPeering", + "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "privateCloud": { - "type": "PrivateCloud", - "id": 3, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "requestId": { "type": "string", - "id": 4, + "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } + } + } + }, + "ListNetworkPeeringsResponse": { + "fields": { + "networkPeerings": { + "rule": "repeated", + "type": "NetworkPeering", + "id": 1 }, - "validateOnly": { - "type": "bool", - "id": 5, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "ListPeeringRoutesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPeering" } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 6 } } }, - "UpdatePrivateCloudRequest": { + "ListPeeringRoutesResponse": { "fields": { - "privateCloud": { - "type": "PrivateCloud", + "peeringRoutes": { + "rule": "repeated", + "type": "PeeringRoute", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "ListNetworkPoliciesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPolicy" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListNetworkPoliciesResponse": { + "fields": { + "networkPolicies": { + "rule": "repeated", + "type": "NetworkPolicy", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetNetworkPolicyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" + } + } + } + }, + "UpdateNetworkPolicyRequest": { + "fields": { + "networkPolicy": { + "type": "NetworkPolicy", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1042,55 +3164,47 @@ } } }, - "DeletePrivateCloudRequest": { - "oneofs": { - "_delayHours": { - "oneof": [ - "delayHours" - ] - } - }, + "CreateNetworkPolicyRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPolicy" } }, - "requestId": { + "networkPolicyId": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } }, - "force": { - "type": "bool", + "networkPolicy": { + "type": "NetworkPolicy", "id": 3, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } }, - "delayHours": { - "type": "int32", + "requestId": { + "type": "string", "id": 4, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "UndeletePrivateCloudRequest": { + "DeleteNetworkPolicyRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" } }, "requestId": { @@ -1102,7 +3216,7 @@ } } }, - "ListClustersRequest": { + "ListManagementDnsZoneBindingsRequest": { "fields": { "parent": { "type": "string", @@ -1130,11 +3244,11 @@ } } }, - "ListClustersResponse": { + "ListManagementDnsZoneBindingsResponse": { "fields": { - "clusters": { + "managementDnsZoneBindings": { "rule": "repeated", - "type": "Cluster", + "type": "ManagementDnsZoneBinding", "id": 1 }, "nextPageToken": { @@ -1148,19 +3262,19 @@ } } }, - "GetClusterRequest": { + "GetManagementDnsZoneBindingRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/Cluster" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/ManagementDnsZoneBinding" } } } }, - "CreateClusterRequest": { + "CreateManagementDnsZoneBindingRequest": { "fields": { "parent": { "type": "string", @@ -1170,15 +3284,15 @@ "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" } }, - "clusterId": { - "type": "string", + "managementDnsZoneBinding": { + "type": "ManagementDnsZoneBinding", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "cluster": { - "type": "Cluster", + "managementDnsZoneBindingId": { + "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1190,17 +3304,10 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } - }, - "validateOnly": { - "type": "bool", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } } } }, - "UpdateClusterRequest": { + "UpdateManagementDnsZoneBindingRequest": { "fields": { "updateMask": { "type": "google.protobuf.FieldMask", @@ -1209,8 +3316,8 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "cluster": { - "type": "Cluster", + "managementDnsZoneBinding": { + "type": "ManagementDnsZoneBinding", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1222,24 +3329,17 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } - }, - "validateOnly": { - "type": "bool", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } } } }, - "DeleteClusterRequest": { + "DeleteManagementDnsZoneBindingRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/Cluster" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/ManagementDnsZoneBinding" } }, "requestId": { @@ -1251,128 +3351,122 @@ } } }, - "ListSubnetsRequest": { + "RepairManagementDnsZoneBindingRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/ManagementDnsZoneBinding" } }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListSubnetsResponse": { - "fields": { - "subnets": { - "rule": "repeated", - "type": "Subnet", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - }, - "unreachable": { - "rule": "repeated", + "requestId": { "type": "string", - "id": 3 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "GetSubnetRequest": { + "CreateVmwareEngineNetworkRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/Subnet" + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } - } - } - }, - "UpdateSubnetRequest": { - "fields": { - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 1, + }, + "vmwareEngineNetworkId": { + "type": "string", + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "subnet": { - "type": "Subnet", - "id": 2, + "vmwareEngineNetwork": { + "type": "VmwareEngineNetwork", + "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "requestId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "OperationMetadata": { + "UpdateVmwareEngineNetworkRequest": { "fields": { - "createTime": { - "type": "google.protobuf.Timestamp", + "vmwareEngineNetwork": { + "type": "VmwareEngineNetwork", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "endTime": { - "type": "google.protobuf.Timestamp", + "updateMask": { + "type": "google.protobuf.FieldMask", "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "target": { + "requestId": { "type": "string", "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } - }, - "verb": { + } + } + }, + "DeleteVmwareEngineNetworkRequest": { + "fields": { + "name": { "type": "string", - "id": 4, + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } }, - "statusMessage": { + "requestId": { "type": "string", - "id": 5, + "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "requestedCancellation": { - "type": "bool", - "id": 6, + "etag": { + "type": "string", + "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } - }, - "apiVersion": { + } + } + }, + "GetVmwareEngineNetworkRequest": { + "fields": { + "name": { "type": "string", - "id": 7, + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } } } }, - "ListNodeTypesRequest": { + "ListVmwareEngineNetworksRequest": { "fields": { "parent": { "type": "string", @@ -1393,14 +3487,18 @@ "filter": { "type": "string", "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 } } }, - "ListNodeTypesResponse": { + "ListVmwareEngineNetworksResponse": { "fields": { - "nodeTypes": { + "vmwareEngineNetworks": { "rule": "repeated", - "type": "NodeType", + "type": "VmwareEngineNetwork", "id": 1 }, "nextPageToken": { @@ -1414,85 +3512,84 @@ } } }, - "GetNodeTypeRequest": { + "CreatePrivateConnectionRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NodeType" + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/PrivateConnection" } - } - } - }, - "ShowNsxCredentialsRequest": { - "fields": { - "privateCloud": { + }, + "privateConnectionId": { "type": "string", - "id": 1, + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "ShowVcenterCredentialsRequest": { - "fields": { - "privateCloud": { + }, + "privateConnection": { + "type": "PrivateConnection", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { "type": "string", - "id": 1, + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "ResetNsxCredentialsRequest": { + "GetPrivateConnectionRequest": { "fields": { - "privateCloud": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" - } - }, - "requestId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateConnection" } } } }, - "ResetVcenterCredentialsRequest": { + "ListPrivateConnectionsRequest": { "fields": { - "privateCloud": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/PrivateConnection" } }, - "requestId": { + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 } } }, - "ListHcxActivationKeysResponse": { + "ListPrivateConnectionsResponse": { "fields": { - "hcxActivationKeys": { + "privateConnections": { "rule": "repeated", - "type": "HcxActivationKey", + "type": "PrivateConnection", "id": 1 }, "nextPageToken": { @@ -1506,76 +3603,58 @@ } } }, - "ListHcxActivationKeysRequest": { + "UpdatePrivateConnectionRequest": { "fields": { - "parent": { - "type": "string", + "privateConnection": { + "type": "PrivateConnection", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" + "(google.api.field_behavior)": "REQUIRED" } }, - "pageSize": { - "type": "int32", - "id": 2 + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "GetHcxActivationKeyRequest": { - "fields": { - "name": { + "requestId": { "type": "string", - "id": 1, + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/HcxActivationKey" + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "CreateHcxActivationKeyRequest": { + "DeletePrivateConnectionRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateCloud" - } - }, - "hcxActivationKey": { - "type": "HcxActivationKey", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateConnection" } }, - "hcxActivationKeyId": { + "requestId": { "type": "string", - "id": 3, + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } - }, - "requestId": { - "type": "string", - "id": 4 } } }, - "ListNetworkPoliciesRequest": { + "ListPrivateConnectionPeeringRoutesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPolicy" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateConnection" } }, "pageSize": { @@ -1585,58 +3664,34 @@ "pageToken": { "type": "string", "id": 3 - }, - "filter": { - "type": "string", - "id": 4 - }, - "orderBy": { - "type": "string", - "id": 5 } } }, - "ListNetworkPoliciesResponse": { + "ListPrivateConnectionPeeringRoutesResponse": { "fields": { - "networkPolicies": { + "peeringRoutes": { "rule": "repeated", - "type": "NetworkPolicy", + "type": "PeeringRoute", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 - }, - "unreachable": { - "rule": "repeated", - "type": "string", - "id": 3 } } }, - "GetNetworkPolicyRequest": { + "GrantDnsBindPermissionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" - } - } - } - }, - "UpdateNetworkPolicyRequest": { - "fields": { - "networkPolicy": { - "type": "NetworkPolicy", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/DnsBindPermission" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "principal": { + "type": "Principal", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1651,424 +3706,421 @@ } } }, - "CreateNetworkPolicyRequest": { + "RevokeDnsBindPermissionRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPolicy" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/DnsBindPermission" } }, - "networkPolicyId": { - "type": "string", + "principal": { + "type": "Principal", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "networkPolicy": { - "type": "NetworkPolicy", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "requestId": { "type": "string", - "id": 4, + "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, - "DeleteNetworkPolicyRequest": { + "GetDnsBindPermissionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" - } - }, - "requestId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/DnsBindPermission" } } } }, - "CreateVmwareEngineNetworkRequest": { + "NetworkConfig": { "fields": { - "parent": { + "managementCidr": { "type": "string", - "id": 1, + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + "(google.api.field_behavior)": "REQUIRED" } }, - "vmwareEngineNetworkId": { + "vmwareEngineNetwork": { "type": "string", - "id": 2, + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } }, - "vmwareEngineNetwork": { - "type": "VmwareEngineNetwork", - "id": 3, + "vmwareEngineNetworkCanonical": { + "type": "string", + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } }, - "requestId": { + "managementIpAddressLayoutVersion": { + "type": "int32", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "dnsServerIp": { "type": "string", - "id": 4, + "id": 9, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, - "UpdateVmwareEngineNetworkRequest": { + "NodeTypeConfig": { "fields": { - "vmwareEngineNetwork": { - "type": "VmwareEngineNetwork", + "nodeCount": { + "type": "int32", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "customCoreCount": { + "type": "int32", "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "requestId": { - "type": "string", - "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, - "DeleteVmwareEngineNetworkRequest": { + "StretchedClusterConfig": { "fields": { - "name": { + "preferredLocation": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "requestId": { + "secondaryLocation": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "etag": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } } } }, - "GetVmwareEngineNetworkRequest": { + "PrivateCloud": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/PrivateCloud", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}" + }, "fields": { "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "ListVmwareEngineNetworksRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "pageSize": { - "type": "int32", - "id": 2 + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "pageToken": { - "type": "string", - "id": 3 + "deleteTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "filter": { + "expireTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "networkConfig": { + "type": "NetworkConfig", + "id": 9, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "managementCluster": { + "type": "ManagementCluster", + "id": 10, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "description": { "type": "string", - "id": 4 + "id": 11 }, - "orderBy": { + "hcx": { + "type": "Hcx", + "id": 17, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nsx": { + "type": "Nsx", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "vcenter": { + "type": "Vcenter", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "uid": { "type": "string", - "id": 5 + "id": 20, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "type": { + "type": "Type", + "id": 22, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } - } - }, - "ListVmwareEngineNetworksResponse": { - "fields": { - "vmwareEngineNetworks": { - "rule": "repeated", - "type": "VmwareEngineNetwork", - "id": 1 + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2, + "UPDATING": 3, + "FAILED": 5, + "DELETED": 6, + "PURGING": 7 + } }, - "nextPageToken": { - "type": "string", - "id": 2 + "ManagementCluster": { + "fields": { + "clusterId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "nodeTypeConfigs": { + "keyType": "string", + "type": "NodeTypeConfig", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "stretchedClusterConfig": { + "type": "StretchedClusterConfig", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } }, - "unreachable": { - "rule": "repeated", - "type": "string", - "id": 3 + "Type": { + "values": { + "STANDARD": 0, + "TIME_LIMITED": 1, + "STRETCHED": 2 + } } } }, - "CreatePrivateConnectionRequest": { + "Cluster": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/Cluster", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}" + }, "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/PrivateConnection" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "privateConnectionId": { - "type": "string", + "createTime": { + "type": "google.protobuf.Timestamp", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "privateConnection": { - "type": "PrivateConnection", + "updateTime": { + "type": "google.protobuf.Timestamp", "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "requestId": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "GetPrivateConnectionRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + "state": { + "type": "State", + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateConnection" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "ListPrivateConnectionsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, + }, + "management": { + "type": "bool", + "id": 7, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/PrivateConnection" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - }, - "filter": { - "type": "string", - "id": 4 - }, - "orderBy": { - "type": "string", - "id": 5 - } - } - }, - "ListPrivateConnectionsResponse": { - "fields": { - "privateConnections": { - "rule": "repeated", - "type": "PrivateConnection", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - }, - "unreachable": { - "rule": "repeated", + "uid": { "type": "string", - "id": 3 - } - } - }, - "UpdatePrivateConnectionRequest": { - "fields": { - "privateConnection": { - "type": "PrivateConnection", - "id": 1, + "id": 14, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, + "nodeTypeConfigs": { + "keyType": "string", + "type": "NodeTypeConfig", + "id": 16, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "requestId": { - "type": "string", - "id": 3, + "stretchedClusterConfig": { + "type": "StretchedClusterConfig", + "id": 17, "options": { "(google.api.field_behavior)": "OPTIONAL" } } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2, + "UPDATING": 3, + "DELETING": 4, + "REPAIRING": 5 + } + } } }, - "DeletePrivateConnectionRequest": { + "Node": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/Node", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}" + }, "fields": { "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateConnection" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "requestId": { + "fqdn": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "ListPrivateConnectionPeeringRoutesRequest": { - "fields": { - "parent": { + }, + "internalIp": { "type": "string", - "id": 1, + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/PrivateConnection" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListPrivateConnectionPeeringRoutesResponse": { - "fields": { - "peeringRoutes": { - "rule": "repeated", - "type": "PeeringRoute", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "NetworkConfig": { - "fields": { - "managementCidr": { + "nodeTypeId": { "type": "string", "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "vmwareEngineNetwork": { + "version": { "type": "string", "id": 5, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "vmwareEngineNetworkCanonical": { - "type": "string", + "customCoreCount": { + "type": "int64", "id": 6, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "managementIpAddressLayoutVersion": { - "type": "int32", - "id": 8, + "state": { + "type": "State", + "id": 7, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } - } - }, - "NodeTypeConfig": { - "fields": { - "nodeCount": { - "type": "int32", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "customCoreCount": { - "type": "int32", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2, + "FAILED": 3, + "UPGRADING": 4 } } } }, - "PrivateCloud": { + "ExternalAddress": { "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/PrivateCloud", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}" + "(google.api.resource).type": "vmwareengine.googleapis.com/ExternalAddress", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}" }, "fields": { "name": { @@ -2092,16 +4144,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "deleteTime": { - "type": "google.protobuf.Timestamp", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "expireTime": { - "type": "google.protobuf.Timestamp", - "id": 5, + "internalIp": { + "type": "string", + "id": 6 + }, + "externalIp": { + "type": "string", + "id": 7, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } @@ -2113,57 +4162,70 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "networkConfig": { - "type": "NetworkConfig", + "uid": { + "type": "string", "id": 9, "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "managementCluster": { - "type": "ManagementCluster", - "id": 10, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "description": { "type": "string", "id": 11 - }, - "hcx": { - "type": "Hcx", - "id": 17, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2, + "UPDATING": 3, + "DELETING": 4 } - }, - "nsx": { - "type": "Nsx", - "id": 18, + } + } + }, + "Subnet": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/Subnet", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "vcenter": { - "type": "Vcenter", - "id": 19, + "ipCidrRange": { + "type": "string", + "id": 7 + }, + "gatewayIp": { + "type": "string", + "id": 8 + }, + "type": { + "type": "string", + "id": 11, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "uid": { - "type": "string", - "id": 20, + "state": { + "type": "State", + "id": 13, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "type": { - "type": "Type", - "id": 22, + "vlanId": { + "type": "int32", + "id": 16, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } }, @@ -2174,42 +4236,17 @@ "ACTIVE": 1, "CREATING": 2, "UPDATING": 3, - "FAILED": 5, - "DELETED": 6, - "PURGING": 7 - } - }, - "ManagementCluster": { - "fields": { - "clusterId": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "nodeTypeConfigs": { - "keyType": "string", - "type": "NodeTypeConfig", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "Type": { - "values": { - "STANDARD": 0, - "TIME_LIMITED": 1 + "DELETING": 4, + "RECONCILING": 5, + "FAILED": 6 } } } }, - "Cluster": { + "ExternalAccessRule": { "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/Cluster", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}" + "(google.api.resource).type": "vmwareengine.googleapis.com/ExternalAccessRule", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/networkPolicies/{network_policy}/externalAccessRules/{external_access_rule}" }, "fields": { "name": { @@ -2233,16 +4270,45 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "description": { + "type": "string", + "id": 5 + }, + "priority": { + "type": "int32", + "id": 6 + }, + "action": { + "type": "Action", + "id": 7 + }, + "ipProtocol": { + "type": "string", + "id": 8 + }, + "sourceIpRanges": { + "rule": "repeated", + "type": "IpRange", + "id": 9 + }, + "sourcePorts": { + "rule": "repeated", + "type": "string", + "id": 10 + }, + "destinationIpRanges": { + "rule": "repeated", + "type": "IpRange", + "id": 11 + }, + "destinationPorts": { + "rule": "repeated", + "type": "string", + "id": 12 + }, "state": { "type": "State", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "management": { - "type": "bool", - "id": 7, + "id": 13, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } @@ -2253,33 +4319,59 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } - }, - "nodeTypeConfigs": { - "keyType": "string", - "type": "NodeTypeConfig", - "id": 16, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } }, "nested": { + "Action": { + "values": { + "ACTION_UNSPECIFIED": 0, + "ALLOW": 1, + "DENY": 2 + } + }, + "IpRange": { + "oneofs": { + "ipRange": { + "oneof": [ + "ipAddress", + "ipAddressRange", + "externalAddress" + ] + } + }, + "fields": { + "ipAddress": { + "type": "string", + "id": 1 + }, + "ipAddressRange": { + "type": "string", + "id": 2 + }, + "externalAddress": { + "type": "string", + "id": 3, + "options": { + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/ExternalAddress" + } + } + } + }, "State": { "values": { "STATE_UNSPECIFIED": 0, "ACTIVE": 1, "CREATING": 2, "UPDATING": 3, - "DELETING": 4, - "REPAIRING": 5 + "DELETING": 4 } } } }, - "Subnet": { + "LoggingServer": { "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/Subnet", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}" + "(google.api.resource).type": "vmwareengine.googleapis.com/LoggingServer", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/loggingServers/{logging_server}" }, "fields": { "name": { @@ -2289,39 +4381,69 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "ipCidrRange": { - "type": "string", - "id": 7 + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "gatewayIp": { - "type": "string", - "id": 8 + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "type": { + "hostname": { "type": "string", - "id": 11, + "id": 5, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "state": { - "type": "State", - "id": 13, + "port": { + "type": "int32", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "protocol": { + "type": "Protocol", + "id": 6, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "sourceType": { + "type": "SourceType", + "id": 10, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "uid": { + "type": "string", + "id": 8, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } }, "nested": { - "State": { + "Protocol": { "values": { - "STATE_UNSPECIFIED": 0, - "ACTIVE": 1, - "CREATING": 2, - "UPDATING": 3, - "DELETING": 4, - "RECONCILING": 5, - "FAILED": 6 + "PROTOCOL_UNSPECIFIED": 0, + "UDP": 1, + "TCP": 2 + } + }, + "SourceType": { + "values": { + "SOURCE_TYPE_UNSPECIFIED": 0, + "ESXI": 1, + "VCSA": 2 } } } @@ -2374,19 +4496,57 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "diskSizeGb": { - "type": "int32", - "id": 8, + "diskSizeGb": { + "type": "int32", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "availableCustomCoreCounts": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "kind": { + "type": "Kind", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "families": { + "rule": "repeated", + "type": "string", + "id": 13, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "capabilities": { + "rule": "repeated", + "type": "Capability", + "id": 14, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + } + }, + "nested": { + "Kind": { + "values": { + "KIND_UNSPECIFIED": 0, + "STANDARD": 1, + "STORAGE_ONLY": 2 + } }, - "availableCustomCoreCounts": { - "rule": "repeated", - "type": "int32", - "id": 11, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "Capability": { + "values": { + "CAPABILITY_UNSPECIFIED": 0, + "STRETCHED_CLUSTERS": 1 } } } @@ -2552,6 +4712,239 @@ } } }, + "DnsForwarding": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/DnsForwarding", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/dnsForwarding" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "forwardingRules": { + "rule": "repeated", + "type": "ForwardingRule", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "ForwardingRule": { + "fields": { + "domain": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "nameServers": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + }, + "NetworkPeering": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/NetworkPeering", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/networkPeerings/{network_peering}" + }, + "oneofs": { + "_exportCustomRoutes": { + "oneof": [ + "exportCustomRoutes" + ] + }, + "_importCustomRoutes": { + "oneof": [ + "importCustomRoutes" + ] + }, + "_exchangeSubnetRoutes": { + "oneof": [ + "exchangeSubnetRoutes" + ] + }, + "_exportCustomRoutesWithPublicIp": { + "oneof": [ + "exportCustomRoutesWithPublicIp" + ] + }, + "_importCustomRoutesWithPublicIp": { + "oneof": [ + "importCustomRoutesWithPublicIp" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "peerNetwork": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "exportCustomRoutes": { + "type": "bool", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "importCustomRoutes": { + "type": "bool", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "exchangeSubnetRoutes": { + "type": "bool", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "exportCustomRoutesWithPublicIp": { + "type": "bool", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "importCustomRoutesWithPublicIp": { + "type": "bool", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "state": { + "type": "State", + "id": 13, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "stateDetails": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "peerMtu": { + "type": "int32", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "peerNetworkType": { + "type": "PeerNetworkType", + "id": 16, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "uid": { + "type": "string", + "id": 17, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "vmwareEngineNetwork": { + "type": "string", + "id": 20, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + }, + "description": { + "type": "string", + "id": 21, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "INACTIVE": 1, + "ACTIVE": 2, + "CREATING": 3, + "DELETING": 4 + } + }, + "PeerNetworkType": { + "values": { + "PEER_NETWORK_TYPE_UNSPECIFIED": 0, + "STANDARD": 1, + "VMWARE_ENGINE_NETWORK": 2, + "PRIVATE_SERVICES_ACCESS": 3, + "NETAPP_CLOUD_VOLUMES": 4, + "THIRD_PARTY_SERVICE": 5, + "DELL_POWERSCALE": 6 + } + } + } + }, "PeeringRoute": { "fields": { "destRange": { @@ -2716,6 +5109,87 @@ } } }, + "ManagementDnsZoneBinding": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/ManagementDnsZoneBinding", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/managementDnsZoneBindings/{management_dns_zone_binding}" + }, + "oneofs": { + "bindNetwork": { + "oneof": [ + "vpcNetwork", + "vmwareEngineNetwork" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "description": { + "type": "string", + "id": 13 + }, + "vpcNetwork": { + "type": "string", + "id": 14, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } + }, + "vmwareEngineNetwork": { + "type": "string", + "id": 15, + "options": { + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + }, + "uid": { + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2, + "UPDATING": 3, + "DELETING": 4, + "FAILED": 5 + } + } + } + }, "VmwareEngineNetwork": { "options": { "(google.api.resource).type": "vmwareengine.googleapis.com/VmwareEngineNetwork", @@ -2823,7 +5297,8 @@ "Type": { "values": { "TYPE_UNSPECIFIED": 0, - "LEGACY": 1 + "LEGACY": 1, + "STANDARD": 2 } } } @@ -2965,6 +5440,69 @@ } } } + }, + "LocationMetadata": { + "fields": { + "capabilities": { + "rule": "repeated", + "type": "Capability", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "Capability": { + "values": { + "CAPABILITY_UNSPECIFIED": 0, + "STRETCHED_CLUSTERS": 1 + } + } + } + }, + "DnsBindPermission": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/DnsBindPermission", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/dnsBindPermission" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "principals": { + "rule": "repeated", + "type": "Principal", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "Principal": { + "oneofs": { + "principal": { + "oneof": [ + "user", + "serviceAccount" + ] + } + }, + "fields": { + "user": { + "type": "string", + "id": 1 + }, + "serviceAccount": { + "type": "string", + "id": 2 + } + } } } } @@ -2972,6 +5510,222 @@ } } }, + "longrunning": { + "options": { + "cc_enable_arenas": true, + "csharp_namespace": "Google.LongRunning", + "go_package": "google.golang.org/genproto/googleapis/longrunning;longrunning", + "java_multiple_files": true, + "java_outer_classname": "OperationsProto", + "java_package": "com.google.longrunning", + "php_namespace": "Google\\LongRunning" + }, + "nested": { + "operationInfo": { + "type": "google.longrunning.OperationInfo", + "id": 1049, + "extend": "google.protobuf.MethodOptions" + }, + "Operations": { + "options": { + "(google.api.default_host)": "longrunning.googleapis.com" + }, + "methods": { + "ListOperations": { + "requestType": "ListOperationsRequest", + "responseType": "ListOperationsResponse", + "options": { + "(google.api.http).get": "/v1/{name=operations}", + "(google.api.method_signature)": "name,filter" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=operations}" + } + }, + { + "(google.api.method_signature)": "name,filter" + } + ] + }, + "GetOperation": { + "requestType": "GetOperationRequest", + "responseType": "Operation", + "options": { + "(google.api.http).get": "/v1/{name=operations/**}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=operations/**}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "DeleteOperation": { + "requestType": "DeleteOperationRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=operations/**}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=operations/**}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CancelOperation": { + "requestType": "CancelOperationRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=operations/**}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=operations/**}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "WaitOperation": { + "requestType": "WaitOperationRequest", + "responseType": "Operation" + } + } + }, + "Operation": { + "oneofs": { + "result": { + "oneof": [ + "error", + "response" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "metadata": { + "type": "google.protobuf.Any", + "id": 2 + }, + "done": { + "type": "bool", + "id": 3 + }, + "error": { + "type": "google.rpc.Status", + "id": 4 + }, + "response": { + "type": "google.protobuf.Any", + "id": 5 + } + } + }, + "GetOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "ListOperationsRequest": { + "fields": { + "name": { + "type": "string", + "id": 4 + }, + "filter": { + "type": "string", + "id": 1 + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListOperationsResponse": { + "fields": { + "operations": { + "rule": "repeated", + "type": "Operation", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CancelOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "DeleteOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "WaitOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "timeout": { + "type": "google.protobuf.Duration", + "id": 2 + } + } + }, + "OperationInfo": { + "fields": { + "responseType": { + "type": "string", + "id": 1 + }, + "metadataType": { + "type": "string", + "id": 2 + } + } + } + } + }, "api": { "options": { "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", @@ -4417,18 +7171,6 @@ } } }, - "Timestamp": { - "fields": { - "seconds": { - "type": "int64", - "id": 1 - }, - "nanos": { - "type": "int32", - "id": 2 - } - } - }, "Any": { "fields": { "type_url": { @@ -4444,230 +7186,26 @@ "Empty": { "fields": {} }, - "FieldMask": { - "fields": { - "paths": { - "rule": "repeated", - "type": "string", - "id": 1 - } - } - } - } - }, - "longrunning": { - "options": { - "cc_enable_arenas": true, - "csharp_namespace": "Google.LongRunning", - "go_package": "google.golang.org/genproto/googleapis/longrunning;longrunning", - "java_multiple_files": true, - "java_outer_classname": "OperationsProto", - "java_package": "com.google.longrunning", - "php_namespace": "Google\\LongRunning" - }, - "nested": { - "operationInfo": { - "type": "google.longrunning.OperationInfo", - "id": 1049, - "extend": "google.protobuf.MethodOptions" - }, - "Operations": { - "options": { - "(google.api.default_host)": "longrunning.googleapis.com" - }, - "methods": { - "ListOperations": { - "requestType": "ListOperationsRequest", - "responseType": "ListOperationsResponse", - "options": { - "(google.api.http).get": "/v1/{name=operations}", - "(google.api.method_signature)": "name,filter" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1/{name=operations}" - } - }, - { - "(google.api.method_signature)": "name,filter" - } - ] - }, - "GetOperation": { - "requestType": "GetOperationRequest", - "responseType": "Operation", - "options": { - "(google.api.http).get": "/v1/{name=operations/**}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1/{name=operations/**}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "DeleteOperation": { - "requestType": "DeleteOperationRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v1/{name=operations/**}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v1/{name=operations/**}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "CancelOperation": { - "requestType": "CancelOperationRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).post": "/v1/{name=operations/**}:cancel", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1/{name=operations/**}:cancel", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "WaitOperation": { - "requestType": "WaitOperationRequest", - "responseType": "Operation" - } - } - }, - "Operation": { - "oneofs": { - "result": { - "oneof": [ - "error", - "response" - ] - } - }, - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "metadata": { - "type": "google.protobuf.Any", - "id": 2 - }, - "done": { - "type": "bool", - "id": 3 - }, - "error": { - "type": "google.rpc.Status", - "id": 4 - }, - "response": { - "type": "google.protobuf.Any", - "id": 5 - } - } - }, - "GetOperationRequest": { - "fields": { - "name": { - "type": "string", - "id": 1 - } - } - }, - "ListOperationsRequest": { + "Timestamp": { "fields": { - "name": { - "type": "string", - "id": 4 - }, - "filter": { - "type": "string", + "seconds": { + "type": "int64", "id": 1 }, - "pageSize": { + "nanos": { "type": "int32", "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 } } }, - "ListOperationsResponse": { + "FieldMask": { "fields": { - "operations": { + "paths": { "rule": "repeated", - "type": "Operation", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "CancelOperationRequest": { - "fields": { - "name": { "type": "string", "id": 1 } } - }, - "DeleteOperationRequest": { - "fields": { - "name": { - "type": "string", - "id": 1 - } - } - }, - "WaitOperationRequest": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "timeout": { - "type": "google.protobuf.Duration", - "id": 2 - } - } - }, - "OperationInfo": { - "fields": { - "responseType": { - "type": "string", - "id": 1 - }, - "metadataType": { - "type": "string", - "id": 2 - } - } } } }, diff --git a/packages/google-cloud-vmwareengine/samples/README.md b/packages/google-cloud-vmwareengine/samples/README.md index a8741eab1e5..933c582256f 100644 --- a/packages/google-cloud-vmwareengine/samples/README.md +++ b/packages/google-cloud-vmwareengine/samples/README.md @@ -13,39 +13,74 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) * [Vmware_engine.create_cluster](#vmware_engine.create_cluster) + * [Vmware_engine.create_external_access_rule](#vmware_engine.create_external_access_rule) + * [Vmware_engine.create_external_address](#vmware_engine.create_external_address) * [Vmware_engine.create_hcx_activation_key](#vmware_engine.create_hcx_activation_key) + * [Vmware_engine.create_logging_server](#vmware_engine.create_logging_server) + * [Vmware_engine.create_management_dns_zone_binding](#vmware_engine.create_management_dns_zone_binding) + * [Vmware_engine.create_network_peering](#vmware_engine.create_network_peering) * [Vmware_engine.create_network_policy](#vmware_engine.create_network_policy) * [Vmware_engine.create_private_cloud](#vmware_engine.create_private_cloud) * [Vmware_engine.create_private_connection](#vmware_engine.create_private_connection) * [Vmware_engine.create_vmware_engine_network](#vmware_engine.create_vmware_engine_network) * [Vmware_engine.delete_cluster](#vmware_engine.delete_cluster) + * [Vmware_engine.delete_external_access_rule](#vmware_engine.delete_external_access_rule) + * [Vmware_engine.delete_external_address](#vmware_engine.delete_external_address) + * [Vmware_engine.delete_logging_server](#vmware_engine.delete_logging_server) + * [Vmware_engine.delete_management_dns_zone_binding](#vmware_engine.delete_management_dns_zone_binding) + * [Vmware_engine.delete_network_peering](#vmware_engine.delete_network_peering) * [Vmware_engine.delete_network_policy](#vmware_engine.delete_network_policy) * [Vmware_engine.delete_private_cloud](#vmware_engine.delete_private_cloud) * [Vmware_engine.delete_private_connection](#vmware_engine.delete_private_connection) * [Vmware_engine.delete_vmware_engine_network](#vmware_engine.delete_vmware_engine_network) + * [Vmware_engine.fetch_network_policy_external_addresses](#vmware_engine.fetch_network_policy_external_addresses) * [Vmware_engine.get_cluster](#vmware_engine.get_cluster) + * [Vmware_engine.get_dns_bind_permission](#vmware_engine.get_dns_bind_permission) + * [Vmware_engine.get_dns_forwarding](#vmware_engine.get_dns_forwarding) + * [Vmware_engine.get_external_access_rule](#vmware_engine.get_external_access_rule) + * [Vmware_engine.get_external_address](#vmware_engine.get_external_address) * [Vmware_engine.get_hcx_activation_key](#vmware_engine.get_hcx_activation_key) + * [Vmware_engine.get_logging_server](#vmware_engine.get_logging_server) + * [Vmware_engine.get_management_dns_zone_binding](#vmware_engine.get_management_dns_zone_binding) + * [Vmware_engine.get_network_peering](#vmware_engine.get_network_peering) * [Vmware_engine.get_network_policy](#vmware_engine.get_network_policy) + * [Vmware_engine.get_node](#vmware_engine.get_node) * [Vmware_engine.get_node_type](#vmware_engine.get_node_type) * [Vmware_engine.get_private_cloud](#vmware_engine.get_private_cloud) * [Vmware_engine.get_private_connection](#vmware_engine.get_private_connection) * [Vmware_engine.get_subnet](#vmware_engine.get_subnet) * [Vmware_engine.get_vmware_engine_network](#vmware_engine.get_vmware_engine_network) + * [Vmware_engine.grant_dns_bind_permission](#vmware_engine.grant_dns_bind_permission) * [Vmware_engine.list_clusters](#vmware_engine.list_clusters) + * [Vmware_engine.list_external_access_rules](#vmware_engine.list_external_access_rules) + * [Vmware_engine.list_external_addresses](#vmware_engine.list_external_addresses) * [Vmware_engine.list_hcx_activation_keys](#vmware_engine.list_hcx_activation_keys) + * [Vmware_engine.list_logging_servers](#vmware_engine.list_logging_servers) + * [Vmware_engine.list_management_dns_zone_bindings](#vmware_engine.list_management_dns_zone_bindings) + * [Vmware_engine.list_network_peerings](#vmware_engine.list_network_peerings) * [Vmware_engine.list_network_policies](#vmware_engine.list_network_policies) * [Vmware_engine.list_node_types](#vmware_engine.list_node_types) + * [Vmware_engine.list_nodes](#vmware_engine.list_nodes) + * [Vmware_engine.list_peering_routes](#vmware_engine.list_peering_routes) * [Vmware_engine.list_private_clouds](#vmware_engine.list_private_clouds) * [Vmware_engine.list_private_connection_peering_routes](#vmware_engine.list_private_connection_peering_routes) * [Vmware_engine.list_private_connections](#vmware_engine.list_private_connections) * [Vmware_engine.list_subnets](#vmware_engine.list_subnets) * [Vmware_engine.list_vmware_engine_networks](#vmware_engine.list_vmware_engine_networks) + * [Vmware_engine.repair_management_dns_zone_binding](#vmware_engine.repair_management_dns_zone_binding) * [Vmware_engine.reset_nsx_credentials](#vmware_engine.reset_nsx_credentials) * [Vmware_engine.reset_vcenter_credentials](#vmware_engine.reset_vcenter_credentials) + * [Vmware_engine.revoke_dns_bind_permission](#vmware_engine.revoke_dns_bind_permission) * [Vmware_engine.show_nsx_credentials](#vmware_engine.show_nsx_credentials) * [Vmware_engine.show_vcenter_credentials](#vmware_engine.show_vcenter_credentials) * [Vmware_engine.undelete_private_cloud](#vmware_engine.undelete_private_cloud) * [Vmware_engine.update_cluster](#vmware_engine.update_cluster) + * [Vmware_engine.update_dns_forwarding](#vmware_engine.update_dns_forwarding) + * [Vmware_engine.update_external_access_rule](#vmware_engine.update_external_access_rule) + * [Vmware_engine.update_external_address](#vmware_engine.update_external_address) + * [Vmware_engine.update_logging_server](#vmware_engine.update_logging_server) + * [Vmware_engine.update_management_dns_zone_binding](#vmware_engine.update_management_dns_zone_binding) + * [Vmware_engine.update_network_peering](#vmware_engine.update_network_peering) * [Vmware_engine.update_network_policy](#vmware_engine.update_network_policy) * [Vmware_engine.update_private_cloud](#vmware_engine.update_private_cloud) * [Vmware_engine.update_private_connection](#vmware_engine.update_private_connection) @@ -85,6 +120,40 @@ __Usage:__ +### Vmware_engine.create_external_access_rule + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_access_rule.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-vmwareengine/samples/generated/v1/vmware_engine.create_external_access_rule.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_access_rule.js` + + +----- + + + + +### Vmware_engine.create_external_address + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_address.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-vmwareengine/samples/generated/v1/vmware_engine.create_external_address.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_address.js` + + +----- + + + + ### Vmware_engine.create_hcx_activation_key View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.js). @@ -102,6 +171,57 @@ __Usage:__ +### Vmware_engine.create_logging_server + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_logging_server.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_logging_server.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_logging_server.js` + + +----- + + + + +### Vmware_engine.create_management_dns_zone_binding + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.create_management_dns_zone_binding.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_management_dns_zone_binding.js` + + +----- + + + + +### Vmware_engine.create_network_peering + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_peering.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-vmwareengine/samples/generated/v1/vmware_engine.create_network_peering.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_peering.js` + + +----- + + + + ### Vmware_engine.create_network_policy View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_policy.js). @@ -187,6 +307,91 @@ __Usage:__ +### Vmware_engine.delete_external_access_rule + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_access_rule.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-vmwareengine/samples/generated/v1/vmware_engine.delete_external_access_rule.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_access_rule.js` + + +----- + + + + +### Vmware_engine.delete_external_address + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_address.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-vmwareengine/samples/generated/v1/vmware_engine.delete_external_address.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_address.js` + + +----- + + + + +### Vmware_engine.delete_logging_server + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_logging_server.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_logging_server.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_logging_server.js` + + +----- + + + + +### Vmware_engine.delete_management_dns_zone_binding + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.js` + + +----- + + + + +### Vmware_engine.delete_network_peering + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_peering.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-vmwareengine/samples/generated/v1/vmware_engine.delete_network_peering.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_peering.js` + + +----- + + + + ### Vmware_engine.delete_network_policy View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_policy.js). @@ -255,6 +460,23 @@ __Usage:__ +### Vmware_engine.fetch_network_policy_external_addresses + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.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-vmwareengine/samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.js` + + +----- + + + + ### Vmware_engine.get_cluster View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.js). @@ -272,6 +494,74 @@ __Usage:__ +### Vmware_engine.get_dns_bind_permission + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_bind_permission.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-vmwareengine/samples/generated/v1/vmware_engine.get_dns_bind_permission.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_bind_permission.js` + + +----- + + + + +### Vmware_engine.get_dns_forwarding + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_forwarding.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-vmwareengine/samples/generated/v1/vmware_engine.get_dns_forwarding.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_forwarding.js` + + +----- + + + + +### Vmware_engine.get_external_access_rule + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_access_rule.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-vmwareengine/samples/generated/v1/vmware_engine.get_external_access_rule.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_access_rule.js` + + +----- + + + + +### Vmware_engine.get_external_address + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_address.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-vmwareengine/samples/generated/v1/vmware_engine.get_external_address.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_address.js` + + +----- + + + + ### Vmware_engine.get_hcx_activation_key View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.js). @@ -289,6 +579,57 @@ __Usage:__ +### Vmware_engine.get_logging_server + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_logging_server.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_logging_server.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_logging_server.js` + + +----- + + + + +### Vmware_engine.get_management_dns_zone_binding + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.get_management_dns_zone_binding.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_management_dns_zone_binding.js` + + +----- + + + + +### Vmware_engine.get_network_peering + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_peering.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-vmwareengine/samples/generated/v1/vmware_engine.get_network_peering.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_peering.js` + + +----- + + + + ### Vmware_engine.get_network_policy View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_policy.js). @@ -306,6 +647,23 @@ __Usage:__ +### Vmware_engine.get_node + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node.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-vmwareengine/samples/generated/v1/vmware_engine.get_node.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node.js` + + +----- + + + + ### Vmware_engine.get_node_type View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node_type.js). @@ -391,6 +749,23 @@ __Usage:__ +### Vmware_engine.grant_dns_bind_permission + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.grant_dns_bind_permission.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-vmwareengine/samples/generated/v1/vmware_engine.grant_dns_bind_permission.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.grant_dns_bind_permission.js` + + +----- + + + + ### Vmware_engine.list_clusters View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.js). @@ -408,6 +783,40 @@ __Usage:__ +### Vmware_engine.list_external_access_rules + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_access_rules.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-vmwareengine/samples/generated/v1/vmware_engine.list_external_access_rules.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_access_rules.js` + + +----- + + + + +### Vmware_engine.list_external_addresses + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_addresses.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-vmwareengine/samples/generated/v1/vmware_engine.list_external_addresses.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_addresses.js` + + +----- + + + + ### Vmware_engine.list_hcx_activation_keys View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.js). @@ -425,6 +834,57 @@ __Usage:__ +### Vmware_engine.list_logging_servers + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_logging_servers.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-vmwareengine/samples/generated/v1/vmware_engine.list_logging_servers.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_logging_servers.js` + + +----- + + + + +### Vmware_engine.list_management_dns_zone_bindings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.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-vmwareengine/samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.js` + + +----- + + + + +### Vmware_engine.list_network_peerings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_peerings.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-vmwareengine/samples/generated/v1/vmware_engine.list_network_peerings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_peerings.js` + + +----- + + + + ### Vmware_engine.list_network_policies View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.js). @@ -459,6 +919,40 @@ __Usage:__ +### Vmware_engine.list_nodes + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_nodes.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-vmwareengine/samples/generated/v1/vmware_engine.list_nodes.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_nodes.js` + + +----- + + + + +### Vmware_engine.list_peering_routes + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_peering_routes.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-vmwareengine/samples/generated/v1/vmware_engine.list_peering_routes.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_peering_routes.js` + + +----- + + + + ### Vmware_engine.list_private_clouds View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.js). @@ -544,6 +1038,23 @@ __Usage:__ +### Vmware_engine.repair_management_dns_zone_binding + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.js` + + +----- + + + + ### Vmware_engine.reset_nsx_credentials View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.js). @@ -578,6 +1089,23 @@ __Usage:__ +### Vmware_engine.revoke_dns_bind_permission + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.revoke_dns_bind_permission.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-vmwareengine/samples/generated/v1/vmware_engine.revoke_dns_bind_permission.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.revoke_dns_bind_permission.js` + + +----- + + + + ### Vmware_engine.show_nsx_credentials View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.js). @@ -646,6 +1174,108 @@ __Usage:__ +### Vmware_engine.update_dns_forwarding + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_dns_forwarding.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-vmwareengine/samples/generated/v1/vmware_engine.update_dns_forwarding.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_dns_forwarding.js` + + +----- + + + + +### Vmware_engine.update_external_access_rule + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_access_rule.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-vmwareengine/samples/generated/v1/vmware_engine.update_external_access_rule.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_access_rule.js` + + +----- + + + + +### Vmware_engine.update_external_address + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_address.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-vmwareengine/samples/generated/v1/vmware_engine.update_external_address.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_address.js` + + +----- + + + + +### Vmware_engine.update_logging_server + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_logging_server.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_logging_server.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_logging_server.js` + + +----- + + + + +### Vmware_engine.update_management_dns_zone_binding + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_management_dns_zone_binding.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-vmwareengine/samples/generated/v1/vmware_engine.update_management_dns_zone_binding.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_management_dns_zone_binding.js` + + +----- + + + + +### Vmware_engine.update_network_peering + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_peering.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-vmwareengine/samples/generated/v1/vmware_engine.update_network_peering.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_peering.js` + + +----- + + + + ### Vmware_engine.update_network_policy View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_policy.js). diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/snippet_metadata_google.cloud.vmwareengine.v1.json b/packages/google-cloud-vmwareengine/samples/generated/v1/snippet_metadata_google.cloud.vmwareengine.v1.json index 86e8238fcfa..6e4991b5bcc 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/snippet_metadata_google.cloud.vmwareengine.v1.json +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/snippet_metadata_google.cloud.vmwareengine.v1.json @@ -111,7 +111,7 @@ "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_async", "title": "VmwareEngine createPrivateCloud Sample", "origin": "API_DEFINITION", - "description": " Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only be created in zones, regional private clouds are not supported. Creating a private cloud also creates a [management cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that private cloud.", + "description": " Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. Creating a private cloud also creates a [management cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that private cloud.", "canonical": true, "file": "vmware_engine.create_private_cloud.js", "language": "JAVASCRIPT", @@ -463,7 +463,7 @@ "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateCluster_async", "title": "VmwareEngine updateCluster Sample", "origin": "API_DEFINITION", - "description": " Modifies a `Cluster` resource. Only the following fields can be updated: `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", + "description": " Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", "canonical": true, "file": "vmware_engine.update_cluster.js", "language": "JAVASCRIPT", @@ -556,12 +556,12 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListSubnets_async", - "title": "VmwareEngine listSubnets Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNodes_async", + "title": "VmwareEngine listNodes Sample", "origin": "API_DEFINITION", - "description": " Lists subnets in a given private cloud.", + "description": " Lists nodes in a given cluster.", "canonical": true, - "file": "vmware_engine.list_subnets.js", + "file": "vmware_engine.list_nodes.js", "language": "JAVASCRIPT", "segments": [ { @@ -571,8 +571,8 @@ } ], "clientMethod": { - "shortName": "ListSubnets", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets", + "shortName": "ListNodes", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodes", "async": true, "parameters": [ { @@ -588,14 +588,14 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.ListSubnetsResponse", + "resultType": ".google.cloud.vmwareengine.v1.ListNodesResponse", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "ListSubnets", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets", + "shortName": "ListNodes", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodes", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -604,23 +604,23 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetSubnet_async", - "title": "VmwareEngine getSubnet Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNode_async", + "title": "VmwareEngine getNode Sample", "origin": "API_DEFINITION", - "description": " Gets details of a single subnet.", + "description": " Gets details of a single node.", "canonical": true, - "file": "vmware_engine.get_subnet.js", + "file": "vmware_engine.get_node.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 57, + "end": 55, "type": "FULL" } ], "clientMethod": { - "shortName": "GetSubnet", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet", + "shortName": "GetNode", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNode", "async": true, "parameters": [ { @@ -628,14 +628,14 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.Subnet", + "resultType": ".google.cloud.vmwareengine.v1.Node", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "GetSubnet", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet", + "shortName": "GetNode", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNode", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -644,42 +644,54 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async", - "title": "VmwareEngine updateSubnet Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_async", + "title": "VmwareEngine listExternalAddresses Sample", "origin": "API_DEFINITION", - "description": " Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied. *Note*: This API is synchronous and always returns a successful `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` fields.", + "description": " Lists external IP addresses assigned to VMware workload VMs in a given private cloud.", "canonical": true, - "file": "vmware_engine.update_subnet.js", + "file": "vmware_engine.list_external_addresses.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 107, "type": "FULL" } ], "clientMethod": { - "shortName": "UpdateSubnet", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet", + "shortName": "ListExternalAddresses", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses", "async": true, "parameters": [ { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" + "name": "parent", + "type": "TYPE_STRING" }, { - "name": "subnet", - "type": ".google.cloud.vmwareengine.v1.Subnet" + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], - "resultType": ".google.longrunning.Operation", + "resultType": ".google.cloud.vmwareengine.v1.ListExternalAddressesResponse", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "UpdateSubnet", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet", + "shortName": "ListExternalAddresses", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -688,27 +700,27 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNodeTypes_async", - "title": "VmwareEngine listNodeTypes Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_async", + "title": "VmwareEngine fetchNetworkPolicyExternalAddresses Sample", "origin": "API_DEFINITION", - "description": " Lists node types", + "description": " Lists external IP addresses assigned to VMware workload VMs within the scope of the given network policy.", "canonical": true, - "file": "vmware_engine.list_node_types.js", + "file": "vmware_engine.fetch_network_policy_external_addresses.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 98, + "end": 75, "type": "FULL" } ], "clientMethod": { - "shortName": "ListNodeTypes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes", + "shortName": "FetchNetworkPolicyExternalAddresses", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses", "async": true, "parameters": [ { - "name": "parent", + "name": "network_policy", "type": "TYPE_STRING" }, { @@ -718,20 +730,16 @@ { "name": "page_token", "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.ListNodeTypesResponse", + "resultType": ".google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "ListNodeTypes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes", + "shortName": "FetchNetworkPolicyExternalAddresses", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -740,12 +748,12 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNodeType_async", - "title": "VmwareEngine getNodeType Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_async", + "title": "VmwareEngine getExternalAddress Sample", "origin": "API_DEFINITION", - "description": " Gets details of a single `NodeType`.", + "description": " Gets details of a single external IP address.", "canonical": true, - "file": "vmware_engine.get_node_type.js", + "file": "vmware_engine.get_external_address.js", "language": "JAVASCRIPT", "segments": [ { @@ -755,8 +763,8 @@ } ], "clientMethod": { - "shortName": "GetNodeType", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType", + "shortName": "GetExternalAddress", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddress", "async": true, "parameters": [ { @@ -764,14 +772,14 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.NodeType", + "resultType": ".google.cloud.vmwareengine.v1.ExternalAddress", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "GetNodeType", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType", + "shortName": "GetExternalAddress", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddress", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -780,38 +788,50 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ShowNsxCredentials_async", - "title": "VmwareEngine showNsxCredentials Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_async", + "title": "VmwareEngine createExternalAddress Sample", "origin": "API_DEFINITION", - "description": " Gets details of credentials for NSX appliance.", + "description": " Creates a new `ExternalAddress` resource in a given private cloud. The network policy that corresponds to the private cloud must have the external IP address network service enabled (`NetworkPolicy.external_ip`).", "canonical": true, - "file": "vmware_engine.show_nsx_credentials.js", + "file": "vmware_engine.create_external_address.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 58, + "end": 93, "type": "FULL" } ], "clientMethod": { - "shortName": "ShowNsxCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials", + "shortName": "CreateExternalAddress", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddress", "async": true, "parameters": [ { - "name": "private_cloud", + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "external_address", + "type": ".google.cloud.vmwareengine.v1.ExternalAddress" + }, + { + "name": "external_address_id", + "type": "TYPE_STRING" + }, + { + "name": "request_id", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.Credentials", + "resultType": ".google.longrunning.Operation", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "ShowNsxCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials", + "shortName": "CreateExternalAddress", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddress", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -820,38 +840,46 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ShowVcenterCredentials_async", - "title": "VmwareEngine showVcenterCredentials Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_async", + "title": "VmwareEngine updateExternalAddress Sample", "origin": "API_DEFINITION", - "description": " Gets details of credentials for Vcenter appliance.", + "description": " Updates the parameters of a single external IP address. Only fields specified in `update_mask` are applied. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", "canonical": true, - "file": "vmware_engine.show_vcenter_credentials.js", + "file": "vmware_engine.update_external_address.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 58, + "end": 78, "type": "FULL" } ], "clientMethod": { - "shortName": "ShowVcenterCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials", + "shortName": "UpdateExternalAddress", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddress", "async": true, "parameters": [ { - "name": "private_cloud", + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "external_address", + "type": ".google.cloud.vmwareengine.v1.ExternalAddress" + }, + { + "name": "request_id", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.Credentials", + "resultType": ".google.longrunning.Operation", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "ShowVcenterCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials", + "shortName": "UpdateExternalAddress", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddress", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -860,27 +888,27 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_async", - "title": "VmwareEngine resetNsxCredentials Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_async", + "title": "VmwareEngine deleteExternalAddress Sample", "origin": "API_DEFINITION", - "description": " Resets credentials of the NSX appliance.", + "description": " Deletes a single external IP address. When you delete an external IP address, connectivity between the external IP address and the corresponding internal IP address is lost.", "canonical": true, - "file": "vmware_engine.reset_nsx_credentials.js", + "file": "vmware_engine.delete_external_address.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 74, + "end": 73, "type": "FULL" } ], "clientMethod": { - "shortName": "ResetNsxCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials", + "shortName": "DeleteExternalAddress", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddress", "async": true, "parameters": [ { - "name": "private_cloud", + "name": "name", "type": "TYPE_STRING" }, { @@ -894,8 +922,8 @@ "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "ResetNsxCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials", + "shortName": "DeleteExternalAddress", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddress", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -904,12 +932,12 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_async", - "title": "VmwareEngine resetVcenterCredentials Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListSubnets_async", + "title": "VmwareEngine listSubnets Sample", "origin": "API_DEFINITION", - "description": " Resets credentials of the Vcenter appliance.", + "description": " Lists subnets in a given private cloud.", "canonical": true, - "file": "vmware_engine.reset_vcenter_credentials.js", + "file": "vmware_engine.list_subnets.js", "language": "JAVASCRIPT", "segments": [ { @@ -919,27 +947,115 @@ } ], "clientMethod": { - "shortName": "ResetVcenterCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials", + "shortName": "ListSubnets", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets", "async": true, "parameters": [ { - "name": "private_cloud", + "name": "parent", "type": "TYPE_STRING" }, { - "name": "request_id", + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ListSubnetsResponse", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ListSubnets", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetSubnet_async", + "title": "VmwareEngine getSubnet Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single subnet.", + "canonical": true, + "file": "vmware_engine.get_subnet.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetSubnet", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet", + "async": true, + "parameters": [ + { + "name": "name", "type": "TYPE_STRING" } ], + "resultType": ".google.cloud.vmwareengine.v1.Subnet", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetSubnet", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async", + "title": "VmwareEngine updateSubnet Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied. *Note*: This API is synchronous and always returns a successful `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` fields.", + "canonical": true, + "file": "vmware_engine.update_subnet.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateSubnet", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "subnet", + "type": ".google.cloud.vmwareengine.v1.Subnet" + } + ], "resultType": ".google.longrunning.Operation", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "ResetVcenterCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials", + "shortName": "UpdateSubnet", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -948,36 +1064,1448 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_async", - "title": "VmwareEngine createHcxActivationKey Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_async", + "title": "VmwareEngine listExternalAccessRules Sample", "origin": "API_DEFINITION", - "description": " Creates a new HCX activation key in a given private cloud.", + "description": " Lists `ExternalAccessRule` resources in the specified network policy.", "canonical": true, - "file": "vmware_engine.create_hcx_activation_key.js", + "file": "vmware_engine.list_external_access_rules.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 93, + "end": 107, "type": "FULL" } ], "clientMethod": { - "shortName": "CreateHcxActivationKey", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey", + "shortName": "ListExternalAccessRules", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ListExternalAccessRules", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_async", + "title": "VmwareEngine getExternalAccessRule Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single external access rule.", + "canonical": true, + "file": "vmware_engine.get_external_access_rule.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetExternalAccessRule", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRule", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ExternalAccessRule", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetExternalAccessRule", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRule", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_async", + "title": "VmwareEngine createExternalAccessRule Sample", + "origin": "API_DEFINITION", + "description": " Creates a new external access rule in a given network policy.", + "canonical": true, + "file": "vmware_engine.create_external_access_rule.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateExternalAccessRule", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRule", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "external_access_rule", + "type": ".google.cloud.vmwareengine.v1.ExternalAccessRule" + }, + { + "name": "external_access_rule_id", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "CreateExternalAccessRule", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRule", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_async", + "title": "VmwareEngine updateExternalAccessRule Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single external access rule. Only fields specified in `update_mask` are applied.", + "canonical": true, + "file": "vmware_engine.update_external_access_rule.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateExternalAccessRule", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRule", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "external_access_rule", + "type": ".google.cloud.vmwareengine.v1.ExternalAccessRule" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "UpdateExternalAccessRule", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRule", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_async", + "title": "VmwareEngine deleteExternalAccessRule Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single external access rule.", + "canonical": true, + "file": "vmware_engine.delete_external_access_rule.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteExternalAccessRule", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRule", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "DeleteExternalAccessRule", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRule", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_async", + "title": "VmwareEngine listLoggingServers Sample", + "origin": "API_DEFINITION", + "description": " Lists logging servers configured for a given private cloud.", + "canonical": true, + "file": "vmware_engine.list_logging_servers.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 108, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListLoggingServers", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ListLoggingServersResponse", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ListLoggingServers", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_async", + "title": "VmwareEngine getLoggingServer Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a logging server.", + "canonical": true, + "file": "vmware_engine.get_logging_server.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetLoggingServer", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServer", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.LoggingServer", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetLoggingServer", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServer", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_async", + "title": "VmwareEngine createLoggingServer Sample", + "origin": "API_DEFINITION", + "description": " Create a new logging server for a given private cloud.", + "canonical": true, + "file": "vmware_engine.create_logging_server.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateLoggingServer", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServer", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "logging_server", + "type": ".google.cloud.vmwareengine.v1.LoggingServer" + }, + { + "name": "logging_server_id", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "CreateLoggingServer", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServer", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_async", + "title": "VmwareEngine updateLoggingServer Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single logging server. Only fields specified in `update_mask` are applied.", + "canonical": true, + "file": "vmware_engine.update_logging_server.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateLoggingServer", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServer", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "logging_server", + "type": ".google.cloud.vmwareengine.v1.LoggingServer" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "UpdateLoggingServer", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServer", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_async", + "title": "VmwareEngine deleteLoggingServer Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single logging server.", + "canonical": true, + "file": "vmware_engine.delete_logging_server.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteLoggingServer", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServer", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "DeleteLoggingServer", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServer", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNodeTypes_async", + "title": "VmwareEngine listNodeTypes Sample", + "origin": "API_DEFINITION", + "description": " Lists node types", + "canonical": true, + "file": "vmware_engine.list_node_types.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 98, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNodeTypes", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ListNodeTypesResponse", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ListNodeTypes", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNodeType_async", + "title": "VmwareEngine getNodeType Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single `NodeType`.", + "canonical": true, + "file": "vmware_engine.get_node_type.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNodeType", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.NodeType", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetNodeType", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ShowNsxCredentials_async", + "title": "VmwareEngine showNsxCredentials Sample", + "origin": "API_DEFINITION", + "description": " Gets details of credentials for NSX appliance.", + "canonical": true, + "file": "vmware_engine.show_nsx_credentials.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ShowNsxCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials", + "async": true, + "parameters": [ + { + "name": "private_cloud", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.Credentials", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ShowNsxCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ShowVcenterCredentials_async", + "title": "VmwareEngine showVcenterCredentials Sample", + "origin": "API_DEFINITION", + "description": " Gets details of credentials for Vcenter appliance.", + "canonical": true, + "file": "vmware_engine.show_vcenter_credentials.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ShowVcenterCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials", + "async": true, + "parameters": [ + { + "name": "private_cloud", + "type": "TYPE_STRING" + }, + { + "name": "username", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.Credentials", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ShowVcenterCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_async", + "title": "VmwareEngine resetNsxCredentials Sample", + "origin": "API_DEFINITION", + "description": " Resets credentials of the NSX appliance.", + "canonical": true, + "file": "vmware_engine.reset_nsx_credentials.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ResetNsxCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials", + "async": true, + "parameters": [ + { + "name": "private_cloud", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ResetNsxCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_async", + "title": "VmwareEngine resetVcenterCredentials Sample", + "origin": "API_DEFINITION", + "description": " Resets credentials of the Vcenter appliance.", + "canonical": true, + "file": "vmware_engine.reset_vcenter_credentials.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 86, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ResetVcenterCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials", + "async": true, + "parameters": [ + { + "name": "private_cloud", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "username", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ResetVcenterCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_async", + "title": "VmwareEngine getDnsForwarding Sample", + "origin": "API_DEFINITION", + "description": " Gets details of the `DnsForwarding` config.", + "canonical": true, + "file": "vmware_engine.get_dns_forwarding.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDnsForwarding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwarding", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.DnsForwarding", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetDnsForwarding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwarding", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_async", + "title": "VmwareEngine updateDnsForwarding Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields specified in `update_mask` are applied.", + "canonical": true, + "file": "vmware_engine.update_dns_forwarding.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDnsForwarding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwarding", + "async": true, + "parameters": [ + { + "name": "dns_forwarding", + "type": ".google.cloud.vmwareengine.v1.DnsForwarding" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "UpdateDnsForwarding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwarding", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_async", + "title": "VmwareEngine getNetworkPeering Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of the network peering, such as peered networks, import and export custom route configurations, and peering state. NetworkPeering is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.get_network_peering.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNetworkPeering", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeering", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.NetworkPeering", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetNetworkPeering", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeering", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_async", + "title": "VmwareEngine listNetworkPeerings Sample", + "origin": "API_DEFINITION", + "description": " Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.list_network_peerings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 105, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNetworkPeerings", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ListNetworkPeerings", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_async", + "title": "VmwareEngine createNetworkPeering Sample", + "origin": "API_DEFINITION", + "description": " Creates a new network peering between the peer network and VMware Engine network provided in a `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.create_network_peering.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 92, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNetworkPeering", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeering", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "network_peering_id", + "type": "TYPE_STRING" + }, + { + "name": "network_peering", + "type": ".google.cloud.vmwareengine.v1.NetworkPeering" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "CreateNetworkPeering", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeering", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_async", + "title": "VmwareEngine deleteNetworkPeering Sample", + "origin": "API_DEFINITION", + "description": " Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.delete_network_peering.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNetworkPeering", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeering", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "DeleteNetworkPeering", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeering", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_async", + "title": "VmwareEngine updateNetworkPeering Sample", + "origin": "API_DEFINITION", + "description": " Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields specified in `updateMask` are applied. NetworkPeering is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.update_network_peering.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateNetworkPeering", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeering", + "async": true, + "parameters": [ + { + "name": "network_peering", + "type": ".google.cloud.vmwareengine.v1.NetworkPeering" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "UpdateNetworkPeering", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeering", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_async", + "title": "VmwareEngine listPeeringRoutes Sample", + "origin": "API_DEFINITION", + "description": " Lists the network peering routes exchanged over a peering connection. NetworkPeering is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.list_peering_routes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListPeeringRoutes", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ListPeeringRoutesResponse", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ListPeeringRoutes", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_async", + "title": "VmwareEngine createHcxActivationKey Sample", + "origin": "API_DEFINITION", + "description": " Creates a new HCX activation key in a given private cloud.", + "canonical": true, + "file": "vmware_engine.create_hcx_activation_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateHcxActivationKey", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "hcx_activation_key", + "type": ".google.cloud.vmwareengine.v1.HcxActivationKey" + }, + { + "name": "hcx_activation_key_id", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "CreateHcxActivationKey", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListHcxActivationKeys_async", + "title": "VmwareEngine listHcxActivationKeys Sample", + "origin": "API_DEFINITION", + "description": " Lists `HcxActivationKey` resources in a given private cloud.", + "canonical": true, + "file": "vmware_engine.list_hcx_activation_keys.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListHcxActivationKeys", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ListHcxActivationKeys", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetHcxActivationKey_async", + "title": "VmwareEngine getHcxActivationKey Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a `HcxActivationKey` resource by its resource name.", + "canonical": true, + "file": "vmware_engine.get_hcx_activation_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetHcxActivationKey", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKey", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.HcxActivationKey", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetHcxActivationKey", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKey", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNetworkPolicy_async", + "title": "VmwareEngine getNetworkPolicy Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a `NetworkPolicy` resource by its resource name.", + "canonical": true, + "file": "vmware_engine.get_network_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.NetworkPolicy", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNetworkPolicies_async", + "title": "VmwareEngine listNetworkPolicies Sample", + "origin": "API_DEFINITION", + "description": " Lists `NetworkPolicy` resources in a specified project and location.", + "canonical": true, + "file": "vmware_engine.list_network_policies.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 106, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNetworkPolicies", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "ListNetworkPolicies", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_async", + "title": "VmwareEngine createNetworkPolicy Sample", + "origin": "API_DEFINITION", + "description": " Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.", + "canonical": true, + "file": "vmware_engine.create_network_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 94, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "network_policy_id", + "type": "TYPE_STRING" + }, + { + "name": "network_policy", + "type": ".google.cloud.vmwareengine.v1.NetworkPolicy" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "CreateNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_async", + "title": "VmwareEngine updateNetworkPolicy Sample", + "origin": "API_DEFINITION", + "description": " Modifies a `NetworkPolicy` resource. Only the following fields can be updated: `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` are applied. When updating a network policy, the external IP network service can only be disabled if there are no external IP addresses present in the scope of the policy. Also, a `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", + "canonical": true, + "file": "vmware_engine.update_network_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy", "async": true, "parameters": [ { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hcx_activation_key", - "type": ".google.cloud.vmwareengine.v1.HcxActivationKey" + "name": "network_policy", + "type": ".google.cloud.vmwareengine.v1.NetworkPolicy" }, { - "name": "hcx_activation_key_id", - "type": "TYPE_STRING" + "name": "update_mask", + "type": ".google.protobuf.FieldMask" }, { "name": "request_id", @@ -990,8 +2518,8 @@ "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "CreateHcxActivationKey", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey", + "shortName": "UpdateNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -1000,46 +2528,42 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListHcxActivationKeys_async", - "title": "VmwareEngine listHcxActivationKeys Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_async", + "title": "VmwareEngine deleteNetworkPolicy Sample", "origin": "API_DEFINITION", - "description": " Lists `HcxActivationKey` resources in a given private cloud.", + "description": " Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access service.", "canonical": true, - "file": "vmware_engine.list_hcx_activation_keys.js", + "file": "vmware_engine.delete_network_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 75, + "end": 73, "type": "FULL" } ], "clientMethod": { - "shortName": "ListHcxActivationKeys", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys", + "shortName": "DeleteNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy", "async": true, "parameters": [ { - "name": "parent", + "name": "name", "type": "TYPE_STRING" }, { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", + "name": "request_id", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse", + "resultType": ".google.longrunning.Operation", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "ListHcxActivationKeys", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys", + "shortName": "DeleteNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -1048,38 +2572,54 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetHcxActivationKey_async", - "title": "VmwareEngine getHcxActivationKey Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_async", + "title": "VmwareEngine listManagementDnsZoneBindings Sample", "origin": "API_DEFINITION", - "description": " Retrieves a `HcxActivationKey` resource by its resource name.", + "description": " Lists Consumer VPCs bound to Management DNS Zone of a given private cloud.", "canonical": true, - "file": "vmware_engine.get_hcx_activation_key.js", + "file": "vmware_engine.list_management_dns_zone_bindings.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 57, + "end": 108, "type": "FULL" } ], "clientMethod": { - "shortName": "GetHcxActivationKey", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKey", + "shortName": "ListManagementDnsZoneBindings", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings", "async": true, "parameters": [ { - "name": "name", + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.HcxActivationKey", + "resultType": ".google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "GetHcxActivationKey", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKey", + "shortName": "ListManagementDnsZoneBindings", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -1088,12 +2628,12 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNetworkPolicy_async", - "title": "VmwareEngine getNetworkPolicy Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_async", + "title": "VmwareEngine getManagementDnsZoneBinding Sample", "origin": "API_DEFINITION", - "description": " Retrieves a `NetworkPolicy` resource by its resource name.", + "description": " Retrieves a 'ManagementDnsZoneBinding' resource by its resource name.", "canonical": true, - "file": "vmware_engine.get_network_policy.js", + "file": "vmware_engine.get_management_dns_zone_binding.js", "language": "JAVASCRIPT", "segments": [ { @@ -1103,8 +2643,8 @@ } ], "clientMethod": { - "shortName": "GetNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy", + "shortName": "GetManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBinding", "async": true, "parameters": [ { @@ -1112,14 +2652,14 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.NetworkPolicy", + "resultType": ".google.cloud.vmwareengine.v1.ManagementDnsZoneBinding", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "GetNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy", + "shortName": "GetManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBinding", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -1128,23 +2668,23 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNetworkPolicies_async", - "title": "VmwareEngine listNetworkPolicies Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_async", + "title": "VmwareEngine createManagementDnsZoneBinding Sample", "origin": "API_DEFINITION", - "description": " Lists `NetworkPolicy` resources in a specified project and location.", + "description": " Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS binding and the resource that represents the DNS binding of the consumer VPC network to the management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager.", "canonical": true, - "file": "vmware_engine.list_network_policies.js", + "file": "vmware_engine.create_management_dns_zone_binding.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 106, + "end": 94, "type": "FULL" } ], "clientMethod": { - "shortName": "ListNetworkPolicies", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies", + "shortName": "CreateManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateManagementDnsZoneBinding", "async": true, "parameters": [ { @@ -1152,30 +2692,26 @@ "type": "TYPE_STRING" }, { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" + "name": "management_dns_zone_binding", + "type": ".google.cloud.vmwareengine.v1.ManagementDnsZoneBinding" }, { - "name": "filter", + "name": "management_dns_zone_binding_id", "type": "TYPE_STRING" }, { - "name": "order_by", + "name": "request_id", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse", + "resultType": ".google.longrunning.Operation", "client": { "shortName": "VmwareEngineClient", "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "ListNetworkPolicies", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies", + "shortName": "CreateManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateManagementDnsZoneBinding", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -1184,36 +2720,32 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_async", - "title": "VmwareEngine createNetworkPolicy Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_async", + "title": "VmwareEngine updateManagementDnsZoneBinding Sample", "origin": "API_DEFINITION", - "description": " Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.", + "description": " Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are applied.", "canonical": true, - "file": "vmware_engine.create_network_policy.js", + "file": "vmware_engine.update_management_dns_zone_binding.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 94, + "end": 78, "type": "FULL" } ], "clientMethod": { - "shortName": "CreateNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy", + "shortName": "UpdateManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBinding", "async": true, "parameters": [ { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "network_policy_id", - "type": "TYPE_STRING" + "name": "update_mask", + "type": ".google.protobuf.FieldMask" }, { - "name": "network_policy", - "type": ".google.cloud.vmwareengine.v1.NetworkPolicy" + "name": "management_dns_zone_binding", + "type": ".google.cloud.vmwareengine.v1.ManagementDnsZoneBinding" }, { "name": "request_id", @@ -1226,8 +2758,8 @@ "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "CreateNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy", + "shortName": "UpdateManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBinding", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -1236,32 +2768,28 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_async", - "title": "VmwareEngine updateNetworkPolicy Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_async", + "title": "VmwareEngine deleteManagementDnsZoneBinding Sample", "origin": "API_DEFINITION", - "description": " Modifies a `NetworkPolicy` resource. Only the following fields can be updated: `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` are applied. When updating a network policy, the external IP network service can only be disabled if there are no external IP addresses present in the scope of the policy. Also, a `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", + "description": " Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, the corresponding consumer VPC network is no longer bound to the management DNS zone.", "canonical": true, - "file": "vmware_engine.update_network_policy.js", + "file": "vmware_engine.delete_management_dns_zone_binding.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 78, + "end": 73, "type": "FULL" } ], "clientMethod": { - "shortName": "UpdateNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy", + "shortName": "DeleteManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBinding", "async": true, "parameters": [ { - "name": "network_policy", - "type": ".google.cloud.vmwareengine.v1.NetworkPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" + "name": "name", + "type": "TYPE_STRING" }, { "name": "request_id", @@ -1274,8 +2802,8 @@ "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "UpdateNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy", + "shortName": "DeleteManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBinding", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -1284,12 +2812,12 @@ } }, { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_async", - "title": "VmwareEngine deleteNetworkPolicy Sample", + "regionTag": "vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_async", + "title": "VmwareEngine repairManagementDnsZoneBinding Sample", "origin": "API_DEFINITION", - "description": " Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access service.", + "description": " Retries to create a `ManagementDnsZoneBinding` resource that is in failed state.", "canonical": true, - "file": "vmware_engine.delete_network_policy.js", + "file": "vmware_engine.repair_management_dns_zone_binding.js", "language": "JAVASCRIPT", "segments": [ { @@ -1299,8 +2827,8 @@ } ], "clientMethod": { - "shortName": "DeleteNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy", + "shortName": "RepairManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.RepairManagementDnsZoneBinding", "async": true, "parameters": [ { @@ -1318,8 +2846,8 @@ "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" }, "method": { - "shortName": "DeleteNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy", + "shortName": "RepairManagementDnsZoneBinding", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.RepairManagementDnsZoneBinding", "service": { "shortName": "VmwareEngine", "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" @@ -1858,6 +3386,142 @@ } } } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_async", + "title": "VmwareEngine grantDnsBindPermission Sample", + "origin": "API_DEFINITION", + "description": " Grants the bind permission to the customer provided principal(user / service account) to bind their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.grant_dns_bind_permission.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GrantDnsBindPermission", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermission", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "principal", + "type": ".google.cloud.vmwareengine.v1.Principal" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GrantDnsBindPermission", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermission", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_async", + "title": "VmwareEngine getDnsBindPermission Sample", + "origin": "API_DEFINITION", + "description": " Gets all the principals having bind permission on the intranet VPC associated with the consumer project granted by the Grant API. DnsBindPermission is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.get_dns_bind_permission.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDnsBindPermission", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermission", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmwareengine.v1.DnsBindPermission", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "GetDnsBindPermission", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermission", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_async", + "title": "VmwareEngine revokeDnsBindPermission Sample", + "origin": "API_DEFINITION", + "description": " Revokes the bind permission from the customer provided principal(user / service account) on the intranet VPC associated with the consumer project. DnsBindPermission is a global resource and location can only be global.", + "canonical": true, + "file": "vmware_engine.revoke_dns_bind_permission.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RevokeDnsBindPermission", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermission", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "principal", + "type": ".google.cloud.vmwareengine.v1.Principal" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmwareEngineClient", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" + }, + "method": { + "shortName": "RevokeDnsBindPermission", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermission", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + } } ] } \ No newline at end of file diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_cluster.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_cluster.js index fdb7708f2ca..74c1c2ae47a 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_cluster.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_access_rule.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_access_rule.js new file mode 100644 index 00000000000..6cfffb873c6 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_access_rule.js @@ -0,0 +1,101 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, externalAccessRule, externalAccessRuleId) { + // [START vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the network policy + * to create a new external access firewall rule in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + */ + // const parent = 'abc123' + /** + * Required. The initial description of a new external access rule. + */ + // const externalAccessRule = {} + /** + * Required. The user-provided identifier of the `ExternalAccessRule` to be + * created. This identifier must be unique among `ExternalAccessRule` + * resources within the parent and becomes the final token in the name URI. + * The identifier must meet the following requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with RFC 1034 (https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + */ + // const externalAccessRuleId = 'abc123' + /** + * A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callCreateExternalAccessRule() { + // Construct request + const request = { + parent, + externalAccessRule, + externalAccessRuleId, + }; + + // Run request + const [operation] = await vmwareengineClient.createExternalAccessRule(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateExternalAccessRule(); + // [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_address.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_address.js new file mode 100644 index 00000000000..7f012b71357 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_external_address.js @@ -0,0 +1,101 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, externalAddress, externalAddressId) { + // [START vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the private cloud + * to create a new external IP address in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + */ + // const parent = 'abc123' + /** + * Required. The initial description of a new external IP address. + */ + // const externalAddress = {} + /** + * Required. The user-provided identifier of the `ExternalAddress` to be + * created. This identifier must be unique among `ExternalAddress` resources + * within the parent and becomes the final token in the name URI. The + * identifier must meet the following requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with RFC 1034 (https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + */ + // const externalAddressId = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callCreateExternalAddress() { + // Construct request + const request = { + parent, + externalAddress, + externalAddressId, + }; + + // Run request + const [operation] = await vmwareengineClient.createExternalAddress(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateExternalAddress(); + // [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.js index 764dd4ab4ab..e99426dad33 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_logging_server.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_logging_server.js new file mode 100644 index 00000000000..486e0560cf7 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_logging_server.js @@ -0,0 +1,101 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, loggingServer, loggingServerId) { + // [START vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the private cloud + * to create a new Logging Server in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + */ + // const parent = 'abc123' + /** + * Required. The initial description of a new logging server. + */ + // const loggingServer = {} + /** + * Required. The user-provided identifier of the `LoggingServer` to be + * created. This identifier must be unique among `LoggingServer` resources + * within the parent and becomes the final token in the name URI. + * The identifier must meet the following requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with RFC 1034 (https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + */ + // const loggingServerId = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callCreateLoggingServer() { + // Construct request + const request = { + parent, + loggingServer, + loggingServerId, + }; + + // Run request + const [operation] = await vmwareengineClient.createLoggingServer(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateLoggingServer(); + // [END vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_management_dns_zone_binding.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_management_dns_zone_binding.js new file mode 100644 index 00000000000..0e33d46b6be --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_management_dns_zone_binding.js @@ -0,0 +1,102 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, managementDnsZoneBinding, managementDnsZoneBindingId) { + // [START vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the private cloud + * to create a new management DNS zone binding for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + */ + // const parent = 'abc123' + /** + * Required. The initial values for a new management DNS zone binding. + */ + // const managementDnsZoneBinding = {} + /** + * Required. The user-provided identifier of the `ManagementDnsZoneBinding` + * resource to be created. This identifier must be unique among + * `ManagementDnsZoneBinding` resources within the parent and becomes the + * final token in the name URI. The identifier must meet the following + * requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with RFC 1034 (https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + */ + // const managementDnsZoneBindingId = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callCreateManagementDnsZoneBinding() { + // Construct request + const request = { + parent, + managementDnsZoneBinding, + managementDnsZoneBindingId, + }; + + // Run request + const [operation] = await vmwareengineClient.createManagementDnsZoneBinding(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateManagementDnsZoneBinding(); + // [END vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_peering.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_peering.js new file mode 100644 index 00000000000..c7c96bbd5cc --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_peering.js @@ -0,0 +1,100 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, networkPeeringId, networkPeering) { + // [START vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the location to create the new network + * peering in. This value is always `global`, because `NetworkPeering` is a + * global resource. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/global` + */ + // const parent = 'abc123' + /** + * Required. The user-provided identifier of the new `NetworkPeering`. + * This identifier must be unique among `NetworkPeering` resources within the + * parent and becomes the final token in the name URI. + * The identifier must meet the following requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with RFC 1034 (https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + */ + // const networkPeeringId = 'abc123' + /** + * Required. The initial description of the new network peering. + */ + // const networkPeering = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callCreateNetworkPeering() { + // Construct request + const request = { + parent, + networkPeeringId, + networkPeering, + }; + + // Run request + const [operation] = await vmwareengineClient.createNetworkPeering(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateNetworkPeering(); + // [END vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_policy.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_policy.js index fd9792850ce..997b15055c1 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_policy.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_policy.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_cloud.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_cloud.js index 77d7eea4e0f..17f258dfe8e 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_cloud.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_cloud.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_connection.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_connection.js index 03084fd79cf..d32ab69b3a5 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_connection.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_connection.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_vmware_engine_network.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_vmware_engine_network.js index 53977beabaa..73cbbb3234e 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_vmware_engine_network.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_vmware_engine_network.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_cluster.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_cluster.js index cb5a2264cdc..d1fa1c5b407 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_cluster.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_access_rule.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_access_rule.js new file mode 100644 index 00000000000..fed36506ab9 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_access_rule.js @@ -0,0 +1,81 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the external access firewall rule to delete. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule` + */ + // const name = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callDeleteExternalAccessRule() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await vmwareengineClient.deleteExternalAccessRule(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteExternalAccessRule(); + // [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_address.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_address.js new file mode 100644 index 00000000000..5569fafc65c --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_external_address.js @@ -0,0 +1,81 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the external IP address to delete. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` + */ + // const name = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callDeleteExternalAddress() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await vmwareengineClient.deleteExternalAddress(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteExternalAddress(); + // [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_logging_server.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_logging_server.js new file mode 100644 index 00000000000..bda5462976c --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_logging_server.js @@ -0,0 +1,81 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the logging server to delete. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` + */ + // const name = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callDeleteLoggingServer() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await vmwareengineClient.deleteLoggingServer(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteLoggingServer(); + // [END vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.js new file mode 100644 index 00000000000..bf1598b7e4c --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.js @@ -0,0 +1,81 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the management DNS zone binding to delete. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + */ + // const name = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callDeleteManagementDnsZoneBinding() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await vmwareengineClient.deleteManagementDnsZoneBinding(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteManagementDnsZoneBinding(); + // [END vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_peering.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_peering.js new file mode 100644 index 00000000000..4a73d50af08 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_peering.js @@ -0,0 +1,81 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the network peering to be deleted. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/global/networkPeerings/my-peering` + */ + // const name = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callDeleteNetworkPeering() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await vmwareengineClient.deleteNetworkPeering(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteNetworkPeering(); + // [END vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_policy.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_policy.js index a284bda09b5..ca369655245 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_policy.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_policy.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_cloud.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_cloud.js index 742532dfe62..8624a2a2b76 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_cloud.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_cloud.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_connection.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_connection.js index f382c3bb5a6..80ea181217e 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_connection.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_connection.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_vmware_engine_network.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_vmware_engine_network.js index 29d1d3eace4..97220b47575 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_vmware_engine_network.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_vmware_engine_network.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.js new file mode 100644 index 00000000000..78c60177a3b --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.js @@ -0,0 +1,83 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(networkPolicy) { + // [START vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the network policy to query for assigned + * external IP addresses. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + */ + // const networkPolicy = 'abc123' + /** + * The maximum number of external IP addresses to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous + * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the + * subsequent page. + * When paginating, all parameters provided to + * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and + * `page_token`, must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callFetchNetworkPolicyExternalAddresses() { + // Construct request + const request = { + networkPolicy, + }; + + // Run request + const iterable = await vmwareengineClient.fetchNetworkPolicyExternalAddressesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callFetchNetworkPolicyExternalAddresses(); + // [END vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.js index 5706ac8001e..ef7e359fa32 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_bind_permission.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_bind_permission.js new file mode 100644 index 00000000000..8ae416e2866 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_bind_permission.js @@ -0,0 +1,66 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the resource which stores the users/service accounts + * having the permission to bind to the corresponding intranet VPC of the + * consumer project. DnsBindPermission is a global resource. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/dnsBindPermission` + */ + // const name = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGetDnsBindPermission() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await vmwareengineClient.getDnsBindPermission(request); + console.log(response); + } + + callGetDnsBindPermission(); + // [END vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_forwarding.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_forwarding.js new file mode 100644 index 00000000000..571f96df7b2 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_dns_forwarding.js @@ -0,0 +1,65 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of a `DnsForwarding` to retrieve. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding` + */ + // const name = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGetDnsForwarding() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await vmwareengineClient.getDnsForwarding(request); + console.log(response); + } + + callGetDnsForwarding(); + // [END vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_access_rule.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_access_rule.js new file mode 100644 index 00000000000..eb27aa05acc --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_access_rule.js @@ -0,0 +1,65 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the external access firewall rule to + * retrieve. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule` + */ + // const name = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGetExternalAccessRule() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await vmwareengineClient.getExternalAccessRule(request); + console.log(response); + } + + callGetExternalAccessRule(); + // [END vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_address.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_address.js new file mode 100644 index 00000000000..46b5650099f --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_external_address.js @@ -0,0 +1,65 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the external IP address to retrieve. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` + */ + // const name = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGetExternalAddress() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await vmwareengineClient.getExternalAddress(request); + console.log(response); + } + + callGetExternalAddress(); + // [END vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.js index a8e524ac7e2..deb8a79db7b 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_logging_server.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_logging_server.js new file mode 100644 index 00000000000..64f8565c64d --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_logging_server.js @@ -0,0 +1,65 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Logging Server to retrieve. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` + */ + // const name = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGetLoggingServer() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await vmwareengineClient.getLoggingServer(request); + console.log(response); + } + + callGetLoggingServer(); + // [END vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_management_dns_zone_binding.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_management_dns_zone_binding.js new file mode 100644 index 00000000000..6ed172a1617 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_management_dns_zone_binding.js @@ -0,0 +1,65 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the management DNS zone binding to + * retrieve. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + */ + // const name = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGetManagementDnsZoneBinding() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await vmwareengineClient.getManagementDnsZoneBinding(request); + console.log(response); + } + + callGetManagementDnsZoneBinding(); + // [END vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_peering.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_peering.js new file mode 100644 index 00000000000..83632aca503 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_peering.js @@ -0,0 +1,65 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the network peering to retrieve. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/global/networkPeerings/my-peering` + */ + // const name = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGetNetworkPeering() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await vmwareengineClient.getNetworkPeering(request); + console.log(response); + } + + callGetNetworkPeering(); + // [END vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_policy.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_policy.js index 06b3cf69916..6dec6cb2b33 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_policy.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_policy.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node.js new file mode 100644 index 00000000000..dd889b68ad0 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node.js @@ -0,0 +1,63 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_GetNode_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the node to retrieve. + * For example: + * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}` + */ + // const name = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGetNode() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await vmwareengineClient.getNode(request); + console.log(response); + } + + callGetNode(); + // [END vmwareengine_v1_generated_VmwareEngine_GetNode_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node_type.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node_type.js index dcd807ebcbd..2b6145645e1 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node_type.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node_type.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_cloud.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_cloud.js index 884fbc8e66f..216a62d22bb 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_cloud.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_cloud.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_connection.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_connection.js index 1b9a8f615d9..19e31445247 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_connection.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_connection.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_subnet.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_subnet.js index 31e78f12553..67fb84e9993 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_subnet.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_subnet.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_vmware_engine_network.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_vmware_engine_network.js index 87517b5d900..aa48e1ef488 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_vmware_engine_network.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_vmware_engine_network.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.grant_dns_bind_permission.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.grant_dns_bind_permission.js new file mode 100644 index 00000000000..37263a5a401 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.grant_dns_bind_permission.js @@ -0,0 +1,89 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, principal) { + // [START vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the resource which stores the users/service accounts + * having the permission to bind to the corresponding intranet VPC of the + * consumer project. DnsBindPermission is a global resource. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/dnsBindPermission` + */ + // const name = 'abc123' + /** + * Required. The consumer provided user/service account which needs to be + * granted permission to bind with the intranet VPC corresponding to the + * consumer project. + */ + // const principal = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callGrantDnsBindPermission() { + // Construct request + const request = { + name, + principal, + }; + + // Run request + const [operation] = await vmwareengineClient.grantDnsBindPermission(request); + const [response] = await operation.promise(); + console.log(response); + } + + callGrantDnsBindPermission(); + // [END vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.js index 3964f8ef84f..1b3421ef2a6 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_access_rules.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_access_rules.js new file mode 100644 index 00000000000..dce7efd5689 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_access_rules.js @@ -0,0 +1,115 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the network policy to query for external + * access firewall rules. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + */ + // const parent = 'abc123' + /** + * The maximum number of external access rules to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListExternalAccessRulesRequest` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListExternalAccessRulesRequest` must match the call that provided the page + * token. + */ + // const pageToken = 'abc123' + /** + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * For example, if you are filtering a list of external access rules, you can + * exclude the ones named `example-rule` by specifying + * `name != "example-rule"`. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-rule") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-rule-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-rule-2") + * ``` + */ + // const filter = 'abc123' + /** + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + */ + // const orderBy = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callListExternalAccessRules() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await vmwareengineClient.listExternalAccessRulesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListExternalAccessRules(); + // [END vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_addresses.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_addresses.js new file mode 100644 index 00000000000..34738f2767b --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_external_addresses.js @@ -0,0 +1,115 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the private cloud to be queried for + * external IP addresses. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + */ + // const parent = 'abc123' + /** + * The maximum number of external IP addresses to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListExternalAddresses` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListExternalAddresses` must match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * For example, if you are filtering a list of IP addresses, you can + * exclude the ones named `example-ip` by specifying + * `name != "example-ip"`. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-ip") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-ip-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-ip-2") + * ``` + */ + // const filter = 'abc123' + /** + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + */ + // const orderBy = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callListExternalAddresses() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await vmwareengineClient.listExternalAddressesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListExternalAddresses(); + // [END vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.js index 50aa1252a10..48331582329 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_logging_servers.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_logging_servers.js new file mode 100644 index 00000000000..ce516913d8f --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_logging_servers.js @@ -0,0 +1,116 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the private cloud to be queried for + * logging servers. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + */ + // const parent = 'abc123' + /** + * The maximum number of logging servers to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListLoggingServersRequest` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListLoggingServersRequest` must match the call that provided the page + * token. + */ + // const pageToken = 'abc123' + /** + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * For example, if you are filtering a list of logging servers, you can + * exclude the ones named `example-server` by specifying + * `name != "example-server"`. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-server") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-server-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-server-2") + * ``` + */ + // const filter = 'abc123' + /** + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + */ + // const orderBy = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callListLoggingServers() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await vmwareengineClient.listLoggingServersAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListLoggingServers(); + // [END vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.js new file mode 100644 index 00000000000..9f90812e597 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.js @@ -0,0 +1,116 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the private cloud to be queried for + * management DNS zone bindings. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + */ + // const parent = 'abc123' + /** + * The maximum number of management DNS zone bindings to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListManagementDnsZoneBindings` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListManagementDnsZoneBindings` must match the call that provided the page + * token. + */ + // const pageToken = 'abc123' + /** + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * For example, if you are filtering a list of Management DNS Zone Bindings, + * you can exclude the ones named `example-management-dns-zone-binding` by + * specifying `name != "example-management-dns-zone-binding"`. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-management-dns-zone-binding") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-management-dns-zone-binding-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-management-dns-zone-binding-2") + * ``` + */ + // const filter = 'abc123' + /** + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + */ + // const orderBy = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callListManagementDnsZoneBindings() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await vmwareengineClient.listManagementDnsZoneBindingsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListManagementDnsZoneBindings(); + // [END vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_peerings.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_peerings.js new file mode 100644 index 00000000000..34d8724006c --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_peerings.js @@ -0,0 +1,113 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the location (global) to query for + * network peerings. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/global` + */ + // const parent = 'abc123' + /** + * The maximum number of network peerings to return in one page. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListNetworkPeerings` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListNetworkPeerings` must match the call that provided the page + * token. + */ + // const pageToken = 'abc123' + /** + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * For example, if you are filtering a list of network peerings, you can + * exclude the ones named `example-peering` by specifying + * `name != "example-peering"`. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-peering") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-peering-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-peering-2") + * ``` + */ + // const filter = 'abc123' + /** + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + */ + // const orderBy = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callListNetworkPeerings() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await vmwareengineClient.listNetworkPeeringsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNetworkPeerings(); + // [END vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.js index 680d90a215b..a487f77f299 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_node_types.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_node_types.js index e3433877c06..be4c42015f9 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_node_types.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_node_types.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_nodes.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_nodes.js new file mode 100644 index 00000000000..03d78f4f16d --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_nodes.js @@ -0,0 +1,82 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START vmwareengine_v1_generated_VmwareEngine_ListNodes_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the cluster to be queried for nodes. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` + */ + // const parent = 'abc123' + /** + * The maximum number of nodes to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListNodes` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListNodes` must match the call that provided the page + * token. + */ + // const pageToken = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callListNodes() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await vmwareengineClient.listNodesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNodes(); + // [END vmwareengine_v1_generated_VmwareEngine_ListNodes_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_peering_routes.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_peering_routes.js new file mode 100644 index 00000000000..dd8836b36ee --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_peering_routes.js @@ -0,0 +1,88 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the network peering to retrieve peering + * routes from. Resource names are schemeless URIs that follow the conventions + * in https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/networkPeerings/my-peering` + */ + // const parent = 'abc123' + /** + * The maximum number of peering routes to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListPeeringRoutes` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListPeeringRoutes` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * A filter expression that matches resources returned in the response. + * Currently, only filtering on the `direction` field is supported. To return + * routes imported from the peer network, provide "direction=INCOMING". To + * return routes exported from the VMware Engine network, provide + * "direction=OUTGOING". Other filter expressions return an error. + */ + // const filter = 'abc123' + + // Imports the Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callListPeeringRoutes() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await vmwareengineClient.listPeeringRoutesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListPeeringRoutes(); + // [END vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.js index a4a40e6a293..c20db049d9f 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connection_peering_routes.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connection_peering_routes.js index a4b7bf2779c..33529973256 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connection_peering_routes.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connection_peering_routes.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connections.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connections.js index 75381fad0aa..a53ccfa90f7 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connections.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_connections.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_subnets.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_subnets.js index 4c0f173dfcb..a077250e9e9 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_subnets.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_subnets.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_vmware_engine_networks.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_vmware_engine_networks.js index 4629b490ec6..d7f9f3d192c 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_vmware_engine_networks.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_vmware_engine_networks.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.js new file mode 100644 index 00000000000..b585b941b1a --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.js @@ -0,0 +1,81 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the management DNS zone binding to repair. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + */ + // const name = 'abc123' + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callRepairManagementDnsZoneBinding() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await vmwareengineClient.repairManagementDnsZoneBinding(request); + const [response] = await operation.promise(); + console.log(response); + } + + callRepairManagementDnsZoneBinding(); + // [END vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.js index 0b8500bbf4b..723257c05d7 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_vcenter_credentials.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_vcenter_credentials.js index 458b41f086d..423594311d4 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_vcenter_credentials.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_vcenter_credentials.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -52,6 +52,18 @@ function main(privateCloud) { * not supported (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' + /** + * Optional. The username of the user to be to reset the credentials. + * The default value of this field is CloudOwner@gve.local. + * The provided value should be one of the following: + * solution-user-01@gve.local, + * solution-user-02@gve.local, + * solution-user-03@gve.local, + * solution-user-04@gve.local, + * solution-user-05@gve.local, + * zertoadmin@gve.local. + */ + // const username = 'abc123' // Imports the Vmwareengine library const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.revoke_dns_bind_permission.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.revoke_dns_bind_permission.js new file mode 100644 index 00000000000..097557cc09e --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.revoke_dns_bind_permission.js @@ -0,0 +1,89 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, principal) { + // [START vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the resource which stores the users/service accounts + * having the permission to bind to the corresponding intranet VPC of the + * consumer project. DnsBindPermission is a global resource. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/dnsBindPermission` + */ + // const name = 'abc123' + /** + * Required. The consumer provided user/service account which needs to be + * granted permission to bind with the intranet VPC corresponding to the + * consumer project. + */ + // const principal = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callRevokeDnsBindPermission() { + // Construct request + const request = { + name, + principal, + }; + + // Run request + const [operation] = await vmwareengineClient.revokeDnsBindPermission(request); + const [response] = await operation.promise(); + console.log(response); + } + + callRevokeDnsBindPermission(); + // [END vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.js index 300ee77edfb..95e793349ec 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_vcenter_credentials.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_vcenter_credentials.js index 3e437a96d07..79e396d5190 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_vcenter_credentials.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_vcenter_credentials.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,19 @@ function main(privateCloud) { * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` */ // const privateCloud = 'abc123' + /** + * Optional. The username of the user to be queried for credentials. + * The default value of this field is CloudOwner@gve.local. + * The provided value must be one of the following: + * CloudOwner@gve.local, + * solution-user-01@gve.local, + * solution-user-02@gve.local, + * solution-user-03@gve.local, + * solution-user-04@gve.local, + * solution-user-05@gve.local, + * zertoadmin@gve.local. + */ + // const username = 'abc123' // Imports the Vmwareengine library const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.undelete_private_cloud.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.undelete_private_cloud.js index 53a99168aa4..0d11fca8153 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.undelete_private_cloud.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.undelete_private_cloud.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_cluster.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_cluster.js index 001367822f4..c7b2a47b64b 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_cluster.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_dns_forwarding.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_dns_forwarding.js new file mode 100644 index 00000000000..f8fd3c6e9bd --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_dns_forwarding.js @@ -0,0 +1,86 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(dnsForwarding, updateMask) { + // [START vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. DnsForwarding config details. + */ + // const dnsForwarding = {} + /** + * Required. Field mask is used to specify the fields to be overwritten in the + * `DnsForwarding` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + */ + // const updateMask = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callUpdateDnsForwarding() { + // Construct request + const request = { + dnsForwarding, + updateMask, + }; + + // Run request + const [operation] = await vmwareengineClient.updateDnsForwarding(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateDnsForwarding(); + // [END vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_access_rule.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_access_rule.js new file mode 100644 index 00000000000..a0a577af97b --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_access_rule.js @@ -0,0 +1,86 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(updateMask, externalAccessRule) { + // [START vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Field mask is used to specify the fields to be overwritten in the + * `ExternalAccessRule` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + */ + // const updateMask = {} + /** + * Required. Description of the external access rule. + */ + // const externalAccessRule = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callUpdateExternalAccessRule() { + // Construct request + const request = { + updateMask, + externalAccessRule, + }; + + // Run request + const [operation] = await vmwareengineClient.updateExternalAccessRule(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateExternalAccessRule(); + // [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_address.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_address.js new file mode 100644 index 00000000000..978f2c55c58 --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_external_address.js @@ -0,0 +1,86 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(updateMask, externalAddress) { + // [START vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Field mask is used to specify the fields to be overwritten in the + * `ExternalAddress` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + */ + // const updateMask = {} + /** + * Required. External IP address description. + */ + // const externalAddress = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callUpdateExternalAddress() { + // Construct request + const request = { + updateMask, + externalAddress, + }; + + // Run request + const [operation] = await vmwareengineClient.updateExternalAddress(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateExternalAddress(); + // [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_logging_server.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_logging_server.js new file mode 100644 index 00000000000..550bb623e1c --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_logging_server.js @@ -0,0 +1,86 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(updateMask, loggingServer) { + // [START vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Field mask is used to specify the fields to be overwritten in the + * `LoggingServer` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + */ + // const updateMask = {} + /** + * Required. Logging server description. + */ + // const loggingServer = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callUpdateLoggingServer() { + // Construct request + const request = { + updateMask, + loggingServer, + }; + + // Run request + const [operation] = await vmwareengineClient.updateLoggingServer(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateLoggingServer(); + // [END vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_management_dns_zone_binding.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_management_dns_zone_binding.js new file mode 100644 index 00000000000..be49aeb55fc --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_management_dns_zone_binding.js @@ -0,0 +1,86 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(updateMask, managementDnsZoneBinding) { + // [START vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Field mask is used to specify the fields to be overwritten in the + * `ManagementDnsZoneBinding` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + */ + // const updateMask = {} + /** + * Required. New values to update the management DNS zone binding with. + */ + // const managementDnsZoneBinding = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 the 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callUpdateManagementDnsZoneBinding() { + // Construct request + const request = { + updateMask, + managementDnsZoneBinding, + }; + + // Run request + const [operation] = await vmwareengineClient.updateManagementDnsZoneBinding(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateManagementDnsZoneBinding(); + // [END vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_peering.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_peering.js new file mode 100644 index 00000000000..455c6bb946d --- /dev/null +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_peering.js @@ -0,0 +1,86 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(networkPeering, updateMask) { + // [START vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Network peering description. + */ + // const networkPeering = {} + /** + * Required. Field mask is used to specify the fields to be overwritten in the + * `NetworkPeering` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + */ + // const updateMask = {} + /** + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * 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 Vmwareengine library + const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1; + + // Instantiates a client + const vmwareengineClient = new VmwareEngineClient(); + + async function callUpdateNetworkPeering() { + // Construct request + const request = { + networkPeering, + updateMask, + }; + + // Run request + const [operation] = await vmwareengineClient.updateNetworkPeering(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateNetworkPeering(); + // [END vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_policy.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_policy.js index caddb9be46a..4b4db8cf538 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_policy.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_policy.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_cloud.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_cloud.js index 2eb6ba953ac..f1df70dbfdf 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_cloud.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_cloud.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_connection.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_connection.js index a77762077f9..a4d661262b2 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_connection.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_connection.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_subnet.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_subnet.js index 058161eb533..94f0e37d5ea 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_subnet.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_subnet.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_vmware_engine_network.js b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_vmware_engine_network.js index bb3e3858fba..5e9ef893317 100644 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_vmware_engine_network.js +++ b/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_vmware_engine_network.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/samples/quickstart.js b/packages/google-cloud-vmwareengine/samples/quickstart.js index 7eb25261c20..bae0a721f39 100644 --- a/packages/google-cloud-vmwareengine/samples/quickstart.js +++ b/packages/google-cloud-vmwareengine/samples/quickstart.js @@ -94,9 +94,8 @@ function main(parent) { }; // Run request - const iterable = await vmwareengineClient.listVmwareEngineNetworksAsync( - request - ); + const iterable = + await vmwareengineClient.listVmwareEngineNetworksAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/packages/google-cloud-vmwareengine/src/index.ts b/packages/google-cloud-vmwareengine/src/index.ts index cd6878beaf5..57769a9f0e6 100644 --- a/packages/google-cloud-vmwareengine/src/index.ts +++ b/packages/google-cloud-vmwareengine/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/src/v1/gapic_metadata.json b/packages/google-cloud-vmwareengine/src/v1/gapic_metadata.json index 0e003e70da7..d9690ae9b72 100644 --- a/packages/google-cloud-vmwareengine/src/v1/gapic_metadata.json +++ b/packages/google-cloud-vmwareengine/src/v1/gapic_metadata.json @@ -20,11 +20,31 @@ "getCluster" ] }, + "GetNode": { + "methods": [ + "getNode" + ] + }, + "GetExternalAddress": { + "methods": [ + "getExternalAddress" + ] + }, "GetSubnet": { "methods": [ "getSubnet" ] }, + "GetExternalAccessRule": { + "methods": [ + "getExternalAccessRule" + ] + }, + "GetLoggingServer": { + "methods": [ + "getLoggingServer" + ] + }, "GetNodeType": { "methods": [ "getNodeType" @@ -40,6 +60,16 @@ "showVcenterCredentials" ] }, + "GetDnsForwarding": { + "methods": [ + "getDnsForwarding" + ] + }, + "GetNetworkPeering": { + "methods": [ + "getNetworkPeering" + ] + }, "GetHcxActivationKey": { "methods": [ "getHcxActivationKey" @@ -50,6 +80,11 @@ "getNetworkPolicy" ] }, + "GetManagementDnsZoneBinding": { + "methods": [ + "getManagementDnsZoneBinding" + ] + }, "GetVmwareEngineNetwork": { "methods": [ "getVmwareEngineNetwork" @@ -60,6 +95,11 @@ "getPrivateConnection" ] }, + "GetDnsBindPermission": { + "methods": [ + "getDnsBindPermission" + ] + }, "CreatePrivateCloud": { "methods": [ "createPrivateCloud" @@ -95,11 +135,56 @@ "deleteCluster" ] }, + "CreateExternalAddress": { + "methods": [ + "createExternalAddress" + ] + }, + "UpdateExternalAddress": { + "methods": [ + "updateExternalAddress" + ] + }, + "DeleteExternalAddress": { + "methods": [ + "deleteExternalAddress" + ] + }, "UpdateSubnet": { "methods": [ "updateSubnet" ] }, + "CreateExternalAccessRule": { + "methods": [ + "createExternalAccessRule" + ] + }, + "UpdateExternalAccessRule": { + "methods": [ + "updateExternalAccessRule" + ] + }, + "DeleteExternalAccessRule": { + "methods": [ + "deleteExternalAccessRule" + ] + }, + "CreateLoggingServer": { + "methods": [ + "createLoggingServer" + ] + }, + "UpdateLoggingServer": { + "methods": [ + "updateLoggingServer" + ] + }, + "DeleteLoggingServer": { + "methods": [ + "deleteLoggingServer" + ] + }, "ResetNsxCredentials": { "methods": [ "resetNsxCredentials" @@ -110,6 +195,26 @@ "resetVcenterCredentials" ] }, + "UpdateDnsForwarding": { + "methods": [ + "updateDnsForwarding" + ] + }, + "CreateNetworkPeering": { + "methods": [ + "createNetworkPeering" + ] + }, + "DeleteNetworkPeering": { + "methods": [ + "deleteNetworkPeering" + ] + }, + "UpdateNetworkPeering": { + "methods": [ + "updateNetworkPeering" + ] + }, "CreateHcxActivationKey": { "methods": [ "createHcxActivationKey" @@ -130,6 +235,26 @@ "deleteNetworkPolicy" ] }, + "CreateManagementDnsZoneBinding": { + "methods": [ + "createManagementDnsZoneBinding" + ] + }, + "UpdateManagementDnsZoneBinding": { + "methods": [ + "updateManagementDnsZoneBinding" + ] + }, + "DeleteManagementDnsZoneBinding": { + "methods": [ + "deleteManagementDnsZoneBinding" + ] + }, + "RepairManagementDnsZoneBinding": { + "methods": [ + "repairManagementDnsZoneBinding" + ] + }, "CreateVmwareEngineNetwork": { "methods": [ "createVmwareEngineNetwork" @@ -160,6 +285,16 @@ "deletePrivateConnection" ] }, + "GrantDnsBindPermission": { + "methods": [ + "grantDnsBindPermission" + ] + }, + "RevokeDnsBindPermission": { + "methods": [ + "revokeDnsBindPermission" + ] + }, "ListPrivateClouds": { "methods": [ "listPrivateClouds", @@ -174,6 +309,27 @@ "listClustersAsync" ] }, + "ListNodes": { + "methods": [ + "listNodes", + "listNodesStream", + "listNodesAsync" + ] + }, + "ListExternalAddresses": { + "methods": [ + "listExternalAddresses", + "listExternalAddressesStream", + "listExternalAddressesAsync" + ] + }, + "FetchNetworkPolicyExternalAddresses": { + "methods": [ + "fetchNetworkPolicyExternalAddresses", + "fetchNetworkPolicyExternalAddressesStream", + "fetchNetworkPolicyExternalAddressesAsync" + ] + }, "ListSubnets": { "methods": [ "listSubnets", @@ -181,6 +337,20 @@ "listSubnetsAsync" ] }, + "ListExternalAccessRules": { + "methods": [ + "listExternalAccessRules", + "listExternalAccessRulesStream", + "listExternalAccessRulesAsync" + ] + }, + "ListLoggingServers": { + "methods": [ + "listLoggingServers", + "listLoggingServersStream", + "listLoggingServersAsync" + ] + }, "ListNodeTypes": { "methods": [ "listNodeTypes", @@ -188,6 +358,20 @@ "listNodeTypesAsync" ] }, + "ListNetworkPeerings": { + "methods": [ + "listNetworkPeerings", + "listNetworkPeeringsStream", + "listNetworkPeeringsAsync" + ] + }, + "ListPeeringRoutes": { + "methods": [ + "listPeeringRoutes", + "listPeeringRoutesStream", + "listPeeringRoutesAsync" + ] + }, "ListHcxActivationKeys": { "methods": [ "listHcxActivationKeys", @@ -202,6 +386,13 @@ "listNetworkPoliciesAsync" ] }, + "ListManagementDnsZoneBindings": { + "methods": [ + "listManagementDnsZoneBindings", + "listManagementDnsZoneBindingsStream", + "listManagementDnsZoneBindingsAsync" + ] + }, "ListVmwareEngineNetworks": { "methods": [ "listVmwareEngineNetworks", @@ -238,11 +429,31 @@ "getCluster" ] }, + "GetNode": { + "methods": [ + "getNode" + ] + }, + "GetExternalAddress": { + "methods": [ + "getExternalAddress" + ] + }, "GetSubnet": { "methods": [ "getSubnet" ] }, + "GetExternalAccessRule": { + "methods": [ + "getExternalAccessRule" + ] + }, + "GetLoggingServer": { + "methods": [ + "getLoggingServer" + ] + }, "GetNodeType": { "methods": [ "getNodeType" @@ -258,6 +469,16 @@ "showVcenterCredentials" ] }, + "GetDnsForwarding": { + "methods": [ + "getDnsForwarding" + ] + }, + "GetNetworkPeering": { + "methods": [ + "getNetworkPeering" + ] + }, "GetHcxActivationKey": { "methods": [ "getHcxActivationKey" @@ -268,6 +489,11 @@ "getNetworkPolicy" ] }, + "GetManagementDnsZoneBinding": { + "methods": [ + "getManagementDnsZoneBinding" + ] + }, "GetVmwareEngineNetwork": { "methods": [ "getVmwareEngineNetwork" @@ -278,6 +504,11 @@ "getPrivateConnection" ] }, + "GetDnsBindPermission": { + "methods": [ + "getDnsBindPermission" + ] + }, "CreatePrivateCloud": { "methods": [ "createPrivateCloud" @@ -313,11 +544,56 @@ "deleteCluster" ] }, + "CreateExternalAddress": { + "methods": [ + "createExternalAddress" + ] + }, + "UpdateExternalAddress": { + "methods": [ + "updateExternalAddress" + ] + }, + "DeleteExternalAddress": { + "methods": [ + "deleteExternalAddress" + ] + }, "UpdateSubnet": { "methods": [ "updateSubnet" ] }, + "CreateExternalAccessRule": { + "methods": [ + "createExternalAccessRule" + ] + }, + "UpdateExternalAccessRule": { + "methods": [ + "updateExternalAccessRule" + ] + }, + "DeleteExternalAccessRule": { + "methods": [ + "deleteExternalAccessRule" + ] + }, + "CreateLoggingServer": { + "methods": [ + "createLoggingServer" + ] + }, + "UpdateLoggingServer": { + "methods": [ + "updateLoggingServer" + ] + }, + "DeleteLoggingServer": { + "methods": [ + "deleteLoggingServer" + ] + }, "ResetNsxCredentials": { "methods": [ "resetNsxCredentials" @@ -328,6 +604,26 @@ "resetVcenterCredentials" ] }, + "UpdateDnsForwarding": { + "methods": [ + "updateDnsForwarding" + ] + }, + "CreateNetworkPeering": { + "methods": [ + "createNetworkPeering" + ] + }, + "DeleteNetworkPeering": { + "methods": [ + "deleteNetworkPeering" + ] + }, + "UpdateNetworkPeering": { + "methods": [ + "updateNetworkPeering" + ] + }, "CreateHcxActivationKey": { "methods": [ "createHcxActivationKey" @@ -348,6 +644,26 @@ "deleteNetworkPolicy" ] }, + "CreateManagementDnsZoneBinding": { + "methods": [ + "createManagementDnsZoneBinding" + ] + }, + "UpdateManagementDnsZoneBinding": { + "methods": [ + "updateManagementDnsZoneBinding" + ] + }, + "DeleteManagementDnsZoneBinding": { + "methods": [ + "deleteManagementDnsZoneBinding" + ] + }, + "RepairManagementDnsZoneBinding": { + "methods": [ + "repairManagementDnsZoneBinding" + ] + }, "CreateVmwareEngineNetwork": { "methods": [ "createVmwareEngineNetwork" @@ -378,6 +694,16 @@ "deletePrivateConnection" ] }, + "GrantDnsBindPermission": { + "methods": [ + "grantDnsBindPermission" + ] + }, + "RevokeDnsBindPermission": { + "methods": [ + "revokeDnsBindPermission" + ] + }, "ListPrivateClouds": { "methods": [ "listPrivateClouds", @@ -392,6 +718,27 @@ "listClustersAsync" ] }, + "ListNodes": { + "methods": [ + "listNodes", + "listNodesStream", + "listNodesAsync" + ] + }, + "ListExternalAddresses": { + "methods": [ + "listExternalAddresses", + "listExternalAddressesStream", + "listExternalAddressesAsync" + ] + }, + "FetchNetworkPolicyExternalAddresses": { + "methods": [ + "fetchNetworkPolicyExternalAddresses", + "fetchNetworkPolicyExternalAddressesStream", + "fetchNetworkPolicyExternalAddressesAsync" + ] + }, "ListSubnets": { "methods": [ "listSubnets", @@ -399,6 +746,20 @@ "listSubnetsAsync" ] }, + "ListExternalAccessRules": { + "methods": [ + "listExternalAccessRules", + "listExternalAccessRulesStream", + "listExternalAccessRulesAsync" + ] + }, + "ListLoggingServers": { + "methods": [ + "listLoggingServers", + "listLoggingServersStream", + "listLoggingServersAsync" + ] + }, "ListNodeTypes": { "methods": [ "listNodeTypes", @@ -406,6 +767,20 @@ "listNodeTypesAsync" ] }, + "ListNetworkPeerings": { + "methods": [ + "listNetworkPeerings", + "listNetworkPeeringsStream", + "listNetworkPeeringsAsync" + ] + }, + "ListPeeringRoutes": { + "methods": [ + "listPeeringRoutes", + "listPeeringRoutesStream", + "listPeeringRoutesAsync" + ] + }, "ListHcxActivationKeys": { "methods": [ "listHcxActivationKeys", @@ -420,6 +795,13 @@ "listNetworkPoliciesAsync" ] }, + "ListManagementDnsZoneBindings": { + "methods": [ + "listManagementDnsZoneBindings", + "listManagementDnsZoneBindingsStream", + "listManagementDnsZoneBindingsAsync" + ] + }, "ListVmwareEngineNetworks": { "methods": [ "listVmwareEngineNetworks", diff --git a/packages/google-cloud-vmwareengine/src/v1/index.ts b/packages/google-cloud-vmwareengine/src/v1/index.ts index b4f28be5fac..826f5e1696c 100644 --- a/packages/google-cloud-vmwareengine/src/v1/index.ts +++ b/packages/google-cloud-vmwareengine/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/src/v1/vmware_engine_client.ts b/packages/google-cloud-vmwareengine/src/v1/vmware_engine_client.ts index a626bdeb4d9..7be0e4e9dd0 100644 --- a/packages/google-cloud-vmwareengine/src/v1/vmware_engine_client.ts +++ b/packages/google-cloud-vmwareengine/src/v1/vmware_engine_client.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -195,15 +195,39 @@ export class VmwareEngineClient { clusterPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}' ), + dnsBindPermissionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/dnsBindPermission' + ), + dnsForwardingPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/privateClouds/{private_cloud}/dnsForwarding' + ), + externalAccessRulePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/networkPolicies/{network_policy}/externalAccessRules/{external_access_rule}' + ), + externalAddressPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}' + ), hcxActivationKeyPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}' ), locationPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}' ), + loggingServerPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/privateClouds/{private_cloud}/loggingServers/{logging_server}' + ), + managementDnsZoneBindingPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/privateClouds/{private_cloud}/managementDnsZoneBindings/{management_dns_zone_binding}' + ), + networkPeeringPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/networkPeerings/{network_peering}' + ), networkPolicyPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/networkPolicies/{network_policy}' ), + nodePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}' + ), nodeTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/nodeTypes/{node_type}' ), @@ -238,16 +262,51 @@ export class VmwareEngineClient { 'nextPageToken', 'clusters' ), + listNodes: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nodes' + ), + listExternalAddresses: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'externalAddresses' + ), + fetchNetworkPolicyExternalAddresses: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'externalAddresses' + ), listSubnets: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', 'subnets' ), + listExternalAccessRules: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'externalAccessRules' + ), + listLoggingServers: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'loggingServers' + ), listNodeTypes: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', 'nodeTypes' ), + listNetworkPeerings: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'networkPeerings' + ), + listPeeringRoutes: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'peeringRoutes' + ), listHcxActivationKeys: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -258,6 +317,11 @@ export class VmwareEngineClient { 'nextPageToken', 'networkPolicies' ), + listManagementDnsZoneBindings: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'managementDnsZoneBindings' + ), listVmwareEngineNetworks: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -395,12 +459,66 @@ export class VmwareEngineClient { const deleteClusterMetadata = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.OperationMetadata' ) as gax.protobuf.Type; + const createExternalAddressResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.ExternalAddress' + ) as gax.protobuf.Type; + const createExternalAddressMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const updateExternalAddressResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.ExternalAddress' + ) as gax.protobuf.Type; + const updateExternalAddressMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const deleteExternalAddressResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteExternalAddressMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; const updateSubnetResponse = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.Subnet' ) as gax.protobuf.Type; const updateSubnetMetadata = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.OperationMetadata' ) as gax.protobuf.Type; + const createExternalAccessRuleResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.ExternalAccessRule' + ) as gax.protobuf.Type; + const createExternalAccessRuleMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const updateExternalAccessRuleResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.ExternalAccessRule' + ) as gax.protobuf.Type; + const updateExternalAccessRuleMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const deleteExternalAccessRuleResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteExternalAccessRuleMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const createLoggingServerResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.LoggingServer' + ) as gax.protobuf.Type; + const createLoggingServerMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const updateLoggingServerResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.LoggingServer' + ) as gax.protobuf.Type; + const updateLoggingServerMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const deleteLoggingServerResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteLoggingServerMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; const resetNsxCredentialsResponse = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.PrivateCloud' ) as gax.protobuf.Type; @@ -413,6 +531,30 @@ export class VmwareEngineClient { const resetVcenterCredentialsMetadata = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.OperationMetadata' ) as gax.protobuf.Type; + const updateDnsForwardingResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.DnsForwarding' + ) as gax.protobuf.Type; + const updateDnsForwardingMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const createNetworkPeeringResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.NetworkPeering' + ) as gax.protobuf.Type; + const createNetworkPeeringMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const deleteNetworkPeeringResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteNetworkPeeringMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const updateNetworkPeeringResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.NetworkPeering' + ) as gax.protobuf.Type; + const updateNetworkPeeringMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; const createHcxActivationKeyResponse = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.HcxActivationKey' ) as gax.protobuf.Type; @@ -437,6 +579,30 @@ export class VmwareEngineClient { const deleteNetworkPolicyMetadata = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.OperationMetadata' ) as gax.protobuf.Type; + const createManagementDnsZoneBindingResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding' + ) as gax.protobuf.Type; + const createManagementDnsZoneBindingMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const updateManagementDnsZoneBindingResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding' + ) as gax.protobuf.Type; + const updateManagementDnsZoneBindingMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const deleteManagementDnsZoneBindingResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteManagementDnsZoneBindingMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const repairManagementDnsZoneBindingResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding' + ) as gax.protobuf.Type; + const repairManagementDnsZoneBindingMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; const createVmwareEngineNetworkResponse = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.VmwareEngineNetwork' ) as gax.protobuf.Type; @@ -473,6 +639,18 @@ export class VmwareEngineClient { const deletePrivateConnectionMetadata = protoFilesRoot.lookup( '.google.cloud.vmwareengine.v1.OperationMetadata' ) as gax.protobuf.Type; + const grantDnsBindPermissionResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.DnsBindPermission' + ) as gax.protobuf.Type; + const grantDnsBindPermissionMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; + const revokeDnsBindPermissionResponse = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.DnsBindPermission' + ) as gax.protobuf.Type; + const revokeDnsBindPermissionMetadata = protoFilesRoot.lookup( + '.google.cloud.vmwareengine.v1.OperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { createPrivateCloud: new this._gaxModule.LongrunningDescriptor( @@ -510,11 +688,74 @@ export class VmwareEngineClient { deleteClusterResponse.decode.bind(deleteClusterResponse), deleteClusterMetadata.decode.bind(deleteClusterMetadata) ), + createExternalAddress: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createExternalAddressResponse.decode.bind( + createExternalAddressResponse + ), + createExternalAddressMetadata.decode.bind(createExternalAddressMetadata) + ), + updateExternalAddress: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateExternalAddressResponse.decode.bind( + updateExternalAddressResponse + ), + updateExternalAddressMetadata.decode.bind(updateExternalAddressMetadata) + ), + deleteExternalAddress: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteExternalAddressResponse.decode.bind( + deleteExternalAddressResponse + ), + deleteExternalAddressMetadata.decode.bind(deleteExternalAddressMetadata) + ), updateSubnet: new this._gaxModule.LongrunningDescriptor( this.operationsClient, updateSubnetResponse.decode.bind(updateSubnetResponse), updateSubnetMetadata.decode.bind(updateSubnetMetadata) ), + createExternalAccessRule: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createExternalAccessRuleResponse.decode.bind( + createExternalAccessRuleResponse + ), + createExternalAccessRuleMetadata.decode.bind( + createExternalAccessRuleMetadata + ) + ), + updateExternalAccessRule: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateExternalAccessRuleResponse.decode.bind( + updateExternalAccessRuleResponse + ), + updateExternalAccessRuleMetadata.decode.bind( + updateExternalAccessRuleMetadata + ) + ), + deleteExternalAccessRule: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteExternalAccessRuleResponse.decode.bind( + deleteExternalAccessRuleResponse + ), + deleteExternalAccessRuleMetadata.decode.bind( + deleteExternalAccessRuleMetadata + ) + ), + createLoggingServer: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createLoggingServerResponse.decode.bind(createLoggingServerResponse), + createLoggingServerMetadata.decode.bind(createLoggingServerMetadata) + ), + updateLoggingServer: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateLoggingServerResponse.decode.bind(updateLoggingServerResponse), + updateLoggingServerMetadata.decode.bind(updateLoggingServerMetadata) + ), + deleteLoggingServer: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteLoggingServerResponse.decode.bind(deleteLoggingServerResponse), + deleteLoggingServerMetadata.decode.bind(deleteLoggingServerMetadata) + ), resetNsxCredentials: new this._gaxModule.LongrunningDescriptor( this.operationsClient, resetNsxCredentialsResponse.decode.bind(resetNsxCredentialsResponse), @@ -529,6 +770,26 @@ export class VmwareEngineClient { resetVcenterCredentialsMetadata ) ), + updateDnsForwarding: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateDnsForwardingResponse.decode.bind(updateDnsForwardingResponse), + updateDnsForwardingMetadata.decode.bind(updateDnsForwardingMetadata) + ), + createNetworkPeering: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createNetworkPeeringResponse.decode.bind(createNetworkPeeringResponse), + createNetworkPeeringMetadata.decode.bind(createNetworkPeeringMetadata) + ), + deleteNetworkPeering: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteNetworkPeeringResponse.decode.bind(deleteNetworkPeeringResponse), + deleteNetworkPeeringMetadata.decode.bind(deleteNetworkPeeringMetadata) + ), + updateNetworkPeering: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateNetworkPeeringResponse.decode.bind(updateNetworkPeeringResponse), + updateNetworkPeeringMetadata.decode.bind(updateNetworkPeeringMetadata) + ), createHcxActivationKey: new this._gaxModule.LongrunningDescriptor( this.operationsClient, createHcxActivationKeyResponse.decode.bind( @@ -553,6 +814,42 @@ export class VmwareEngineClient { deleteNetworkPolicyResponse.decode.bind(deleteNetworkPolicyResponse), deleteNetworkPolicyMetadata.decode.bind(deleteNetworkPolicyMetadata) ), + createManagementDnsZoneBinding: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createManagementDnsZoneBindingResponse.decode.bind( + createManagementDnsZoneBindingResponse + ), + createManagementDnsZoneBindingMetadata.decode.bind( + createManagementDnsZoneBindingMetadata + ) + ), + updateManagementDnsZoneBinding: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateManagementDnsZoneBindingResponse.decode.bind( + updateManagementDnsZoneBindingResponse + ), + updateManagementDnsZoneBindingMetadata.decode.bind( + updateManagementDnsZoneBindingMetadata + ) + ), + deleteManagementDnsZoneBinding: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteManagementDnsZoneBindingResponse.decode.bind( + deleteManagementDnsZoneBindingResponse + ), + deleteManagementDnsZoneBindingMetadata.decode.bind( + deleteManagementDnsZoneBindingMetadata + ) + ), + repairManagementDnsZoneBinding: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + repairManagementDnsZoneBindingResponse.decode.bind( + repairManagementDnsZoneBindingResponse + ), + repairManagementDnsZoneBindingMetadata.decode.bind( + repairManagementDnsZoneBindingMetadata + ) + ), createVmwareEngineNetwork: new this._gaxModule.LongrunningDescriptor( this.operationsClient, createVmwareEngineNetworkResponse.decode.bind( @@ -607,6 +904,24 @@ export class VmwareEngineClient { deletePrivateConnectionMetadata ) ), + grantDnsBindPermission: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + grantDnsBindPermissionResponse.decode.bind( + grantDnsBindPermissionResponse + ), + grantDnsBindPermissionMetadata.decode.bind( + grantDnsBindPermissionMetadata + ) + ), + revokeDnsBindPermission: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + revokeDnsBindPermissionResponse.decode.bind( + revokeDnsBindPermissionResponse + ), + revokeDnsBindPermissionMetadata.decode.bind( + revokeDnsBindPermissionMetadata + ) + ), }; // Put together the default options sent with requests. @@ -670,15 +985,41 @@ export class VmwareEngineClient { 'createCluster', 'updateCluster', 'deleteCluster', + 'listNodes', + 'getNode', + 'listExternalAddresses', + 'fetchNetworkPolicyExternalAddresses', + 'getExternalAddress', + 'createExternalAddress', + 'updateExternalAddress', + 'deleteExternalAddress', 'listSubnets', 'getSubnet', 'updateSubnet', + 'listExternalAccessRules', + 'getExternalAccessRule', + 'createExternalAccessRule', + 'updateExternalAccessRule', + 'deleteExternalAccessRule', + 'listLoggingServers', + 'getLoggingServer', + 'createLoggingServer', + 'updateLoggingServer', + 'deleteLoggingServer', 'listNodeTypes', 'getNodeType', 'showNsxCredentials', 'showVcenterCredentials', 'resetNsxCredentials', 'resetVcenterCredentials', + 'getDnsForwarding', + 'updateDnsForwarding', + 'getNetworkPeering', + 'listNetworkPeerings', + 'createNetworkPeering', + 'deleteNetworkPeering', + 'updateNetworkPeering', + 'listPeeringRoutes', 'createHcxActivationKey', 'listHcxActivationKeys', 'getHcxActivationKey', @@ -687,6 +1028,12 @@ export class VmwareEngineClient { 'createNetworkPolicy', 'updateNetworkPolicy', 'deleteNetworkPolicy', + 'listManagementDnsZoneBindings', + 'getManagementDnsZoneBinding', + 'createManagementDnsZoneBinding', + 'updateManagementDnsZoneBinding', + 'deleteManagementDnsZoneBinding', + 'repairManagementDnsZoneBinding', 'createVmwareEngineNetwork', 'updateVmwareEngineNetwork', 'deleteVmwareEngineNetwork', @@ -698,6 +1045,9 @@ export class VmwareEngineClient { 'updatePrivateConnection', 'deletePrivateConnection', 'listPrivateConnectionPeeringRoutes', + 'grantDnsBindPermission', + 'getDnsBindPermission', + 'revokeDnsBindPermission', ]; for (const methodName of vmwareEngineStubMethods) { const callPromise = this.vmwareEngineStub.then( @@ -967,72 +1317,70 @@ export class VmwareEngineClient { return this.innerApiCalls.getCluster(request, options, callback); } /** - * Gets details of a single subnet. + * Gets details of a single node. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the subnet to retrieve. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. + * Required. The resource name of the node to retrieve. * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` + * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.Subnet|Subnet}. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.Node|Node}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.get_subnet.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_GetSubnet_async + * @example include:samples/generated/v1/vmware_engine.get_node.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetNode_async */ - getSubnet( - request?: protos.google.cloud.vmwareengine.v1.IGetSubnetRequest, + getNode( + request?: protos.google.cloud.vmwareengine.v1.IGetNodeRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | undefined, + protos.google.cloud.vmwareengine.v1.INode, + protos.google.cloud.vmwareengine.v1.IGetNodeRequest | undefined, {} | undefined, ] >; - getSubnet( - request: protos.google.cloud.vmwareengine.v1.IGetSubnetRequest, + getNode( + request: protos.google.cloud.vmwareengine.v1.IGetNodeRequest, options: CallOptions, callback: Callback< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | null | undefined, + protos.google.cloud.vmwareengine.v1.INode, + protos.google.cloud.vmwareengine.v1.IGetNodeRequest | null | undefined, {} | null | undefined > ): void; - getSubnet( - request: protos.google.cloud.vmwareengine.v1.IGetSubnetRequest, + getNode( + request: protos.google.cloud.vmwareengine.v1.IGetNodeRequest, callback: Callback< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | null | undefined, + protos.google.cloud.vmwareengine.v1.INode, + protos.google.cloud.vmwareengine.v1.IGetNodeRequest | null | undefined, {} | null | undefined > ): void; - getSubnet( - request?: protos.google.cloud.vmwareengine.v1.IGetSubnetRequest, + getNode( + request?: protos.google.cloud.vmwareengine.v1.IGetNodeRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.vmwareengine.v1.ISubnet, - | protos.google.cloud.vmwareengine.v1.IGetSubnetRequest + protos.google.cloud.vmwareengine.v1.INode, + | protos.google.cloud.vmwareengine.v1.IGetNodeRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | null | undefined, + protos.google.cloud.vmwareengine.v1.INode, + protos.google.cloud.vmwareengine.v1.IGetNodeRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | undefined, + protos.google.cloud.vmwareengine.v1.INode, + protos.google.cloud.vmwareengine.v1.IGetNodeRequest | undefined, {} | undefined, ] > | void { @@ -1052,81 +1400,87 @@ export class VmwareEngineClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getSubnet(request, options, callback); + return this.innerApiCalls.getNode(request, options, callback); } /** - * Gets details of a single `NodeType`. + * Gets details of a single external IP address. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the node type to retrieve. + * Required. The resource name of the external IP address to retrieve. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.NodeType|NodeType}. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.ExternalAddress|ExternalAddress}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.get_node_type.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_GetNodeType_async + * @example include:samples/generated/v1/vmware_engine.get_external_address.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_async */ - getNodeType( - request?: protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest, + getExternalAddress( + request?: protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.INodeType, - protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress, + ( + | protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest + | undefined + ), {} | undefined, ] >; - getNodeType( - request: protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest, + getExternalAddress( + request: protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest, options: CallOptions, callback: Callback< - protos.google.cloud.vmwareengine.v1.INodeType, - | protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest + protos.google.cloud.vmwareengine.v1.IExternalAddress, + | protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest | null | undefined, {} | null | undefined > ): void; - getNodeType( - request: protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest, + getExternalAddress( + request: protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest, callback: Callback< - protos.google.cloud.vmwareengine.v1.INodeType, - | protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest + protos.google.cloud.vmwareengine.v1.IExternalAddress, + | protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest | null | undefined, {} | null | undefined > ): void; - getNodeType( - request?: protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest, + getExternalAddress( + request?: protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.vmwareengine.v1.INodeType, - | protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest + protos.google.cloud.vmwareengine.v1.IExternalAddress, + | protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.vmwareengine.v1.INodeType, - | protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest + protos.google.cloud.vmwareengine.v1.IExternalAddress, + | protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.vmwareengine.v1.INodeType, - protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress, + ( + | protos.google.cloud.vmwareengine.v1.IGetExternalAddressRequest + | undefined + ), {} | undefined, ] > | void { @@ -1146,88 +1500,75 @@ export class VmwareEngineClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getNodeType(request, options, callback); + return this.innerApiCalls.getExternalAddress(request, options, callback); } /** - * Gets details of credentials for NSX appliance. + * Gets details of a single subnet. * * @param {Object} request * The request object that will be sent. - * @param {string} request.privateCloud - * Required. The resource name of the private cloud - * to be queried for credentials. + * @param {string} request.name + * Required. The resource name of the subnet to retrieve. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.Credentials|Credentials}. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.Subnet|Subnet}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.show_nsx_credentials.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ShowNsxCredentials_async + * @example include:samples/generated/v1/vmware_engine.get_subnet.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetSubnet_async */ - showNsxCredentials( - request?: protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, + getSubnet( + request?: protos.google.cloud.vmwareengine.v1.IGetSubnetRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.ICredentials, - ( - | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest - | undefined - ), + protos.google.cloud.vmwareengine.v1.ISubnet, + protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | undefined, {} | undefined, ] >; - showNsxCredentials( - request: protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, + getSubnet( + request: protos.google.cloud.vmwareengine.v1.IGetSubnetRequest, options: CallOptions, callback: Callback< - protos.google.cloud.vmwareengine.v1.ICredentials, - | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest - | null - | undefined, + protos.google.cloud.vmwareengine.v1.ISubnet, + protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | null | undefined, {} | null | undefined > ): void; - showNsxCredentials( - request: protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, + getSubnet( + request: protos.google.cloud.vmwareengine.v1.IGetSubnetRequest, callback: Callback< - protos.google.cloud.vmwareengine.v1.ICredentials, - | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest - | null - | undefined, + protos.google.cloud.vmwareengine.v1.ISubnet, + protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | null | undefined, {} | null | undefined > ): void; - showNsxCredentials( - request?: protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, + getSubnet( + request?: protos.google.cloud.vmwareengine.v1.IGetSubnetRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.vmwareengine.v1.ICredentials, - | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest + protos.google.cloud.vmwareengine.v1.ISubnet, + | protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.vmwareengine.v1.ICredentials, - | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest - | null - | undefined, + protos.google.cloud.vmwareengine.v1.ISubnet, + protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.vmwareengine.v1.ICredentials, - ( - | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest - | undefined - ), + protos.google.cloud.vmwareengine.v1.ISubnet, + protos.google.cloud.vmwareengine.v1.IGetSubnetRequest | undefined, {} | undefined, ] > | void { @@ -1244,89 +1585,88 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - private_cloud: request.privateCloud ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.showNsxCredentials(request, options, callback); + return this.innerApiCalls.getSubnet(request, options, callback); } /** - * Gets details of credentials for Vcenter appliance. + * Gets details of a single external access rule. * * @param {Object} request * The request object that will be sent. - * @param {string} request.privateCloud - * Required. The resource name of the private cloud - * to be queried for credentials. - * Resource names are schemeless URIs that follow the conventions in + * @param {string} request.name + * Required. The resource name of the external access firewall rule to + * retrieve. Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.Credentials|Credentials}. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.ExternalAccessRule|ExternalAccessRule}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.show_vcenter_credentials.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ShowVcenterCredentials_async + * @example include:samples/generated/v1/vmware_engine.get_external_access_rule.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_async */ - showVcenterCredentials( - request?: protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, + getExternalAccessRule( + request?: protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.ICredentials, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, ( - | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest + | protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest | undefined ), {} | undefined, ] >; - showVcenterCredentials( - request: protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, + getExternalAccessRule( + request: protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest, options: CallOptions, callback: Callback< - protos.google.cloud.vmwareengine.v1.ICredentials, - | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + | protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest | null | undefined, {} | null | undefined > ): void; - showVcenterCredentials( - request: protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, + getExternalAccessRule( + request: protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest, callback: Callback< - protos.google.cloud.vmwareengine.v1.ICredentials, - | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + | protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest | null | undefined, {} | null | undefined > ): void; - showVcenterCredentials( - request?: protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, + getExternalAccessRule( + request?: protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.vmwareengine.v1.ICredentials, - | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + | protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.vmwareengine.v1.ICredentials, - | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + | protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.vmwareengine.v1.ICredentials, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, ( - | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest + | protos.google.cloud.vmwareengine.v1.IGetExternalAccessRuleRequest | undefined ), {} | undefined, @@ -1345,94 +1685,84 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - private_cloud: request.privateCloud ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.showVcenterCredentials( - request, - options, - callback - ); + return this.innerApiCalls.getExternalAccessRule(request, options, callback); } /** - * Retrieves a `HcxActivationKey` resource by its resource name. + * Gets details of a logging server. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the HCX activation key to retrieve. + * Required. The resource name of the Logging Server to retrieve. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.HcxActivationKey|HcxActivationKey}. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.LoggingServer|LoggingServer}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.get_hcx_activation_key.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_GetHcxActivationKey_async + * @example include:samples/generated/v1/vmware_engine.get_logging_server.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_async */ - getHcxActivationKey( - request?: protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, + getLoggingServer( + request?: protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, - ( - | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest - | undefined - ), + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest | undefined, {} | undefined, ] >; - getHcxActivationKey( - request: protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, + getLoggingServer( + request: protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest, options: CallOptions, callback: Callback< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, - | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + protos.google.cloud.vmwareengine.v1.ILoggingServer, + | protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest | null | undefined, {} | null | undefined > ): void; - getHcxActivationKey( - request: protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, + getLoggingServer( + request: protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest, callback: Callback< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, - | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + protos.google.cloud.vmwareengine.v1.ILoggingServer, + | protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest | null | undefined, {} | null | undefined > ): void; - getHcxActivationKey( - request?: protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, + getLoggingServer( + request?: protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, - | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + protos.google.cloud.vmwareengine.v1.ILoggingServer, + | protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, - | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + protos.google.cloud.vmwareengine.v1.ILoggingServer, + | protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, - ( - | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest - | undefined - ), + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IGetLoggingServerRequest | undefined, {} | undefined, ] > | void { @@ -1452,81 +1782,81 @@ export class VmwareEngineClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getHcxActivationKey(request, options, callback); + return this.innerApiCalls.getLoggingServer(request, options, callback); } /** - * Retrieves a `NetworkPolicy` resource by its resource name. + * Gets details of a single `NodeType`. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the network policy to retrieve. + * Required. The resource name of the node type to retrieve. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + * `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.NetworkPolicy|NetworkPolicy}. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.NodeType|NodeType}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.get_network_policy.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_GetNetworkPolicy_async + * @example include:samples/generated/v1/vmware_engine.get_node_type.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetNodeType_async */ - getNetworkPolicy( - request?: protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, + getNodeType( + request?: protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.INetworkPolicy, - protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest | undefined, + protos.google.cloud.vmwareengine.v1.INodeType, + protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest | undefined, {} | undefined, ] >; - getNetworkPolicy( - request: protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, + getNodeType( + request: protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest, options: CallOptions, callback: Callback< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, - | protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest + protos.google.cloud.vmwareengine.v1.INodeType, + | protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest | null | undefined, {} | null | undefined > ): void; - getNetworkPolicy( - request: protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, + getNodeType( + request: protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest, callback: Callback< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, - | protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest + protos.google.cloud.vmwareengine.v1.INodeType, + | protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest | null | undefined, {} | null | undefined > ): void; - getNetworkPolicy( - request?: protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, + getNodeType( + request?: protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, - | protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest + protos.google.cloud.vmwareengine.v1.INodeType, + | protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, - | protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest + protos.google.cloud.vmwareengine.v1.INodeType, + | protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.vmwareengine.v1.INetworkPolicy, - protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest | undefined, + protos.google.cloud.vmwareengine.v1.INodeType, + protos.google.cloud.vmwareengine.v1.IGetNodeTypeRequest | undefined, {} | undefined, ] > | void { @@ -1546,88 +1876,86 @@ export class VmwareEngineClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getNetworkPolicy(request, options, callback); + return this.innerApiCalls.getNodeType(request, options, callback); } /** - * Retrieves a `VmwareEngineNetwork` resource by its resource name. The - * resource contains details of the VMware Engine network, such as its VMware - * Engine network type, peered networks in a service project, and state - * (for example, `CREATING`, `ACTIVE`, `DELETING`). + * Gets details of credentials for NSX appliance. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the VMware Engine network to retrieve. + * @param {string} request.privateCloud + * Required. The resource name of the private cloud + * to be queried for credentials. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork|VmwareEngineNetwork}. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.Credentials|Credentials}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.get_vmware_engine_network.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_GetVmwareEngineNetwork_async + * @example include:samples/generated/v1/vmware_engine.show_nsx_credentials.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ShowNsxCredentials_async */ - getVmwareEngineNetwork( - request?: protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, + showNsxCredentials( + request?: protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.ICredentials, ( - | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest | undefined ), {} | undefined, ] >; - getVmwareEngineNetwork( - request: protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, + showNsxCredentials( + request: protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, options: CallOptions, callback: Callback< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, - | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + protos.google.cloud.vmwareengine.v1.ICredentials, + | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest | null | undefined, {} | null | undefined > ): void; - getVmwareEngineNetwork( - request: protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, + showNsxCredentials( + request: protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, callback: Callback< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, - | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + protos.google.cloud.vmwareengine.v1.ICredentials, + | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest | null | undefined, {} | null | undefined > ): void; - getVmwareEngineNetwork( - request?: protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, + showNsxCredentials( + request?: protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, - | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + protos.google.cloud.vmwareengine.v1.ICredentials, + | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, - | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + protos.google.cloud.vmwareengine.v1.ICredentials, + | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.ICredentials, ( - | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + | protos.google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest | undefined ), {} | undefined, @@ -1646,94 +1974,100 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + private_cloud: request.privateCloud ?? '', }); this.initialize(); - return this.innerApiCalls.getVmwareEngineNetwork( - request, - options, - callback - ); + return this.innerApiCalls.showNsxCredentials(request, options, callback); } /** - * Retrieves a `PrivateConnection` resource by its resource name. The resource - * contains details of the private connection, such as connected - * network, routing mode and state. + * Gets details of credentials for Vcenter appliance. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the private connection to retrieve. + * @param {string} request.privateCloud + * Required. The resource name of the private cloud + * to be queried for credentials. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1/privateConnections/my-connection` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {string} [request.username] + * Optional. The username of the user to be queried for credentials. + * The default value of this field is CloudOwner@gve.local. + * The provided value must be one of the following: + * CloudOwner@gve.local, + * solution-user-01@gve.local, + * solution-user-02@gve.local, + * solution-user-03@gve.local, + * solution-user-04@gve.local, + * solution-user-05@gve.local, + * zertoadmin@gve.local. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.PrivateConnection|PrivateConnection}. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.Credentials|Credentials}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.get_private_connection.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_async + * @example include:samples/generated/v1/vmware_engine.show_vcenter_credentials.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ShowVcenterCredentials_async */ - getPrivateConnection( - request?: protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, + showVcenterCredentials( + request?: protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ICredentials, ( - | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest | undefined ), {} | undefined, ] >; - getPrivateConnection( - request: protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, + showVcenterCredentials( + request: protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, options: CallOptions, callback: Callback< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, - | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + protos.google.cloud.vmwareengine.v1.ICredentials, + | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest | null | undefined, {} | null | undefined > ): void; - getPrivateConnection( - request: protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, + showVcenterCredentials( + request: protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, callback: Callback< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, - | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + protos.google.cloud.vmwareengine.v1.ICredentials, + | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest | null | undefined, {} | null | undefined > ): void; - getPrivateConnection( - request?: protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, + showVcenterCredentials( + request?: protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, - | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + protos.google.cloud.vmwareengine.v1.ICredentials, + | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, - | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + protos.google.cloud.vmwareengine.v1.ICredentials, + | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ICredentials, ( - | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + | protos.google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest | undefined ), {} | undefined, @@ -1752,123 +2086,88 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + private_cloud: request.privateCloud ?? '', }); this.initialize(); - return this.innerApiCalls.getPrivateConnection(request, options, callback); + return this.innerApiCalls.showVcenterCredentials( + request, + options, + callback + ); } - /** - * Creates a new `PrivateCloud` resource in a given project and location. - * Private clouds can only be created in zones, regional private clouds are - * not supported. - * - * Creating a private cloud also creates a [management - * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) - * for that private cloud. + * Gets details of the `DnsForwarding` config. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the location to create the new - * private cloud in. Resource names are schemeless URIs that follow the - * conventions in https://cloud.google.com/apis/design/resource_names. + * @param {string} request.name + * Required. The resource name of a `DnsForwarding` to retrieve. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a` - * @param {string} request.privateCloudId - * Required. The user-provided identifier of the private cloud to be created. - * This identifier must be unique among each `PrivateCloud` within the parent - * and becomes the final token in the name URI. - * The identifier must meet the following requirements: - * - * * Only contains 1-63 alphanumeric characters and hyphens - * * Begins with an alphabetical character - * * Ends with a non-hyphen character - * * Not formatted as a UUID - * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) - * (section 3.5) - * @param {google.cloud.vmwareengine.v1.PrivateCloud} request.privateCloud - * Required. The initial description of the new private cloud. - * @param {string} [request.requestId] - * Optional. The request ID must be a valid UUID with the exception that zero - * UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {boolean} [request.validateOnly] - * Optional. True if you want the request to be validated and not executed; - * false otherwise. + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.DnsForwarding|DnsForwarding}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_private_cloud.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_async + * @example include:samples/generated/v1/vmware_engine.get_dns_forwarding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_async */ - createPrivateCloud( - request?: protos.google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, + getDnsForwarding( + request?: protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest | undefined, {} | undefined, ] >; - createPrivateCloud( - request: protos.google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, + getDnsForwarding( + request: protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + | protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest + | null + | undefined, {} | null | undefined > ): void; - createPrivateCloud( - request: protos.google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, + getDnsForwarding( + request: protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + | protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest + | null + | undefined, {} | null | undefined > ): void; - createPrivateCloud( - request?: protos.google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, + getDnsForwarding( + request?: protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + | protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + | protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IGetDnsForwardingRequest | undefined, {} | undefined, ] > | void { @@ -1885,142 +2184,87 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createPrivateCloud(request, options, callback); - } - /** - * Check the status of the long running operation returned by `createPrivateCloud()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_private_cloud.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_async - */ - async checkCreatePrivateCloudProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.vmwareengine.v1.PrivateCloud, - protos.google.cloud.vmwareengine.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.createPrivateCloud, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.PrivateCloud, - protos.google.cloud.vmwareengine.v1.OperationMetadata - >; + return this.innerApiCalls.getDnsForwarding(request, options, callback); } /** - * Modifies a `PrivateCloud` resource. Only the following fields can be - * updated: `description`. - * Only fields specified in `updateMask` are applied. - * - * During operation processing, the resource is temporarily in the `ACTIVE` - * state before the operation fully completes. For that period of time, you - * can't update the resource. Use the operation status to determine when the - * processing fully completes. + * Retrieves a `NetworkPeering` resource by its resource name. The resource + * contains details of the network peering, such as peered + * networks, import and export custom route configurations, and peering state. + * NetworkPeering is a global resource and location can only be global. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.vmwareengine.v1.PrivateCloud} request.privateCloud - * Required. Private cloud description. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. Field mask is used to specify the fields to be overwritten in the - * `PrivateCloud` resource by the update. The fields specified in `updateMask` - * are relative to the resource, not the full request. A field will be - * overwritten if it is in the mask. If the user does not provide a mask then - * all fields will be overwritten. - * @param {string} [request.requestId] - * Optional. 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.name + * Required. The resource name of the network peering to retrieve. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/global/networkPeerings/my-peering` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.NetworkPeering|NetworkPeering}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_private_cloud.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdatePrivateCloud_async + * @example include:samples/generated/v1/vmware_engine.get_network_peering.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_async */ - updatePrivateCloud( - request?: protos.google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, + getNetworkPeering( + request?: protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest | undefined, {} | undefined, ] >; - updatePrivateCloud( - request: protos.google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, + getNetworkPeering( + request: protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPeering, + | protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest + | null + | undefined, {} | null | undefined > ): void; - updatePrivateCloud( - request: protos.google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, + getNetworkPeering( + request: protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPeering, + | protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest + | null + | undefined, {} | null | undefined > ): void; - updatePrivateCloud( - request?: protos.google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, + getNetworkPeering( + request?: protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPeering, + | protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPeering, + | protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IGetNetworkPeeringRequest | undefined, {} | undefined, ] > | void { @@ -2037,162 +2281,90 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'private_cloud.name': request.privateCloud!.name ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updatePrivateCloud(request, options, callback); + return this.innerApiCalls.getNetworkPeering(request, options, callback); } /** - * Check the status of the long running operation returned by `updatePrivateCloud()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * Retrieves a `HcxActivationKey` resource by its resource name. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the HCX activation key to retrieve. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.HcxActivationKey|HcxActivationKey}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_private_cloud.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdatePrivateCloud_async - */ - async checkUpdatePrivateCloudProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.vmwareengine.v1.PrivateCloud, - protos.google.cloud.vmwareengine.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.updatePrivateCloud, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.PrivateCloud, - protos.google.cloud.vmwareengine.v1.OperationMetadata - >; - } - /** - * Schedules a `PrivateCloud` resource for deletion. - * - * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` - * set to `DELETED` and `expireTime` set to the time when deletion is final - * and can no longer be reversed. The delete operation is marked as done - * as soon as the `PrivateCloud` is successfully scheduled for deletion - * (this also applies when `delayHours` is set to zero), and the operation is - * not kept in pending state until `PrivateCloud` is purged. - * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before - * the `expireTime` elapses. When `expireTime` is reached, deletion is final - * and all private cloud resources are irreversibly removed and billing stops. - * During the final removal process, `PrivateCloud.state` is set to `PURGING`. - * `PrivateCloud` can be polled using standard `GET` method for the whole - * period of deletion and purging. It will not be returned only - * when it is completely purged. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the private cloud to delete. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - * @param {string} [request.requestId] - * Optional. The request ID must be a valid UUID with the exception that zero - * UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {boolean} [request.force] - * Optional. If set to true, cascade delete is enabled and all children of - * this private cloud resource are also deleted. When this flag is set to - * false, the private cloud will not be deleted if there are any children - * other than the management cluster. The management cluster is always - * deleted. - * @param {number} [request.delayHours] - * Optional. Time delay of the deletion specified in hours. The default value - * is `3`. Specifying a non-zero value for this field changes the value of - * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned - * deletion time. Deletion can be cancelled before `expire_time` elapses using - * {@link protos.google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud|VmwareEngine.UndeletePrivateCloud}. - * Specifying a value of `0` for this field instead begins the deletion - * process and ceases billing immediately. During the final deletion process, - * the value of `PrivateCloud.state` becomes `PURGING`. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_private_cloud.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeletePrivateCloud_async + * @example include:samples/generated/v1/vmware_engine.get_hcx_activation_key.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetHcxActivationKey_async */ - deletePrivateCloud( - request?: protos.google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, + getHcxActivationKey( + request?: protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + ( + | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + | undefined + ), {} | undefined, ] >; - deletePrivateCloud( - request: protos.google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, + getHcxActivationKey( + request: protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + | null + | undefined, {} | null | undefined > ): void; - deletePrivateCloud( - request: protos.google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, + getHcxActivationKey( + request: protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + | null + | undefined, {} | null | undefined > ): void; - deletePrivateCloud( - request?: protos.google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, + getHcxActivationKey( + request?: protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + ( + | protos.google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest + | undefined + ), {} | undefined, ] > | void { @@ -2212,133 +2384,81 @@ export class VmwareEngineClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deletePrivateCloud(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deletePrivateCloud()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_private_cloud.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeletePrivateCloud_async - */ - async checkDeletePrivateCloudProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.vmwareengine.v1.PrivateCloud, - protos.google.cloud.vmwareengine.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deletePrivateCloud, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.PrivateCloud, - protos.google.cloud.vmwareengine.v1.OperationMetadata - >; + return this.innerApiCalls.getHcxActivationKey(request, options, callback); } /** - * Restores a private cloud that was previously scheduled for deletion by - * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has - * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to - * the time when deletion can no longer be reversed. + * Retrieves a `NetworkPolicy` resource by its resource name. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the private cloud scheduled for deletion. + * Required. The resource name of the network policy to retrieve. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - * @param {string} [request.requestId] - * Optional. The request ID must be a valid UUID with the exception that zero - * UUID is not supported (00000000-0000-0000-0000-000000000000). + * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.NetworkPolicy|NetworkPolicy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.undelete_private_cloud.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UndeletePrivateCloud_async + * @example include:samples/generated/v1/vmware_engine.get_network_policy.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetNetworkPolicy_async */ - undeletePrivateCloud( - request?: protos.google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, + getNetworkPolicy( + request?: protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest | undefined, {} | undefined, ] >; - undeletePrivateCloud( - request: protos.google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, + getNetworkPolicy( + request: protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + | protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest + | null + | undefined, {} | null | undefined > ): void; - undeletePrivateCloud( - request: protos.google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, + getNetworkPolicy( + request: protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + | protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest + | null + | undefined, {} | null | undefined > ): void; - undeletePrivateCloud( - request?: protos.google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, + getNetworkPolicy( + request?: protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, - {} | null | undefined + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + | protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest + | null + | undefined, + {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + | protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest | undefined, {} | undefined, ] > | void { @@ -2358,150 +2478,87 @@ export class VmwareEngineClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.undeletePrivateCloud(request, options, callback); - } - /** - * Check the status of the long running operation returned by `undeletePrivateCloud()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.undelete_private_cloud.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UndeletePrivateCloud_async - */ - async checkUndeletePrivateCloudProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.vmwareengine.v1.PrivateCloud, - protos.google.cloud.vmwareengine.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.undeletePrivateCloud, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.PrivateCloud, - protos.google.cloud.vmwareengine.v1.OperationMetadata - >; + return this.innerApiCalls.getNetworkPolicy(request, options, callback); } /** - * Creates a new cluster in a given private cloud. - * Creating a new cluster provides additional nodes for - * use in the parent private cloud and requires sufficient [node - * quota](https://cloud.google.com/vmware-engine/quotas). + * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the private cloud to create a new cluster - * in. Resource names are schemeless URIs that follow the conventions in + * @param {string} request.name + * Required. The resource name of the management DNS zone binding to + * retrieve. Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - * @param {string} request.clusterId - * Required. The user-provided identifier of the new `Cluster`. - * This identifier must be unique among clusters within the parent and becomes - * the final token in the name URI. - * The identifier must meet the following requirements: - * - * * Only contains 1-63 alphanumeric characters and hyphens - * * Begins with an alphabetical character - * * Ends with a non-hyphen character - * * Not formatted as a UUID - * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) - * (section 3.5) - * @param {google.cloud.vmwareengine.v1.Cluster} request.cluster - * Required. The initial description of the new cluster. - * @param {string} [request.requestId] - * Optional. The request ID must be a valid UUID with the exception that zero - * UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {boolean} [request.validateOnly] - * Optional. True if you want the request to be validated and not executed; - * false otherwise. + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding|ManagementDnsZoneBinding}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_cluster.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateCluster_async + * @example include:samples/generated/v1/vmware_engine.get_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_async */ - createCluster( - request?: protos.google.cloud.vmwareengine.v1.ICreateClusterRequest, + getManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + ( + | protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest + | undefined + ), {} | undefined, ] >; - createCluster( - request: protos.google.cloud.vmwareengine.v1.ICreateClusterRequest, + getManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + | protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest + | null + | undefined, {} | null | undefined > ): void; - createCluster( - request: protos.google.cloud.vmwareengine.v1.ICreateClusterRequest, + getManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + | protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest + | null + | undefined, {} | null | undefined > ): void; - createCluster( - request?: protos.google.cloud.vmwareengine.v1.ICreateClusterRequest, + getManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + | protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + | protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + ( + | protos.google.cloud.vmwareengine.v1.IGetManagementDnsZoneBindingRequest + | undefined + ), {} | undefined, ] > | void { @@ -2518,145 +2575,97 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createCluster(request, options, callback); - } - /** - * Check the status of the long running operation returned by `createCluster()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_cluster.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateCluster_async - */ - async checkCreateClusterProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.vmwareengine.v1.Cluster, - protos.google.cloud.vmwareengine.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.createCluster, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.getManagementDnsZoneBinding( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.Cluster, - protos.google.cloud.vmwareengine.v1.OperationMetadata - >; } /** - * Modifies a `Cluster` resource. Only the following fields can be updated: - * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are - * applied. - * - * During operation processing, the resource is temporarily in the `ACTIVE` - * state before the operation fully completes. For that period of time, you - * can't update the resource. Use the operation status to determine when the - * processing fully completes. + * Retrieves a `VmwareEngineNetwork` resource by its resource name. The + * resource contains details of the VMware Engine network, such as its VMware + * Engine network type, peered networks in a service project, and state + * (for example, `CREATING`, `ACTIVE`, `DELETING`). * * @param {Object} request * The request object that will be sent. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. Field mask is used to specify the fields to be overwritten in the - * `Cluster` resource by the update. The fields specified in the `updateMask` - * are relative to the resource, not the full request. A field will be - * overwritten if it is in the mask. If the user does not provide a mask then - * all fields will be overwritten. - * @param {google.cloud.vmwareengine.v1.Cluster} request.cluster - * Required. The description of the cluster. - * @param {string} [request.requestId] - * Optional. The request ID must be a valid UUID with the exception that - * zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {boolean} [request.validateOnly] - * Optional. True if you want the request to be validated and not executed; - * false otherwise. + * @param {string} request.name + * Required. The resource name of the VMware Engine network to retrieve. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork|VmwareEngineNetwork}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_cluster.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateCluster_async + * @example include:samples/generated/v1/vmware_engine.get_vmware_engine_network.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetVmwareEngineNetwork_async */ - updateCluster( - request?: protos.google.cloud.vmwareengine.v1.IUpdateClusterRequest, + getVmwareEngineNetwork( + request?: protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + ( + | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + | undefined + ), {} | undefined, ] >; - updateCluster( - request: protos.google.cloud.vmwareengine.v1.IUpdateClusterRequest, + getVmwareEngineNetwork( + request: protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + | null + | undefined, {} | null | undefined > ): void; - updateCluster( - request: protos.google.cloud.vmwareengine.v1.IUpdateClusterRequest, + getVmwareEngineNetwork( + request: protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + | null + | undefined, {} | null | undefined > ): void; - updateCluster( - request?: protos.google.cloud.vmwareengine.v1.IUpdateClusterRequest, + getVmwareEngineNetwork( + request?: protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + ( + | protos.google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest + | undefined + ), {} | undefined, ] > | void { @@ -2673,136 +2682,96 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'cluster.name': request.cluster!.name ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateCluster(request, options, callback); - } - /** - * Check the status of the long running operation returned by `updateCluster()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_cluster.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateCluster_async - */ - async checkUpdateClusterProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.vmwareengine.v1.Cluster, - protos.google.cloud.vmwareengine.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.updateCluster, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.getVmwareEngineNetwork( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.Cluster, - protos.google.cloud.vmwareengine.v1.OperationMetadata - >; } /** - * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or - * gracefully shut down any workloads running on the cluster before deletion. - * You cannot delete the management cluster of a private cloud using this - * method. + * Retrieves a `PrivateConnection` resource by its resource name. The resource + * contains details of the private connection, such as connected + * network, routing mode and state. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the cluster to delete. + * Required. The resource name of the private connection to retrieve. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` - * @param {string} [request.requestId] - * Optional. The request ID must be a valid UUID with the exception that zero - * UUID is not supported (00000000-0000-0000-0000-000000000000). + * `projects/my-project/locations/us-central1/privateConnections/my-connection` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.PrivateConnection|PrivateConnection}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_cluster.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteCluster_async + * @example include:samples/generated/v1/vmware_engine.get_private_connection.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_async */ - deleteCluster( - request?: protos.google.cloud.vmwareengine.v1.IDeleteClusterRequest, + getPrivateConnection( + request?: protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + ( + | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + | undefined + ), {} | undefined, ] >; - deleteCluster( - request: protos.google.cloud.vmwareengine.v1.IDeleteClusterRequest, + getPrivateConnection( + request: protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCluster( - request: protos.google.cloud.vmwareengine.v1.IDeleteClusterRequest, + getPrivateConnection( + request: protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCluster( - request?: protos.google.cloud.vmwareengine.v1.IDeleteClusterRequest, + getPrivateConnection( + request?: protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + ( + | protos.google.cloud.vmwareengine.v1.IGetPrivateConnectionRequest + | undefined + ), {} | undefined, ] > | void { @@ -2822,134 +2791,90 @@ export class VmwareEngineClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteCluster(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteCluster()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_cluster.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteCluster_async - */ - async checkDeleteClusterProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.vmwareengine.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteCluster, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.vmwareengine.v1.OperationMetadata - >; + return this.innerApiCalls.getPrivateConnection(request, options, callback); } /** - * Updates the parameters of a single subnet. Only fields specified in - * `update_mask` are applied. - * - * *Note*: This API is synchronous and always returns a successful - * `google.longrunning.Operation` (LRO). The returned LRO will only have - * `done` and `response` fields. + * Gets all the principals having bind permission on the intranet VPC + * associated with the consumer project granted by the Grant API. + * DnsBindPermission is a global resource and location can only be global. * * @param {Object} request * The request object that will be sent. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. Field mask is used to specify the fields to be overwritten in the - * `Subnet` resource by the update. - * The fields specified in the `update_mask` are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @param {google.cloud.vmwareengine.v1.Subnet} request.subnet - * Required. Subnet description. + * @param {string} request.name + * Required. The name of the resource which stores the users/service accounts + * having the permission to bind to the corresponding intranet VPC of the + * consumer project. DnsBindPermission is a global resource. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/dnsBindPermission` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.vmwareengine.v1.DnsBindPermission|DnsBindPermission}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_subnet.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async + * @example include:samples/generated/v1/vmware_engine.get_dns_bind_permission.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_async */ - updateSubnet( - request?: protos.google.cloud.vmwareengine.v1.IUpdateSubnetRequest, + getDnsBindPermission( + request?: protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + ( + | protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest + | undefined + ), {} | undefined, ] >; - updateSubnet( - request: protos.google.cloud.vmwareengine.v1.IUpdateSubnetRequest, + getDnsBindPermission( + request: protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + | protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest + | null + | undefined, {} | null | undefined > ): void; - updateSubnet( - request: protos.google.cloud.vmwareengine.v1.IUpdateSubnetRequest, + getDnsBindPermission( + request: protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest, callback: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + | protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest + | null + | undefined, {} | null | undefined > ): void; - updateSubnet( - request?: protos.google.cloud.vmwareengine.v1.IUpdateSubnetRequest, + getDnsBindPermission( + request?: protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + | protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + | protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.vmwareengine.v1.ISubnet, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + ( + | protos.google.cloud.vmwareengine.v1.IGetDnsBindPermissionRequest + | undefined + ), {} | undefined, ] > | void { @@ -2966,72 +2891,49 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'subnet.name': request.subnet!.name ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateSubnet(request, options, callback); - } - /** - * Check the status of the long running operation returned by `updateSubnet()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_subnet.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async - */ - async checkUpdateSubnetProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.vmwareengine.v1.Subnet, - protos.google.cloud.vmwareengine.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.updateSubnet, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.Subnet, - protos.google.cloud.vmwareengine.v1.OperationMetadata - >; + return this.innerApiCalls.getDnsBindPermission(request, options, callback); } + /** - * Resets credentials of the NSX appliance. + * Creates a new `PrivateCloud` resource in a given project and location. + * Private clouds of type `STANDARD` and + * `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are + * regional. + * Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) + * for that private cloud. * * @param {Object} request * The request object that will be sent. - * @param {string} request.privateCloud - * Required. The resource name of the private cloud - * to reset credentials for. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. + * @param {string} request.parent + * Required. The resource name of the location to create the new + * private cloud in. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - * @param {string} [request.requestId] - * Optional. A 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. The server guarantees that a - * request doesn't result in creation of duplicate commitments for at least 60 - * minutes. - * - * 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. + * `projects/my-project/locations/us-central1-a` + * @param {string} request.privateCloudId + * Required. The user-provided identifier of the private cloud to be created. + * This identifier must be unique among each `PrivateCloud` within the parent + * and becomes the final token in the name URI. + * The identifier must meet the following requirements: * - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {google.cloud.vmwareengine.v1.PrivateCloud} request.privateCloud + * Required. The initial description of the new private cloud. + * @param {string} [request.requestId] + * Optional. The request ID must be a valid UUID with the exception that zero + * UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {boolean} [request.validateOnly] + * Optional. True if you want the request to be validated and not executed; + * false otherwise. * @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. @@ -3040,11 +2942,11 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.reset_nsx_credentials.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_async + * @example include:samples/generated/v1/vmware_engine.create_private_cloud.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_async */ - resetNsxCredentials( - request?: protos.google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, + createPrivateCloud( + request?: protos.google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, options?: CallOptions ): Promise< [ @@ -3056,8 +2958,8 @@ export class VmwareEngineClient { {} | undefined, ] >; - resetNsxCredentials( - request: protos.google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, + createPrivateCloud( + request: protos.google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, options: CallOptions, callback: Callback< LROperation< @@ -3068,8 +2970,8 @@ export class VmwareEngineClient { {} | null | undefined > ): void; - resetNsxCredentials( - request: protos.google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, + createPrivateCloud( + request: protos.google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, callback: Callback< LROperation< protos.google.cloud.vmwareengine.v1.IPrivateCloud, @@ -3079,8 +2981,8 @@ export class VmwareEngineClient { {} | null | undefined > ): void; - resetNsxCredentials( - request?: protos.google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, + createPrivateCloud( + request?: protos.google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3122,23 +3024,23 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - private_cloud: request.privateCloud ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.resetNsxCredentials(request, options, callback); + return this.innerApiCalls.createPrivateCloud(request, options, callback); } /** - * Check the status of the long running operation returned by `resetNsxCredentials()`. + * Check the status of the long running operation returned by `createPrivateCloud()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.reset_nsx_credentials.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_async + * @example include:samples/generated/v1/vmware_engine.create_private_cloud.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_async */ - async checkResetNsxCredentialsProgress( + async checkCreatePrivateCloudProgress( name: string ): Promise< LROperation< @@ -3153,7 +3055,7 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.resetNsxCredentials, + this.descriptors.longrunning.createPrivateCloud, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< @@ -3162,32 +3064,28 @@ export class VmwareEngineClient { >; } /** - * Resets credentials of the Vcenter appliance. + * Modifies a `PrivateCloud` resource. Only the following fields can be + * updated: `description`. + * Only fields specified in `updateMask` are applied. + * + * During operation processing, the resource is temporarily in the `ACTIVE` + * state before the operation fully completes. For that period of time, you + * can't update the resource. Use the operation status to determine when the + * processing fully completes. * * @param {Object} request * The request object that will be sent. - * @param {string} request.privateCloud - * Required. The resource name of the private cloud - * to reset credentials for. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {google.cloud.vmwareengine.v1.PrivateCloud} request.privateCloud + * Required. Private cloud description. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `PrivateCloud` resource by the update. The fields specified in `updateMask` + * are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then + * all fields will be overwritten. * @param {string} [request.requestId] - * Optional. A 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. The server guarantees that a - * request doesn't result in creation of duplicate commitments for at least 60 - * minutes. - * - * 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. 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. @@ -3196,11 +3094,11 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.reset_vcenter_credentials.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_async + * @example include:samples/generated/v1/vmware_engine.update_private_cloud.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdatePrivateCloud_async */ - resetVcenterCredentials( - request?: protos.google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, + updatePrivateCloud( + request?: protos.google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, options?: CallOptions ): Promise< [ @@ -3212,8 +3110,8 @@ export class VmwareEngineClient { {} | undefined, ] >; - resetVcenterCredentials( - request: protos.google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, + updatePrivateCloud( + request: protos.google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, options: CallOptions, callback: Callback< LROperation< @@ -3224,8 +3122,8 @@ export class VmwareEngineClient { {} | null | undefined > ): void; - resetVcenterCredentials( - request: protos.google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, + updatePrivateCloud( + request: protos.google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, callback: Callback< LROperation< protos.google.cloud.vmwareengine.v1.IPrivateCloud, @@ -3235,8 +3133,8 @@ export class VmwareEngineClient { {} | null | undefined > ): void; - resetVcenterCredentials( - request?: protos.google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, + updatePrivateCloud( + request?: protos.google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3278,27 +3176,23 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - private_cloud: request.privateCloud ?? '', + 'private_cloud.name': request.privateCloud!.name ?? '', }); this.initialize(); - return this.innerApiCalls.resetVcenterCredentials( - request, - options, - callback - ); + return this.innerApiCalls.updatePrivateCloud(request, options, callback); } /** - * Check the status of the long running operation returned by `resetVcenterCredentials()`. + * Check the status of the long running operation returned by `updatePrivateCloud()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.reset_vcenter_credentials.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_async + * @example include:samples/generated/v1/vmware_engine.update_private_cloud.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdatePrivateCloud_async */ - async checkResetVcenterCredentialsProgress( + async checkUpdatePrivateCloudProgress( name: string ): Promise< LROperation< @@ -3313,7 +3207,7 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.resetVcenterCredentials, + this.descriptors.longrunning.updatePrivateCloud, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< @@ -3322,46 +3216,48 @@ export class VmwareEngineClient { >; } /** - * Creates a new HCX activation key in a given private cloud. + * Schedules a `PrivateCloud` resource for deletion. + * + * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` + * set to `DELETED` and `expireTime` set to the time when deletion is final + * and can no longer be reversed. The delete operation is marked as done + * as soon as the `PrivateCloud` is successfully scheduled for deletion + * (this also applies when `delayHours` is set to zero), and the operation is + * not kept in pending state until `PrivateCloud` is purged. + * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before + * the `expireTime` elapses. When `expireTime` is reached, deletion is final + * and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. + * `PrivateCloud` can be polled using standard `GET` method for the whole + * period of deletion and purging. It will not be returned only + * when it is completely purged. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the private cloud to create the key for. + * @param {string} request.name + * Required. The resource name of the private cloud to delete. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1/privateClouds/my-cloud` - * @param {google.cloud.vmwareengine.v1.HcxActivationKey} request.hcxActivationKey - * Required. The initial description of a new HCX activation key. When - * creating a new key, this field must be an empty object. - * @param {string} request.hcxActivationKeyId - * Required. The user-provided identifier of the `HcxActivationKey` to be - * created. This identifier must be unique among `HcxActivationKey` resources - * within the parent and becomes the final token in the name URI. - * The identifier must meet the following requirements: - * - * * Only contains 1-63 alphanumeric characters and hyphens - * * Begins with an alphabetical character - * * Ends with a non-hyphen character - * * Not formatted as a UUID - * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) - * (section 3.5) - * @param {string} request.requestId - * A 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. The server guarantees that a - * request doesn't result in creation of duplicate commitments for at least 60 - * minutes. - * - * 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). + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {string} [request.requestId] + * Optional. The request ID must be a valid UUID with the exception that zero + * UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {boolean} [request.force] + * Optional. If set to true, cascade delete is enabled and all children of + * this private cloud resource are also deleted. When this flag is set to + * false, the private cloud will not be deleted if there are any children + * other than the management cluster. The management cluster is always + * deleted. + * @param {number} [request.delayHours] + * Optional. Time delay of the deletion specified in hours. The default value + * is `3`. Specifying a non-zero value for this field changes the value of + * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned + * deletion time. Deletion can be cancelled before `expire_time` elapses using + * {@link protos.google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud|VmwareEngine.UndeletePrivateCloud}. + * Specifying a value of `0` for this field instead begins the deletion + * process and ceases billing immediately. During the final deletion process, + * the value of `PrivateCloud.state` becomes `PURGING`. * @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. @@ -3370,52 +3266,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_hcx_activation_key.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_async + * @example include:samples/generated/v1/vmware_engine.delete_private_cloud.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeletePrivateCloud_async */ - createHcxActivationKey( - request?: protos.google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, + deletePrivateCloud( + request?: protos.google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - createHcxActivationKey( - request: protos.google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, + deletePrivateCloud( + request: protos.google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - createHcxActivationKey( - request: protos.google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, + deletePrivateCloud( + request: protos.google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - createHcxActivationKey( - request?: protos.google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, + deletePrivateCloud( + request?: protos.google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -3423,7 +3319,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -3432,7 +3328,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -3452,31 +3348,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createHcxActivationKey( - request, - options, - callback - ); + return this.innerApiCalls.deletePrivateCloud(request, options, callback); } /** - * Check the status of the long running operation returned by `createHcxActivationKey()`. + * Check the status of the long running operation returned by `deletePrivateCloud()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_hcx_activation_key.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_async + * @example include:samples/generated/v1/vmware_engine.delete_private_cloud.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeletePrivateCloud_async */ - async checkCreateHcxActivationKeyProgress( + async checkDeletePrivateCloudProgress( name: string ): Promise< LROperation< - protos.google.cloud.vmwareengine.v1.HcxActivationKey, + protos.google.cloud.vmwareengine.v1.PrivateCloud, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -3487,58 +3379,31 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.createHcxActivationKey, + this.descriptors.longrunning.deletePrivateCloud, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.HcxActivationKey, + protos.google.cloud.vmwareengine.v1.PrivateCloud, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Creates a new network policy in a given VMware Engine network of a - * project and location (region). A new network policy cannot be created if - * another network policy already exists in the same scope. + * Restores a private cloud that was previously scheduled for deletion by + * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has + * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to + * the time when deletion can no longer be reversed. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the location (region) - * to create the new network policy in. + * @param {string} request.name + * Required. The resource name of the private cloud scheduled for deletion. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1` - * @param {string} request.networkPolicyId - * Required. The user-provided identifier of the network policy to be created. - * This identifier must be unique within parent - * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes - * the final token in the name URI. - * The identifier must meet the following requirements: - * - * * Only contains 1-63 alphanumeric characters and hyphens - * * Begins with an alphabetical character - * * Ends with a non-hyphen character - * * Not formatted as a UUID - * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) - * (section 3.5) - * @param {google.cloud.vmwareengine.v1.NetworkPolicy} request.networkPolicy - * Required. The network policy configuration to use in the request. + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @param {string} [request.requestId] - * Optional. A 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. The server guarantees that a - * request doesn't result in creation of duplicate commitments for at least 60 - * minutes. - * - * 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. 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. @@ -3547,52 +3412,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_network_policy.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_async + * @example include:samples/generated/v1/vmware_engine.undelete_private_cloud.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UndeletePrivateCloud_async */ - createNetworkPolicy( - request?: protos.google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, + undeletePrivateCloud( + request?: protos.google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - createNetworkPolicy( - request: protos.google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, + undeletePrivateCloud( + request: protos.google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - createNetworkPolicy( - request: protos.google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, + undeletePrivateCloud( + request: protos.google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - createNetworkPolicy( - request?: protos.google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, + undeletePrivateCloud( + request?: protos.google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -3600,7 +3465,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -3609,7 +3474,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -3629,27 +3494,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createNetworkPolicy(request, options, callback); + return this.innerApiCalls.undeletePrivateCloud(request, options, callback); } /** - * Check the status of the long running operation returned by `createNetworkPolicy()`. + * Check the status of the long running operation returned by `undeletePrivateCloud()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_network_policy.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_async + * @example include:samples/generated/v1/vmware_engine.undelete_private_cloud.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UndeletePrivateCloud_async */ - async checkCreateNetworkPolicyProgress( + async checkUndeletePrivateCloudProgress( name: string ): Promise< LROperation< - protos.google.cloud.vmwareengine.v1.NetworkPolicy, + protos.google.cloud.vmwareengine.v1.PrivateCloud, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -3660,53 +3525,48 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.createNetworkPolicy, + this.descriptors.longrunning.undeletePrivateCloud, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.NetworkPolicy, + protos.google.cloud.vmwareengine.v1.PrivateCloud, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Modifies a `NetworkPolicy` resource. Only the following fields can be - * updated: `internet_access`, `external_ip`, `edge_services_cidr`. - * Only fields specified in `updateMask` are applied. When updating a network - * policy, the external IP network service can only be disabled if there are - * no external IP addresses present in the scope of the policy. Also, a - * `NetworkService` cannot be updated when `NetworkService.state` is set - * to `RECONCILING`. - * - * During operation processing, the resource is temporarily in the `ACTIVE` - * state before the operation fully completes. For that period of time, you - * can't update the resource. Use the operation status to determine when the - * processing fully completes. + * Creates a new cluster in a given private cloud. + * Creating a new cluster provides additional nodes for + * use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.vmwareengine.v1.NetworkPolicy} request.networkPolicy - * Required. Network policy description. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. Field mask is used to specify the fields to be overwritten in the - * `NetworkPolicy` resource by the update. - * The fields specified in the `update_mask` are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @param {string} [request.requestId] - * Optional. A 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. The server guarantees that a - * request doesn't result in creation of duplicate commitments for at least 60 - * minutes. - * - * 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. + * @param {string} request.parent + * Required. The resource name of the private cloud to create a new cluster + * in. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {string} request.clusterId + * Required. The user-provided identifier of the new `Cluster`. + * This identifier must be unique among clusters within the parent and becomes + * the final token in the name URI. + * The identifier must meet the following requirements: * - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {google.cloud.vmwareengine.v1.Cluster} request.cluster + * Required. The initial description of the new cluster. + * @param {string} [request.requestId] + * Optional. The request ID must be a valid UUID with the exception that zero + * UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {boolean} [request.validateOnly] + * Optional. True if you want the request to be validated and not executed; + * false otherwise. * @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. @@ -3715,52 +3575,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_network_policy.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_async + * @example include:samples/generated/v1/vmware_engine.create_cluster.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateCluster_async */ - updateNetworkPolicy( - request?: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, + createCluster( + request?: protos.google.cloud.vmwareengine.v1.ICreateClusterRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - updateNetworkPolicy( - request: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, + createCluster( + request: protos.google.cloud.vmwareengine.v1.ICreateClusterRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateNetworkPolicy( - request: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, + createCluster( + request: protos.google.cloud.vmwareengine.v1.ICreateClusterRequest, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateNetworkPolicy( - request?: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, + createCluster( + request?: protos.google.cloud.vmwareengine.v1.ICreateClusterRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -3768,7 +3628,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -3777,7 +3637,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -3797,27 +3657,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'network_policy.name': request.networkPolicy!.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.updateNetworkPolicy(request, options, callback); + return this.innerApiCalls.createCluster(request, options, callback); } /** - * Check the status of the long running operation returned by `updateNetworkPolicy()`. + * Check the status of the long running operation returned by `createCluster()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_network_policy.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_async + * @example include:samples/generated/v1/vmware_engine.create_cluster.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateCluster_async */ - async checkUpdateNetworkPolicyProgress( + async checkCreateClusterProgress( name: string ): Promise< LROperation< - protos.google.cloud.vmwareengine.v1.NetworkPolicy, + protos.google.cloud.vmwareengine.v1.Cluster, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -3828,42 +3688,39 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.updateNetworkPolicy, + this.descriptors.longrunning.createCluster, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.NetworkPolicy, + protos.google.cloud.vmwareengine.v1.Cluster, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted - * when `NetworkService.state` is set to `RECONCILING` for either its external - * IP or internet access service. + * Modifies a `Cluster` resource. Only fields specified in `updateMask` are + * applied. + * + * During operation processing, the resource is temporarily in the `ACTIVE` + * state before the operation fully completes. For that period of time, you + * can't update the resource. Use the operation status to determine when the + * processing fully completes. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the network policy to delete. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `Cluster` resource by the update. The fields specified in the `updateMask` + * are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then + * all fields will be overwritten. + * @param {google.cloud.vmwareengine.v1.Cluster} request.cluster + * Required. The description of the cluster. * @param {string} [request.requestId] - * Optional. A 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. The server guarantees that a - * request doesn't result in creation of duplicate commitments for at least 60 - * minutes. - * - * 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. The request ID must be a valid UUID with the exception that + * zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {boolean} [request.validateOnly] + * Optional. True if you want the request to be validated and not executed; + * false otherwise. * @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. @@ -3872,52 +3729,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_network_policy.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_async + * @example include:samples/generated/v1/vmware_engine.update_cluster.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateCluster_async */ - deleteNetworkPolicy( - request?: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, + updateCluster( + request?: protos.google.cloud.vmwareengine.v1.IUpdateClusterRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - deleteNetworkPolicy( - request: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, + updateCluster( + request: protos.google.cloud.vmwareengine.v1.IUpdateClusterRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - deleteNetworkPolicy( - request: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, + updateCluster( + request: protos.google.cloud.vmwareengine.v1.IUpdateClusterRequest, callback: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - deleteNetworkPolicy( - request?: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, + updateCluster( + request?: protos.google.cloud.vmwareengine.v1.IUpdateClusterRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -3925,7 +3782,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -3934,7 +3791,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -3954,27 +3811,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + 'cluster.name': request.cluster!.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteNetworkPolicy(request, options, callback); + return this.innerApiCalls.updateCluster(request, options, callback); } /** - * Check the status of the long running operation returned by `deleteNetworkPolicy()`. + * Check the status of the long running operation returned by `updateCluster()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_network_policy.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_async + * @example include:samples/generated/v1/vmware_engine.update_cluster.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateCluster_async */ - async checkDeleteNetworkPolicyProgress( + async checkUpdateClusterProgress( name: string ): Promise< LROperation< - protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.Cluster, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -3985,59 +3842,31 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.deleteNetworkPolicy, + this.descriptors.longrunning.updateCluster, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.Cluster, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Creates a new VMware Engine network that can be used by a private cloud. + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or + * gracefully shut down any workloads running on the cluster before deletion. + * You cannot delete the management cluster of a private cloud using this + * method. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the location to create the new VMware Engine - * network in. A VMware Engine network of type - * `LEGACY` is a regional resource, and a VMware - * Engine network of type `STANDARD` is a global resource. + * @param {string} request.name + * Required. The resource name of the cluster to delete. * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. For example: - * `projects/my-project/locations/global` - * @param {string} request.vmwareEngineNetworkId - * Required. The user-provided identifier of the new VMware Engine network. - * This identifier must be unique among VMware Engine network resources - * within the parent and becomes the final token in the name URI. The - * identifier must meet the following requirements: - * - * * For networks of type LEGACY, adheres to the format: - * `{region-id}-default`. Replace `{region-id}` with the region where you want - * to create the VMware Engine network. For example, "us-central1-default". - * * Only contains 1-63 alphanumeric characters and hyphens - * * Begins with an alphabetical character - * * Ends with a non-hyphen character - * * Not formatted as a UUID - * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) - * (section 3.5) - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} request.vmwareEngineNetwork - * Required. The initial description of the new VMware Engine network. + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` * @param {string} [request.requestId] - * Optional. A 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. The server guarantees that a - * request doesn't result in creation of duplicate commitments for at least 60 - * minutes. - * - * 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. 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. @@ -4046,52 +3875,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_vmware_engine_network.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateVmwareEngineNetwork_async + * @example include:samples/generated/v1/vmware_engine.delete_cluster.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteCluster_async */ - createVmwareEngineNetwork( - request?: protos.google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, + deleteCluster( + request?: protos.google.cloud.vmwareengine.v1.IDeleteClusterRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - createVmwareEngineNetwork( - request: protos.google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, + deleteCluster( + request: protos.google.cloud.vmwareengine.v1.IDeleteClusterRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - createVmwareEngineNetwork( - request: protos.google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, + deleteCluster( + request: protos.google.cloud.vmwareengine.v1.IDeleteClusterRequest, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - createVmwareEngineNetwork( - request?: protos.google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, + deleteCluster( + request?: protos.google.cloud.vmwareengine.v1.IDeleteClusterRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4099,7 +3928,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4108,7 +3937,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -4128,31 +3957,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createVmwareEngineNetwork( - request, - options, - callback - ); + return this.innerApiCalls.deleteCluster(request, options, callback); } /** - * Check the status of the long running operation returned by `createVmwareEngineNetwork()`. + * Check the status of the long running operation returned by `deleteCluster()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_vmware_engine_network.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateVmwareEngineNetwork_async + * @example include:samples/generated/v1/vmware_engine.delete_cluster.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteCluster_async */ - async checkCreateVmwareEngineNetworkProgress( + async checkDeleteClusterProgress( name: string ): Promise< LROperation< - protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + protos.google.protobuf.Empty, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -4163,30 +3988,42 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.createVmwareEngineNetwork, + this.descriptors.longrunning.deleteCluster, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + protos.google.protobuf.Empty, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Modifies a VMware Engine network resource. Only the following fields can be - * updated: `description`. Only fields specified in `updateMask` are - * applied. + * Creates a new `ExternalAddress` resource in a given private cloud. The + * network policy that corresponds to the private cloud must have the external + * IP address network service enabled (`NetworkPolicy.external_ip`). * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} request.vmwareEngineNetwork - * Required. VMware Engine network description. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. Field mask is used to specify the fields to be overwritten in the - * VMware Engine network resource by the update. - * The fields specified in the `update_mask` are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. Only the - * following fields can be updated: `description`. + * @param {string} request.parent + * Required. The resource name of the private cloud + * to create a new external IP address in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {google.cloud.vmwareengine.v1.ExternalAddress} request.externalAddress + * Required. The initial description of a new external IP address. + * @param {string} request.externalAddressId + * Required. The user-provided identifier of the `ExternalAddress` to be + * created. This identifier must be unique among `ExternalAddress` resources + * within the parent and becomes the final token in the name URI. The + * identifier must meet the following requirements: + * + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) * @param {string} [request.requestId] * Optional. A request ID to identify requests. Specify a unique request ID * so that if you must retry your request, the server will know to ignore @@ -4195,10 +4032,10 @@ export class VmwareEngineClient { * minutes. * * 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. + * request times out. If you make the request again with the same request ID, + * the server can check if the 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). @@ -4210,52 +4047,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_vmware_engine_network.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateVmwareEngineNetwork_async + * @example include:samples/generated/v1/vmware_engine.create_external_address.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_async */ - updateVmwareEngineNetwork( - request?: protos.google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, + createExternalAddress( + request?: protos.google.cloud.vmwareengine.v1.ICreateExternalAddressRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - updateVmwareEngineNetwork( - request: protos.google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, + createExternalAddress( + request: protos.google.cloud.vmwareengine.v1.ICreateExternalAddressRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateVmwareEngineNetwork( - request: protos.google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, + createExternalAddress( + request: protos.google.cloud.vmwareengine.v1.ICreateExternalAddressRequest, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateVmwareEngineNetwork( - request?: protos.google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, + createExternalAddress( + request?: protos.google.cloud.vmwareengine.v1.ICreateExternalAddressRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4263,7 +4100,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4272,7 +4109,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -4292,31 +4129,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'vmware_engine_network.name': request.vmwareEngineNetwork!.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.updateVmwareEngineNetwork( - request, - options, - callback - ); + return this.innerApiCalls.createExternalAddress(request, options, callback); } /** - * Check the status of the long running operation returned by `updateVmwareEngineNetwork()`. + * Check the status of the long running operation returned by `createExternalAddress()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_vmware_engine_network.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateVmwareEngineNetwork_async + * @example include:samples/generated/v1/vmware_engine.create_external_address.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_async */ - async checkUpdateVmwareEngineNetworkProgress( + async checkCreateExternalAddressProgress( name: string ): Promise< LROperation< - protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.ExternalAddress, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -4327,28 +4160,33 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.updateVmwareEngineNetwork, + this.descriptors.longrunning.createExternalAddress, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.ExternalAddress, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware - * Engine network after all resources that refer to it are deleted. For - * example, a private cloud, a network peering, and a network policy can all - * refer to the same VMware Engine network. + * Updates the parameters of a single external IP address. + * Only fields specified in `update_mask` are applied. + * + * During operation processing, the resource is temporarily in the `ACTIVE` + * state before the operation fully completes. For that period of time, you + * can't update the resource. Use the operation status to determine when the + * processing fully completes. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the VMware Engine network to be deleted. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `ExternalAddress` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @param {google.cloud.vmwareengine.v1.ExternalAddress} request.externalAddress + * Required. External IP address description. * @param {string} [request.requestId] * Optional. A request ID to identify requests. Specify a unique request ID * so that if you must retry your request, the server will know to ignore @@ -4357,18 +4195,13 @@ export class VmwareEngineClient { * minutes. * * 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. + * request times out. If you make the request again with the same request ID, + * the server can check if the 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.etag] - * Optional. Checksum used to ensure that the user-provided value is up to - * date before the server processes the request. The server compares provided - * checksum with the current checksum of the resource. If the user-provided - * value is out of date, this request returns an `ABORTED` error. * @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. @@ -4377,52 +4210,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_vmware_engine_network.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteVmwareEngineNetwork_async + * @example include:samples/generated/v1/vmware_engine.update_external_address.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_async */ - deleteVmwareEngineNetwork( - request?: protos.google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, + updateExternalAddress( + request?: protos.google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - deleteVmwareEngineNetwork( - request: protos.google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, + updateExternalAddress( + request: protos.google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - deleteVmwareEngineNetwork( - request: protos.google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, + updateExternalAddress( + request: protos.google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest, callback: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - deleteVmwareEngineNetwork( - request?: protos.google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, + updateExternalAddress( + request?: protos.google.cloud.vmwareengine.v1.IUpdateExternalAddressRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4430,7 +4263,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4439,7 +4272,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -4459,31 +4292,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + 'external_address.name': request.externalAddress!.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteVmwareEngineNetwork( - request, - options, - callback - ); + return this.innerApiCalls.updateExternalAddress(request, options, callback); } /** - * Check the status of the long running operation returned by `deleteVmwareEngineNetwork()`. + * Check the status of the long running operation returned by `updateExternalAddress()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_vmware_engine_network.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteVmwareEngineNetwork_async + * @example include:samples/generated/v1/vmware_engine.update_external_address.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_async */ - async checkDeleteVmwareEngineNetworkProgress( + async checkUpdateExternalAddressProgress( name: string ): Promise< LROperation< - protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.ExternalAddress, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -4494,40 +4323,27 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.deleteVmwareEngineNetwork, + this.descriptors.longrunning.updateExternalAddress, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.ExternalAddress, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Creates a new private connection that can be used for accessing private - * Clouds. + * Deletes a single external IP address. When you delete an external IP + * address, connectivity between the external IP address and the corresponding + * internal IP address is lost. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the location to create the new private - * connection in. Private connection is a regional resource. + * @param {string} request.name + * Required. The resource name of the external IP address to delete. * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. For example: - * `projects/my-project/locations/us-central1` - * @param {string} request.privateConnectionId - * Required. The user-provided identifier of the new private connection. - * This identifier must be unique among private connection resources - * within the parent and becomes the final token in the name URI. The - * identifier must meet the following requirements: - * - * * Only contains 1-63 alphanumeric characters and hyphens - * * Begins with an alphabetical character - * * Ends with a non-hyphen character - * * Not formatted as a UUID - * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) - * (section 3.5) - * @param {google.cloud.vmwareengine.v1.PrivateConnection} request.privateConnection - * Required. The initial description of the new private connection. + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` * @param {string} [request.requestId] * Optional. A request ID to identify requests. Specify a unique request ID * so that if you must retry your request, the server will know to ignore @@ -4537,7 +4353,7 @@ export class VmwareEngineClient { * * 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 + * ID, the server can check if the 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. * @@ -4551,52 +4367,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_private_connection.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_async + * @example include:samples/generated/v1/vmware_engine.delete_external_address.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_async */ - createPrivateConnection( - request?: protos.google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, + deleteExternalAddress( + request?: protos.google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - createPrivateConnection( - request: protos.google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, + deleteExternalAddress( + request: protos.google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - createPrivateConnection( - request: protos.google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, + deleteExternalAddress( + request: protos.google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - createPrivateConnection( - request?: protos.google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, + deleteExternalAddress( + request?: protos.google.cloud.vmwareengine.v1.IDeleteExternalAddressRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4604,7 +4420,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4613,7 +4429,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.protobuf.IEmpty, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -4633,31 +4449,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createPrivateConnection( - request, - options, - callback - ); + return this.innerApiCalls.deleteExternalAddress(request, options, callback); } /** - * Check the status of the long running operation returned by `createPrivateConnection()`. + * Check the status of the long running operation returned by `deleteExternalAddress()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.create_private_connection.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_async + * @example include:samples/generated/v1/vmware_engine.delete_external_address.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_async */ - async checkCreatePrivateConnectionProgress( + async checkDeleteExternalAddressProgress( name: string ): Promise< LROperation< - protos.google.cloud.vmwareengine.v1.PrivateConnection, + protos.google.protobuf.Empty, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -4668,44 +4480,32 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.createPrivateConnection, + this.descriptors.longrunning.deleteExternalAddress, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.PrivateConnection, + protos.google.protobuf.Empty, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Modifies a `PrivateConnection` resource. Only `description` and - * `routing_mode` fields can be updated. Only fields specified in `updateMask` - * are applied. + * Updates the parameters of a single subnet. Only fields specified in + * `update_mask` are applied. + * + * *Note*: This API is synchronous and always returns a successful + * `google.longrunning.Operation` (LRO). The returned LRO will only have + * `done` and `response` fields. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.vmwareengine.v1.PrivateConnection} request.privateConnection - * Required. Private connection description. * @param {google.protobuf.FieldMask} request.updateMask * Required. Field mask is used to specify the fields to be overwritten in the - * `PrivateConnection` resource by the update. + * `Subnet` resource by the update. * The fields specified in the `update_mask` are relative to the resource, not * the full request. A field will be overwritten if it is in the mask. If the * user does not provide a mask then all fields will be overwritten. - * @param {string} [request.requestId] - * Optional. A 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. The server guarantees that a - * request doesn't result in creation of duplicate commitments for at least 60 - * minutes. - * - * 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 {google.cloud.vmwareengine.v1.Subnet} request.subnet + * Required. Subnet description. * @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. @@ -4714,52 +4514,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_private_connection.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_async + * @example include:samples/generated/v1/vmware_engine.update_subnet.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async */ - updatePrivateConnection( - request?: protos.google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, + updateSubnet( + request?: protos.google.cloud.vmwareengine.v1.IUpdateSubnetRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ISubnet, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - updatePrivateConnection( - request: protos.google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, + updateSubnet( + request: protos.google.cloud.vmwareengine.v1.IUpdateSubnetRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ISubnet, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updatePrivateConnection( - request: protos.google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, + updateSubnet( + request: protos.google.cloud.vmwareengine.v1.IUpdateSubnetRequest, callback: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ISubnet, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updatePrivateConnection( - request?: protos.google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, + updateSubnet( + request?: protos.google.cloud.vmwareengine.v1.IUpdateSubnetRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ISubnet, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4767,7 +4567,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ISubnet, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4776,7 +4576,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ISubnet, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -4796,31 +4596,27 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'private_connection.name': request.privateConnection!.name ?? '', + 'subnet.name': request.subnet!.name ?? '', }); this.initialize(); - return this.innerApiCalls.updatePrivateConnection( - request, - options, - callback - ); + return this.innerApiCalls.updateSubnet(request, options, callback); } /** - * Check the status of the long running operation returned by `updatePrivateConnection()`. + * Check the status of the long running operation returned by `updateSubnet()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.update_private_connection.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_async + * @example include:samples/generated/v1/vmware_engine.update_subnet.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async */ - async checkUpdatePrivateConnectionProgress( + async checkUpdateSubnetProgress( name: string ): Promise< LROperation< - protos.google.cloud.vmwareengine.v1.PrivateConnection, + protos.google.cloud.vmwareengine.v1.Subnet, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -4831,27 +4627,202 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.updatePrivateConnection, + this.descriptors.longrunning.updateSubnet, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.vmwareengine.v1.PrivateConnection, + protos.google.cloud.vmwareengine.v1.Subnet, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Deletes a `PrivateConnection` resource. When a private connection is - * deleted for a VMware Engine network, the connected network becomes - * inaccessible to that VMware Engine network. + * Creates a new external access rule in a given network policy. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the private connection to be deleted. + * @param {string} request.parent + * Required. The resource name of the network policy + * to create a new external access firewall rule in. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1/privateConnections/my-connection` + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule} request.externalAccessRule + * Required. The initial description of a new external access rule. + * @param {string} request.externalAccessRuleId + * Required. The user-provided identifier of the `ExternalAccessRule` to be + * created. This identifier must be unique among `ExternalAccessRule` + * resources within the parent and becomes the final token in the name URI. + * The identifier must meet the following requirements: + * + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {string} request.requestId + * A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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 the 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_external_access_rule.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_async + */ + createExternalAccessRule( + request?: protos.google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createExternalAccessRule( + request: protos.google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createExternalAccessRule( + request: protos.google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createExternalAccessRule( + request?: protos.google.cloud.vmwareengine.v1.ICreateExternalAccessRuleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createExternalAccessRule( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `createExternalAccessRule()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_external_access_rule.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_async + */ + async checkCreateExternalAccessRuleProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.ExternalAccessRule, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createExternalAccessRule, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.ExternalAccessRule, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Updates the parameters of a single external access rule. + * Only fields specified in `update_mask` are applied. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `ExternalAccessRule` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @param {google.cloud.vmwareengine.v1.ExternalAccessRule} request.externalAccessRule + * Required. Description of the external access rule. * @param {string} [request.requestId] * Optional. A request ID to identify requests. Specify a unique request ID * so that if you must retry your request, the server will know to ignore @@ -4860,10 +4831,10 @@ export class VmwareEngineClient { * minutes. * * 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. + * request times out. If you make the request again with the same request ID, + * the server can check if the 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). @@ -4875,52 +4846,52 @@ export class VmwareEngineClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_private_connection.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_async + * @example include:samples/generated/v1/vmware_engine.update_external_access_rule.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_async */ - deletePrivateConnection( - request?: protos.google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, + updateExternalAccessRule( + request?: protos.google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - deletePrivateConnection( - request: protos.google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, + updateExternalAccessRule( + request: protos.google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - deletePrivateConnection( - request: protos.google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, + updateExternalAccessRule( + request: protos.google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest, callback: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - deletePrivateConnection( - request?: protos.google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, + updateExternalAccessRule( + request?: protos.google.cloud.vmwareengine.v1.IUpdateExternalAccessRuleRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4928,7 +4899,7 @@ export class VmwareEngineClient { >, callback?: Callback< LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -4937,7 +4908,7 @@ export class VmwareEngineClient { ): Promise< [ LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -4957,31 +4928,31 @@ export class VmwareEngineClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + 'external_access_rule.name': request.externalAccessRule!.name ?? '', }); this.initialize(); - return this.innerApiCalls.deletePrivateConnection( + return this.innerApiCalls.updateExternalAccessRule( request, options, callback ); } /** - * Check the status of the long running operation returned by `deletePrivateConnection()`. + * Check the status of the long running operation returned by `updateExternalAccessRule()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.delete_private_connection.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_async + * @example include:samples/generated/v1/vmware_engine.update_external_access_rule.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_async */ - async checkDeletePrivateConnectionProgress( + async checkUpdateExternalAccessRuleProgress( name: string ): Promise< LROperation< - protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.ExternalAccessRule, protos.google.cloud.vmwareengine.v1.OperationMetadata > > { @@ -4992,135 +4963,6652 @@ export class VmwareEngineClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.deletePrivateConnection, + this.descriptors.longrunning.updateExternalAccessRule, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.ExternalAccessRule, protos.google.cloud.vmwareengine.v1.OperationMetadata >; } /** - * Lists `PrivateCloud` resources in a given project and location. + * Deletes a single external access rule. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the external access firewall rule to delete. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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 the 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_external_access_rule.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_async + */ + deleteExternalAccessRule( + request?: protos.google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteExternalAccessRule( + request: protos.google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteExternalAccessRule( + request: protos.google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteExternalAccessRule( + request?: protos.google.cloud.vmwareengine.v1.IDeleteExternalAccessRuleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteExternalAccessRule( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteExternalAccessRule()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_external_access_rule.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_async + */ + async checkDeleteExternalAccessRuleProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteExternalAccessRule, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Create a new logging server for a given private cloud. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud + * to create a new Logging Server in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {google.cloud.vmwareengine.v1.LoggingServer} request.loggingServer + * Required. The initial description of a new logging server. + * @param {string} request.loggingServerId + * Required. The user-provided identifier of the `LoggingServer` to be + * created. This identifier must be unique among `LoggingServer` resources + * within the parent and becomes the final token in the name URI. + * The identifier must meet the following requirements: + * + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_logging_server.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_async + */ + createLoggingServer( + request?: protos.google.cloud.vmwareengine.v1.ICreateLoggingServerRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createLoggingServer( + request: protos.google.cloud.vmwareengine.v1.ICreateLoggingServerRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createLoggingServer( + request: protos.google.cloud.vmwareengine.v1.ICreateLoggingServerRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createLoggingServer( + request?: protos.google.cloud.vmwareengine.v1.ICreateLoggingServerRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createLoggingServer(request, options, callback); + } + /** + * Check the status of the long running operation returned by `createLoggingServer()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_logging_server.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_async + */ + async checkCreateLoggingServerProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.LoggingServer, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createLoggingServer, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.LoggingServer, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Updates the parameters of a single logging server. + * Only fields specified in `update_mask` are applied. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `LoggingServer` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @param {google.cloud.vmwareengine.v1.LoggingServer} request.loggingServer + * Required. Logging server description. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_logging_server.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_async + */ + updateLoggingServer( + request?: protos.google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateLoggingServer( + request: protos.google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateLoggingServer( + request: protos.google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateLoggingServer( + request?: protos.google.cloud.vmwareengine.v1.IUpdateLoggingServerRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'logging_server.name': request.loggingServer!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateLoggingServer(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateLoggingServer()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_logging_server.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_async + */ + async checkUpdateLoggingServerProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.LoggingServer, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateLoggingServer, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.LoggingServer, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Deletes a single logging server. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the logging server to delete. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_logging_server.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_async + */ + deleteLoggingServer( + request?: protos.google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteLoggingServer( + request: protos.google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteLoggingServer( + request: protos.google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteLoggingServer( + request?: protos.google.cloud.vmwareengine.v1.IDeleteLoggingServerRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteLoggingServer(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteLoggingServer()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_logging_server.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_async + */ + async checkDeleteLoggingServerProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteLoggingServer, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Resets credentials of the NSX appliance. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.privateCloud + * Required. The resource name of the private cloud + * to reset credentials for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.reset_nsx_credentials.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_async + */ + resetNsxCredentials( + request?: protos.google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + resetNsxCredentials( + request: protos.google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + resetNsxCredentials( + request: protos.google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + resetNsxCredentials( + request?: protos.google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + private_cloud: request.privateCloud ?? '', + }); + this.initialize(); + return this.innerApiCalls.resetNsxCredentials(request, options, callback); + } + /** + * Check the status of the long running operation returned by `resetNsxCredentials()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.reset_nsx_credentials.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_async + */ + async checkResetNsxCredentialsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.PrivateCloud, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.resetNsxCredentials, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.PrivateCloud, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Resets credentials of the Vcenter appliance. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.privateCloud + * Required. The resource name of the private cloud + * to reset credentials for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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.username] + * Optional. The username of the user to be to reset the credentials. + * The default value of this field is CloudOwner@gve.local. + * The provided value should be one of the following: + * solution-user-01@gve.local, + * solution-user-02@gve.local, + * solution-user-03@gve.local, + * solution-user-04@gve.local, + * solution-user-05@gve.local, + * zertoadmin@gve.local. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.reset_vcenter_credentials.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_async + */ + resetVcenterCredentials( + request?: protos.google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + resetVcenterCredentials( + request: protos.google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + resetVcenterCredentials( + request: protos.google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + resetVcenterCredentials( + request?: protos.google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + private_cloud: request.privateCloud ?? '', + }); + this.initialize(); + return this.innerApiCalls.resetVcenterCredentials( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `resetVcenterCredentials()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.reset_vcenter_credentials.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_async + */ + async checkResetVcenterCredentialsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.PrivateCloud, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.resetVcenterCredentials, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.PrivateCloud, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Updates the parameters of the `DnsForwarding` config, like associated + * domains. Only fields specified in `update_mask` are applied. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.vmwareengine.v1.DnsForwarding} request.dnsForwarding + * Required. DnsForwarding config details. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `DnsForwarding` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_dns_forwarding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_async + */ + updateDnsForwarding( + request?: protos.google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateDnsForwarding( + request: protos.google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateDnsForwarding( + request: protos.google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateDnsForwarding( + request?: protos.google.cloud.vmwareengine.v1.IUpdateDnsForwardingRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'dns_forwarding.name': request.dnsForwarding!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateDnsForwarding(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateDnsForwarding()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_dns_forwarding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_async + */ + async checkUpdateDnsForwardingProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.DnsForwarding, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateDnsForwarding, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.DnsForwarding, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Creates a new network peering between the peer network and VMware Engine + * network provided in a `NetworkPeering` resource. NetworkPeering is a + * global resource and location can only be global. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the location to create the new network + * peering in. This value is always `global`, because `NetworkPeering` is a + * global resource. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/global` + * @param {string} request.networkPeeringId + * Required. The user-provided identifier of the new `NetworkPeering`. + * This identifier must be unique among `NetworkPeering` resources within the + * parent and becomes the final token in the name URI. + * The identifier must meet the following requirements: + * + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {google.cloud.vmwareengine.v1.NetworkPeering} request.networkPeering + * Required. The initial description of the new network peering. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_network_peering.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_async + */ + createNetworkPeering( + request?: protos.google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createNetworkPeering( + request: protos.google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createNetworkPeering( + request: protos.google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createNetworkPeering( + request?: protos.google.cloud.vmwareengine.v1.ICreateNetworkPeeringRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createNetworkPeering(request, options, callback); + } + /** + * Check the status of the long running operation returned by `createNetworkPeering()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_network_peering.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_async + */ + async checkCreateNetworkPeeringProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.NetworkPeering, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createNetworkPeering, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.NetworkPeering, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Deletes a `NetworkPeering` resource. When a network peering is deleted for + * a VMware Engine network, the peer network becomes inaccessible to that + * VMware Engine network. NetworkPeering is a global resource and location can + * only be global. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the network peering to be deleted. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/global/networkPeerings/my-peering` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_network_peering.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_async + */ + deleteNetworkPeering( + request?: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteNetworkPeering( + request: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNetworkPeering( + request: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNetworkPeering( + request?: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPeeringRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteNetworkPeering(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteNetworkPeering()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_network_peering.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_async + */ + async checkDeleteNetworkPeeringProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteNetworkPeering, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Modifies a `NetworkPeering` resource. Only the `description` field can be + * updated. Only fields specified in `updateMask` are applied. NetworkPeering + * is a global resource and location can only be global. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.vmwareengine.v1.NetworkPeering} request.networkPeering + * Required. Network peering description. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `NetworkPeering` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_network_peering.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_async + */ + updateNetworkPeering( + request?: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateNetworkPeering( + request: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateNetworkPeering( + request: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateNetworkPeering( + request?: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPeeringRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'network_peering.name': request.networkPeering!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateNetworkPeering(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateNetworkPeering()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_network_peering.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_async + */ + async checkUpdateNetworkPeeringProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.NetworkPeering, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateNetworkPeering, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.NetworkPeering, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Creates a new HCX activation key in a given private cloud. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to create the key for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` + * @param {google.cloud.vmwareengine.v1.HcxActivationKey} request.hcxActivationKey + * Required. The initial description of a new HCX activation key. When + * creating a new key, this field must be an empty object. + * @param {string} request.hcxActivationKeyId + * Required. The user-provided identifier of the `HcxActivationKey` to be + * created. This identifier must be unique among `HcxActivationKey` resources + * within the parent and becomes the final token in the name URI. + * The identifier must meet the following requirements: + * + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {string} request.requestId + * A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_hcx_activation_key.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_async + */ + createHcxActivationKey( + request?: protos.google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createHcxActivationKey( + request: protos.google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createHcxActivationKey( + request: protos.google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createHcxActivationKey( + request?: protos.google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createHcxActivationKey( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `createHcxActivationKey()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_hcx_activation_key.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_async + */ + async checkCreateHcxActivationKeyProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.HcxActivationKey, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createHcxActivationKey, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.HcxActivationKey, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Creates a new network policy in a given VMware Engine network of a + * project and location (region). A new network policy cannot be created if + * another network policy already exists in the same scope. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the location (region) + * to create the new network policy in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1` + * @param {string} request.networkPolicyId + * Required. The user-provided identifier of the network policy to be created. + * This identifier must be unique within parent + * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes + * the final token in the name URI. + * The identifier must meet the following requirements: + * + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {google.cloud.vmwareengine.v1.NetworkPolicy} request.networkPolicy + * Required. The network policy configuration to use in the request. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_network_policy.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_async + */ + createNetworkPolicy( + request?: protos.google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createNetworkPolicy( + request: protos.google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createNetworkPolicy( + request: protos.google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createNetworkPolicy( + request?: protos.google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createNetworkPolicy(request, options, callback); + } + /** + * Check the status of the long running operation returned by `createNetworkPolicy()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_network_policy.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_async + */ + async checkCreateNetworkPolicyProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.NetworkPolicy, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createNetworkPolicy, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.NetworkPolicy, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Modifies a `NetworkPolicy` resource. Only the following fields can be + * updated: `internet_access`, `external_ip`, `edge_services_cidr`. + * Only fields specified in `updateMask` are applied. When updating a network + * policy, the external IP network service can only be disabled if there are + * no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set + * to `RECONCILING`. + * + * During operation processing, the resource is temporarily in the `ACTIVE` + * state before the operation fully completes. For that period of time, you + * can't update the resource. Use the operation status to determine when the + * processing fully completes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.vmwareengine.v1.NetworkPolicy} request.networkPolicy + * Required. Network policy description. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `NetworkPolicy` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_network_policy.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_async + */ + updateNetworkPolicy( + request?: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateNetworkPolicy( + request: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateNetworkPolicy( + request: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateNetworkPolicy( + request?: protos.google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'network_policy.name': request.networkPolicy!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateNetworkPolicy(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateNetworkPolicy()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_network_policy.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_async + */ + async checkUpdateNetworkPolicyProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.NetworkPolicy, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateNetworkPolicy, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.NetworkPolicy, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted + * when `NetworkService.state` is set to `RECONCILING` for either its external + * IP or internet access service. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the network policy to delete. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_network_policy.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_async + */ + deleteNetworkPolicy( + request?: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteNetworkPolicy( + request: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNetworkPolicy( + request: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNetworkPolicy( + request?: protos.google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteNetworkPolicy(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteNetworkPolicy()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_network_policy.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_async + */ + async checkDeleteNetworkPolicyProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteNetworkPolicy, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Creates a new `ManagementDnsZoneBinding` resource in a private cloud. + * This RPC creates the DNS binding and the resource that represents the + * DNS binding of the consumer VPC network to the management DNS zone. A + * management DNS zone is the Cloud DNS cross-project binding zone that + * VMware Engine creates for each private cloud. It contains FQDNs and + * corresponding IP addresses for the private cloud's ESXi hosts and + * management VM appliances like vCenter and NSX Manager. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud + * to create a new management DNS zone binding for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} request.managementDnsZoneBinding + * Required. The initial values for a new management DNS zone binding. + * @param {string} request.managementDnsZoneBindingId + * Required. The user-provided identifier of the `ManagementDnsZoneBinding` + * resource to be created. This identifier must be unique among + * `ManagementDnsZoneBinding` resources within the parent and becomes the + * final token in the name URI. The identifier must meet the following + * requirements: + * + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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 the 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_async + */ + createManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.ICreateManagementDnsZoneBindingRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createManagementDnsZoneBinding( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `createManagementDnsZoneBinding()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_async + */ + async checkCreateManagementDnsZoneBindingProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createManagementDnsZoneBinding, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Updates a `ManagementDnsZoneBinding` resource. + * Only fields specified in `update_mask` are applied. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `ManagementDnsZoneBinding` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @param {google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} request.managementDnsZoneBinding + * Required. New values to update the management DNS zone binding with. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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 the 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_async + */ + updateManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.IUpdateManagementDnsZoneBindingRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'management_dns_zone_binding.name': + request.managementDnsZoneBinding!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateManagementDnsZoneBinding( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `updateManagementDnsZoneBinding()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_async + */ + async checkUpdateManagementDnsZoneBindingProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateManagementDnsZoneBinding, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone + * binding is deleted, the corresponding consumer VPC network is no longer + * bound to the management DNS zone. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the management DNS zone binding to delete. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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 the 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_async + */ + deleteManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.IDeleteManagementDnsZoneBindingRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteManagementDnsZoneBinding( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteManagementDnsZoneBinding()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_async + */ + async checkDeleteManagementDnsZoneBindingProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteManagementDnsZoneBinding, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Retries to create a `ManagementDnsZoneBinding` resource that is + * in failed state. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the management DNS zone binding to repair. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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 the 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_async + */ + repairManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + repairManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + repairManagementDnsZoneBinding( + request: protos.google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + repairManagementDnsZoneBinding( + request?: protos.google.cloud.vmwareengine.v1.IRepairManagementDnsZoneBindingRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.repairManagementDnsZoneBinding( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `repairManagementDnsZoneBinding()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.repair_management_dns_zone_binding.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_async + */ + async checkRepairManagementDnsZoneBindingProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.repairManagementDnsZoneBinding, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Creates a new VMware Engine network that can be used by a private cloud. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the location to create the new VMware Engine + * network in. A VMware Engine network of type + * `LEGACY` is a regional resource, and a VMware + * Engine network of type `STANDARD` is a global resource. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global` + * @param {string} request.vmwareEngineNetworkId + * Required. The user-provided identifier of the new VMware Engine network. + * This identifier must be unique among VMware Engine network resources + * within the parent and becomes the final token in the name URI. The + * identifier must meet the following requirements: + * + * * For networks of type LEGACY, adheres to the format: + * `{region-id}-default`. Replace `{region-id}` with the region where you want + * to create the VMware Engine network. For example, "us-central1-default". + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} request.vmwareEngineNetwork + * Required. The initial description of the new VMware Engine network. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_vmware_engine_network.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateVmwareEngineNetwork_async + */ + createVmwareEngineNetwork( + request?: protos.google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createVmwareEngineNetwork( + request: protos.google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createVmwareEngineNetwork( + request: protos.google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createVmwareEngineNetwork( + request?: protos.google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createVmwareEngineNetwork( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `createVmwareEngineNetwork()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_vmware_engine_network.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreateVmwareEngineNetwork_async + */ + async checkCreateVmwareEngineNetworkProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createVmwareEngineNetwork, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Modifies a VMware Engine network resource. Only the following fields can be + * updated: `description`. Only fields specified in `updateMask` are + * applied. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} request.vmwareEngineNetwork + * Required. VMware Engine network description. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * VMware Engine network resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. Only the + * following fields can be updated: `description`. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_vmware_engine_network.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateVmwareEngineNetwork_async + */ + updateVmwareEngineNetwork( + request?: protos.google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateVmwareEngineNetwork( + request: protos.google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateVmwareEngineNetwork( + request: protos.google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateVmwareEngineNetwork( + request?: protos.google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'vmware_engine_network.name': request.vmwareEngineNetwork!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateVmwareEngineNetwork( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `updateVmwareEngineNetwork()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_vmware_engine_network.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdateVmwareEngineNetwork_async + */ + async checkUpdateVmwareEngineNetworkProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateVmwareEngineNetwork, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware + * Engine network after all resources that refer to it are deleted. For + * example, a private cloud, a network peering, and a network policy can all + * refer to the same VMware Engine network. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the VMware Engine network to be deleted. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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.etag] + * Optional. Checksum used to ensure that the user-provided value is up to + * date before the server processes the request. The server compares provided + * checksum with the current checksum of the resource. If the user-provided + * value is out of date, this request returns an `ABORTED` error. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_vmware_engine_network.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteVmwareEngineNetwork_async + */ + deleteVmwareEngineNetwork( + request?: protos.google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteVmwareEngineNetwork( + request: protos.google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteVmwareEngineNetwork( + request: protos.google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteVmwareEngineNetwork( + request?: protos.google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteVmwareEngineNetwork( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteVmwareEngineNetwork()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_vmware_engine_network.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeleteVmwareEngineNetwork_async + */ + async checkDeleteVmwareEngineNetworkProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteVmwareEngineNetwork, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Creates a new private connection that can be used for accessing private + * Clouds. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the location to create the new private + * connection in. Private connection is a regional resource. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @param {string} request.privateConnectionId + * Required. The user-provided identifier of the new private connection. + * This identifier must be unique among private connection resources + * within the parent and becomes the final token in the name URI. The + * identifier must meet the following requirements: + * + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + * (section 3.5) + * @param {google.cloud.vmwareengine.v1.PrivateConnection} request.privateConnection + * Required. The initial description of the new private connection. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_private_connection.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_async + */ + createPrivateConnection( + request?: protos.google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createPrivateConnection( + request: protos.google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createPrivateConnection( + request: protos.google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createPrivateConnection( + request?: protos.google.cloud.vmwareengine.v1.ICreatePrivateConnectionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createPrivateConnection( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `createPrivateConnection()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.create_private_connection.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_async + */ + async checkCreatePrivateConnectionProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.PrivateConnection, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createPrivateConnection, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.PrivateConnection, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Modifies a `PrivateConnection` resource. Only `description` and + * `routing_mode` fields can be updated. Only fields specified in `updateMask` + * are applied. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.vmwareengine.v1.PrivateConnection} request.privateConnection + * Required. Private connection description. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. Field mask is used to specify the fields to be overwritten in the + * `PrivateConnection` resource by the update. + * The fields specified in the `update_mask` are relative to the resource, not + * the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_private_connection.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_async + */ + updatePrivateConnection( + request?: protos.google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updatePrivateConnection( + request: protos.google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updatePrivateConnection( + request: protos.google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updatePrivateConnection( + request?: protos.google.cloud.vmwareengine.v1.IUpdatePrivateConnectionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'private_connection.name': request.privateConnection!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updatePrivateConnection( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `updatePrivateConnection()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.update_private_connection.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_async + */ + async checkUpdatePrivateConnectionProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.PrivateConnection, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updatePrivateConnection, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.PrivateConnection, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Deletes a `PrivateConnection` resource. When a private connection is + * deleted for a VMware Engine network, the connected network becomes + * inaccessible to that VMware Engine network. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the private connection to be deleted. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1/privateConnections/my-connection` + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_private_connection.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_async + */ + deletePrivateConnection( + request?: protos.google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deletePrivateConnection( + request: protos.google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deletePrivateConnection( + request: protos.google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deletePrivateConnection( + request?: protos.google.cloud.vmwareengine.v1.IDeletePrivateConnectionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deletePrivateConnection( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deletePrivateConnection()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.delete_private_connection.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_async + */ + async checkDeletePrivateConnectionProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deletePrivateConnection, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Grants the bind permission to the customer provided principal(user / + * service account) to bind their DNS zone with the intranet VPC associated + * with the project. DnsBindPermission is a global resource and location can + * only be global. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the resource which stores the users/service accounts + * having the permission to bind to the corresponding intranet VPC of the + * consumer project. DnsBindPermission is a global resource. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/dnsBindPermission` + * @param {google.cloud.vmwareengine.v1.Principal} request.principal + * Required. The consumer provided user/service account which needs to be + * granted permission to bind with the intranet VPC corresponding to the + * consumer project. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.grant_dns_bind_permission.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_async + */ + grantDnsBindPermission( + request?: protos.google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + grantDnsBindPermission( + request: protos.google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + grantDnsBindPermission( + request: protos.google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + grantDnsBindPermission( + request?: protos.google.cloud.vmwareengine.v1.IGrantDnsBindPermissionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.grantDnsBindPermission( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `grantDnsBindPermission()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.grant_dns_bind_permission.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_async + */ + async checkGrantDnsBindPermissionProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.DnsBindPermission, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.grantDnsBindPermission, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.DnsBindPermission, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Revokes the bind permission from the customer provided principal(user / + * service account) on the intranet VPC associated with the consumer project. + * DnsBindPermission is a global resource and location can only be global. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the resource which stores the users/service accounts + * having the permission to bind to the corresponding intranet VPC of the + * consumer project. DnsBindPermission is a global resource. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/dnsBindPermission` + * @param {google.cloud.vmwareengine.v1.Principal} request.principal + * Required. The consumer provided user/service account which needs to be + * granted permission to bind with the intranet VPC corresponding to the + * consumer project. + * @param {string} [request.requestId] + * Optional. A 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. The server guarantees that a + * request doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * 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. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.revoke_dns_bind_permission.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_async + */ + revokeDnsBindPermission( + request?: protos.google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + revokeDnsBindPermission( + request: protos.google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + revokeDnsBindPermission( + request: protos.google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest, + callback: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + revokeDnsBindPermission( + request?: protos.google.cloud.vmwareengine.v1.IRevokeDnsBindPermissionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.revokeDnsBindPermission( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `revokeDnsBindPermission()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.revoke_dns_bind_permission.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_async + */ + async checkRevokeDnsBindPermissionProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.vmwareengine.v1.DnsBindPermission, + protos.google.cloud.vmwareengine.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.revokeDnsBindPermission, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.vmwareengine.v1.DnsBindPermission, + protos.google.cloud.vmwareengine.v1.OperationMetadata + >; + } + /** + * Lists `PrivateCloud` resources in a given project and location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * clusters. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a` + * @param {number} request.pageSize + * The maximum number of private clouds to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListPrivateClouds` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListPrivateClouds` must + * match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or + * `<`. + * + * For example, if you are filtering a list of private clouds, you can exclude + * the ones named `example-pc` by specifying `name != "example-pc"`. + * + * You can also filter nested fields. For example, you could specify + * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds + * only if they have a matching address in their network configuration. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-pc") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you can + * include `AND` and `OR` expressions explicitly. For example: + * ``` + * (name = "private-cloud-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "private-cloud-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results are + * ordered by `name` in ascending order. You can also sort results in + * descending order based on the `name` value using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.PrivateCloud|PrivateCloud}. + * 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 `listPrivateCloudsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listPrivateClouds( + request?: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.IPrivateCloud[], + protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest | null, + protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, + ] + >; + listPrivateClouds( + request: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + | protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateCloud + > + ): void; + listPrivateClouds( + request: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + | protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateCloud + > + ): void; + listPrivateClouds( + request?: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + | protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateCloud + >, + callback?: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + | protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IPrivateCloud + > + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.IPrivateCloud[], + protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest | null, + protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listPrivateClouds(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * clusters. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a` + * @param {number} request.pageSize + * The maximum number of private clouds to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListPrivateClouds` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListPrivateClouds` must + * match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or + * `<`. + * + * For example, if you are filtering a list of private clouds, you can exclude + * the ones named `example-pc` by specifying `name != "example-pc"`. + * + * You can also filter nested fields. For example, you could specify + * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds + * only if they have a matching address in their network configuration. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-pc") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you can + * include `AND` and `OR` expressions explicitly. For example: + * ``` + * (name = "private-cloud-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "private-cloud-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results are + * ordered by `name` in ascending order. You can also sort results in + * descending order based on the `name` value using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.PrivateCloud|PrivateCloud} 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 `listPrivateCloudsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listPrivateCloudsStream( + request?: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listPrivateClouds']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listPrivateClouds.createStream( + this.innerApiCalls.listPrivateClouds as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listPrivateClouds`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * clusters. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a` + * @param {number} request.pageSize + * The maximum number of private clouds to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListPrivateClouds` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListPrivateClouds` must + * match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or + * `<`. + * + * For example, if you are filtering a list of private clouds, you can exclude + * the ones named `example-pc` by specifying `name != "example-pc"`. + * + * You can also filter nested fields. For example, you could specify + * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds + * only if they have a matching address in their network configuration. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-pc") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you can + * include `AND` and `OR` expressions explicitly. For example: + * ``` + * (name = "private-cloud-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "private-cloud-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results are + * ordered by `name` in ascending order. You can also sort results in + * descending order based on the `name` value using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.vmwareengine.v1.PrivateCloud|PrivateCloud}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.list_private_clouds.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListPrivateClouds_async + */ + listPrivateCloudsAsync( + request?: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listPrivateClouds']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listPrivateClouds.asyncIterate( + this.innerApiCalls['listPrivateClouds'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists `Cluster` resources in a given private cloud. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to query for clusters. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of clusters to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListClusters` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListClusters` + * must match the call that provided the page token. + * @param {string} request.filter + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-cluster") + * (nodeCount = "3") + * ``` + * + * By default, each expression is an `AND` expression. However, you can + * include `AND` and `OR` expressions explicitly. For example: + * ``` + * (name = "example-cluster-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-cluster-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results are + * ordered by `name` in ascending order. You can also sort results in + * descending order based on the `name` value using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.Cluster|Cluster}. + * 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 `listClustersAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listClusters( + request?: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.ICluster[], + protos.google.cloud.vmwareengine.v1.IListClustersRequest | null, + protos.google.cloud.vmwareengine.v1.IListClustersResponse, + ] + >; + listClusters( + request: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListClustersRequest, + | protos.google.cloud.vmwareengine.v1.IListClustersResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ICluster + > + ): void; + listClusters( + request: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListClustersRequest, + | protos.google.cloud.vmwareengine.v1.IListClustersResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ICluster + > + ): void; + listClusters( + request?: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListClustersRequest, + | protos.google.cloud.vmwareengine.v1.IListClustersResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ICluster + >, + callback?: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListClustersRequest, + | protos.google.cloud.vmwareengine.v1.IListClustersResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ICluster + > + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.ICluster[], + protos.google.cloud.vmwareengine.v1.IListClustersRequest | null, + protos.google.cloud.vmwareengine.v1.IListClustersResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listClusters(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to query for clusters. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of clusters to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListClusters` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListClusters` + * must match the call that provided the page token. + * @param {string} request.filter + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-cluster") + * (nodeCount = "3") + * ``` + * + * By default, each expression is an `AND` expression. However, you can + * include `AND` and `OR` expressions explicitly. For example: + * ``` + * (name = "example-cluster-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-cluster-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results are + * ordered by `name` in ascending order. You can also sort results in + * descending order based on the `name` value using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.Cluster|Cluster} 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 `listClustersAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listClustersStream( + request?: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listClusters']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listClusters.createStream( + this.innerApiCalls.listClusters as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listClusters`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to query for clusters. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of clusters to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListClusters` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListClusters` + * must match the call that provided the page token. + * @param {string} request.filter + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-cluster") + * (nodeCount = "3") + * ``` + * + * By default, each expression is an `AND` expression. However, you can + * include `AND` and `OR` expressions explicitly. For example: + * ``` + * (name = "example-cluster-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-cluster-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results are + * ordered by `name` in ascending order. You can also sort results in + * descending order based on the `name` value using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.vmwareengine.v1.Cluster|Cluster}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.list_clusters.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListClusters_async + */ + listClustersAsync( + request?: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listClusters']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listClusters.asyncIterate( + this.innerApiCalls['listClusters'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists nodes in a given cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the cluster to be queried for nodes. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` + * @param {number} request.pageSize + * The maximum number of nodes to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListNodes` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListNodes` must match the call that provided the page + * token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.Node|Node}. + * 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 `listNodesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listNodes( + request?: protos.google.cloud.vmwareengine.v1.IListNodesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.INode[], + protos.google.cloud.vmwareengine.v1.IListNodesRequest | null, + protos.google.cloud.vmwareengine.v1.IListNodesResponse, + ] + >; + listNodes( + request: protos.google.cloud.vmwareengine.v1.IListNodesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListNodesRequest, + protos.google.cloud.vmwareengine.v1.IListNodesResponse | null | undefined, + protos.google.cloud.vmwareengine.v1.INode + > + ): void; + listNodes( + request: protos.google.cloud.vmwareengine.v1.IListNodesRequest, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListNodesRequest, + protos.google.cloud.vmwareengine.v1.IListNodesResponse | null | undefined, + protos.google.cloud.vmwareengine.v1.INode + > + ): void; + listNodes( + request?: protos.google.cloud.vmwareengine.v1.IListNodesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListNodesRequest, + | protos.google.cloud.vmwareengine.v1.IListNodesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.INode + >, + callback?: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListNodesRequest, + protos.google.cloud.vmwareengine.v1.IListNodesResponse | null | undefined, + protos.google.cloud.vmwareengine.v1.INode + > + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.INode[], + protos.google.cloud.vmwareengine.v1.IListNodesRequest | null, + protos.google.cloud.vmwareengine.v1.IListNodesResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listNodes(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the cluster to be queried for nodes. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` + * @param {number} request.pageSize + * The maximum number of nodes to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListNodes` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListNodes` must match the call that provided the page + * token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.Node|Node} 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 `listNodesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listNodesStream( + request?: protos.google.cloud.vmwareengine.v1.IListNodesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listNodes']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listNodes.createStream( + this.innerApiCalls.listNodes as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listNodes`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the cluster to be queried for nodes. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` + * @param {number} request.pageSize + * The maximum number of nodes to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListNodes` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListNodes` must match the call that provided the page + * token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.vmwareengine.v1.Node|Node}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.list_nodes.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListNodes_async + */ + listNodesAsync( + request?: protos.google.cloud.vmwareengine.v1.IListNodesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listNodes']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listNodes.asyncIterate( + this.innerApiCalls['listNodes'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists external IP addresses assigned to VMware workload VMs in a given + * private cloud. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * external IP addresses. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of external IP addresses to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListExternalAddresses` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListExternalAddresses` must match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of IP addresses, you can + * exclude the ones named `example-ip` by specifying + * `name != "example-ip"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-ip") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-ip-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-ip-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.ExternalAddress|ExternalAddress}. + * 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 `listExternalAddressesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listExternalAddresses( + request?: protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.IExternalAddress[], + protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest | null, + protos.google.cloud.vmwareengine.v1.IListExternalAddressesResponse, + ] + >; + listExternalAddresses( + request: protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + | protos.google.cloud.vmwareengine.v1.IListExternalAddressesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress + > + ): void; + listExternalAddresses( + request: protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + | protos.google.cloud.vmwareengine.v1.IListExternalAddressesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress + > + ): void; + listExternalAddresses( + request?: protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + | protos.google.cloud.vmwareengine.v1.IListExternalAddressesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress + >, + callback?: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + | protos.google.cloud.vmwareengine.v1.IListExternalAddressesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress + > + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.IExternalAddress[], + protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest | null, + protos.google.cloud.vmwareengine.v1.IListExternalAddressesResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listExternalAddresses(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * external IP addresses. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of external IP addresses to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListExternalAddresses` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListExternalAddresses` must match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of IP addresses, you can + * exclude the ones named `example-ip` by specifying + * `name != "example-ip"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-ip") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-ip-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-ip-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.ExternalAddress|ExternalAddress} 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 `listExternalAddressesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listExternalAddressesStream( + request?: protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listExternalAddresses']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listExternalAddresses.createStream( + this.innerApiCalls.listExternalAddresses as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listExternalAddresses`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * external IP addresses. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of external IP addresses to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListExternalAddresses` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListExternalAddresses` must match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of IP addresses, you can + * exclude the ones named `example-ip` by specifying + * `name != "example-ip"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-ip") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-ip-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-ip-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.vmwareengine.v1.ExternalAddress|ExternalAddress}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.list_external_addresses.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_async + */ + listExternalAddressesAsync( + request?: protos.google.cloud.vmwareengine.v1.IListExternalAddressesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listExternalAddresses']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listExternalAddresses.asyncIterate( + this.innerApiCalls['listExternalAddresses'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists external IP addresses assigned to VMware workload VMs within the + * scope of the given network policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.networkPolicy + * Required. The resource name of the network policy to query for assigned + * external IP addresses. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + * @param {number} request.pageSize + * The maximum number of external IP addresses to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous + * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the + * subsequent page. + * + * When paginating, all parameters provided to + * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and + * `page_token`, must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.ExternalAddress|ExternalAddress}. + * 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 `fetchNetworkPolicyExternalAddressesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + fetchNetworkPolicyExternalAddresses( + request?: protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.IExternalAddress[], + protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest | null, + protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse, + ] + >; + fetchNetworkPolicyExternalAddresses( + request: protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + | protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress + > + ): void; + fetchNetworkPolicyExternalAddresses( + request: protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + | protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress + > + ): void; + fetchNetworkPolicyExternalAddresses( + request?: protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + | protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress + >, + callback?: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + | protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAddress + > + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.IExternalAddress[], + protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest | null, + protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesResponse, + ] + > | 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({ + network_policy: request.networkPolicy ?? '', + }); + this.initialize(); + return this.innerApiCalls.fetchNetworkPolicyExternalAddresses( + 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.networkPolicy + * Required. The resource name of the network policy to query for assigned + * external IP addresses. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + * @param {number} request.pageSize + * The maximum number of external IP addresses to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous + * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the + * subsequent page. + * + * When paginating, all parameters provided to + * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and + * `page_token`, must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.ExternalAddress|ExternalAddress} 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 `fetchNetworkPolicyExternalAddressesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + fetchNetworkPolicyExternalAddressesStream( + request?: protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + 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({ + network_policy: request.networkPolicy ?? '', + }); + const defaultCallSettings = + this._defaults['fetchNetworkPolicyExternalAddresses']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.fetchNetworkPolicyExternalAddresses.createStream( + this.innerApiCalls.fetchNetworkPolicyExternalAddresses as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `fetchNetworkPolicyExternalAddresses`, 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.networkPolicy + * Required. The resource name of the network policy to query for assigned + * external IP addresses. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + * @param {number} request.pageSize + * The maximum number of external IP addresses to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous + * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the + * subsequent page. + * + * When paginating, all parameters provided to + * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and + * `page_token`, must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.vmwareengine.v1.ExternalAddress|ExternalAddress}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.fetch_network_policy_external_addresses.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_async + */ + fetchNetworkPolicyExternalAddressesAsync( + request?: protos.google.cloud.vmwareengine.v1.IFetchNetworkPolicyExternalAddressesRequest, + 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({ + network_policy: request.networkPolicy ?? '', + }); + const defaultCallSettings = + this._defaults['fetchNetworkPolicyExternalAddresses']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.fetchNetworkPolicyExternalAddresses.asyncIterate( + this.innerApiCalls['fetchNetworkPolicyExternalAddresses'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists subnets in a given private cloud. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * subnets. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of subnets to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListSubnetsRequest` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListSubnetsRequest` must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.Subnet|Subnet}. + * 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 `listSubnetsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listSubnets( + request?: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.ISubnet[], + protos.google.cloud.vmwareengine.v1.IListSubnetsRequest | null, + protos.google.cloud.vmwareengine.v1.IListSubnetsResponse, + ] + >; + listSubnets( + request: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + | protos.google.cloud.vmwareengine.v1.IListSubnetsResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ISubnet + > + ): void; + listSubnets( + request: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + | protos.google.cloud.vmwareengine.v1.IListSubnetsResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ISubnet + > + ): void; + listSubnets( + request?: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + | protos.google.cloud.vmwareengine.v1.IListSubnetsResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ISubnet + >, + callback?: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + | protos.google.cloud.vmwareengine.v1.IListSubnetsResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ISubnet + > + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.ISubnet[], + protos.google.cloud.vmwareengine.v1.IListSubnetsRequest | null, + protos.google.cloud.vmwareengine.v1.IListSubnetsResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listSubnets(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * subnets. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of subnets to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListSubnetsRequest` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListSubnetsRequest` must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.Subnet|Subnet} 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 `listSubnetsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listSubnetsStream( + request?: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listSubnets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listSubnets.createStream( + this.innerApiCalls.listSubnets as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listSubnets`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * subnets. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of subnets to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListSubnetsRequest` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListSubnetsRequest` must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.vmwareengine.v1.Subnet|Subnet}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.list_subnets.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListSubnets_async + */ + listSubnetsAsync( + request?: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listSubnets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listSubnets.asyncIterate( + this.innerApiCalls['listSubnets'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists `ExternalAccessRule` resources in the specified network policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the network policy to query for external + * access firewall rules. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + * @param {number} request.pageSize + * The maximum number of external access rules to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListExternalAccessRulesRequest` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListExternalAccessRulesRequest` must match the call that provided the page + * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of external access rules, you can + * exclude the ones named `example-rule` by specifying + * `name != "example-rule"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-rule") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-rule-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-rule-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.ExternalAccessRule|ExternalAccessRule}. + * 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 `listExternalAccessRulesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listExternalAccessRules( + request?: protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.IExternalAccessRule[], + protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest | null, + protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse, + ] + >; + listExternalAccessRules( + request: protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + | protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule + > + ): void; + listExternalAccessRules( + request: protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + | protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule + > + ): void; + listExternalAccessRules( + request?: protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + | protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule + >, + callback?: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + | protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule + > + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.IExternalAccessRule[], + protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest | null, + protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listExternalAccessRules( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the network policy to query for external + * access firewall rules. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + * @param {number} request.pageSize + * The maximum number of external access rules to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListExternalAccessRulesRequest` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListExternalAccessRulesRequest` must match the call that provided the page + * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of external access rules, you can + * exclude the ones named `example-rule` by specifying + * `name != "example-rule"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-rule") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-rule-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-rule-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.ExternalAccessRule|ExternalAccessRule} 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 `listExternalAccessRulesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listExternalAccessRulesStream( + request?: protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listExternalAccessRules']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listExternalAccessRules.createStream( + this.innerApiCalls.listExternalAccessRules as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listExternalAccessRules`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the network policy to query for external + * access firewall rules. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-central1/networkPolicies/my-policy` + * @param {number} request.pageSize + * The maximum number of external access rules to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListExternalAccessRulesRequest` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListExternalAccessRulesRequest` must match the call that provided the page + * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of external access rules, you can + * exclude the ones named `example-rule` by specifying + * `name != "example-rule"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-rule") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-rule-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-rule-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.vmwareengine.v1.ExternalAccessRule|ExternalAccessRule}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.list_external_access_rules.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_async + */ + listExternalAccessRulesAsync( + request?: protos.google.cloud.vmwareengine.v1.IListExternalAccessRulesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listExternalAccessRules']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listExternalAccessRules.asyncIterate( + this.innerApiCalls['listExternalAccessRules'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists logging servers configured for a given private + * cloud. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * logging servers. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of logging servers to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListLoggingServersRequest` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListLoggingServersRequest` must match the call that provided the page + * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of logging servers, you can + * exclude the ones named `example-server` by specifying + * `name != "example-server"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-server") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-server-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-server-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.LoggingServer|LoggingServer}. + * 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 `listLoggingServersAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listLoggingServers( + request?: protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.ILoggingServer[], + protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest | null, + protos.google.cloud.vmwareengine.v1.IListLoggingServersResponse, + ] + >; + listLoggingServers( + request: protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + | protos.google.cloud.vmwareengine.v1.IListLoggingServersResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ILoggingServer + > + ): void; + listLoggingServers( + request: protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + callback: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + | protos.google.cloud.vmwareengine.v1.IListLoggingServersResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ILoggingServer + > + ): void; + listLoggingServers( + request?: protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + | protos.google.cloud.vmwareengine.v1.IListLoggingServersResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ILoggingServer + >, + callback?: PaginationCallback< + protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + | protos.google.cloud.vmwareengine.v1.IListLoggingServersResponse + | null + | undefined, + protos.google.cloud.vmwareengine.v1.ILoggingServer + > + ): Promise< + [ + protos.google.cloud.vmwareengine.v1.ILoggingServer[], + protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest | null, + protos.google.cloud.vmwareengine.v1.IListLoggingServersResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listLoggingServers(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * logging servers. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of logging servers to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListLoggingServersRequest` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListLoggingServersRequest` must match the call that provided the page + * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of logging servers, you can + * exclude the ones named `example-server` by specifying + * `name != "example-server"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-server") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-server-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-server-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.LoggingServer|LoggingServer} 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 `listLoggingServersAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listLoggingServersStream( + request?: protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listLoggingServers']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listLoggingServers.createStream( + this.innerApiCalls.listLoggingServers as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listLoggingServers`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the private cloud to be queried for + * logging servers. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param {number} request.pageSize + * The maximum number of logging servers to return in one page. + * The service may return fewer than this value. + * The maximum value is coerced to 1000. + * The default value of this field is 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListLoggingServersRequest` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListLoggingServersRequest` must match the call that provided the page + * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of logging servers, you can + * exclude the ones named `example-server` by specifying + * `name != "example-server"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-server") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-server-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-server-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.vmwareengine.v1.LoggingServer|LoggingServer}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.list_logging_servers.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_async + */ + listLoggingServersAsync( + request?: protos.google.cloud.vmwareengine.v1.IListLoggingServersRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listLoggingServers']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listLoggingServers.asyncIterate( + this.innerApiCalls['listLoggingServers'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists node types * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to be queried for - * clusters. Resource names are schemeless URIs that follow the conventions in + * Required. The resource name of the location to be queried for node types. + * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: * `projects/my-project/locations/us-central1-a` * @param {number} request.pageSize - * The maximum number of private clouds to return in one page. + * The maximum number of node types to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListPrivateClouds` call. + * A page token, received from a previous `ListNodeTypes` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListPrivateClouds` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListNodeTypes` must match the call that provided the page token. * @param {string} request.filter * A filter expression that matches resources returned in the response. - * The expression must specify the field name, a comparison operator, and the - * value that you want to use for filtering. The value must be a string, a - * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or - * `<`. - * - * For example, if you are filtering a list of private clouds, you can exclude - * the ones named `example-pc` by specifying `name != "example-pc"`. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. * - * You can also filter nested fields. For example, you could specify - * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds - * only if they have a matching address in their network configuration. + * For example, if you are filtering a list of node types, you can + * exclude the ones named `standard-72` by specifying + * `name != "standard-72"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-pc") - * (createTime > "2021-04-12T08:15:10.40Z") + * (name = "standard-72") + * (virtual_cpu_count > 2) * ``` * - * By default, each expression is an `AND` expression. However, you can - * include `AND` and `OR` expressions explicitly. For example: + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: * ``` - * (name = "private-cloud-1") AND - * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "private-cloud-2") + * (name = "standard-96") AND + * (virtual_cpu_count > 2) OR + * (name = "standard-72") * ``` - * @param {string} request.orderBy - * Sorts list results by a certain order. By default, returned results are - * ordered by `name` in ascending order. You can also sort results in - * descending order based on the `name` value using `orderBy="name desc"`. - * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.PrivateCloud|PrivateCloud}. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.NodeType|NodeType}. * 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 `listPrivateCloudsAsync()` + * We recommend using `listNodeTypesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listPrivateClouds( - request?: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + listNodeTypes( + request?: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.IPrivateCloud[], - protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest | null, - protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, + protos.google.cloud.vmwareengine.v1.INodeType[], + protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest | null, + protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse, ] >; - listPrivateClouds( - request: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + listNodeTypes( + request: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, - | protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse + protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + | protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.IPrivateCloud + protos.google.cloud.vmwareengine.v1.INodeType > ): void; - listPrivateClouds( - request: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + listNodeTypes( + request: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, - | protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse + protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + | protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.IPrivateCloud + protos.google.cloud.vmwareengine.v1.INodeType > ): void; - listPrivateClouds( - request?: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + listNodeTypes( + request?: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, - | protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse + protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + | protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.IPrivateCloud + protos.google.cloud.vmwareengine.v1.INodeType >, callback?: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, - | protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse + protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + | protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.IPrivateCloud + protos.google.cloud.vmwareengine.v1.INodeType > ): Promise< [ - protos.google.cloud.vmwareengine.v1.IPrivateCloud[], - protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest | null, - protos.google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, + protos.google.cloud.vmwareengine.v1.INodeType[], + protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest | null, + protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse, ] > | void { request = request || {}; @@ -5139,7 +11627,7 @@ export class VmwareEngineClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listPrivateClouds(request, options, callback); + return this.innerApiCalls.listNodeTypes(request, options, callback); } /** @@ -5147,68 +11635,61 @@ export class VmwareEngineClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to be queried for - * clusters. Resource names are schemeless URIs that follow the conventions in + * Required. The resource name of the location to be queried for node types. + * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: * `projects/my-project/locations/us-central1-a` * @param {number} request.pageSize - * The maximum number of private clouds to return in one page. + * The maximum number of node types to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListPrivateClouds` call. + * A page token, received from a previous `ListNodeTypes` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListPrivateClouds` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListNodeTypes` must match the call that provided the page token. * @param {string} request.filter * A filter expression that matches resources returned in the response. - * The expression must specify the field name, a comparison operator, and the - * value that you want to use for filtering. The value must be a string, a - * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or - * `<`. - * - * For example, if you are filtering a list of private clouds, you can exclude - * the ones named `example-pc` by specifying `name != "example-pc"`. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. * - * You can also filter nested fields. For example, you could specify - * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds - * only if they have a matching address in their network configuration. + * For example, if you are filtering a list of node types, you can + * exclude the ones named `standard-72` by specifying + * `name != "standard-72"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-pc") - * (createTime > "2021-04-12T08:15:10.40Z") + * (name = "standard-72") + * (virtual_cpu_count > 2) * ``` * - * By default, each expression is an `AND` expression. However, you can - * include `AND` and `OR` expressions explicitly. For example: + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: * ``` - * (name = "private-cloud-1") AND - * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "private-cloud-2") + * (name = "standard-96") AND + * (virtual_cpu_count > 2) OR + * (name = "standard-72") * ``` - * @param {string} request.orderBy - * Sorts list results by a certain order. By default, returned results are - * ordered by `name` in ascending order. You can also sort results in - * descending order based on the `name` value using `orderBy="name desc"`. - * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.PrivateCloud|PrivateCloud} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.NodeType|NodeType} 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 `listPrivateCloudsAsync()` + * We recommend using `listNodeTypesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listPrivateCloudsStream( - request?: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + listNodeTypesStream( + request?: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, options?: CallOptions ): Transform { request = request || {}; @@ -5219,88 +11700,81 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listPrivateClouds']; + const defaultCallSettings = this._defaults['listNodeTypes']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listPrivateClouds.createStream( - this.innerApiCalls.listPrivateClouds as GaxCall, + return this.descriptors.page.listNodeTypes.createStream( + this.innerApiCalls.listNodeTypes as GaxCall, request, callSettings ); } /** - * Equivalent to `listPrivateClouds`, but returns an iterable object. + * Equivalent to `listNodeTypes`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to be queried for - * clusters. Resource names are schemeless URIs that follow the conventions in + * Required. The resource name of the location to be queried for node types. + * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: * `projects/my-project/locations/us-central1-a` * @param {number} request.pageSize - * The maximum number of private clouds to return in one page. + * The maximum number of node types to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListPrivateClouds` call. + * A page token, received from a previous `ListNodeTypes` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListPrivateClouds` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListNodeTypes` must match the call that provided the page token. * @param {string} request.filter * A filter expression that matches resources returned in the response. - * The expression must specify the field name, a comparison operator, and the - * value that you want to use for filtering. The value must be a string, a - * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or - * `<`. - * - * For example, if you are filtering a list of private clouds, you can exclude - * the ones named `example-pc` by specifying `name != "example-pc"`. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. * - * You can also filter nested fields. For example, you could specify - * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds - * only if they have a matching address in their network configuration. + * For example, if you are filtering a list of node types, you can + * exclude the ones named `standard-72` by specifying + * `name != "standard-72"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-pc") - * (createTime > "2021-04-12T08:15:10.40Z") + * (name = "standard-72") + * (virtual_cpu_count > 2) * ``` * - * By default, each expression is an `AND` expression. However, you can - * include `AND` and `OR` expressions explicitly. For example: + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: * ``` - * (name = "private-cloud-1") AND - * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "private-cloud-2") + * (name = "standard-96") AND + * (virtual_cpu_count > 2) OR + * (name = "standard-72") * ``` - * @param {string} request.orderBy - * Sorts list results by a certain order. By default, returned results are - * ordered by `name` in ascending order. You can also sort results in - * descending order based on the `name` value using `orderBy="name desc"`. - * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.vmwareengine.v1.PrivateCloud|PrivateCloud}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.vmwareengine.v1.NodeType|NodeType}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.list_private_clouds.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ListPrivateClouds_async + * @example include:samples/generated/v1/vmware_engine.list_node_types.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListNodeTypes_async */ - listPrivateCloudsAsync( - request?: protos.google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, + listNodeTypesAsync( + request?: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5309,124 +11783,135 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listPrivateClouds']; + const defaultCallSettings = this._defaults['listNodeTypes']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listPrivateClouds.asyncIterate( - this.innerApiCalls['listPrivateClouds'] as GaxCall, + return this.descriptors.page.listNodeTypes.asyncIterate( + this.innerApiCalls['listNodeTypes'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists `Cluster` resources in a given private cloud. + * Lists `NetworkPeering` resources in a given project. NetworkPeering is a + * global resource and location can only be global. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to query for clusters. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * Required. The resource name of the location (global) to query for + * network peerings. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/global` * @param {number} request.pageSize - * The maximum number of clusters to return in one page. - * The service may return fewer than this value. + * The maximum number of network peerings to return in one page. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListClusters` call. + * A page token, received from a previous `ListNetworkPeerings` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListClusters` - * must match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListNetworkPeerings` must match the call that provided the page + * token. * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of network peerings, you can + * exclude the ones named `example-peering` by specifying + * `name != "example-peering"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-cluster") - * (nodeCount = "3") + * (name = "example-peering") + * (createTime > "2021-04-12T08:15:10.40Z") * ``` * - * By default, each expression is an `AND` expression. However, you can - * include `AND` and `OR` expressions explicitly. For example: + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: * ``` - * (name = "example-cluster-1") AND + * (name = "example-peering-1") AND * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "example-cluster-2") + * (name = "example-peering-2") * ``` * @param {string} request.orderBy - * Sorts list results by a certain order. By default, returned results are - * ordered by `name` in ascending order. You can also sort results in - * descending order based on the `name` value using `orderBy="name desc"`. + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.Cluster|Cluster}. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.NetworkPeering|NetworkPeering}. * 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 `listClustersAsync()` + * We recommend using `listNetworkPeeringsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listClusters( - request?: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + listNetworkPeerings( + request?: protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.ICluster[], - protos.google.cloud.vmwareengine.v1.IListClustersRequest | null, - protos.google.cloud.vmwareengine.v1.IListClustersResponse, + protos.google.cloud.vmwareengine.v1.INetworkPeering[], + protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest | null, + protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse, ] >; - listClusters( - request: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + listNetworkPeerings( + request: protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListClustersRequest, - | protos.google.cloud.vmwareengine.v1.IListClustersResponse + protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, + | protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.ICluster + protos.google.cloud.vmwareengine.v1.INetworkPeering > ): void; - listClusters( - request: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + listNetworkPeerings( + request: protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListClustersRequest, - | protos.google.cloud.vmwareengine.v1.IListClustersResponse + protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, + | protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.ICluster + protos.google.cloud.vmwareengine.v1.INetworkPeering > ): void; - listClusters( - request?: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + listNetworkPeerings( + request?: protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListClustersRequest, - | protos.google.cloud.vmwareengine.v1.IListClustersResponse + protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, + | protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.ICluster + protos.google.cloud.vmwareengine.v1.INetworkPeering >, callback?: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListClustersRequest, - | protos.google.cloud.vmwareengine.v1.IListClustersResponse + protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, + | protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.ICluster + protos.google.cloud.vmwareengine.v1.INetworkPeering > ): Promise< [ - protos.google.cloud.vmwareengine.v1.ICluster[], - protos.google.cloud.vmwareengine.v1.IListClustersRequest | null, - protos.google.cloud.vmwareengine.v1.IListClustersResponse, + protos.google.cloud.vmwareengine.v1.INetworkPeering[], + protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest | null, + protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsResponse, ] > | void { request = request || {}; @@ -5445,7 +11930,7 @@ export class VmwareEngineClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listClusters(request, options, callback); + return this.innerApiCalls.listNetworkPeerings(request, options, callback); } /** @@ -5453,56 +11938,66 @@ export class VmwareEngineClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to query for clusters. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * Required. The resource name of the location (global) to query for + * network peerings. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/global` * @param {number} request.pageSize - * The maximum number of clusters to return in one page. - * The service may return fewer than this value. + * The maximum number of network peerings to return in one page. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListClusters` call. + * A page token, received from a previous `ListNetworkPeerings` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListClusters` - * must match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListNetworkPeerings` must match the call that provided the page + * token. * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of network peerings, you can + * exclude the ones named `example-peering` by specifying + * `name != "example-peering"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-cluster") - * (nodeCount = "3") + * (name = "example-peering") + * (createTime > "2021-04-12T08:15:10.40Z") * ``` * - * By default, each expression is an `AND` expression. However, you can - * include `AND` and `OR` expressions explicitly. For example: + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: * ``` - * (name = "example-cluster-1") AND + * (name = "example-peering-1") AND * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "example-cluster-2") + * (name = "example-peering-2") * ``` * @param {string} request.orderBy - * Sorts list results by a certain order. By default, returned results are - * ordered by `name` in ascending order. You can also sort results in - * descending order based on the `name` value using `orderBy="name desc"`. + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.Cluster|Cluster} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.NetworkPeering|NetworkPeering} 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 `listClustersAsync()` + * We recommend using `listNetworkPeeringsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listClustersStream( - request?: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + listNetworkPeeringsStream( + request?: protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -5513,76 +12008,86 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listClusters']; + const defaultCallSettings = this._defaults['listNetworkPeerings']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listClusters.createStream( - this.innerApiCalls.listClusters as GaxCall, + return this.descriptors.page.listNetworkPeerings.createStream( + this.innerApiCalls.listNetworkPeerings as GaxCall, request, callSettings ); } /** - * Equivalent to `listClusters`, but returns an iterable object. + * Equivalent to `listNetworkPeerings`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to query for clusters. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * Required. The resource name of the location (global) to query for + * network peerings. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/global` * @param {number} request.pageSize - * The maximum number of clusters to return in one page. - * The service may return fewer than this value. + * The maximum number of network peerings to return in one page. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListClusters` call. + * A page token, received from a previous `ListNetworkPeerings` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListClusters` - * must match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListNetworkPeerings` must match the call that provided the page + * token. * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of network peerings, you can + * exclude the ones named `example-peering` by specifying + * `name != "example-peering"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-cluster") - * (nodeCount = "3") + * (name = "example-peering") + * (createTime > "2021-04-12T08:15:10.40Z") * ``` * - * By default, each expression is an `AND` expression. However, you can - * include `AND` and `OR` expressions explicitly. For example: + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: * ``` - * (name = "example-cluster-1") AND + * (name = "example-peering-1") AND * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "example-cluster-2") + * (name = "example-peering-2") * ``` * @param {string} request.orderBy - * Sorts list results by a certain order. By default, returned results are - * ordered by `name` in ascending order. You can also sort results in - * descending order based on the `name` value using `orderBy="name desc"`. + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.vmwareengine.v1.Cluster|Cluster}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.vmwareengine.v1.NetworkPeering|NetworkPeering}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.list_clusters.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ListClusters_async + * @example include:samples/generated/v1/vmware_engine.list_network_peerings.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_async */ - listClustersAsync( - request?: protos.google.cloud.vmwareengine.v1.IListClustersRequest, + listNetworkPeeringsAsync( + request?: protos.google.cloud.vmwareengine.v1.IListNetworkPeeringsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5591,104 +12096,108 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listClusters']; + const defaultCallSettings = this._defaults['listNetworkPeerings']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listClusters.asyncIterate( - this.innerApiCalls['listClusters'] as GaxCall, + return this.descriptors.page.listNetworkPeerings.asyncIterate( + this.innerApiCalls['listNetworkPeerings'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists subnets in a given private cloud. + * Lists the network peering routes exchanged over a peering connection. + * NetworkPeering is a global resource and location can only be global. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to be queried for - * subnets. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * Required. The resource name of the network peering to retrieve peering + * routes from. Resource names are schemeless URIs that follow the conventions + * in https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/networkPeerings/my-peering` * @param {number} request.pageSize - * The maximum number of subnets to return in one page. + * The maximum number of peering routes to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListSubnetsRequest` call. + * A page token, received from a previous `ListPeeringRoutes` call. * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * `ListSubnetsRequest` must match the call that provided the page token. + * When paginating, all other parameters provided to `ListPeeringRoutes` must + * match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * Currently, only filtering on the `direction` field is supported. To return + * routes imported from the peer network, provide "direction=INCOMING". To + * return routes exported from the VMware Engine network, provide + * "direction=OUTGOING". Other filter expressions return an error. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.Subnet|Subnet}. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.PeeringRoute|PeeringRoute}. * 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 `listSubnetsAsync()` + * We recommend using `listPeeringRoutesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listSubnets( - request?: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + listPeeringRoutes( + request?: protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.ISubnet[], - protos.google.cloud.vmwareengine.v1.IListSubnetsRequest | null, - protos.google.cloud.vmwareengine.v1.IListSubnetsResponse, + protos.google.cloud.vmwareengine.v1.IPeeringRoute[], + protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest | null, + protos.google.cloud.vmwareengine.v1.IListPeeringRoutesResponse, ] >; - listSubnets( - request: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + listPeeringRoutes( + request: protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, - | protos.google.cloud.vmwareengine.v1.IListSubnetsResponse + protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, + | protos.google.cloud.vmwareengine.v1.IListPeeringRoutesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.ISubnet + protos.google.cloud.vmwareengine.v1.IPeeringRoute > ): void; - listSubnets( - request: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + listPeeringRoutes( + request: protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, - | protos.google.cloud.vmwareengine.v1.IListSubnetsResponse + protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, + | protos.google.cloud.vmwareengine.v1.IListPeeringRoutesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.ISubnet + protos.google.cloud.vmwareengine.v1.IPeeringRoute > ): void; - listSubnets( - request?: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + listPeeringRoutes( + request?: protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, - | protos.google.cloud.vmwareengine.v1.IListSubnetsResponse + protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, + | protos.google.cloud.vmwareengine.v1.IListPeeringRoutesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.ISubnet + protos.google.cloud.vmwareengine.v1.IPeeringRoute >, callback?: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, - | protos.google.cloud.vmwareengine.v1.IListSubnetsResponse + protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, + | protos.google.cloud.vmwareengine.v1.IListPeeringRoutesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.ISubnet + protos.google.cloud.vmwareengine.v1.IPeeringRoute > ): Promise< [ - protos.google.cloud.vmwareengine.v1.ISubnet[], - protos.google.cloud.vmwareengine.v1.IListSubnetsRequest | null, - protos.google.cloud.vmwareengine.v1.IListSubnetsResponse, + protos.google.cloud.vmwareengine.v1.IPeeringRoute[], + protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest | null, + protos.google.cloud.vmwareengine.v1.IListPeeringRoutesResponse, ] > | void { request = request || {}; @@ -5707,7 +12216,7 @@ export class VmwareEngineClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listSubnets(request, options, callback); + return this.innerApiCalls.listPeeringRoutes(request, options, callback); } /** @@ -5715,36 +12224,39 @@ export class VmwareEngineClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to be queried for - * subnets. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * Required. The resource name of the network peering to retrieve peering + * routes from. Resource names are schemeless URIs that follow the conventions + * in https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/networkPeerings/my-peering` * @param {number} request.pageSize - * The maximum number of subnets to return in one page. + * The maximum number of peering routes to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListSubnetsRequest` call. + * A page token, received from a previous `ListPeeringRoutes` call. * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * `ListSubnetsRequest` must match the call that provided the page token. + * When paginating, all other parameters provided to `ListPeeringRoutes` must + * match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * Currently, only filtering on the `direction` field is supported. To return + * routes imported from the peer network, provide "direction=INCOMING". To + * return routes exported from the VMware Engine network, provide + * "direction=OUTGOING". Other filter expressions return an error. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.Subnet|Subnet} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.PeeringRoute|PeeringRoute} 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 `listSubnetsAsync()` + * We recommend using `listPeeringRoutesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listSubnetsStream( - request?: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + listPeeringRoutesStream( + request?: protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, options?: CallOptions ): Transform { request = request || {}; @@ -5755,56 +12267,59 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listSubnets']; + const defaultCallSettings = this._defaults['listPeeringRoutes']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listSubnets.createStream( - this.innerApiCalls.listSubnets as GaxCall, + return this.descriptors.page.listPeeringRoutes.createStream( + this.innerApiCalls.listPeeringRoutes as GaxCall, request, callSettings ); } /** - * Equivalent to `listSubnets`, but returns an iterable object. + * Equivalent to `listPeeringRoutes`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud to be queried for - * subnets. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * Required. The resource name of the network peering to retrieve peering + * routes from. Resource names are schemeless URIs that follow the conventions + * in https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/networkPeerings/my-peering` * @param {number} request.pageSize - * The maximum number of subnets to return in one page. + * The maximum number of peering routes to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListSubnetsRequest` call. + * A page token, received from a previous `ListPeeringRoutes` call. * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * `ListSubnetsRequest` must match the call that provided the page token. + * When paginating, all other parameters provided to `ListPeeringRoutes` must + * match the call that provided the page token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * Currently, only filtering on the `direction` field is supported. To return + * routes imported from the peer network, provide "direction=INCOMING". To + * return routes exported from the VMware Engine network, provide + * "direction=OUTGOING". Other filter expressions return an error. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.vmwareengine.v1.Subnet|Subnet}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.vmwareengine.v1.PeeringRoute|PeeringRoute}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } - * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.list_subnets.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ListSubnets_async + * for more details and examples. + * @example include:samples/generated/v1/vmware_engine.list_peering_routes.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_async */ - listSubnetsAsync( - request?: protos.google.cloud.vmwareengine.v1.IListSubnetsRequest, + listPeeringRoutesAsync( + request?: protos.google.cloud.vmwareengine.v1.IListPeeringRoutesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5813,129 +12328,105 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listSubnets']; + const defaultCallSettings = this._defaults['listPeeringRoutes']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listSubnets.asyncIterate( - this.innerApiCalls['listSubnets'] as GaxCall, + return this.descriptors.page.listPeeringRoutes.asyncIterate( + this.innerApiCalls['listPeeringRoutes'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists node types + * Lists `HcxActivationKey` resources in a given private cloud. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the location to be queried for node types. + * Required. The resource name of the private cloud + * to be queried for HCX activation keys. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a` + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` * @param {number} request.pageSize - * The maximum number of node types to return in one page. + * The maximum number of HCX activation keys to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListNodeTypes` call. + * A page token, received from a previous `ListHcxActivationKeys` call. * Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * `ListNodeTypes` must match the call that provided the page token. - * @param {string} request.filter - * A filter expression that matches resources returned in the response. - * The expression must specify the field name, a comparison - * operator, and the value that you want to use for filtering. The value - * must be a string, a number, or a boolean. The comparison operator - * must be `=`, `!=`, `>`, or `<`. - * - * For example, if you are filtering a list of node types, you can - * exclude the ones named `standard-72` by specifying - * `name != "standard-72"`. - * - * To filter on multiple expressions, provide each separate expression within - * parentheses. For example: - * ``` - * (name = "standard-72") - * (virtual_cpu_count > 2) - * ``` - * - * By default, each expression is an `AND` expression. However, you - * can include `AND` and `OR` expressions explicitly. - * For example: - * ``` - * (name = "standard-96") AND - * (virtual_cpu_count > 2) OR - * (name = "standard-72") - * ``` + * `ListHcxActivationKeys` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.NodeType|NodeType}. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.HcxActivationKey|HcxActivationKey}. * 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 `listNodeTypesAsync()` + * We recommend using `listHcxActivationKeysAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listNodeTypes( - request?: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + listHcxActivationKeys( + request?: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.INodeType[], - protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest | null, - protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse, + protos.google.cloud.vmwareengine.v1.IHcxActivationKey[], + protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest | null, + protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, ] >; - listNodeTypes( - request: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + listHcxActivationKeys( + request: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, - | protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse + protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + | protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.INodeType + protos.google.cloud.vmwareengine.v1.IHcxActivationKey > ): void; - listNodeTypes( - request: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + listHcxActivationKeys( + request: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, - | protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse + protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + | protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.INodeType + protos.google.cloud.vmwareengine.v1.IHcxActivationKey > ): void; - listNodeTypes( - request?: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + listHcxActivationKeys( + request?: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, - | protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse + protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + | protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.INodeType + protos.google.cloud.vmwareengine.v1.IHcxActivationKey >, callback?: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, - | protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse + protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + | protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.INodeType + protos.google.cloud.vmwareengine.v1.IHcxActivationKey > ): Promise< [ - protos.google.cloud.vmwareengine.v1.INodeType[], - protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest | null, - protos.google.cloud.vmwareengine.v1.IListNodeTypesResponse, + protos.google.cloud.vmwareengine.v1.IHcxActivationKey[], + protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest | null, + protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, ] > | void { request = request || {}; @@ -5954,7 +12445,7 @@ export class VmwareEngineClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listNodeTypes(request, options, callback); + return this.innerApiCalls.listHcxActivationKeys(request, options, callback); } /** @@ -5962,61 +12453,37 @@ export class VmwareEngineClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the location to be queried for node types. + * Required. The resource name of the private cloud + * to be queried for HCX activation keys. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a` + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` * @param {number} request.pageSize - * The maximum number of node types to return in one page. + * The maximum number of HCX activation keys to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListNodeTypes` call. + * A page token, received from a previous `ListHcxActivationKeys` call. * Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * `ListNodeTypes` must match the call that provided the page token. - * @param {string} request.filter - * A filter expression that matches resources returned in the response. - * The expression must specify the field name, a comparison - * operator, and the value that you want to use for filtering. The value - * must be a string, a number, or a boolean. The comparison operator - * must be `=`, `!=`, `>`, or `<`. - * - * For example, if you are filtering a list of node types, you can - * exclude the ones named `standard-72` by specifying - * `name != "standard-72"`. - * - * To filter on multiple expressions, provide each separate expression within - * parentheses. For example: - * ``` - * (name = "standard-72") - * (virtual_cpu_count > 2) - * ``` - * - * By default, each expression is an `AND` expression. However, you - * can include `AND` and `OR` expressions explicitly. - * For example: - * ``` - * (name = "standard-96") AND - * (virtual_cpu_count > 2) OR - * (name = "standard-72") - * ``` + * `ListHcxActivationKeys` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.NodeType|NodeType} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.HcxActivationKey|HcxActivationKey} 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 `listNodeTypesAsync()` + * We recommend using `listHcxActivationKeysAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listNodeTypesStream( - request?: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + listHcxActivationKeysStream( + request?: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, options?: CallOptions ): Transform { request = request || {}; @@ -6027,81 +12494,57 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listNodeTypes']; + const defaultCallSettings = this._defaults['listHcxActivationKeys']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listNodeTypes.createStream( - this.innerApiCalls.listNodeTypes as GaxCall, + return this.descriptors.page.listHcxActivationKeys.createStream( + this.innerApiCalls.listHcxActivationKeys as GaxCall, request, callSettings ); } /** - * Equivalent to `listNodeTypes`, but returns an iterable object. + * Equivalent to `listHcxActivationKeys`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the location to be queried for node types. + * Required. The resource name of the private cloud + * to be queried for HCX activation keys. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. * For example: - * `projects/my-project/locations/us-central1-a` + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` * @param {number} request.pageSize - * The maximum number of node types to return in one page. + * The maximum number of HCX activation keys to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListNodeTypes` call. + * A page token, received from a previous `ListHcxActivationKeys` call. * Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * `ListNodeTypes` must match the call that provided the page token. - * @param {string} request.filter - * A filter expression that matches resources returned in the response. - * The expression must specify the field name, a comparison - * operator, and the value that you want to use for filtering. The value - * must be a string, a number, or a boolean. The comparison operator - * must be `=`, `!=`, `>`, or `<`. - * - * For example, if you are filtering a list of node types, you can - * exclude the ones named `standard-72` by specifying - * `name != "standard-72"`. - * - * To filter on multiple expressions, provide each separate expression within - * parentheses. For example: - * ``` - * (name = "standard-72") - * (virtual_cpu_count > 2) - * ``` - * - * By default, each expression is an `AND` expression. However, you - * can include `AND` and `OR` expressions explicitly. - * For example: - * ``` - * (name = "standard-96") AND - * (virtual_cpu_count > 2) OR - * (name = "standard-72") - * ``` + * `ListHcxActivationKeys` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.vmwareengine.v1.NodeType|NodeType}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.vmwareengine.v1.HcxActivationKey|HcxActivationKey}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.list_node_types.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ListNodeTypes_async + * @example include:samples/generated/v1/vmware_engine.list_hcx_activation_keys.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListHcxActivationKeys_async */ - listNodeTypesAsync( - request?: protos.google.cloud.vmwareengine.v1.IListNodeTypesRequest, + listHcxActivationKeysAsync( + request?: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6110,105 +12553,135 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listNodeTypes']; + const defaultCallSettings = this._defaults['listHcxActivationKeys']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listNodeTypes.asyncIterate( - this.innerApiCalls['listNodeTypes'] as GaxCall, + return this.descriptors.page.listHcxActivationKeys.asyncIterate( + this.innerApiCalls['listHcxActivationKeys'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists `HcxActivationKey` resources in a given private cloud. + * Lists `NetworkPolicy` resources in a specified project and location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud - * to be queried for HCX activation keys. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1/privateClouds/my-cloud` + * Required. The resource name of the location (region) to query for + * network policies. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/us-central1` * @param {number} request.pageSize - * The maximum number of HCX activation keys to return in one page. + * The maximum number of network policies to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListHcxActivationKeys` call. + * A page token, received from a previous `ListNetworkPolicies` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListHcxActivationKeys` must match the call that provided the page - * token. + * When paginating, all other parameters provided to + * `ListNetworkPolicies` must match the call that provided the page + * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of network policies, you can + * exclude the ones named `example-policy` by specifying + * `name != "example-policy"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-policy") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-policy-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-policy-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.HcxActivationKey|HcxActivationKey}. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.NetworkPolicy|NetworkPolicy}. * 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 `listHcxActivationKeysAsync()` + * We recommend using `listNetworkPoliciesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listHcxActivationKeys( - request?: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + listNetworkPolicies( + request?: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.IHcxActivationKey[], - protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest | null, - protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, + protos.google.cloud.vmwareengine.v1.INetworkPolicy[], + protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest | null, + protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, ] >; - listHcxActivationKeys( - request: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + listNetworkPolicies( + request: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, - | protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse + protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + | protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.IHcxActivationKey + protos.google.cloud.vmwareengine.v1.INetworkPolicy > ): void; - listHcxActivationKeys( - request: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + listNetworkPolicies( + request: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, - | protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse + protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + | protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.IHcxActivationKey + protos.google.cloud.vmwareengine.v1.INetworkPolicy > ): void; - listHcxActivationKeys( - request?: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + listNetworkPolicies( + request?: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, - | protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse + protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + | protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.IHcxActivationKey + protos.google.cloud.vmwareengine.v1.INetworkPolicy >, callback?: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, - | protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse + protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + | protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.IHcxActivationKey + protos.google.cloud.vmwareengine.v1.INetworkPolicy > ): Promise< [ - protos.google.cloud.vmwareengine.v1.IHcxActivationKey[], - protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest | null, - protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, + protos.google.cloud.vmwareengine.v1.INetworkPolicy[], + protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest | null, + protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, ] > | void { request = request || {}; @@ -6227,7 +12700,7 @@ export class VmwareEngineClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listHcxActivationKeys(request, options, callback); + return this.innerApiCalls.listNetworkPolicies(request, options, callback); } /** @@ -6235,37 +12708,67 @@ export class VmwareEngineClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud - * to be queried for HCX activation keys. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1/privateClouds/my-cloud` + * Required. The resource name of the location (region) to query for + * network policies. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/us-central1` * @param {number} request.pageSize - * The maximum number of HCX activation keys to return in one page. + * The maximum number of network policies to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListHcxActivationKeys` call. + * A page token, received from a previous `ListNetworkPolicies` call. * Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * `ListHcxActivationKeys` must match the call that provided the page + * `ListNetworkPolicies` must match the call that provided the page * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of network policies, you can + * exclude the ones named `example-policy` by specifying + * `name != "example-policy"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-policy") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-policy-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-policy-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.HcxActivationKey|HcxActivationKey} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.NetworkPolicy|NetworkPolicy} 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 `listHcxActivationKeysAsync()` + * We recommend using `listNetworkPoliciesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listHcxActivationKeysStream( - request?: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + listNetworkPoliciesStream( + request?: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, options?: CallOptions ): Transform { request = request || {}; @@ -6276,57 +12779,87 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHcxActivationKeys']; + const defaultCallSettings = this._defaults['listNetworkPolicies']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHcxActivationKeys.createStream( - this.innerApiCalls.listHcxActivationKeys as GaxCall, + return this.descriptors.page.listNetworkPolicies.createStream( + this.innerApiCalls.listNetworkPolicies as GaxCall, request, callSettings ); } /** - * Equivalent to `listHcxActivationKeys`, but returns an iterable object. + * Equivalent to `listNetworkPolicies`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the private cloud - * to be queried for HCX activation keys. - * Resource names are schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. - * For example: - * `projects/my-project/locations/us-central1/privateClouds/my-cloud` + * Required. The resource name of the location (region) to query for + * network policies. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/us-central1` * @param {number} request.pageSize - * The maximum number of HCX activation keys to return in one page. + * The maximum number of network policies to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListHcxActivationKeys` call. + * A page token, received from a previous `ListNetworkPolicies` call. * Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * `ListHcxActivationKeys` must match the call that provided the page + * `ListNetworkPolicies` must match the call that provided the page * token. + * @param {string} request.filter + * A filter expression that matches resources returned in the response. + * The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The comparison operator + * must be `=`, `!=`, `>`, or `<`. + * + * For example, if you are filtering a list of network policies, you can + * exclude the ones named `example-policy` by specifying + * `name != "example-policy"`. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (name = "example-policy") + * (createTime > "2021-04-12T08:15:10.40Z") + * ``` + * + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (name = "example-policy-1") AND + * (createTime > "2021-04-12T08:15:10.40Z") OR + * (name = "example-policy-2") + * ``` + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, returned results + * are ordered by `name` in ascending order. + * You can also sort results in descending order based on the `name` value + * using `orderBy="name desc"`. + * Currently, only ordering by `name` is supported. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.vmwareengine.v1.HcxActivationKey|HcxActivationKey}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.vmwareengine.v1.NetworkPolicy|NetworkPolicy}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.list_hcx_activation_keys.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ListHcxActivationKeys_async + * @example include:samples/generated/v1/vmware_engine.list_network_policies.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListNetworkPolicies_async */ - listHcxActivationKeysAsync( - request?: protos.google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, + listNetworkPoliciesAsync( + request?: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6335,36 +12868,38 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHcxActivationKeys']; + const defaultCallSettings = this._defaults['listNetworkPolicies']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHcxActivationKeys.asyncIterate( - this.innerApiCalls['listHcxActivationKeys'] as GaxCall, + return this.descriptors.page.listNetworkPolicies.asyncIterate( + this.innerApiCalls['listNetworkPolicies'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists `NetworkPolicy` resources in a specified project and location. + * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the location (region) to query for - * network policies. Resource names are schemeless URIs that follow the - * conventions in https://cloud.google.com/apis/design/resource_names. For - * example: `projects/my-project/locations/us-central1` + * Required. The resource name of the private cloud to be queried for + * management DNS zone bindings. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @param {number} request.pageSize - * The maximum number of network policies to return in one page. + * The maximum number of management DNS zone bindings to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListNetworkPolicies` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListManagementDnsZoneBindings` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * `ListNetworkPolicies` must match the call that provided the page + * `ListManagementDnsZoneBindings` must match the call that provided the page * token. * @param {string} request.filter * A filter expression that matches resources returned in the response. @@ -6373,14 +12908,14 @@ export class VmwareEngineClient { * must be a string, a number, or a boolean. The comparison operator * must be `=`, `!=`, `>`, or `<`. * - * For example, if you are filtering a list of network policies, you can - * exclude the ones named `example-policy` by specifying - * `name != "example-policy"`. + * For example, if you are filtering a list of Management DNS Zone Bindings, + * you can exclude the ones named `example-management-dns-zone-binding` by + * specifying `name != "example-management-dns-zone-binding"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-policy") + * (name = "example-management-dns-zone-binding") * (createTime > "2021-04-12T08:15:10.40Z") * ``` * @@ -6388,9 +12923,9 @@ export class VmwareEngineClient { * can include `AND` and `OR` expressions explicitly. * For example: * ``` - * (name = "example-policy-1") AND + * (name = "example-management-dns-zone-binding-1") AND * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "example-policy-2") + * (name = "example-management-dns-zone-binding-2") * ``` * @param {string} request.orderBy * Sorts list results by a certain order. By default, returned results @@ -6401,69 +12936,69 @@ export class VmwareEngineClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.NetworkPolicy|NetworkPolicy}. + * The first element of the array is Array of {@link protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding|ManagementDnsZoneBinding}. * 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 `listNetworkPoliciesAsync()` + * We recommend using `listManagementDnsZoneBindingsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listNetworkPolicies( - request?: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + listManagementDnsZoneBindings( + request?: protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.vmwareengine.v1.INetworkPolicy[], - protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest | null, - protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding[], + protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest | null, + protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse, ] >; - listNetworkPolicies( - request: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + listManagementDnsZoneBindings( + request: protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, - | protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse + protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, + | protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.INetworkPolicy + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding > ): void; - listNetworkPolicies( - request: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + listManagementDnsZoneBindings( + request: protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, callback: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, - | protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse + protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, + | protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.INetworkPolicy + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding > ): void; - listNetworkPolicies( - request?: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + listManagementDnsZoneBindings( + request?: protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, - | protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse + protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, + | protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.INetworkPolicy + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding >, callback?: PaginationCallback< - protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, - | protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse + protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, + | protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse | null | undefined, - protos.google.cloud.vmwareengine.v1.INetworkPolicy + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding > ): Promise< [ - protos.google.cloud.vmwareengine.v1.INetworkPolicy[], - protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest | null, - protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding[], + protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest | null, + protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsResponse, ] > | void { request = request || {}; @@ -6482,7 +13017,11 @@ export class VmwareEngineClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listNetworkPolicies(request, options, callback); + return this.innerApiCalls.listManagementDnsZoneBindings( + request, + options, + callback + ); } /** @@ -6490,21 +13029,23 @@ export class VmwareEngineClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the location (region) to query for - * network policies. Resource names are schemeless URIs that follow the - * conventions in https://cloud.google.com/apis/design/resource_names. For - * example: `projects/my-project/locations/us-central1` + * Required. The resource name of the private cloud to be queried for + * management DNS zone bindings. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @param {number} request.pageSize - * The maximum number of network policies to return in one page. + * The maximum number of management DNS zone bindings to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListNetworkPolicies` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListManagementDnsZoneBindings` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * `ListNetworkPolicies` must match the call that provided the page + * `ListManagementDnsZoneBindings` must match the call that provided the page * token. * @param {string} request.filter * A filter expression that matches resources returned in the response. @@ -6513,14 +13054,14 @@ export class VmwareEngineClient { * must be a string, a number, or a boolean. The comparison operator * must be `=`, `!=`, `>`, or `<`. * - * For example, if you are filtering a list of network policies, you can - * exclude the ones named `example-policy` by specifying - * `name != "example-policy"`. + * For example, if you are filtering a list of Management DNS Zone Bindings, + * you can exclude the ones named `example-management-dns-zone-binding` by + * specifying `name != "example-management-dns-zone-binding"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-policy") + * (name = "example-management-dns-zone-binding") * (createTime > "2021-04-12T08:15:10.40Z") * ``` * @@ -6528,9 +13069,9 @@ export class VmwareEngineClient { * can include `AND` and `OR` expressions explicitly. * For example: * ``` - * (name = "example-policy-1") AND + * (name = "example-management-dns-zone-binding-1") AND * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "example-policy-2") + * (name = "example-management-dns-zone-binding-2") * ``` * @param {string} request.orderBy * Sorts list results by a certain order. By default, returned results @@ -6541,16 +13082,16 @@ export class VmwareEngineClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.NetworkPolicy|NetworkPolicy} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding|ManagementDnsZoneBinding} 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 `listNetworkPoliciesAsync()` + * We recommend using `listManagementDnsZoneBindingsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listNetworkPoliciesStream( - request?: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + listManagementDnsZoneBindingsStream( + request?: protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -6561,38 +13102,40 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listNetworkPolicies']; + const defaultCallSettings = this._defaults['listManagementDnsZoneBindings']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listNetworkPolicies.createStream( - this.innerApiCalls.listNetworkPolicies as GaxCall, + return this.descriptors.page.listManagementDnsZoneBindings.createStream( + this.innerApiCalls.listManagementDnsZoneBindings as GaxCall, request, callSettings ); } /** - * Equivalent to `listNetworkPolicies`, but returns an iterable object. + * Equivalent to `listManagementDnsZoneBindings`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the location (region) to query for - * network policies. Resource names are schemeless URIs that follow the - * conventions in https://cloud.google.com/apis/design/resource_names. For - * example: `projects/my-project/locations/us-central1` + * Required. The resource name of the private cloud to be queried for + * management DNS zone bindings. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @param {number} request.pageSize - * The maximum number of network policies to return in one page. + * The maximum number of management DNS zone bindings to return in one page. * The service may return fewer than this value. * The maximum value is coerced to 1000. * The default value of this field is 500. * @param {string} request.pageToken - * A page token, received from a previous `ListNetworkPolicies` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListManagementDnsZoneBindings` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * `ListNetworkPolicies` must match the call that provided the page + * `ListManagementDnsZoneBindings` must match the call that provided the page * token. * @param {string} request.filter * A filter expression that matches resources returned in the response. @@ -6601,14 +13144,14 @@ export class VmwareEngineClient { * must be a string, a number, or a boolean. The comparison operator * must be `=`, `!=`, `>`, or `<`. * - * For example, if you are filtering a list of network policies, you can - * exclude the ones named `example-policy` by specifying - * `name != "example-policy"`. + * For example, if you are filtering a list of Management DNS Zone Bindings, + * you can exclude the ones named `example-management-dns-zone-binding` by + * specifying `name != "example-management-dns-zone-binding"`. * * To filter on multiple expressions, provide each separate expression within * parentheses. For example: * ``` - * (name = "example-policy") + * (name = "example-management-dns-zone-binding") * (createTime > "2021-04-12T08:15:10.40Z") * ``` * @@ -6616,9 +13159,9 @@ export class VmwareEngineClient { * can include `AND` and `OR` expressions explicitly. * For example: * ``` - * (name = "example-policy-1") AND + * (name = "example-management-dns-zone-binding-1") AND * (createTime > "2021-04-12T08:15:10.40Z") OR - * (name = "example-policy-2") + * (name = "example-management-dns-zone-binding-2") * ``` * @param {string} request.orderBy * Sorts list results by a certain order. By default, returned results @@ -6631,17 +13174,17 @@ export class VmwareEngineClient { * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.vmwareengine.v1.NetworkPolicy|NetworkPolicy}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding|ManagementDnsZoneBinding}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1/vmware_engine.list_network_policies.js - * region_tag:vmwareengine_v1_generated_VmwareEngine_ListNetworkPolicies_async + * @example include:samples/generated/v1/vmware_engine.list_management_dns_zone_bindings.js + * region_tag:vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_async */ - listNetworkPoliciesAsync( - request?: protos.google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, + listManagementDnsZoneBindingsAsync( + request?: protos.google.cloud.vmwareengine.v1.IListManagementDnsZoneBindingsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6650,14 +13193,14 @@ export class VmwareEngineClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listNetworkPolicies']; + const defaultCallSettings = this._defaults['listManagementDnsZoneBindings']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listNetworkPolicies.asyncIterate( - this.innerApiCalls['listNetworkPolicies'] as GaxCall, + return this.descriptors.page.listManagementDnsZoneBindings.asyncIterate( + this.innerApiCalls['listManagementDnsZoneBindings'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Lists `VmwareEngineNetwork` resources in a given project and location. @@ -7859,118 +14402,362 @@ export class VmwareEngineClient { } /** - * Deletes a long-running operation. This method indicates that the client is - * no longer interested in the operation result. It does not cancel the - * operation. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} + * for the details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified cluster resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} private_cloud + * @param {string} cluster + * @returns {string} Resource name string. + */ + clusterPath( + project: string, + location: string, + privateCloud: string, + cluster: string + ) { + return this.pathTemplates.clusterPathTemplate.render({ + project: project, + location: location, + private_cloud: privateCloud, + cluster: cluster, + }); + } + + /** + * Parse the project from Cluster resource. + * + * @param {string} clusterName + * A fully-qualified path representing Cluster resource. + * @returns {string} A string representing the project. + */ + matchProjectFromClusterName(clusterName: string) { + return this.pathTemplates.clusterPathTemplate.match(clusterName).project; + } + + /** + * Parse the location from Cluster resource. + * + * @param {string} clusterName + * A fully-qualified path representing Cluster resource. + * @returns {string} A string representing the location. + */ + matchLocationFromClusterName(clusterName: string) { + return this.pathTemplates.clusterPathTemplate.match(clusterName).location; + } + + /** + * Parse the private_cloud from Cluster resource. + * + * @param {string} clusterName + * A fully-qualified path representing Cluster resource. + * @returns {string} A string representing the private_cloud. + */ + matchPrivateCloudFromClusterName(clusterName: string) { + return this.pathTemplates.clusterPathTemplate.match(clusterName) + .private_cloud; + } + + /** + * Parse the cluster from Cluster resource. + * + * @param {string} clusterName + * A fully-qualified path representing Cluster resource. + * @returns {string} A string representing the cluster. + */ + matchClusterFromClusterName(clusterName: string) { + return this.pathTemplates.clusterPathTemplate.match(clusterName).cluster; + } + + /** + * Return a fully-qualified dnsBindPermission resource name string. + * + * @param {string} project + * @param {string} location + * @returns {string} Resource name string. + */ + dnsBindPermissionPath(project: string, location: string) { + return this.pathTemplates.dnsBindPermissionPathTemplate.render({ + project: project, + location: location, + }); + } + + /** + * Parse the project from DnsBindPermission resource. + * + * @param {string} dnsBindPermissionName + * A fully-qualified path representing DnsBindPermission resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDnsBindPermissionName(dnsBindPermissionName: string) { + return this.pathTemplates.dnsBindPermissionPathTemplate.match( + dnsBindPermissionName + ).project; + } + + /** + * Parse the location from DnsBindPermission resource. + * + * @param {string} dnsBindPermissionName + * A fully-qualified path representing DnsBindPermission resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDnsBindPermissionName(dnsBindPermissionName: string) { + return this.pathTemplates.dnsBindPermissionPathTemplate.match( + dnsBindPermissionName + ).location; + } + + /** + * Return a fully-qualified dnsForwarding resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} private_cloud + * @returns {string} Resource name string. + */ + dnsForwardingPath(project: string, location: string, privateCloud: string) { + return this.pathTemplates.dnsForwardingPathTemplate.render({ + project: project, + location: location, + private_cloud: privateCloud, + }); + } + + /** + * Parse the project from DnsForwarding resource. + * + * @param {string} dnsForwardingName + * A fully-qualified path representing DnsForwarding resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDnsForwardingName(dnsForwardingName: string) { + return this.pathTemplates.dnsForwardingPathTemplate.match(dnsForwardingName) + .project; + } + + /** + * Parse the location from DnsForwarding resource. + * + * @param {string} dnsForwardingName + * A fully-qualified path representing DnsForwarding resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDnsForwardingName(dnsForwardingName: string) { + return this.pathTemplates.dnsForwardingPathTemplate.match(dnsForwardingName) + .location; + } + + /** + * Parse the private_cloud from DnsForwarding resource. + * + * @param {string} dnsForwardingName + * A fully-qualified path representing DnsForwarding resource. + * @returns {string} A string representing the private_cloud. + */ + matchPrivateCloudFromDnsForwardingName(dnsForwardingName: string) { + return this.pathTemplates.dnsForwardingPathTemplate.match(dnsForwardingName) + .private_cloud; + } + + /** + * Return a fully-qualified externalAccessRule resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} network_policy + * @param {string} external_access_rule + * @returns {string} Resource name string. + */ + externalAccessRulePath( + project: string, + location: string, + networkPolicy: string, + externalAccessRule: string + ) { + return this.pathTemplates.externalAccessRulePathTemplate.render({ + project: project, + location: location, + network_policy: networkPolicy, + external_access_rule: externalAccessRule, + }); + } + + /** + * Parse the project from ExternalAccessRule resource. + * + * @param {string} externalAccessRuleName + * A fully-qualified path representing ExternalAccessRule resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExternalAccessRuleName(externalAccessRuleName: string) { + return this.pathTemplates.externalAccessRulePathTemplate.match( + externalAccessRuleName + ).project; + } + + /** + * Parse the location from ExternalAccessRule resource. * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be deleted. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See {@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} - * for the details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. + * @param {string} externalAccessRuleName + * A fully-qualified path representing ExternalAccessRule resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExternalAccessRuleName(externalAccessRuleName: string) { + return this.pathTemplates.externalAccessRulePathTemplate.match( + externalAccessRuleName + ).location; + } + + /** + * Parse the network_policy from ExternalAccessRule resource. * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.deleteOperation({name: ''}); - * ``` + * @param {string} externalAccessRuleName + * A fully-qualified path representing ExternalAccessRule resource. + * @returns {string} A string representing the network_policy. */ - deleteOperation( - request: protos.google.longrunning.DeleteOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - > - ): Promise { - return this.operationsClient.deleteOperation(request, options, callback); + matchNetworkPolicyFromExternalAccessRuleName(externalAccessRuleName: string) { + return this.pathTemplates.externalAccessRulePathTemplate.match( + externalAccessRuleName + ).network_policy; } - // -------------------- - // -- Path templates -- - // -------------------- + /** + * Parse the external_access_rule from ExternalAccessRule resource. + * + * @param {string} externalAccessRuleName + * A fully-qualified path representing ExternalAccessRule resource. + * @returns {string} A string representing the external_access_rule. + */ + matchExternalAccessRuleFromExternalAccessRuleName( + externalAccessRuleName: string + ) { + return this.pathTemplates.externalAccessRulePathTemplate.match( + externalAccessRuleName + ).external_access_rule; + } /** - * Return a fully-qualified cluster resource name string. + * Return a fully-qualified externalAddress resource name string. * * @param {string} project * @param {string} location * @param {string} private_cloud - * @param {string} cluster + * @param {string} external_address * @returns {string} Resource name string. */ - clusterPath( + externalAddressPath( project: string, location: string, privateCloud: string, - cluster: string + externalAddress: string ) { - return this.pathTemplates.clusterPathTemplate.render({ + return this.pathTemplates.externalAddressPathTemplate.render({ project: project, location: location, private_cloud: privateCloud, - cluster: cluster, + external_address: externalAddress, }); } /** - * Parse the project from Cluster resource. + * Parse the project from ExternalAddress resource. * - * @param {string} clusterName - * A fully-qualified path representing Cluster resource. + * @param {string} externalAddressName + * A fully-qualified path representing ExternalAddress resource. * @returns {string} A string representing the project. */ - matchProjectFromClusterName(clusterName: string) { - return this.pathTemplates.clusterPathTemplate.match(clusterName).project; + matchProjectFromExternalAddressName(externalAddressName: string) { + return this.pathTemplates.externalAddressPathTemplate.match( + externalAddressName + ).project; } /** - * Parse the location from Cluster resource. + * Parse the location from ExternalAddress resource. * - * @param {string} clusterName - * A fully-qualified path representing Cluster resource. + * @param {string} externalAddressName + * A fully-qualified path representing ExternalAddress resource. * @returns {string} A string representing the location. */ - matchLocationFromClusterName(clusterName: string) { - return this.pathTemplates.clusterPathTemplate.match(clusterName).location; + matchLocationFromExternalAddressName(externalAddressName: string) { + return this.pathTemplates.externalAddressPathTemplate.match( + externalAddressName + ).location; } /** - * Parse the private_cloud from Cluster resource. + * Parse the private_cloud from ExternalAddress resource. * - * @param {string} clusterName - * A fully-qualified path representing Cluster resource. + * @param {string} externalAddressName + * A fully-qualified path representing ExternalAddress resource. * @returns {string} A string representing the private_cloud. */ - matchPrivateCloudFromClusterName(clusterName: string) { - return this.pathTemplates.clusterPathTemplate.match(clusterName) - .private_cloud; + matchPrivateCloudFromExternalAddressName(externalAddressName: string) { + return this.pathTemplates.externalAddressPathTemplate.match( + externalAddressName + ).private_cloud; } /** - * Parse the cluster from Cluster resource. + * Parse the external_address from ExternalAddress resource. * - * @param {string} clusterName - * A fully-qualified path representing Cluster resource. - * @returns {string} A string representing the cluster. + * @param {string} externalAddressName + * A fully-qualified path representing ExternalAddress resource. + * @returns {string} A string representing the external_address. */ - matchClusterFromClusterName(clusterName: string) { - return this.pathTemplates.clusterPathTemplate.match(clusterName).cluster; + matchExternalAddressFromExternalAddressName(externalAddressName: string) { + return this.pathTemplates.externalAddressPathTemplate.match( + externalAddressName + ).external_address; } /** @@ -8084,6 +14871,219 @@ export class VmwareEngineClient { return this.pathTemplates.locationPathTemplate.match(locationName).location; } + /** + * Return a fully-qualified loggingServer resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} private_cloud + * @param {string} logging_server + * @returns {string} Resource name string. + */ + loggingServerPath( + project: string, + location: string, + privateCloud: string, + loggingServer: string + ) { + return this.pathTemplates.loggingServerPathTemplate.render({ + project: project, + location: location, + private_cloud: privateCloud, + logging_server: loggingServer, + }); + } + + /** + * Parse the project from LoggingServer resource. + * + * @param {string} loggingServerName + * A fully-qualified path representing LoggingServer resource. + * @returns {string} A string representing the project. + */ + matchProjectFromLoggingServerName(loggingServerName: string) { + return this.pathTemplates.loggingServerPathTemplate.match(loggingServerName) + .project; + } + + /** + * Parse the location from LoggingServer resource. + * + * @param {string} loggingServerName + * A fully-qualified path representing LoggingServer resource. + * @returns {string} A string representing the location. + */ + matchLocationFromLoggingServerName(loggingServerName: string) { + return this.pathTemplates.loggingServerPathTemplate.match(loggingServerName) + .location; + } + + /** + * Parse the private_cloud from LoggingServer resource. + * + * @param {string} loggingServerName + * A fully-qualified path representing LoggingServer resource. + * @returns {string} A string representing the private_cloud. + */ + matchPrivateCloudFromLoggingServerName(loggingServerName: string) { + return this.pathTemplates.loggingServerPathTemplate.match(loggingServerName) + .private_cloud; + } + + /** + * Parse the logging_server from LoggingServer resource. + * + * @param {string} loggingServerName + * A fully-qualified path representing LoggingServer resource. + * @returns {string} A string representing the logging_server. + */ + matchLoggingServerFromLoggingServerName(loggingServerName: string) { + return this.pathTemplates.loggingServerPathTemplate.match(loggingServerName) + .logging_server; + } + + /** + * Return a fully-qualified managementDnsZoneBinding resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} private_cloud + * @param {string} management_dns_zone_binding + * @returns {string} Resource name string. + */ + managementDnsZoneBindingPath( + project: string, + location: string, + privateCloud: string, + managementDnsZoneBinding: string + ) { + return this.pathTemplates.managementDnsZoneBindingPathTemplate.render({ + project: project, + location: location, + private_cloud: privateCloud, + management_dns_zone_binding: managementDnsZoneBinding, + }); + } + + /** + * Parse the project from ManagementDnsZoneBinding resource. + * + * @param {string} managementDnsZoneBindingName + * A fully-qualified path representing ManagementDnsZoneBinding resource. + * @returns {string} A string representing the project. + */ + matchProjectFromManagementDnsZoneBindingName( + managementDnsZoneBindingName: string + ) { + return this.pathTemplates.managementDnsZoneBindingPathTemplate.match( + managementDnsZoneBindingName + ).project; + } + + /** + * Parse the location from ManagementDnsZoneBinding resource. + * + * @param {string} managementDnsZoneBindingName + * A fully-qualified path representing ManagementDnsZoneBinding resource. + * @returns {string} A string representing the location. + */ + matchLocationFromManagementDnsZoneBindingName( + managementDnsZoneBindingName: string + ) { + return this.pathTemplates.managementDnsZoneBindingPathTemplate.match( + managementDnsZoneBindingName + ).location; + } + + /** + * Parse the private_cloud from ManagementDnsZoneBinding resource. + * + * @param {string} managementDnsZoneBindingName + * A fully-qualified path representing ManagementDnsZoneBinding resource. + * @returns {string} A string representing the private_cloud. + */ + matchPrivateCloudFromManagementDnsZoneBindingName( + managementDnsZoneBindingName: string + ) { + return this.pathTemplates.managementDnsZoneBindingPathTemplate.match( + managementDnsZoneBindingName + ).private_cloud; + } + + /** + * Parse the management_dns_zone_binding from ManagementDnsZoneBinding resource. + * + * @param {string} managementDnsZoneBindingName + * A fully-qualified path representing ManagementDnsZoneBinding resource. + * @returns {string} A string representing the management_dns_zone_binding. + */ + matchManagementDnsZoneBindingFromManagementDnsZoneBindingName( + managementDnsZoneBindingName: string + ) { + return this.pathTemplates.managementDnsZoneBindingPathTemplate.match( + managementDnsZoneBindingName + ).management_dns_zone_binding; + } + + /** + * Return a fully-qualified networkPeering resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} network_peering + * @returns {string} Resource name string. + */ + networkPeeringPath( + project: string, + location: string, + networkPeering: string + ) { + return this.pathTemplates.networkPeeringPathTemplate.render({ + project: project, + location: location, + network_peering: networkPeering, + }); + } + + /** + * Parse the project from NetworkPeering resource. + * + * @param {string} networkPeeringName + * A fully-qualified path representing NetworkPeering resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNetworkPeeringName(networkPeeringName: string) { + return this.pathTemplates.networkPeeringPathTemplate.match( + networkPeeringName + ).project; + } + + /** + * Parse the location from NetworkPeering resource. + * + * @param {string} networkPeeringName + * A fully-qualified path representing NetworkPeering resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNetworkPeeringName(networkPeeringName: string) { + return this.pathTemplates.networkPeeringPathTemplate.match( + networkPeeringName + ).location; + } + + /** + * Parse the network_peering from NetworkPeering resource. + * + * @param {string} networkPeeringName + * A fully-qualified path representing NetworkPeering resource. + * @returns {string} A string representing the network_peering. + */ + matchNetworkPeeringFromNetworkPeeringName(networkPeeringName: string) { + return this.pathTemplates.networkPeeringPathTemplate.match( + networkPeeringName + ).network_peering; + } + /** * Return a fully-qualified networkPolicy resource name string. * @@ -8136,6 +15136,87 @@ export class VmwareEngineClient { .network_policy; } + /** + * Return a fully-qualified node resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} private_cloud + * @param {string} cluster + * @param {string} node + * @returns {string} Resource name string. + */ + nodePath( + project: string, + location: string, + privateCloud: string, + cluster: string, + node: string + ) { + return this.pathTemplates.nodePathTemplate.render({ + project: project, + location: location, + private_cloud: privateCloud, + cluster: cluster, + node: node, + }); + } + + /** + * Parse the project from Node resource. + * + * @param {string} nodeName + * A fully-qualified path representing Node resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNodeName(nodeName: string) { + return this.pathTemplates.nodePathTemplate.match(nodeName).project; + } + + /** + * Parse the location from Node resource. + * + * @param {string} nodeName + * A fully-qualified path representing Node resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNodeName(nodeName: string) { + return this.pathTemplates.nodePathTemplate.match(nodeName).location; + } + + /** + * Parse the private_cloud from Node resource. + * + * @param {string} nodeName + * A fully-qualified path representing Node resource. + * @returns {string} A string representing the private_cloud. + */ + matchPrivateCloudFromNodeName(nodeName: string) { + return this.pathTemplates.nodePathTemplate.match(nodeName).private_cloud; + } + + /** + * Parse the cluster from Node resource. + * + * @param {string} nodeName + * A fully-qualified path representing Node resource. + * @returns {string} A string representing the cluster. + */ + matchClusterFromNodeName(nodeName: string) { + return this.pathTemplates.nodePathTemplate.match(nodeName).cluster; + } + + /** + * Parse the node from Node resource. + * + * @param {string} nodeName + * A fully-qualified path representing Node resource. + * @returns {string} A string representing the node. + */ + matchNodeFromNodeName(nodeName: string) { + return this.pathTemplates.nodePathTemplate.match(nodeName).node; + } + /** * Return a fully-qualified nodeType resource name string. * diff --git a/packages/google-cloud-vmwareengine/src/v1/vmware_engine_client_config.json b/packages/google-cloud-vmwareengine/src/v1/vmware_engine_client_config.json index 6dbb458e7b2..be36beeb45d 100644 --- a/packages/google-cloud-vmwareengine/src/v1/vmware_engine_client_config.json +++ b/packages/google-cloud-vmwareengine/src/v1/vmware_engine_client_config.json @@ -87,6 +87,46 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListNodes": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "GetNode": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "ListExternalAddresses": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "FetchNetworkPolicyExternalAddresses": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetExternalAddress": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "CreateExternalAddress": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateExternalAddress": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteExternalAddress": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ListSubnets": { "timeout_millis": 120000, "retry_codes_name": "unavailable", @@ -102,6 +142,56 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListExternalAccessRules": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "GetExternalAccessRule": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "CreateExternalAccessRule": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateExternalAccessRule": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteExternalAccessRule": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListLoggingServers": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "GetLoggingServer": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "CreateLoggingServer": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateLoggingServer": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteLoggingServer": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ListNodeTypes": { "timeout_millis": 120000, "retry_codes_name": "unavailable", @@ -132,6 +222,46 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetDnsForwarding": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "UpdateDnsForwarding": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNetworkPeering": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "ListNetworkPeerings": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "CreateNetworkPeering": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteNetworkPeering": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateNetworkPeering": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListPeeringRoutes": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, "CreateHcxActivationKey": { "timeout_millis": 120000, "retry_codes_name": "non_idempotent", @@ -172,6 +302,36 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListManagementDnsZoneBindings": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "GetManagementDnsZoneBinding": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "CreateManagementDnsZoneBinding": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateManagementDnsZoneBinding": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteManagementDnsZoneBinding": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "RepairManagementDnsZoneBinding": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateVmwareEngineNetwork": { "timeout_millis": 120000, "retry_codes_name": "non_idempotent", @@ -226,6 +386,21 @@ "timeout_millis": 120000, "retry_codes_name": "unavailable", "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "GrantDnsBindPermission": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetDnsBindPermission": { + "timeout_millis": 120000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "RevokeDnsBindPermission": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-vmwareengine/system-test/fixtures/sample/src/index.js b/packages/google-cloud-vmwareengine/system-test/fixtures/sample/src/index.js index 7b31e29bcab..dbc8b93f2e6 100644 --- a/packages/google-cloud-vmwareengine/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-vmwareengine/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-vmwareengine/system-test/fixtures/sample/src/index.ts index ef6613306b6..8533c2739e6 100644 --- a/packages/google-cloud-vmwareengine/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-vmwareengine/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/system-test/install.ts b/packages/google-cloud-vmwareengine/system-test/install.ts index f61fe236476..83b83f332c3 100644 --- a/packages/google-cloud-vmwareengine/system-test/install.ts +++ b/packages/google-cloud-vmwareengine/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-vmwareengine/test/gapic_vmware_engine_v1.ts b/packages/google-cloud-vmwareengine/test/gapic_vmware_engine_v1.ts index 9367cc9204e..e3677ea03b6 100644 --- a/packages/google-cloud-vmwareengine/test/gapic_vmware_engine_v1.ts +++ b/packages/google-cloud-vmwareengine/test/gapic_vmware_engine_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -523,64 +523,64 @@ describe('v1.VmwareEngineClient', () => { }); }); - describe('getSubnet', () => { - it('invokes getSubnet without error', async () => { + describe('getNode', () => { + it('invokes getNode without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetSubnetRequest() + new protos.google.cloud.vmwareengine.v1.GetNodeRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetSubnetRequest', + '.google.cloud.vmwareengine.v1.GetNodeRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Subnet() + new protos.google.cloud.vmwareengine.v1.Node() ); - client.innerApiCalls.getSubnet = stubSimpleCall(expectedResponse); - const [response] = await client.getSubnet(request); + client.innerApiCalls.getNode = stubSimpleCall(expectedResponse); + const [response] = await client.getNode(request); assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.getSubnet as SinonStub - ).getCall(0).args[0]; + const actualRequest = (client.innerApiCalls.getNode as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getSubnet as SinonStub + client.innerApiCalls.getNode as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getSubnet without error using callback', async () => { + it('invokes getNode without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetSubnetRequest() + new protos.google.cloud.vmwareengine.v1.GetNodeRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetSubnetRequest', + '.google.cloud.vmwareengine.v1.GetNodeRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Subnet() + new protos.google.cloud.vmwareengine.v1.Node() ); - client.innerApiCalls.getSubnet = + client.innerApiCalls.getNode = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getSubnet( + client.getNode( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.ISubnet | null + result?: protos.google.cloud.vmwareengine.v1.INode | null ) => { if (err) { reject(err); @@ -592,122 +592,123 @@ describe('v1.VmwareEngineClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.getSubnet as SinonStub - ).getCall(0).args[0]; + const actualRequest = (client.innerApiCalls.getNode as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getSubnet as SinonStub + client.innerApiCalls.getNode as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getSubnet with error', async () => { + it('invokes getNode with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetSubnetRequest() + new protos.google.cloud.vmwareengine.v1.GetNodeRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetSubnetRequest', + '.google.cloud.vmwareengine.v1.GetNodeRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getSubnet = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.getSubnet(request), expectedError); - const actualRequest = ( - client.innerApiCalls.getSubnet as SinonStub - ).getCall(0).args[0]; + client.innerApiCalls.getNode = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getNode(request), expectedError); + const actualRequest = (client.innerApiCalls.getNode as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getSubnet as SinonStub + client.innerApiCalls.getNode as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getSubnet with closed client', async () => { + it('invokes getNode with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetSubnetRequest() + new protos.google.cloud.vmwareengine.v1.GetNodeRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetSubnetRequest', + '.google.cloud.vmwareengine.v1.GetNodeRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getSubnet(request), expectedError); + await assert.rejects(client.getNode(request), expectedError); }); }); - describe('getNodeType', () => { - it('invokes getNodeType without error', async () => { + describe('getExternalAddress', () => { + it('invokes getExternalAddress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetNodeTypeRequest() + new protos.google.cloud.vmwareengine.v1.GetExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetNodeTypeRequest', + '.google.cloud.vmwareengine.v1.GetExternalAddressRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.ExternalAddress() ); - client.innerApiCalls.getNodeType = stubSimpleCall(expectedResponse); - const [response] = await client.getNodeType(request); + client.innerApiCalls.getExternalAddress = + stubSimpleCall(expectedResponse); + const [response] = await client.getExternalAddress(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getNodeType as SinonStub + client.innerApiCalls.getExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getNodeType as SinonStub + client.innerApiCalls.getExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getNodeType without error using callback', async () => { + it('invokes getExternalAddress without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetNodeTypeRequest() + new protos.google.cloud.vmwareengine.v1.GetExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetNodeTypeRequest', + '.google.cloud.vmwareengine.v1.GetExternalAddressRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.ExternalAddress() ); - client.innerApiCalls.getNodeType = + client.innerApiCalls.getExternalAddress = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getNodeType( + client.getExternalAddress( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.INodeType | null + result?: protos.google.cloud.vmwareengine.v1.IExternalAddress | null ) => { if (err) { reject(err); @@ -720,125 +721,124 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getNodeType as SinonStub + client.innerApiCalls.getExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getNodeType as SinonStub + client.innerApiCalls.getExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getNodeType with error', async () => { + it('invokes getExternalAddress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetNodeTypeRequest() + new protos.google.cloud.vmwareengine.v1.GetExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetNodeTypeRequest', + '.google.cloud.vmwareengine.v1.GetExternalAddressRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getNodeType = stubSimpleCall( + client.innerApiCalls.getExternalAddress = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getNodeType(request), expectedError); + await assert.rejects(client.getExternalAddress(request), expectedError); const actualRequest = ( - client.innerApiCalls.getNodeType as SinonStub + client.innerApiCalls.getExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getNodeType as SinonStub + client.innerApiCalls.getExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getNodeType with closed client', async () => { + it('invokes getExternalAddress with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetNodeTypeRequest() + new protos.google.cloud.vmwareengine.v1.GetExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetNodeTypeRequest', + '.google.cloud.vmwareengine.v1.GetExternalAddressRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getNodeType(request), expectedError); + await assert.rejects(client.getExternalAddress(request), expectedError); }); }); - describe('showNsxCredentials', () => { - it('invokes showNsxCredentials without error', async () => { + describe('getSubnet', () => { + it('invokes getSubnet without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.GetSubnetRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.GetSubnetRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Credentials() + new protos.google.cloud.vmwareengine.v1.Subnet() ); - client.innerApiCalls.showNsxCredentials = - stubSimpleCall(expectedResponse); - const [response] = await client.showNsxCredentials(request); + client.innerApiCalls.getSubnet = stubSimpleCall(expectedResponse); + const [response] = await client.getSubnet(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.showNsxCredentials as SinonStub + client.innerApiCalls.getSubnet as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.showNsxCredentials as SinonStub + client.innerApiCalls.getSubnet as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes showNsxCredentials without error using callback', async () => { + it('invokes getSubnet without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.GetSubnetRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.GetSubnetRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Credentials() + new protos.google.cloud.vmwareengine.v1.Subnet() ); - client.innerApiCalls.showNsxCredentials = + client.innerApiCalls.getSubnet = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.showNsxCredentials( + client.getSubnet( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.ICredentials | null + result?: protos.google.cloud.vmwareengine.v1.ISubnet | null ) => { if (err) { reject(err); @@ -851,125 +851,122 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.showNsxCredentials as SinonStub + client.innerApiCalls.getSubnet as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.showNsxCredentials as SinonStub + client.innerApiCalls.getSubnet as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes showNsxCredentials with error', async () => { + it('invokes getSubnet with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.GetSubnetRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.GetSubnetRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.showNsxCredentials = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.showNsxCredentials(request), expectedError); + client.innerApiCalls.getSubnet = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getSubnet(request), expectedError); const actualRequest = ( - client.innerApiCalls.showNsxCredentials as SinonStub + client.innerApiCalls.getSubnet as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.showNsxCredentials as SinonStub + client.innerApiCalls.getSubnet as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes showNsxCredentials with closed client', async () => { + it('invokes getSubnet with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.GetSubnetRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.GetSubnetRequest', + ['name'] ); - request.privateCloud = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.showNsxCredentials(request), expectedError); + await assert.rejects(client.getSubnet(request), expectedError); }); }); - describe('showVcenterCredentials', () => { - it('invokes showVcenterCredentials without error', async () => { + describe('getExternalAccessRule', () => { + it('invokes getExternalAccessRule without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Credentials() + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() ); - client.innerApiCalls.showVcenterCredentials = + client.innerApiCalls.getExternalAccessRule = stubSimpleCall(expectedResponse); - const [response] = await client.showVcenterCredentials(request); + const [response] = await client.getExternalAccessRule(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.showVcenterCredentials as SinonStub + client.innerApiCalls.getExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.showVcenterCredentials as SinonStub + client.innerApiCalls.getExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes showVcenterCredentials without error using callback', async () => { + it('invokes getExternalAccessRule without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Credentials() + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() ); - client.innerApiCalls.showVcenterCredentials = + client.innerApiCalls.getExternalAccessRule = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.showVcenterCredentials( + client.getExternalAccessRule( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.ICredentials | null + result?: protos.google.cloud.vmwareengine.v1.IExternalAccessRule | null ) => { if (err) { reject(err); @@ -982,131 +979,130 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.showVcenterCredentials as SinonStub + client.innerApiCalls.getExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.showVcenterCredentials as SinonStub + client.innerApiCalls.getExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes showVcenterCredentials with error', async () => { + it('invokes getExternalAccessRule with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.showVcenterCredentials = stubSimpleCall( + client.innerApiCalls.getExternalAccessRule = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.showVcenterCredentials(request), + client.getExternalAccessRule(request), expectedError ); const actualRequest = ( - client.innerApiCalls.showVcenterCredentials as SinonStub + client.innerApiCalls.getExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.showVcenterCredentials as SinonStub + client.innerApiCalls.getExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes showVcenterCredentials with closed client', async () => { + it('invokes getExternalAccessRule with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest', + ['name'] ); - request.privateCloud = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.showVcenterCredentials(request), + client.getExternalAccessRule(request), expectedError ); }); }); - describe('getHcxActivationKey', () => { - it('invokes getHcxActivationKey without error', async () => { + describe('getLoggingServer', () => { + it('invokes getLoggingServer without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest() + new protos.google.cloud.vmwareengine.v1.GetLoggingServerRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest', + '.google.cloud.vmwareengine.v1.GetLoggingServerRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.LoggingServer() ); - client.innerApiCalls.getHcxActivationKey = - stubSimpleCall(expectedResponse); - const [response] = await client.getHcxActivationKey(request); + client.innerApiCalls.getLoggingServer = stubSimpleCall(expectedResponse); + const [response] = await client.getLoggingServer(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getHcxActivationKey as SinonStub + client.innerApiCalls.getLoggingServer as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getHcxActivationKey as SinonStub + client.innerApiCalls.getLoggingServer as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getHcxActivationKey without error using callback', async () => { + it('invokes getLoggingServer without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest() + new protos.google.cloud.vmwareengine.v1.GetLoggingServerRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest', + '.google.cloud.vmwareengine.v1.GetLoggingServerRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.LoggingServer() ); - client.innerApiCalls.getHcxActivationKey = + client.innerApiCalls.getLoggingServer = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getHcxActivationKey( + client.getLoggingServer( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.IHcxActivationKey | null + result?: protos.google.cloud.vmwareengine.v1.ILoggingServer | null ) => { if (err) { reject(err); @@ -1119,124 +1115,124 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getHcxActivationKey as SinonStub + client.innerApiCalls.getLoggingServer as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getHcxActivationKey as SinonStub + client.innerApiCalls.getLoggingServer as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getHcxActivationKey with error', async () => { + it('invokes getLoggingServer with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest() + new protos.google.cloud.vmwareengine.v1.GetLoggingServerRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest', + '.google.cloud.vmwareengine.v1.GetLoggingServerRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getHcxActivationKey = stubSimpleCall( + client.innerApiCalls.getLoggingServer = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getHcxActivationKey(request), expectedError); + await assert.rejects(client.getLoggingServer(request), expectedError); const actualRequest = ( - client.innerApiCalls.getHcxActivationKey as SinonStub + client.innerApiCalls.getLoggingServer as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getHcxActivationKey as SinonStub + client.innerApiCalls.getLoggingServer as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getHcxActivationKey with closed client', async () => { + it('invokes getLoggingServer with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest() + new protos.google.cloud.vmwareengine.v1.GetLoggingServerRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest', + '.google.cloud.vmwareengine.v1.GetLoggingServerRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getHcxActivationKey(request), expectedError); + await assert.rejects(client.getLoggingServer(request), expectedError); }); }); - describe('getNetworkPolicy', () => { - it('invokes getNetworkPolicy without error', async () => { + describe('getNodeType', () => { + it('invokes getNodeType without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.GetNodeTypeRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.GetNodeTypeRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.NodeType() ); - client.innerApiCalls.getNetworkPolicy = stubSimpleCall(expectedResponse); - const [response] = await client.getNetworkPolicy(request); + client.innerApiCalls.getNodeType = stubSimpleCall(expectedResponse); + const [response] = await client.getNodeType(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getNetworkPolicy as SinonStub + client.innerApiCalls.getNodeType as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getNetworkPolicy as SinonStub + client.innerApiCalls.getNodeType as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getNetworkPolicy without error using callback', async () => { + it('invokes getNodeType without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.GetNodeTypeRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.GetNodeTypeRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.NodeType() ); - client.innerApiCalls.getNetworkPolicy = + client.innerApiCalls.getNodeType = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getNetworkPolicy( + client.getNodeType( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.INetworkPolicy | null + result?: protos.google.cloud.vmwareengine.v1.INodeType | null ) => { if (err) { reject(err); @@ -1249,125 +1245,125 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getNetworkPolicy as SinonStub + client.innerApiCalls.getNodeType as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getNetworkPolicy as SinonStub + client.innerApiCalls.getNodeType as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getNetworkPolicy with error', async () => { + it('invokes getNodeType with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.GetNodeTypeRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.GetNodeTypeRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getNetworkPolicy = stubSimpleCall( + client.innerApiCalls.getNodeType = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getNetworkPolicy(request), expectedError); + await assert.rejects(client.getNodeType(request), expectedError); const actualRequest = ( - client.innerApiCalls.getNetworkPolicy as SinonStub + client.innerApiCalls.getNodeType as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getNetworkPolicy as SinonStub + client.innerApiCalls.getNodeType as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getNetworkPolicy with closed client', async () => { + it('invokes getNodeType with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.GetNodeTypeRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.GetNodeTypeRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getNetworkPolicy(request), expectedError); + await assert.rejects(client.getNodeType(request), expectedError); }); }); - describe('getVmwareEngineNetwork', () => { - it('invokes getVmwareEngineNetwork without error', async () => { + describe('showNsxCredentials', () => { + it('invokes showNsxCredentials without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest', - ['name'] + '.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest', + ['privateCloud'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork() + new protos.google.cloud.vmwareengine.v1.Credentials() ); - client.innerApiCalls.getVmwareEngineNetwork = + client.innerApiCalls.showNsxCredentials = stubSimpleCall(expectedResponse); - const [response] = await client.getVmwareEngineNetwork(request); + const [response] = await client.showNsxCredentials(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getVmwareEngineNetwork as SinonStub + client.innerApiCalls.showNsxCredentials as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getVmwareEngineNetwork as SinonStub + client.innerApiCalls.showNsxCredentials as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getVmwareEngineNetwork without error using callback', async () => { + it('invokes showNsxCredentials without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest', - ['name'] + '.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest', + ['privateCloud'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork() + new protos.google.cloud.vmwareengine.v1.Credentials() ); - client.innerApiCalls.getVmwareEngineNetwork = + client.innerApiCalls.showNsxCredentials = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getVmwareEngineNetwork( + client.showNsxCredentials( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork | null + result?: protos.google.cloud.vmwareengine.v1.ICredentials | null ) => { if (err) { reject(err); @@ -1380,131 +1376,125 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getVmwareEngineNetwork as SinonStub + client.innerApiCalls.showNsxCredentials as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getVmwareEngineNetwork as SinonStub + client.innerApiCalls.showNsxCredentials as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getVmwareEngineNetwork with error', async () => { + it('invokes showNsxCredentials with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest', - ['name'] + '.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest', + ['privateCloud'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getVmwareEngineNetwork = stubSimpleCall( + client.innerApiCalls.showNsxCredentials = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.getVmwareEngineNetwork(request), - expectedError - ); + await assert.rejects(client.showNsxCredentials(request), expectedError); const actualRequest = ( - client.innerApiCalls.getVmwareEngineNetwork as SinonStub + client.innerApiCalls.showNsxCredentials as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getVmwareEngineNetwork as SinonStub + client.innerApiCalls.showNsxCredentials as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getVmwareEngineNetwork with closed client', async () => { + it('invokes showNsxCredentials with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest', - ['name'] + '.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest', + ['privateCloud'] ); - request.name = defaultValue1; + request.privateCloud = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.getVmwareEngineNetwork(request), - expectedError - ); + await assert.rejects(client.showNsxCredentials(request), expectedError); }); }); - describe('getPrivateConnection', () => { - it('invokes getPrivateConnection without error', async () => { + describe('showVcenterCredentials', () => { + it('invokes showVcenterCredentials without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest', - ['name'] + '.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest', + ['privateCloud'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateConnection() + new protos.google.cloud.vmwareengine.v1.Credentials() ); - client.innerApiCalls.getPrivateConnection = + client.innerApiCalls.showVcenterCredentials = stubSimpleCall(expectedResponse); - const [response] = await client.getPrivateConnection(request); + const [response] = await client.showVcenterCredentials(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getPrivateConnection as SinonStub + client.innerApiCalls.showVcenterCredentials as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getPrivateConnection as SinonStub + client.innerApiCalls.showVcenterCredentials as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getPrivateConnection without error using callback', async () => { + it('invokes showVcenterCredentials without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest', - ['name'] + '.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest', + ['privateCloud'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateConnection() + new protos.google.cloud.vmwareengine.v1.Credentials() ); - client.innerApiCalls.getPrivateConnection = + client.innerApiCalls.showVcenterCredentials = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getPrivateConnection( + client.showVcenterCredentials( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.IPrivateConnection | null + result?: protos.google.cloud.vmwareengine.v1.ICredentials | null ) => { if (err) { reject(err); @@ -1517,129 +1507,130 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getPrivateConnection as SinonStub + client.innerApiCalls.showVcenterCredentials as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getPrivateConnection as SinonStub + client.innerApiCalls.showVcenterCredentials as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getPrivateConnection with error', async () => { + it('invokes showVcenterCredentials with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest', - ['name'] + '.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest', + ['privateCloud'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getPrivateConnection = stubSimpleCall( + client.innerApiCalls.showVcenterCredentials = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getPrivateConnection(request), expectedError); + await assert.rejects( + client.showVcenterCredentials(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.getPrivateConnection as SinonStub + client.innerApiCalls.showVcenterCredentials as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getPrivateConnection as SinonStub + client.innerApiCalls.showVcenterCredentials as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getPrivateConnection with closed client', async () => { + it('invokes showVcenterCredentials with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest', - ['name'] + '.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest', + ['privateCloud'] ); - request.name = defaultValue1; + request.privateCloud = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getPrivateConnection(request), expectedError); + await assert.rejects( + client.showVcenterCredentials(request), + expectedError + ); }); }); - describe('createPrivateCloud', () => { - it('invokes createPrivateCloud without error', async () => { + describe('getDnsForwarding', () => { + it('invokes getDnsForwarding without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetDnsForwardingRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.GetDnsForwardingRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.DnsForwarding() ); - client.innerApiCalls.createPrivateCloud = - stubLongRunningCall(expectedResponse); - const [operation] = await client.createPrivateCloud(request); - const [response] = await operation.promise(); + client.innerApiCalls.getDnsForwarding = stubSimpleCall(expectedResponse); + const [response] = await client.getDnsForwarding(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createPrivateCloud as SinonStub + client.innerApiCalls.getDnsForwarding as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createPrivateCloud as SinonStub + client.innerApiCalls.getDnsForwarding as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createPrivateCloud without error using callback', async () => { + it('invokes getDnsForwarding without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetDnsForwardingRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.GetDnsForwardingRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.DnsForwarding() ); - client.innerApiCalls.createPrivateCloud = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getDnsForwarding = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createPrivateCloud( + client.getDnsForwarding( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - > | null + result?: protos.google.cloud.vmwareengine.v1.IDnsForwarding | null ) => { if (err) { reject(err); @@ -1649,193 +1640,127 @@ describe('v1.VmwareEngineClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createPrivateCloud as SinonStub + client.innerApiCalls.getDnsForwarding as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createPrivateCloud as SinonStub + client.innerApiCalls.getDnsForwarding as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createPrivateCloud with call error', async () => { + it('invokes getDnsForwarding with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetDnsForwardingRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.GetDnsForwardingRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createPrivateCloud = stubLongRunningCall( + client.innerApiCalls.getDnsForwarding = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createPrivateCloud(request), expectedError); + await assert.rejects(client.getDnsForwarding(request), expectedError); const actualRequest = ( - client.innerApiCalls.createPrivateCloud as SinonStub + client.innerApiCalls.getDnsForwarding as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createPrivateCloud as SinonStub + client.innerApiCalls.getDnsForwarding as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createPrivateCloud with LRO error', async () => { + it('invokes getDnsForwarding with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetDnsForwardingRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.createPrivateCloud = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.createPrivateCloud(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.createPrivateCloud as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.createPrivateCloud as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkCreatePrivateCloudProgress without error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreatePrivateCloudProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkCreatePrivateCloudProgress with error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkCreatePrivateCloudProgress(''), - expectedError + '.google.cloud.vmwareengine.v1.GetDnsForwardingRequest', + ['name'] ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getDnsForwarding(request), expectedError); }); }); - describe('updatePrivateCloud', () => { - it('invokes updatePrivateCloud without error', async () => { + describe('getNetworkPeering', () => { + it('invokes getNetworkPeering without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest() ); - request.privateCloud ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest', - ['privateCloud', 'name'] + '.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest', + ['name'] ); - request.privateCloud.name = defaultValue1; - const expectedHeaderRequestParams = `private_cloud.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ); - client.innerApiCalls.updatePrivateCloud = - stubLongRunningCall(expectedResponse); - const [operation] = await client.updatePrivateCloud(request); - const [response] = await operation.promise(); + client.innerApiCalls.getNetworkPeering = stubSimpleCall(expectedResponse); + const [response] = await client.getNetworkPeering(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updatePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPeering as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updatePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPeering as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updatePrivateCloud without error using callback', async () => { + it('invokes getNetworkPeering without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest() ); - request.privateCloud ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest', - ['privateCloud', 'name'] + '.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest', + ['name'] ); - request.privateCloud.name = defaultValue1; - const expectedHeaderRequestParams = `private_cloud.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ); - client.innerApiCalls.updatePrivateCloud = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getNetworkPeering = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updatePrivateCloud( + client.getNetworkPeering( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - > | null + result?: protos.google.cloud.vmwareengine.v1.INetworkPeering | null ) => { if (err) { reject(err); @@ -1845,193 +1770,128 @@ describe('v1.VmwareEngineClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updatePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPeering as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updatePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPeering as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updatePrivateCloud with call error', async () => { + it('invokes getNetworkPeering with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest() ); - request.privateCloud ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest', - ['privateCloud', 'name'] + '.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest', + ['name'] ); - request.privateCloud.name = defaultValue1; - const expectedHeaderRequestParams = `private_cloud.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updatePrivateCloud = stubLongRunningCall( + client.innerApiCalls.getNetworkPeering = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.updatePrivateCloud(request), expectedError); + await assert.rejects(client.getNetworkPeering(request), expectedError); const actualRequest = ( - client.innerApiCalls.updatePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPeering as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updatePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPeering as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updatePrivateCloud with LRO error', async () => { + it('invokes getNetworkPeering with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest() ); - request.privateCloud ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest', - ['privateCloud', 'name'] - ); - request.privateCloud.name = defaultValue1; - const expectedHeaderRequestParams = `private_cloud.name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.updatePrivateCloud = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.updatePrivateCloud(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.updatePrivateCloud as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.updatePrivateCloud as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkUpdatePrivateCloudProgress without error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkUpdatePrivateCloudProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkUpdatePrivateCloudProgress with error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkUpdatePrivateCloudProgress(''), - expectedError + '.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest', + ['name'] ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getNetworkPeering(request), expectedError); }); }); - describe('deletePrivateCloud', () => { - it('invokes deletePrivateCloud without error', async () => { + describe('getHcxActivationKey', () => { + it('invokes getHcxActivationKey without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest', + '.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ); - client.innerApiCalls.deletePrivateCloud = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deletePrivateCloud(request); - const [response] = await operation.promise(); + client.innerApiCalls.getHcxActivationKey = + stubSimpleCall(expectedResponse); + const [response] = await client.getHcxActivationKey(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deletePrivateCloud as SinonStub + client.innerApiCalls.getHcxActivationKey as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePrivateCloud as SinonStub + client.innerApiCalls.getHcxActivationKey as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePrivateCloud without error using callback', async () => { + it('invokes getHcxActivationKey without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest', + '.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ); - client.innerApiCalls.deletePrivateCloud = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getHcxActivationKey = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deletePrivateCloud( + client.getHcxActivationKey( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - > | null + result?: protos.google.cloud.vmwareengine.v1.IHcxActivationKey | null ) => { if (err) { reject(err); @@ -2041,191 +1901,127 @@ describe('v1.VmwareEngineClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deletePrivateCloud as SinonStub + client.innerApiCalls.getHcxActivationKey as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePrivateCloud as SinonStub + client.innerApiCalls.getHcxActivationKey as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePrivateCloud with call error', async () => { + it('invokes getHcxActivationKey with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest', + '.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deletePrivateCloud = stubLongRunningCall( + client.innerApiCalls.getHcxActivationKey = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deletePrivateCloud(request), expectedError); + await assert.rejects(client.getHcxActivationKey(request), expectedError); const actualRequest = ( - client.innerApiCalls.deletePrivateCloud as SinonStub + client.innerApiCalls.getHcxActivationKey as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePrivateCloud as SinonStub + client.innerApiCalls.getHcxActivationKey as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePrivateCloud with LRO error', async () => { + it('invokes getHcxActivationKey with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest', + '.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deletePrivateCloud = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deletePrivateCloud(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deletePrivateCloud as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deletePrivateCloud as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeletePrivateCloudProgress without error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeletePrivateCloudProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeletePrivateCloudProgress with error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkDeletePrivateCloudProgress(''), - expectedError - ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getHcxActivationKey(request), expectedError); }); }); - describe('undeletePrivateCloud', () => { - it('invokes undeletePrivateCloud without error', async () => { + describe('getNetworkPolicy', () => { + it('invokes getNetworkPolicy without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest', + '.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ); - client.innerApiCalls.undeletePrivateCloud = - stubLongRunningCall(expectedResponse); - const [operation] = await client.undeletePrivateCloud(request); - const [response] = await operation.promise(); + client.innerApiCalls.getNetworkPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getNetworkPolicy(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.undeletePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.undeletePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes undeletePrivateCloud without error using callback', async () => { + it('invokes getNetworkPolicy without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest', + '.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ); - client.innerApiCalls.undeletePrivateCloud = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getNetworkPolicy = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.undeletePrivateCloud( + client.getNetworkPolicy( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - > | null + result?: protos.google.cloud.vmwareengine.v1.INetworkPolicy | null ) => { if (err) { reject(err); @@ -2235,191 +2031,128 @@ describe('v1.VmwareEngineClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateCloud, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.undeletePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.undeletePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes undeletePrivateCloud with call error', async () => { + it('invokes getNetworkPolicy with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest', + '.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.undeletePrivateCloud = stubLongRunningCall( + client.innerApiCalls.getNetworkPolicy = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.undeletePrivateCloud(request), expectedError); + await assert.rejects(client.getNetworkPolicy(request), expectedError); const actualRequest = ( - client.innerApiCalls.undeletePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.undeletePrivateCloud as SinonStub + client.innerApiCalls.getNetworkPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes undeletePrivateCloud with LRO error', async () => { + it('invokes getNetworkPolicy with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest() + new protos.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest', + '.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.undeletePrivateCloud = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.undeletePrivateCloud(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.undeletePrivateCloud as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.undeletePrivateCloud as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkUndeletePrivateCloudProgress without error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkUndeletePrivateCloudProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkUndeletePrivateCloudProgress with error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkUndeletePrivateCloudProgress(''), - expectedError - ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getNetworkPolicy(request), expectedError); }); }); - describe('createCluster', () => { - it('invokes createCluster without error', async () => { + describe('getManagementDnsZoneBinding', () => { + it('invokes getManagementDnsZoneBinding without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateClusterRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ); - client.innerApiCalls.createCluster = - stubLongRunningCall(expectedResponse); - const [operation] = await client.createCluster(request); - const [response] = await operation.promise(); + client.innerApiCalls.getManagementDnsZoneBinding = + stubSimpleCall(expectedResponse); + const [response] = await client.getManagementDnsZoneBinding(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createCluster as SinonStub + client.innerApiCalls.getManagementDnsZoneBinding as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createCluster as SinonStub + client.innerApiCalls.getManagementDnsZoneBinding as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createCluster without error using callback', async () => { + it('invokes getManagementDnsZoneBinding without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateClusterRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ); - client.innerApiCalls.createCluster = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getManagementDnsZoneBinding = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createCluster( + client.getManagementDnsZoneBinding( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - > | null + result?: protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding | null ) => { if (err) { reject(err); @@ -2429,193 +2162,134 @@ describe('v1.VmwareEngineClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createCluster as SinonStub + client.innerApiCalls.getManagementDnsZoneBinding as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createCluster as SinonStub + client.innerApiCalls.getManagementDnsZoneBinding as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createCluster with call error', async () => { + it('invokes getManagementDnsZoneBinding with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateClusterRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createCluster = stubLongRunningCall( + client.innerApiCalls.getManagementDnsZoneBinding = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createCluster(request), expectedError); - const actualRequest = ( - client.innerApiCalls.createCluster as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.createCluster as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes createCluster with LRO error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateClusterRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateClusterRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.createCluster = stubLongRunningCall( - undefined, - undefined, + await assert.rejects( + client.getManagementDnsZoneBinding(request), expectedError ); - const [operation] = await client.createCluster(request); - await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.createCluster as SinonStub + client.innerApiCalls.getManagementDnsZoneBinding as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createCluster as SinonStub + client.innerApiCalls.getManagementDnsZoneBinding as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateClusterProgress without error', async () => { + it('invokes getManagementDnsZoneBinding with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreateClusterProgress( - expectedResponse.name + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest() ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkCreateClusterProgress with error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest', + ['name'] ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkCreateClusterProgress(''), + client.getManagementDnsZoneBinding(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateCluster', () => { - it('invokes updateCluster without error', async () => { + describe('getVmwareEngineNetwork', () => { + it('invokes getVmwareEngineNetwork without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest() ); - request.cluster ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateClusterRequest', - ['cluster', 'name'] + '.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest', + ['name'] ); - request.cluster.name = defaultValue1; - const expectedHeaderRequestParams = `cluster.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork() ); - client.innerApiCalls.updateCluster = - stubLongRunningCall(expectedResponse); - const [operation] = await client.updateCluster(request); - const [response] = await operation.promise(); + client.innerApiCalls.getVmwareEngineNetwork = + stubSimpleCall(expectedResponse); + const [response] = await client.getVmwareEngineNetwork(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateCluster as SinonStub + client.innerApiCalls.getVmwareEngineNetwork as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateCluster as SinonStub + client.innerApiCalls.getVmwareEngineNetwork as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateCluster without error using callback', async () => { + it('invokes getVmwareEngineNetwork without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest() ); - request.cluster ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateClusterRequest', - ['cluster', 'name'] + '.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest', + ['name'] ); - request.cluster.name = defaultValue1; - const expectedHeaderRequestParams = `cluster.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.VmwareEngineNetwork() ); - client.innerApiCalls.updateCluster = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getVmwareEngineNetwork = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateCluster( + client.getVmwareEngineNetwork( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - > | null + result?: protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork | null ) => { if (err) { reject(err); @@ -2625,193 +2299,134 @@ describe('v1.VmwareEngineClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.ICluster, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateCluster as SinonStub + client.innerApiCalls.getVmwareEngineNetwork as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateCluster as SinonStub + client.innerApiCalls.getVmwareEngineNetwork as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateCluster with call error', async () => { + it('invokes getVmwareEngineNetwork with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest() ); - request.cluster ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateClusterRequest', - ['cluster', 'name'] + '.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest', + ['name'] ); - request.cluster.name = defaultValue1; - const expectedHeaderRequestParams = `cluster.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateCluster = stubLongRunningCall( + client.innerApiCalls.getVmwareEngineNetwork = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.updateCluster(request), expectedError); - const actualRequest = ( - client.innerApiCalls.updateCluster as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.updateCluster as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes updateCluster with LRO error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateClusterRequest() - ); - request.cluster ??= {}; - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateClusterRequest', - ['cluster', 'name'] - ); - request.cluster.name = defaultValue1; - const expectedHeaderRequestParams = `cluster.name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.updateCluster = stubLongRunningCall( - undefined, - undefined, + await assert.rejects( + client.getVmwareEngineNetwork(request), expectedError ); - const [operation] = await client.updateCluster(request); - await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateCluster as SinonStub + client.innerApiCalls.getVmwareEngineNetwork as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateCluster as SinonStub + client.innerApiCalls.getVmwareEngineNetwork as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateClusterProgress without error', async () => { + it('invokes getVmwareEngineNetwork with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkUpdateClusterProgress( - expectedResponse.name + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest() ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkUpdateClusterProgress with error', async () => { - const client = new vmwareengineModule.v1.VmwareEngineClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest', + ['name'] ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkUpdateClusterProgress(''), + client.getVmwareEngineNetwork(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteCluster', () => { - it('invokes deleteCluster without error', async () => { + describe('getPrivateConnection', () => { + it('invokes getPrivateConnection without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteClusterRequest', + '.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.PrivateConnection() ); - client.innerApiCalls.deleteCluster = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteCluster(request); - const [response] = await operation.promise(); + client.innerApiCalls.getPrivateConnection = + stubSimpleCall(expectedResponse); + const [response] = await client.getPrivateConnection(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCluster as SinonStub + client.innerApiCalls.getPrivateConnection as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCluster as SinonStub + client.innerApiCalls.getPrivateConnection as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCluster without error using callback', async () => { + it('invokes getPrivateConnection without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteClusterRequest', + '.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.vmwareengine.v1.PrivateConnection() ); - client.innerApiCalls.deleteCluster = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getPrivateConnection = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteCluster( + client.getPrivateConnection( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - > | null + result?: protos.google.cloud.vmwareengine.v1.IPrivateConnection | null ) => { if (err) { reject(err); @@ -2821,190 +2436,261 @@ describe('v1.VmwareEngineClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.vmwareengine.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCluster as SinonStub + client.innerApiCalls.getPrivateConnection as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCluster as SinonStub + client.innerApiCalls.getPrivateConnection as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCluster with call error', async () => { + it('invokes getPrivateConnection with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteClusterRequest', + '.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteCluster = stubLongRunningCall( + client.innerApiCalls.getPrivateConnection = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteCluster(request), expectedError); + await assert.rejects(client.getPrivateConnection(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteCluster as SinonStub + client.innerApiCalls.getPrivateConnection as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCluster as SinonStub + client.innerApiCalls.getPrivateConnection as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCluster with LRO error', async () => { + it('invokes getPrivateConnection with closed client', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteClusterRequest() + new protos.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteClusterRequest', + '.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getPrivateConnection(request), expectedError); + }); + }); + + describe('getDnsBindPermission', () => { + it('invokes getDnsBindPermission without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteCluster = stubLongRunningCall( - undefined, - undefined, - expectedError + const expectedResponse = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DnsBindPermission() ); - const [operation] = await client.deleteCluster(request); - await assert.rejects(operation.promise(), expectedError); + client.innerApiCalls.getDnsBindPermission = + stubSimpleCall(expectedResponse); + const [response] = await client.getDnsBindPermission(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCluster as SinonStub + client.innerApiCalls.getDnsBindPermission as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCluster as SinonStub + client.innerApiCalls.getDnsBindPermission as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteClusterProgress without error', async () => { + it('invokes getDnsBindPermission without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteClusterProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest', + ['name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DnsBindPermission() + ); + client.innerApiCalls.getDnsBindPermission = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getDnsBindPermission( + request, + ( + err?: Error | null, + result?: protos.google.cloud.vmwareengine.v1.IDnsBindPermission | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteClusterProgress with error', async () => { + it('invokes getDnsBindPermission with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.getDnsBindPermission = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.checkDeleteClusterProgress(''), - expectedError + await assert.rejects(client.getDnsBindPermission(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getDnsBindPermission with closed client', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest() ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getDnsBindPermission(request), expectedError); }); }); - describe('updateSubnet', () => { - it('invokes updateSubnet without error', async () => { + describe('createPrivateCloud', () => { + it('invokes createPrivateCloud without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateSubnetRequest() + new protos.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest() ); - request.subnet ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateSubnetRequest', - ['subnet', 'name'] + '.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest', + ['parent'] ); - request.subnet.name = defaultValue1; - const expectedHeaderRequestParams = `subnet.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateSubnet = stubLongRunningCall(expectedResponse); - const [operation] = await client.updateSubnet(request); + client.innerApiCalls.createPrivateCloud = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createPrivateCloud(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateSubnet as SinonStub + client.innerApiCalls.createPrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateSubnet as SinonStub + client.innerApiCalls.createPrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateSubnet without error using callback', async () => { + it('invokes createPrivateCloud without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateSubnetRequest() + new protos.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest() ); - request.subnet ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateSubnetRequest', - ['subnet', 'name'] + '.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest', + ['parent'] ); - request.subnet.name = defaultValue1; - const expectedHeaderRequestParams = `subnet.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateSubnet = + client.innerApiCalls.createPrivateCloud = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateSubnet( + client.createPrivateCloud( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.vmwareengine.v1.ISubnet, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -3017,88 +2703,86 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.ISubnet, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateSubnet as SinonStub + client.innerApiCalls.createPrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateSubnet as SinonStub + client.innerApiCalls.createPrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateSubnet with call error', async () => { + it('invokes createPrivateCloud with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateSubnetRequest() + new protos.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest() ); - request.subnet ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateSubnetRequest', - ['subnet', 'name'] + '.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest', + ['parent'] ); - request.subnet.name = defaultValue1; - const expectedHeaderRequestParams = `subnet.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateSubnet = stubLongRunningCall( + client.innerApiCalls.createPrivateCloud = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.updateSubnet(request), expectedError); + await assert.rejects(client.createPrivateCloud(request), expectedError); const actualRequest = ( - client.innerApiCalls.updateSubnet as SinonStub + client.innerApiCalls.createPrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateSubnet as SinonStub + client.innerApiCalls.createPrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateSubnet with LRO error', async () => { + it('invokes createPrivateCloud with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateSubnetRequest() + new protos.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest() ); - request.subnet ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateSubnetRequest', - ['subnet', 'name'] + '.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest', + ['parent'] ); - request.subnet.name = defaultValue1; - const expectedHeaderRequestParams = `subnet.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateSubnet = stubLongRunningCall( + client.innerApiCalls.createPrivateCloud = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.updateSubnet(request); + const [operation] = await client.createPrivateCloud(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateSubnet as SinonStub + client.innerApiCalls.createPrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateSubnet as SinonStub + client.innerApiCalls.createPrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateSubnetProgress without error', async () => { + it('invokes checkCreatePrivateCloudProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3112,7 +2796,7 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkUpdateSubnetProgress( + const decodedOperation = await client.checkCreatePrivateCloudProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3120,7 +2804,7 @@ describe('v1.VmwareEngineClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdateSubnetProgress with error', async () => { + it('invokes checkCreatePrivateCloudProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3132,67 +2816,72 @@ describe('v1.VmwareEngineClient', () => { undefined, expectedError ); - await assert.rejects(client.checkUpdateSubnetProgress(''), expectedError); + await assert.rejects( + client.checkCreatePrivateCloudProgress(''), + expectedError + ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('resetNsxCredentials', () => { - it('invokes resetNsxCredentials without error', async () => { + describe('updatePrivateCloud', () => { + it('invokes updatePrivateCloud without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest() ); + request.privateCloud ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest', + ['privateCloud', 'name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.privateCloud.name = defaultValue1; + const expectedHeaderRequestParams = `private_cloud.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.resetNsxCredentials = + client.innerApiCalls.updatePrivateCloud = stubLongRunningCall(expectedResponse); - const [operation] = await client.resetNsxCredentials(request); + const [operation] = await client.updatePrivateCloud(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resetNsxCredentials as SinonStub + client.innerApiCalls.updatePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetNsxCredentials as SinonStub + client.innerApiCalls.updatePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetNsxCredentials without error using callback', async () => { + it('invokes updatePrivateCloud without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest() ); + request.privateCloud ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest', + ['privateCloud', 'name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.privateCloud.name = defaultValue1; + const expectedHeaderRequestParams = `private_cloud.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.resetNsxCredentials = + client.innerApiCalls.updatePrivateCloud = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.resetNsxCredentials( + client.updatePrivateCloud( request, ( err?: Error | null, @@ -3216,80 +2905,82 @@ describe('v1.VmwareEngineClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resetNsxCredentials as SinonStub + client.innerApiCalls.updatePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetNsxCredentials as SinonStub + client.innerApiCalls.updatePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetNsxCredentials with call error', async () => { + it('invokes updatePrivateCloud with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest() ); + request.privateCloud ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest', + ['privateCloud', 'name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.privateCloud.name = defaultValue1; + const expectedHeaderRequestParams = `private_cloud.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resetNsxCredentials = stubLongRunningCall( + client.innerApiCalls.updatePrivateCloud = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.resetNsxCredentials(request), expectedError); + await assert.rejects(client.updatePrivateCloud(request), expectedError); const actualRequest = ( - client.innerApiCalls.resetNsxCredentials as SinonStub + client.innerApiCalls.updatePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetNsxCredentials as SinonStub + client.innerApiCalls.updatePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetNsxCredentials with LRO error', async () => { + it('invokes updatePrivateCloud with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest() ); + request.privateCloud ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest', + ['privateCloud', 'name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.privateCloud.name = defaultValue1; + const expectedHeaderRequestParams = `private_cloud.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resetNsxCredentials = stubLongRunningCall( + client.innerApiCalls.updatePrivateCloud = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.resetNsxCredentials(request); + const [operation] = await client.updatePrivateCloud(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.resetNsxCredentials as SinonStub + client.innerApiCalls.updatePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetNsxCredentials as SinonStub + client.innerApiCalls.updatePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkResetNsxCredentialsProgress without error', async () => { + it('invokes checkUpdatePrivateCloudProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3303,7 +2994,7 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkResetNsxCredentialsProgress( + const decodedOperation = await client.checkUpdatePrivateCloudProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3311,7 +3002,7 @@ describe('v1.VmwareEngineClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkResetNsxCredentialsProgress with error', async () => { + it('invokes checkUpdatePrivateCloudProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3324,69 +3015,69 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkResetNsxCredentialsProgress(''), + client.checkUpdatePrivateCloudProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('resetVcenterCredentials', () => { - it('invokes resetVcenterCredentials without error', async () => { + describe('deletePrivateCloud', () => { + it('invokes deletePrivateCloud without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.resetVcenterCredentials = + client.innerApiCalls.deletePrivateCloud = stubLongRunningCall(expectedResponse); - const [operation] = await client.resetVcenterCredentials(request); + const [operation] = await client.deletePrivateCloud(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resetVcenterCredentials as SinonStub + client.innerApiCalls.deletePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetVcenterCredentials as SinonStub + client.innerApiCalls.deletePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetVcenterCredentials without error using callback', async () => { + it('invokes deletePrivateCloud without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.resetVcenterCredentials = + client.innerApiCalls.deletePrivateCloud = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.resetVcenterCredentials( + client.deletePrivateCloud( request, ( err?: Error | null, @@ -3410,83 +3101,80 @@ describe('v1.VmwareEngineClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resetVcenterCredentials as SinonStub + client.innerApiCalls.deletePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetVcenterCredentials as SinonStub + client.innerApiCalls.deletePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetVcenterCredentials with call error', async () => { + it('invokes deletePrivateCloud with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resetVcenterCredentials = stubLongRunningCall( + client.innerApiCalls.deletePrivateCloud = stubLongRunningCall( undefined, expectedError ); - await assert.rejects( - client.resetVcenterCredentials(request), - expectedError - ); + await assert.rejects(client.deletePrivateCloud(request), expectedError); const actualRequest = ( - client.innerApiCalls.resetVcenterCredentials as SinonStub + client.innerApiCalls.deletePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetVcenterCredentials as SinonStub + client.innerApiCalls.deletePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetVcenterCredentials with LRO error', async () => { + it('invokes deletePrivateCloud with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest() + new protos.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest', - ['privateCloud'] + '.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest', + ['name'] ); - request.privateCloud = defaultValue1; - const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resetVcenterCredentials = stubLongRunningCall( + client.innerApiCalls.deletePrivateCloud = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.resetVcenterCredentials(request); + const [operation] = await client.deletePrivateCloud(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.resetVcenterCredentials as SinonStub + client.innerApiCalls.deletePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetVcenterCredentials as SinonStub + client.innerApiCalls.deletePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkResetVcenterCredentialsProgress without error', async () => { + it('invokes checkDeletePrivateCloudProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3500,16 +3188,15 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkResetVcenterCredentialsProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeletePrivateCloudProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkResetVcenterCredentialsProgress with error', async () => { + it('invokes checkDeletePrivateCloudProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3522,74 +3209,74 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkResetVcenterCredentialsProgress(''), + client.checkDeletePrivateCloudProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('createHcxActivationKey', () => { - it('invokes createHcxActivationKey without error', async () => { + describe('undeletePrivateCloud', () => { + it('invokes undeletePrivateCloud without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest() + new protos.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createHcxActivationKey = + client.innerApiCalls.undeletePrivateCloud = stubLongRunningCall(expectedResponse); - const [operation] = await client.createHcxActivationKey(request); + const [operation] = await client.undeletePrivateCloud(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createHcxActivationKey as SinonStub + client.innerApiCalls.undeletePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createHcxActivationKey as SinonStub + client.innerApiCalls.undeletePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createHcxActivationKey without error using callback', async () => { + it('invokes undeletePrivateCloud without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest() + new protos.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createHcxActivationKey = + client.innerApiCalls.undeletePrivateCloud = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createHcxActivationKey( + client.undeletePrivateCloud( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -3602,89 +3289,86 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IPrivateCloud, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createHcxActivationKey as SinonStub + client.innerApiCalls.undeletePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createHcxActivationKey as SinonStub + client.innerApiCalls.undeletePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createHcxActivationKey with call error', async () => { + it('invokes undeletePrivateCloud with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest() + new protos.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createHcxActivationKey = stubLongRunningCall( + client.innerApiCalls.undeletePrivateCloud = stubLongRunningCall( undefined, expectedError ); - await assert.rejects( - client.createHcxActivationKey(request), - expectedError - ); + await assert.rejects(client.undeletePrivateCloud(request), expectedError); const actualRequest = ( - client.innerApiCalls.createHcxActivationKey as SinonStub + client.innerApiCalls.undeletePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createHcxActivationKey as SinonStub + client.innerApiCalls.undeletePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createHcxActivationKey with LRO error', async () => { + it('invokes undeletePrivateCloud with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest() + new protos.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createHcxActivationKey = stubLongRunningCall( + client.innerApiCalls.undeletePrivateCloud = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.createHcxActivationKey(request); + const [operation] = await client.undeletePrivateCloud(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.createHcxActivationKey as SinonStub + client.innerApiCalls.undeletePrivateCloud as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createHcxActivationKey as SinonStub + client.innerApiCalls.undeletePrivateCloud as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateHcxActivationKeyProgress without error', async () => { + it('invokes checkUndeletePrivateCloudProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3698,7 +3382,7 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreateHcxActivationKeyProgress( + const decodedOperation = await client.checkUndeletePrivateCloudProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3706,7 +3390,7 @@ describe('v1.VmwareEngineClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkCreateHcxActivationKeyProgress with error', async () => { + it('invokes checkUndeletePrivateCloudProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3719,25 +3403,25 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkCreateHcxActivationKeyProgress(''), + client.checkUndeletePrivateCloudProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('createNetworkPolicy', () => { - it('invokes createNetworkPolicy without error', async () => { + describe('createCluster', () => { + it('invokes createCluster without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.CreateClusterRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.CreateClusterRequest', ['parent'] ); request.parent = defaultValue1; @@ -3745,32 +3429,32 @@ describe('v1.VmwareEngineClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createNetworkPolicy = + client.innerApiCalls.createCluster = stubLongRunningCall(expectedResponse); - const [operation] = await client.createNetworkPolicy(request); + const [operation] = await client.createCluster(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createNetworkPolicy as SinonStub + client.innerApiCalls.createCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createNetworkPolicy as SinonStub + client.innerApiCalls.createCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createNetworkPolicy without error using callback', async () => { + it('invokes createCluster without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.CreateClusterRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.CreateClusterRequest', ['parent'] ); request.parent = defaultValue1; @@ -3778,15 +3462,15 @@ describe('v1.VmwareEngineClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createNetworkPolicy = + client.innerApiCalls.createCluster = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createNetworkPolicy( + client.createCluster( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -3799,86 +3483,86 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createNetworkPolicy as SinonStub + client.innerApiCalls.createCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createNetworkPolicy as SinonStub + client.innerApiCalls.createCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createNetworkPolicy with call error', async () => { + it('invokes createCluster with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.CreateClusterRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.CreateClusterRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createNetworkPolicy = stubLongRunningCall( + client.innerApiCalls.createCluster = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.createNetworkPolicy(request), expectedError); + await assert.rejects(client.createCluster(request), expectedError); const actualRequest = ( - client.innerApiCalls.createNetworkPolicy as SinonStub + client.innerApiCalls.createCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createNetworkPolicy as SinonStub + client.innerApiCalls.createCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createNetworkPolicy with LRO error', async () => { + it('invokes createCluster with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.CreateClusterRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.CreateClusterRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createNetworkPolicy = stubLongRunningCall( + client.innerApiCalls.createCluster = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.createNetworkPolicy(request); + const [operation] = await client.createCluster(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.createNetworkPolicy as SinonStub + client.innerApiCalls.createCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createNetworkPolicy as SinonStub + client.innerApiCalls.createCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateNetworkPolicyProgress without error', async () => { + it('invokes checkCreateClusterProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3892,7 +3576,7 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreateNetworkPolicyProgress( + const decodedOperation = await client.checkCreateClusterProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3900,7 +3584,7 @@ describe('v1.VmwareEngineClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkCreateNetworkPolicyProgress with error', async () => { + it('invokes checkCreateClusterProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3913,76 +3597,76 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkCreateNetworkPolicyProgress(''), + client.checkCreateClusterProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateNetworkPolicy', () => { - it('invokes updateNetworkPolicy without error', async () => { + describe('updateCluster', () => { + it('invokes updateCluster without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.UpdateClusterRequest() ); - request.networkPolicy ??= {}; + request.cluster ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest', - ['networkPolicy', 'name'] + '.google.cloud.vmwareengine.v1.UpdateClusterRequest', + ['cluster', 'name'] ); - request.networkPolicy.name = defaultValue1; - const expectedHeaderRequestParams = `network_policy.name=${defaultValue1}`; + request.cluster.name = defaultValue1; + const expectedHeaderRequestParams = `cluster.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateNetworkPolicy = + client.innerApiCalls.updateCluster = stubLongRunningCall(expectedResponse); - const [operation] = await client.updateNetworkPolicy(request); + const [operation] = await client.updateCluster(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateNetworkPolicy as SinonStub + client.innerApiCalls.updateCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateNetworkPolicy as SinonStub + client.innerApiCalls.updateCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateNetworkPolicy without error using callback', async () => { + it('invokes updateCluster without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.UpdateClusterRequest() ); - request.networkPolicy ??= {}; + request.cluster ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest', - ['networkPolicy', 'name'] + '.google.cloud.vmwareengine.v1.UpdateClusterRequest', + ['cluster', 'name'] ); - request.networkPolicy.name = defaultValue1; - const expectedHeaderRequestParams = `network_policy.name=${defaultValue1}`; + request.cluster.name = defaultValue1; + const expectedHeaderRequestParams = `cluster.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateNetworkPolicy = + client.innerApiCalls.updateCluster = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateNetworkPolicy( + client.updateCluster( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -3995,88 +3679,88 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.ICluster, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateNetworkPolicy as SinonStub + client.innerApiCalls.updateCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateNetworkPolicy as SinonStub + client.innerApiCalls.updateCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateNetworkPolicy with call error', async () => { + it('invokes updateCluster with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.UpdateClusterRequest() ); - request.networkPolicy ??= {}; + request.cluster ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest', - ['networkPolicy', 'name'] + '.google.cloud.vmwareengine.v1.UpdateClusterRequest', + ['cluster', 'name'] ); - request.networkPolicy.name = defaultValue1; - const expectedHeaderRequestParams = `network_policy.name=${defaultValue1}`; + request.cluster.name = defaultValue1; + const expectedHeaderRequestParams = `cluster.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateNetworkPolicy = stubLongRunningCall( + client.innerApiCalls.updateCluster = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.updateNetworkPolicy(request), expectedError); + await assert.rejects(client.updateCluster(request), expectedError); const actualRequest = ( - client.innerApiCalls.updateNetworkPolicy as SinonStub + client.innerApiCalls.updateCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateNetworkPolicy as SinonStub + client.innerApiCalls.updateCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateNetworkPolicy with LRO error', async () => { + it('invokes updateCluster with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.UpdateClusterRequest() ); - request.networkPolicy ??= {}; + request.cluster ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest', - ['networkPolicy', 'name'] + '.google.cloud.vmwareengine.v1.UpdateClusterRequest', + ['cluster', 'name'] ); - request.networkPolicy.name = defaultValue1; - const expectedHeaderRequestParams = `network_policy.name=${defaultValue1}`; + request.cluster.name = defaultValue1; + const expectedHeaderRequestParams = `cluster.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateNetworkPolicy = stubLongRunningCall( + client.innerApiCalls.updateCluster = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.updateNetworkPolicy(request); + const [operation] = await client.updateCluster(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateNetworkPolicy as SinonStub + client.innerApiCalls.updateCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateNetworkPolicy as SinonStub + client.innerApiCalls.updateCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateNetworkPolicyProgress without error', async () => { + it('invokes checkUpdateClusterProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4090,7 +3774,7 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkUpdateNetworkPolicyProgress( + const decodedOperation = await client.checkUpdateClusterProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -4098,7 +3782,7 @@ describe('v1.VmwareEngineClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdateNetworkPolicyProgress with error', async () => { + it('invokes checkUpdateClusterProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4111,25 +3795,25 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkUpdateNetworkPolicyProgress(''), + client.checkUpdateClusterProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteNetworkPolicy', () => { - it('invokes deleteNetworkPolicy without error', async () => { + describe('deleteCluster', () => { + it('invokes deleteCluster without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.DeleteClusterRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.DeleteClusterRequest', ['name'] ); request.name = defaultValue1; @@ -4137,32 +3821,32 @@ describe('v1.VmwareEngineClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteNetworkPolicy = + client.innerApiCalls.deleteCluster = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteNetworkPolicy(request); + const [operation] = await client.deleteCluster(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteNetworkPolicy as SinonStub + client.innerApiCalls.deleteCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteNetworkPolicy as SinonStub + client.innerApiCalls.deleteCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteNetworkPolicy without error using callback', async () => { + it('invokes deleteCluster without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.DeleteClusterRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.DeleteClusterRequest', ['name'] ); request.name = defaultValue1; @@ -4170,10 +3854,10 @@ describe('v1.VmwareEngineClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteNetworkPolicy = + client.innerApiCalls.deleteCluster = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteNetworkPolicy( + client.deleteCluster( request, ( err?: Error | null, @@ -4197,80 +3881,80 @@ describe('v1.VmwareEngineClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteNetworkPolicy as SinonStub + client.innerApiCalls.deleteCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteNetworkPolicy as SinonStub + client.innerApiCalls.deleteCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteNetworkPolicy with call error', async () => { + it('invokes deleteCluster with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.DeleteClusterRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.DeleteClusterRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteNetworkPolicy = stubLongRunningCall( + client.innerApiCalls.deleteCluster = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.deleteNetworkPolicy(request), expectedError); + await assert.rejects(client.deleteCluster(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteNetworkPolicy as SinonStub + client.innerApiCalls.deleteCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteNetworkPolicy as SinonStub + client.innerApiCalls.deleteCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteNetworkPolicy with LRO error', async () => { + it('invokes deleteCluster with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest() + new protos.google.cloud.vmwareengine.v1.DeleteClusterRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest', + '.google.cloud.vmwareengine.v1.DeleteClusterRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteNetworkPolicy = stubLongRunningCall( + client.innerApiCalls.deleteCluster = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deleteNetworkPolicy(request); + const [operation] = await client.deleteCluster(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteNetworkPolicy as SinonStub + client.innerApiCalls.deleteCluster as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteNetworkPolicy as SinonStub + client.innerApiCalls.deleteCluster as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteNetworkPolicyProgress without error', async () => { + it('invokes checkDeleteClusterProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4284,7 +3968,7 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteNetworkPolicyProgress( + const decodedOperation = await client.checkDeleteClusterProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -4292,7 +3976,7 @@ describe('v1.VmwareEngineClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteNetworkPolicyProgress with error', async () => { + it('invokes checkDeleteClusterProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4305,25 +3989,25 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkDeleteNetworkPolicyProgress(''), + client.checkDeleteClusterProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('createVmwareEngineNetwork', () => { - it('invokes createVmwareEngineNetwork without error', async () => { + describe('createExternalAddress', () => { + it('invokes createExternalAddress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.CreateExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest', + '.google.cloud.vmwareengine.v1.CreateExternalAddressRequest', ['parent'] ); request.parent = defaultValue1; @@ -4331,32 +4015,32 @@ describe('v1.VmwareEngineClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createVmwareEngineNetwork = + client.innerApiCalls.createExternalAddress = stubLongRunningCall(expectedResponse); - const [operation] = await client.createVmwareEngineNetwork(request); + const [operation] = await client.createExternalAddress(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createVmwareEngineNetwork as SinonStub + client.innerApiCalls.createExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createVmwareEngineNetwork as SinonStub + client.innerApiCalls.createExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createVmwareEngineNetwork without error using callback', async () => { + it('invokes createExternalAddress without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.CreateExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest', + '.google.cloud.vmwareengine.v1.CreateExternalAddressRequest', ['parent'] ); request.parent = defaultValue1; @@ -4364,15 +4048,15 @@ describe('v1.VmwareEngineClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createVmwareEngineNetwork = + client.innerApiCalls.createExternalAddress = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createVmwareEngineNetwork( + client.createExternalAddress( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -4385,89 +4069,89 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createVmwareEngineNetwork as SinonStub + client.innerApiCalls.createExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createVmwareEngineNetwork as SinonStub + client.innerApiCalls.createExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createVmwareEngineNetwork with call error', async () => { + it('invokes createExternalAddress with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.CreateExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest', + '.google.cloud.vmwareengine.v1.CreateExternalAddressRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createVmwareEngineNetwork = stubLongRunningCall( + client.innerApiCalls.createExternalAddress = stubLongRunningCall( undefined, expectedError ); await assert.rejects( - client.createVmwareEngineNetwork(request), + client.createExternalAddress(request), expectedError ); const actualRequest = ( - client.innerApiCalls.createVmwareEngineNetwork as SinonStub + client.innerApiCalls.createExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createVmwareEngineNetwork as SinonStub + client.innerApiCalls.createExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createVmwareEngineNetwork with LRO error', async () => { + it('invokes createExternalAddress with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.CreateExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest', + '.google.cloud.vmwareengine.v1.CreateExternalAddressRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createVmwareEngineNetwork = stubLongRunningCall( + client.innerApiCalls.createExternalAddress = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.createVmwareEngineNetwork(request); + const [operation] = await client.createExternalAddress(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.createVmwareEngineNetwork as SinonStub + client.innerApiCalls.createExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createVmwareEngineNetwork as SinonStub + client.innerApiCalls.createExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateVmwareEngineNetworkProgress without error', async () => { + it('invokes checkCreateExternalAddressProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4481,16 +4165,15 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkCreateVmwareEngineNetworkProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkCreateExternalAddressProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkCreateVmwareEngineNetworkProgress with error', async () => { + it('invokes checkCreateExternalAddressProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4503,76 +4186,76 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkCreateVmwareEngineNetworkProgress(''), + client.checkCreateExternalAddressProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateVmwareEngineNetwork', () => { - it('invokes updateVmwareEngineNetwork without error', async () => { + describe('updateExternalAddress', () => { + it('invokes updateExternalAddress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest() ); - request.vmwareEngineNetwork ??= {}; + request.externalAddress ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest', - ['vmwareEngineNetwork', 'name'] + '.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest', + ['externalAddress', 'name'] ); - request.vmwareEngineNetwork.name = defaultValue1; - const expectedHeaderRequestParams = `vmware_engine_network.name=${defaultValue1}`; + request.externalAddress.name = defaultValue1; + const expectedHeaderRequestParams = `external_address.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateVmwareEngineNetwork = + client.innerApiCalls.updateExternalAddress = stubLongRunningCall(expectedResponse); - const [operation] = await client.updateVmwareEngineNetwork(request); + const [operation] = await client.updateExternalAddress(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + client.innerApiCalls.updateExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + client.innerApiCalls.updateExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateVmwareEngineNetwork without error using callback', async () => { + it('invokes updateExternalAddress without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest() ); - request.vmwareEngineNetwork ??= {}; + request.externalAddress ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest', - ['vmwareEngineNetwork', 'name'] + '.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest', + ['externalAddress', 'name'] ); - request.vmwareEngineNetwork.name = defaultValue1; - const expectedHeaderRequestParams = `vmware_engine_network.name=${defaultValue1}`; + request.externalAddress.name = defaultValue1; + const expectedHeaderRequestParams = `external_address.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateVmwareEngineNetwork = + client.innerApiCalls.updateExternalAddress = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateVmwareEngineNetwork( + client.updateExternalAddress( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -4585,91 +4268,91 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IExternalAddress, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + client.innerApiCalls.updateExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + client.innerApiCalls.updateExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateVmwareEngineNetwork with call error', async () => { + it('invokes updateExternalAddress with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest() ); - request.vmwareEngineNetwork ??= {}; + request.externalAddress ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest', - ['vmwareEngineNetwork', 'name'] + '.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest', + ['externalAddress', 'name'] ); - request.vmwareEngineNetwork.name = defaultValue1; - const expectedHeaderRequestParams = `vmware_engine_network.name=${defaultValue1}`; + request.externalAddress.name = defaultValue1; + const expectedHeaderRequestParams = `external_address.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateVmwareEngineNetwork = stubLongRunningCall( + client.innerApiCalls.updateExternalAddress = stubLongRunningCall( undefined, expectedError ); await assert.rejects( - client.updateVmwareEngineNetwork(request), + client.updateExternalAddress(request), expectedError ); const actualRequest = ( - client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + client.innerApiCalls.updateExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + client.innerApiCalls.updateExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateVmwareEngineNetwork with LRO error', async () => { + it('invokes updateExternalAddress with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest() ); - request.vmwareEngineNetwork ??= {}; + request.externalAddress ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest', - ['vmwareEngineNetwork', 'name'] + '.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest', + ['externalAddress', 'name'] ); - request.vmwareEngineNetwork.name = defaultValue1; - const expectedHeaderRequestParams = `vmware_engine_network.name=${defaultValue1}`; + request.externalAddress.name = defaultValue1; + const expectedHeaderRequestParams = `external_address.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateVmwareEngineNetwork = stubLongRunningCall( + client.innerApiCalls.updateExternalAddress = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.updateVmwareEngineNetwork(request); + const [operation] = await client.updateExternalAddress(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + client.innerApiCalls.updateExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + client.innerApiCalls.updateExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateVmwareEngineNetworkProgress without error', async () => { + it('invokes checkUpdateExternalAddressProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4683,16 +4366,15 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkUpdateVmwareEngineNetworkProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkUpdateExternalAddressProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdateVmwareEngineNetworkProgress with error', async () => { + it('invokes checkUpdateExternalAddressProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4705,25 +4387,25 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkUpdateVmwareEngineNetworkProgress(''), + client.checkUpdateExternalAddressProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteVmwareEngineNetwork', () => { - it('invokes deleteVmwareEngineNetwork without error', async () => { + describe('deleteExternalAddress', () => { + it('invokes deleteExternalAddress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest', + '.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest', ['name'] ); request.name = defaultValue1; @@ -4731,32 +4413,32 @@ describe('v1.VmwareEngineClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteVmwareEngineNetwork = + client.innerApiCalls.deleteExternalAddress = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteVmwareEngineNetwork(request); + const [operation] = await client.deleteExternalAddress(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + client.innerApiCalls.deleteExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + client.innerApiCalls.deleteExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteVmwareEngineNetwork without error using callback', async () => { + it('invokes deleteExternalAddress without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest', + '.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest', ['name'] ); request.name = defaultValue1; @@ -4764,10 +4446,10 @@ describe('v1.VmwareEngineClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteVmwareEngineNetwork = + client.innerApiCalls.deleteExternalAddress = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteVmwareEngineNetwork( + client.deleteExternalAddress( request, ( err?: Error | null, @@ -4791,83 +4473,83 @@ describe('v1.VmwareEngineClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + client.innerApiCalls.deleteExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + client.innerApiCalls.deleteExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteVmwareEngineNetwork with call error', async () => { + it('invokes deleteExternalAddress with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest', + '.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteVmwareEngineNetwork = stubLongRunningCall( + client.innerApiCalls.deleteExternalAddress = stubLongRunningCall( undefined, expectedError ); await assert.rejects( - client.deleteVmwareEngineNetwork(request), + client.deleteExternalAddress(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + client.innerApiCalls.deleteExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + client.innerApiCalls.deleteExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteVmwareEngineNetwork with LRO error', async () => { + it('invokes deleteExternalAddress with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest() + new protos.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest', + '.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteVmwareEngineNetwork = stubLongRunningCall( + client.innerApiCalls.deleteExternalAddress = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deleteVmwareEngineNetwork(request); + const [operation] = await client.deleteExternalAddress(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + client.innerApiCalls.deleteExternalAddress as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + client.innerApiCalls.deleteExternalAddress as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteVmwareEngineNetworkProgress without error', async () => { + it('invokes checkDeleteExternalAddressProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4881,16 +4563,15 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkDeleteVmwareEngineNetworkProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteExternalAddressProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteVmwareEngineNetworkProgress with error', async () => { + it('invokes checkDeleteExternalAddressProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -4903,74 +4584,75 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkDeleteVmwareEngineNetworkProgress(''), + client.checkDeleteExternalAddressProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('createPrivateConnection', () => { - it('invokes createPrivateConnection without error', async () => { + describe('updateSubnet', () => { + it('invokes updateSubnet without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.UpdateSubnetRequest() ); + request.subnet ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.UpdateSubnetRequest', + ['subnet', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.subnet.name = defaultValue1; + const expectedHeaderRequestParams = `subnet.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createPrivateConnection = - stubLongRunningCall(expectedResponse); - const [operation] = await client.createPrivateConnection(request); + client.innerApiCalls.updateSubnet = stubLongRunningCall(expectedResponse); + const [operation] = await client.updateSubnet(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createPrivateConnection as SinonStub + client.innerApiCalls.updateSubnet as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createPrivateConnection as SinonStub + client.innerApiCalls.updateSubnet as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createPrivateConnection without error using callback', async () => { + it('invokes updateSubnet without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.UpdateSubnetRequest() ); + request.subnet ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.UpdateSubnetRequest', + ['subnet', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.subnet.name = defaultValue1; + const expectedHeaderRequestParams = `subnet.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createPrivateConnection = + client.innerApiCalls.updateSubnet = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createPrivateConnection( + client.updateSubnet( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ISubnet, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -4983,89 +4665,88 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.ISubnet, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createPrivateConnection as SinonStub + client.innerApiCalls.updateSubnet as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createPrivateConnection as SinonStub + client.innerApiCalls.updateSubnet as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createPrivateConnection with call error', async () => { + it('invokes updateSubnet with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.UpdateSubnetRequest() ); + request.subnet ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.UpdateSubnetRequest', + ['subnet', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.subnet.name = defaultValue1; + const expectedHeaderRequestParams = `subnet.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createPrivateConnection = stubLongRunningCall( + client.innerApiCalls.updateSubnet = stubLongRunningCall( undefined, expectedError ); - await assert.rejects( - client.createPrivateConnection(request), - expectedError - ); + await assert.rejects(client.updateSubnet(request), expectedError); const actualRequest = ( - client.innerApiCalls.createPrivateConnection as SinonStub + client.innerApiCalls.updateSubnet as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createPrivateConnection as SinonStub + client.innerApiCalls.updateSubnet as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createPrivateConnection with LRO error', async () => { + it('invokes updateSubnet with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.UpdateSubnetRequest() ); + request.subnet ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.UpdateSubnetRequest', + ['subnet', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.subnet.name = defaultValue1; + const expectedHeaderRequestParams = `subnet.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createPrivateConnection = stubLongRunningCall( + client.innerApiCalls.updateSubnet = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.createPrivateConnection(request); + const [operation] = await client.updateSubnet(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.createPrivateConnection as SinonStub + client.innerApiCalls.updateSubnet as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createPrivateConnection as SinonStub + client.innerApiCalls.updateSubnet as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreatePrivateConnectionProgress without error', async () => { + it('invokes checkUpdateSubnetProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -5079,16 +4760,15 @@ describe('v1.VmwareEngineClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkCreatePrivateConnectionProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkUpdateSubnetProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkCreatePrivateConnectionProgress with error', async () => { + it('invokes checkUpdateSubnetProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -5100,77 +4780,72 @@ describe('v1.VmwareEngineClient', () => { undefined, expectedError ); - await assert.rejects( - client.checkCreatePrivateConnectionProgress(''), - expectedError - ); + await assert.rejects(client.checkUpdateSubnetProgress(''), expectedError); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updatePrivateConnection', () => { - it('invokes updatePrivateConnection without error', async () => { + describe('createExternalAccessRule', () => { + it('invokes createExternalAccessRule without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest() ); - request.privateConnection ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest', - ['privateConnection', 'name'] + '.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest', + ['parent'] ); - request.privateConnection.name = defaultValue1; - const expectedHeaderRequestParams = `private_connection.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updatePrivateConnection = + client.innerApiCalls.createExternalAccessRule = stubLongRunningCall(expectedResponse); - const [operation] = await client.updatePrivateConnection(request); + const [operation] = await client.createExternalAccessRule(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updatePrivateConnection as SinonStub + client.innerApiCalls.createExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updatePrivateConnection as SinonStub + client.innerApiCalls.createExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updatePrivateConnection without error using callback', async () => { + it('invokes createExternalAccessRule without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest() ); - request.privateConnection ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest', - ['privateConnection', 'name'] + '.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest', + ['parent'] ); - request.privateConnection.name = defaultValue1; - const expectedHeaderRequestParams = `private_connection.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updatePrivateConnection = + client.innerApiCalls.createExternalAccessRule = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updatePrivateConnection( + client.createExternalAccessRule( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -5183,91 +4858,89 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updatePrivateConnection as SinonStub + client.innerApiCalls.createExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updatePrivateConnection as SinonStub + client.innerApiCalls.createExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updatePrivateConnection with call error', async () => { + it('invokes createExternalAccessRule with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest() ); - request.privateConnection ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest', - ['privateConnection', 'name'] + '.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest', + ['parent'] ); - request.privateConnection.name = defaultValue1; - const expectedHeaderRequestParams = `private_connection.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updatePrivateConnection = stubLongRunningCall( + client.innerApiCalls.createExternalAccessRule = stubLongRunningCall( undefined, expectedError ); await assert.rejects( - client.updatePrivateConnection(request), + client.createExternalAccessRule(request), expectedError ); const actualRequest = ( - client.innerApiCalls.updatePrivateConnection as SinonStub + client.innerApiCalls.createExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updatePrivateConnection as SinonStub + client.innerApiCalls.createExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updatePrivateConnection with LRO error', async () => { + it('invokes createExternalAccessRule with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest() ); - request.privateConnection ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest', - ['privateConnection', 'name'] + '.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest', + ['parent'] ); - request.privateConnection.name = defaultValue1; - const expectedHeaderRequestParams = `private_connection.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updatePrivateConnection = stubLongRunningCall( + client.innerApiCalls.createExternalAccessRule = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.updatePrivateConnection(request); + const [operation] = await client.createExternalAccessRule(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updatePrivateConnection as SinonStub + client.innerApiCalls.createExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updatePrivateConnection as SinonStub + client.innerApiCalls.createExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdatePrivateConnectionProgress without error', async () => { + it('invokes checkCreateExternalAccessRuleProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -5282,7 +4955,7 @@ describe('v1.VmwareEngineClient', () => { client.operationsClient.getOperation = stubSimpleCall(expectedResponse); const decodedOperation = - await client.checkUpdatePrivateConnectionProgress( + await client.checkCreateExternalAccessRuleProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -5290,7 +4963,7 @@ describe('v1.VmwareEngineClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdatePrivateConnectionProgress with error', async () => { + it('invokes checkCreateExternalAccessRuleProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -5303,74 +4976,76 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkUpdatePrivateConnectionProgress(''), + client.checkCreateExternalAccessRuleProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deletePrivateConnection', () => { - it('invokes deletePrivateConnection without error', async () => { + describe('updateExternalAccessRule', () => { + it('invokes updateExternalAccessRule without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest() ); + request.externalAccessRule ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest', - ['name'] + '.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest', + ['externalAccessRule', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.externalAccessRule.name = defaultValue1; + const expectedHeaderRequestParams = `external_access_rule.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deletePrivateConnection = + client.innerApiCalls.updateExternalAccessRule = stubLongRunningCall(expectedResponse); - const [operation] = await client.deletePrivateConnection(request); + const [operation] = await client.updateExternalAccessRule(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deletePrivateConnection as SinonStub + client.innerApiCalls.updateExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePrivateConnection as SinonStub + client.innerApiCalls.updateExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePrivateConnection without error using callback', async () => { + it('invokes updateExternalAccessRule without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest() ); + request.externalAccessRule ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest', - ['name'] + '.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest', + ['externalAccessRule', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.externalAccessRule.name = defaultValue1; + const expectedHeaderRequestParams = `external_access_rule.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deletePrivateConnection = + client.innerApiCalls.updateExternalAccessRule = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deletePrivateConnection( + client.updateExternalAccessRule( request, ( err?: Error | null, result?: LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata > | null ) => { @@ -5383,89 +5058,91 @@ describe('v1.VmwareEngineClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IExternalAccessRule, protos.google.cloud.vmwareengine.v1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deletePrivateConnection as SinonStub + client.innerApiCalls.updateExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePrivateConnection as SinonStub + client.innerApiCalls.updateExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePrivateConnection with call error', async () => { + it('invokes updateExternalAccessRule with call error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest() ); + request.externalAccessRule ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest', - ['name'] + '.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest', + ['externalAccessRule', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.externalAccessRule.name = defaultValue1; + const expectedHeaderRequestParams = `external_access_rule.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deletePrivateConnection = stubLongRunningCall( + client.innerApiCalls.updateExternalAccessRule = stubLongRunningCall( undefined, expectedError ); await assert.rejects( - client.deletePrivateConnection(request), + client.updateExternalAccessRule(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deletePrivateConnection as SinonStub + client.innerApiCalls.updateExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePrivateConnection as SinonStub + client.innerApiCalls.updateExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePrivateConnection with LRO error', async () => { + it('invokes updateExternalAccessRule with LRO error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest() + new protos.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest() ); + request.externalAccessRule ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest', - ['name'] + '.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest', + ['externalAccessRule', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.externalAccessRule.name = defaultValue1; + const expectedHeaderRequestParams = `external_access_rule.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deletePrivateConnection = stubLongRunningCall( + client.innerApiCalls.updateExternalAccessRule = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deletePrivateConnection(request); + const [operation] = await client.updateExternalAccessRule(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deletePrivateConnection as SinonStub + client.innerApiCalls.updateExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePrivateConnection as SinonStub + client.innerApiCalls.updateExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeletePrivateConnectionProgress without error', async () => { + it('invokes checkUpdateExternalAccessRuleProgress without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -5480,7 +5157,7 @@ describe('v1.VmwareEngineClient', () => { client.operationsClient.getOperation = stubSimpleCall(expectedResponse); const decodedOperation = - await client.checkDeletePrivateConnectionProgress( + await client.checkUpdateExternalAccessRuleProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -5488,7 +5165,7 @@ describe('v1.VmwareEngineClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeletePrivateConnectionProgress with error', async () => { + it('invokes checkUpdateExternalAccessRuleProgress with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -5501,87 +5178,7883 @@ describe('v1.VmwareEngineClient', () => { expectedError ); await assert.rejects( - client.checkDeletePrivateConnectionProgress(''), + client.checkUpdateExternalAccessRuleProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listPrivateClouds', () => { - it('invokes listPrivateClouds without error', async () => { + describe('deleteExternalAccessRule', () => { + it('invokes deleteExternalAccessRule without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + new protos.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', - ['parent'] + '.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() - ), - generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() - ), - generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() - ), - ]; - client.innerApiCalls.listPrivateClouds = stubSimpleCall(expectedResponse); - const [response] = await client.listPrivateClouds(request); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteExternalAccessRule = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteExternalAccessRule(request); + const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listPrivateClouds as SinonStub + client.innerApiCalls.deleteExternalAccessRule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listPrivateClouds as SinonStub + client.innerApiCalls.deleteExternalAccessRule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listPrivateClouds without error using callback', async () => { + it('invokes deleteExternalAccessRule without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + new protos.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + '.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteExternalAccessRule = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteExternalAccessRule( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteExternalAccessRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteExternalAccessRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteExternalAccessRule with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteExternalAccessRule = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteExternalAccessRule(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteExternalAccessRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteExternalAccessRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteExternalAccessRule with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteExternalAccessRule = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteExternalAccessRule(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteExternalAccessRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteExternalAccessRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteExternalAccessRuleProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkDeleteExternalAccessRuleProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteExternalAccessRuleProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteExternalAccessRuleProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createLoggingServer', () => { + it('invokes createLoggingServer without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateLoggingServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateLoggingServerRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createLoggingServer = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createLoggingServer(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createLoggingServer without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateLoggingServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateLoggingServerRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createLoggingServer = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createLoggingServer( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createLoggingServer with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateLoggingServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateLoggingServerRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createLoggingServer = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createLoggingServer(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createLoggingServer with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateLoggingServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateLoggingServerRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createLoggingServer = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createLoggingServer(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateLoggingServerProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCreateLoggingServerProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateLoggingServerProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateLoggingServerProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateLoggingServer', () => { + it('invokes updateLoggingServer without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest() + ); + request.loggingServer ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest', + ['loggingServer', 'name'] + ); + request.loggingServer.name = defaultValue1; + const expectedHeaderRequestParams = `logging_server.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateLoggingServer = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateLoggingServer(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateLoggingServer without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest() + ); + request.loggingServer ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest', + ['loggingServer', 'name'] + ); + request.loggingServer.name = defaultValue1; + const expectedHeaderRequestParams = `logging_server.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateLoggingServer = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateLoggingServer( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.ILoggingServer, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateLoggingServer with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest() + ); + request.loggingServer ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest', + ['loggingServer', 'name'] + ); + request.loggingServer.name = defaultValue1; + const expectedHeaderRequestParams = `logging_server.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateLoggingServer = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateLoggingServer(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateLoggingServer with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest() + ); + request.loggingServer ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest', + ['loggingServer', 'name'] + ); + request.loggingServer.name = defaultValue1; + const expectedHeaderRequestParams = `logging_server.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateLoggingServer = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateLoggingServer(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateLoggingServerProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateLoggingServerProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateLoggingServerProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateLoggingServerProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteLoggingServer', () => { + it('invokes deleteLoggingServer without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteLoggingServer = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteLoggingServer(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteLoggingServer without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteLoggingServer = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteLoggingServer( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteLoggingServer with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteLoggingServer = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteLoggingServer(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteLoggingServer with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteLoggingServer = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteLoggingServer(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteLoggingServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteLoggingServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteLoggingServerProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteLoggingServerProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteLoggingServerProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteLoggingServerProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('resetNsxCredentials', () => { + it('invokes resetNsxCredentials without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest', + ['privateCloud'] + ); + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.resetNsxCredentials = + stubLongRunningCall(expectedResponse); + const [operation] = await client.resetNsxCredentials(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.resetNsxCredentials as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.resetNsxCredentials as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes resetNsxCredentials without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest', + ['privateCloud'] + ); + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.resetNsxCredentials = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.resetNsxCredentials( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.resetNsxCredentials as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.resetNsxCredentials as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes resetNsxCredentials with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest', + ['privateCloud'] + ); + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.resetNsxCredentials = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.resetNsxCredentials(request), expectedError); + const actualRequest = ( + client.innerApiCalls.resetNsxCredentials as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.resetNsxCredentials as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes resetNsxCredentials with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest', + ['privateCloud'] + ); + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.resetNsxCredentials = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.resetNsxCredentials(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.resetNsxCredentials as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.resetNsxCredentials as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkResetNsxCredentialsProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkResetNsxCredentialsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkResetNsxCredentialsProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkResetNsxCredentialsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('resetVcenterCredentials', () => { + it('invokes resetVcenterCredentials without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest', + ['privateCloud'] + ); + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.resetVcenterCredentials = + stubLongRunningCall(expectedResponse); + const [operation] = await client.resetVcenterCredentials(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.resetVcenterCredentials as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.resetVcenterCredentials as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes resetVcenterCredentials without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest', + ['privateCloud'] + ); + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.resetVcenterCredentials = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.resetVcenterCredentials( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateCloud, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.resetVcenterCredentials as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.resetVcenterCredentials as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes resetVcenterCredentials with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest', + ['privateCloud'] + ); + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.resetVcenterCredentials = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.resetVcenterCredentials(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.resetVcenterCredentials as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.resetVcenterCredentials as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes resetVcenterCredentials with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest', + ['privateCloud'] + ); + request.privateCloud = defaultValue1; + const expectedHeaderRequestParams = `private_cloud=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.resetVcenterCredentials = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.resetVcenterCredentials(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.resetVcenterCredentials as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.resetVcenterCredentials as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkResetVcenterCredentialsProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkResetVcenterCredentialsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkResetVcenterCredentialsProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkResetVcenterCredentialsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateDnsForwarding', () => { + it('invokes updateDnsForwarding without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest() + ); + request.dnsForwarding ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest', + ['dnsForwarding', 'name'] + ); + request.dnsForwarding.name = defaultValue1; + const expectedHeaderRequestParams = `dns_forwarding.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateDnsForwarding = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateDnsForwarding(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateDnsForwarding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDnsForwarding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateDnsForwarding without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest() + ); + request.dnsForwarding ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest', + ['dnsForwarding', 'name'] + ); + request.dnsForwarding.name = defaultValue1; + const expectedHeaderRequestParams = `dns_forwarding.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateDnsForwarding = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateDnsForwarding( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IDnsForwarding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateDnsForwarding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDnsForwarding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateDnsForwarding with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest() + ); + request.dnsForwarding ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest', + ['dnsForwarding', 'name'] + ); + request.dnsForwarding.name = defaultValue1; + const expectedHeaderRequestParams = `dns_forwarding.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateDnsForwarding = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateDnsForwarding(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateDnsForwarding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDnsForwarding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateDnsForwarding with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest() + ); + request.dnsForwarding ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest', + ['dnsForwarding', 'name'] + ); + request.dnsForwarding.name = defaultValue1; + const expectedHeaderRequestParams = `dns_forwarding.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateDnsForwarding = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateDnsForwarding(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateDnsForwarding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDnsForwarding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateDnsForwardingProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateDnsForwardingProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateDnsForwardingProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateDnsForwardingProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createNetworkPeering', () => { + it('invokes createNetworkPeering without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createNetworkPeering = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createNetworkPeering(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createNetworkPeering without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createNetworkPeering = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createNetworkPeering( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createNetworkPeering with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createNetworkPeering = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createNetworkPeering(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createNetworkPeering with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createNetworkPeering = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createNetworkPeering(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateNetworkPeeringProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCreateNetworkPeeringProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateNetworkPeeringProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateNetworkPeeringProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteNetworkPeering', () => { + it('invokes deleteNetworkPeering without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNetworkPeering = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteNetworkPeering(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNetworkPeering without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNetworkPeering = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteNetworkPeering( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNetworkPeering with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNetworkPeering = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteNetworkPeering(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNetworkPeering with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNetworkPeering = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteNetworkPeering(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteNetworkPeeringProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteNetworkPeeringProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteNetworkPeeringProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteNetworkPeeringProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateNetworkPeering', () => { + it('invokes updateNetworkPeering without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest() + ); + request.networkPeering ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest', + ['networkPeering', 'name'] + ); + request.networkPeering.name = defaultValue1; + const expectedHeaderRequestParams = `network_peering.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateNetworkPeering = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateNetworkPeering(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateNetworkPeering without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest() + ); + request.networkPeering ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest', + ['networkPeering', 'name'] + ); + request.networkPeering.name = defaultValue1; + const expectedHeaderRequestParams = `network_peering.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateNetworkPeering = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateNetworkPeering( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPeering, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateNetworkPeering with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest() + ); + request.networkPeering ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest', + ['networkPeering', 'name'] + ); + request.networkPeering.name = defaultValue1; + const expectedHeaderRequestParams = `network_peering.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateNetworkPeering = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateNetworkPeering(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateNetworkPeering with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest() + ); + request.networkPeering ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest', + ['networkPeering', 'name'] + ); + request.networkPeering.name = defaultValue1; + const expectedHeaderRequestParams = `network_peering.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateNetworkPeering = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateNetworkPeering(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateNetworkPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNetworkPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateNetworkPeeringProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateNetworkPeeringProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateNetworkPeeringProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateNetworkPeeringProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createHcxActivationKey', () => { + it('invokes createHcxActivationKey without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createHcxActivationKey = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createHcxActivationKey(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createHcxActivationKey as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createHcxActivationKey as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createHcxActivationKey without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createHcxActivationKey = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createHcxActivationKey( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IHcxActivationKey, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createHcxActivationKey as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createHcxActivationKey as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createHcxActivationKey with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createHcxActivationKey = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.createHcxActivationKey(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createHcxActivationKey as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createHcxActivationKey as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createHcxActivationKey with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createHcxActivationKey = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createHcxActivationKey(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createHcxActivationKey as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createHcxActivationKey as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateHcxActivationKeyProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCreateHcxActivationKeyProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateHcxActivationKeyProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateHcxActivationKeyProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createNetworkPolicy', () => { + it('invokes createNetworkPolicy without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createNetworkPolicy = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createNetworkPolicy(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createNetworkPolicy without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createNetworkPolicy = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createNetworkPolicy( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createNetworkPolicy with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createNetworkPolicy = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createNetworkPolicy(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createNetworkPolicy with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createNetworkPolicy = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createNetworkPolicy(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateNetworkPolicyProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCreateNetworkPolicyProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateNetworkPolicyProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateNetworkPolicyProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateNetworkPolicy', () => { + it('invokes updateNetworkPolicy without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest() + ); + request.networkPolicy ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest', + ['networkPolicy', 'name'] + ); + request.networkPolicy.name = defaultValue1; + const expectedHeaderRequestParams = `network_policy.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateNetworkPolicy = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateNetworkPolicy(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateNetworkPolicy without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest() + ); + request.networkPolicy ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest', + ['networkPolicy', 'name'] + ); + request.networkPolicy.name = defaultValue1; + const expectedHeaderRequestParams = `network_policy.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateNetworkPolicy = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateNetworkPolicy( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.INetworkPolicy, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateNetworkPolicy with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest() + ); + request.networkPolicy ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest', + ['networkPolicy', 'name'] + ); + request.networkPolicy.name = defaultValue1; + const expectedHeaderRequestParams = `network_policy.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateNetworkPolicy = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateNetworkPolicy(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateNetworkPolicy with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest() + ); + request.networkPolicy ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest', + ['networkPolicy', 'name'] + ); + request.networkPolicy.name = defaultValue1; + const expectedHeaderRequestParams = `network_policy.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateNetworkPolicy = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateNetworkPolicy(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateNetworkPolicyProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateNetworkPolicyProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateNetworkPolicyProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateNetworkPolicyProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteNetworkPolicy', () => { + it('invokes deleteNetworkPolicy without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNetworkPolicy = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteNetworkPolicy(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNetworkPolicy without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNetworkPolicy = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteNetworkPolicy( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNetworkPolicy with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNetworkPolicy = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteNetworkPolicy(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNetworkPolicy with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNetworkPolicy = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteNetworkPolicy(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteNetworkPolicyProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteNetworkPolicyProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteNetworkPolicyProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteNetworkPolicyProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createManagementDnsZoneBinding', () => { + it('invokes createManagementDnsZoneBinding without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createManagementDnsZoneBinding = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createManagementDnsZoneBinding(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createManagementDnsZoneBinding without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createManagementDnsZoneBinding = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createManagementDnsZoneBinding( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createManagementDnsZoneBinding with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createManagementDnsZoneBinding = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.createManagementDnsZoneBinding(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createManagementDnsZoneBinding with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createManagementDnsZoneBinding = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createManagementDnsZoneBinding(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateManagementDnsZoneBindingProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkCreateManagementDnsZoneBindingProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateManagementDnsZoneBindingProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateManagementDnsZoneBindingProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateManagementDnsZoneBinding', () => { + it('invokes updateManagementDnsZoneBinding without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest() + ); + request.managementDnsZoneBinding ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest', + ['managementDnsZoneBinding', 'name'] + ); + request.managementDnsZoneBinding.name = defaultValue1; + const expectedHeaderRequestParams = `management_dns_zone_binding.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateManagementDnsZoneBinding = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateManagementDnsZoneBinding(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateManagementDnsZoneBinding without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest() + ); + request.managementDnsZoneBinding ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest', + ['managementDnsZoneBinding', 'name'] + ); + request.managementDnsZoneBinding.name = defaultValue1; + const expectedHeaderRequestParams = `management_dns_zone_binding.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateManagementDnsZoneBinding = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateManagementDnsZoneBinding( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateManagementDnsZoneBinding with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest() + ); + request.managementDnsZoneBinding ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest', + ['managementDnsZoneBinding', 'name'] + ); + request.managementDnsZoneBinding.name = defaultValue1; + const expectedHeaderRequestParams = `management_dns_zone_binding.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateManagementDnsZoneBinding = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateManagementDnsZoneBinding(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateManagementDnsZoneBinding with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest() + ); + request.managementDnsZoneBinding ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest', + ['managementDnsZoneBinding', 'name'] + ); + request.managementDnsZoneBinding.name = defaultValue1; + const expectedHeaderRequestParams = `management_dns_zone_binding.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateManagementDnsZoneBinding = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateManagementDnsZoneBinding(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateManagementDnsZoneBindingProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkUpdateManagementDnsZoneBindingProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateManagementDnsZoneBindingProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateManagementDnsZoneBindingProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteManagementDnsZoneBinding', () => { + it('invokes deleteManagementDnsZoneBinding without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteManagementDnsZoneBinding = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteManagementDnsZoneBinding(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteManagementDnsZoneBinding without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteManagementDnsZoneBinding = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteManagementDnsZoneBinding( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteManagementDnsZoneBinding with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteManagementDnsZoneBinding = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteManagementDnsZoneBinding(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteManagementDnsZoneBinding with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteManagementDnsZoneBinding = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteManagementDnsZoneBinding(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteManagementDnsZoneBindingProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkDeleteManagementDnsZoneBindingProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteManagementDnsZoneBindingProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteManagementDnsZoneBindingProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('repairManagementDnsZoneBinding', () => { + it('invokes repairManagementDnsZoneBinding without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.repairManagementDnsZoneBinding = + stubLongRunningCall(expectedResponse); + const [operation] = await client.repairManagementDnsZoneBinding(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.repairManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.repairManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes repairManagementDnsZoneBinding without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.repairManagementDnsZoneBinding = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.repairManagementDnsZoneBinding( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.repairManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.repairManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes repairManagementDnsZoneBinding with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.repairManagementDnsZoneBinding = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.repairManagementDnsZoneBinding(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.repairManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.repairManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes repairManagementDnsZoneBinding with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.repairManagementDnsZoneBinding = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.repairManagementDnsZoneBinding(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.repairManagementDnsZoneBinding as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.repairManagementDnsZoneBinding as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkRepairManagementDnsZoneBindingProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkRepairManagementDnsZoneBindingProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkRepairManagementDnsZoneBindingProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkRepairManagementDnsZoneBindingProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createVmwareEngineNetwork', () => { + it('invokes createVmwareEngineNetwork without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createVmwareEngineNetwork = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createVmwareEngineNetwork(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createVmwareEngineNetwork without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createVmwareEngineNetwork = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createVmwareEngineNetwork( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createVmwareEngineNetwork with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createVmwareEngineNetwork = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.createVmwareEngineNetwork(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createVmwareEngineNetwork with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createVmwareEngineNetwork = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createVmwareEngineNetwork(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateVmwareEngineNetworkProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkCreateVmwareEngineNetworkProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateVmwareEngineNetworkProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateVmwareEngineNetworkProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateVmwareEngineNetwork', () => { + it('invokes updateVmwareEngineNetwork without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest() + ); + request.vmwareEngineNetwork ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest', + ['vmwareEngineNetwork', 'name'] + ); + request.vmwareEngineNetwork.name = defaultValue1; + const expectedHeaderRequestParams = `vmware_engine_network.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateVmwareEngineNetwork = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateVmwareEngineNetwork(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateVmwareEngineNetwork without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest() + ); + request.vmwareEngineNetwork ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest', + ['vmwareEngineNetwork', 'name'] + ); + request.vmwareEngineNetwork.name = defaultValue1; + const expectedHeaderRequestParams = `vmware_engine_network.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateVmwareEngineNetwork = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateVmwareEngineNetwork( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IVmwareEngineNetwork, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateVmwareEngineNetwork with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest() + ); + request.vmwareEngineNetwork ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest', + ['vmwareEngineNetwork', 'name'] + ); + request.vmwareEngineNetwork.name = defaultValue1; + const expectedHeaderRequestParams = `vmware_engine_network.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateVmwareEngineNetwork = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateVmwareEngineNetwork(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateVmwareEngineNetwork with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest() + ); + request.vmwareEngineNetwork ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest', + ['vmwareEngineNetwork', 'name'] + ); + request.vmwareEngineNetwork.name = defaultValue1; + const expectedHeaderRequestParams = `vmware_engine_network.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateVmwareEngineNetwork = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateVmwareEngineNetwork(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateVmwareEngineNetworkProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkUpdateVmwareEngineNetworkProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateVmwareEngineNetworkProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateVmwareEngineNetworkProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteVmwareEngineNetwork', () => { + it('invokes deleteVmwareEngineNetwork without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteVmwareEngineNetwork = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteVmwareEngineNetwork(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVmwareEngineNetwork without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteVmwareEngineNetwork = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteVmwareEngineNetwork( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVmwareEngineNetwork with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteVmwareEngineNetwork = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteVmwareEngineNetwork(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVmwareEngineNetwork with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteVmwareEngineNetwork = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteVmwareEngineNetwork(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVmwareEngineNetwork as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteVmwareEngineNetworkProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkDeleteVmwareEngineNetworkProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteVmwareEngineNetworkProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteVmwareEngineNetworkProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createPrivateConnection', () => { + it('invokes createPrivateConnection without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createPrivateConnection = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createPrivateConnection(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createPrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createPrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createPrivateConnection without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createPrivateConnection = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createPrivateConnection( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createPrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createPrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createPrivateConnection with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createPrivateConnection = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.createPrivateConnection(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createPrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createPrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createPrivateConnection with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createPrivateConnection = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createPrivateConnection(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createPrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createPrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreatePrivateConnectionProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkCreatePrivateConnectionProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreatePrivateConnectionProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreatePrivateConnectionProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updatePrivateConnection', () => { + it('invokes updatePrivateConnection without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest() + ); + request.privateConnection ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest', + ['privateConnection', 'name'] + ); + request.privateConnection.name = defaultValue1; + const expectedHeaderRequestParams = `private_connection.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updatePrivateConnection = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updatePrivateConnection(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updatePrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updatePrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updatePrivateConnection without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest() + ); + request.privateConnection ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest', + ['privateConnection', 'name'] + ); + request.privateConnection.name = defaultValue1; + const expectedHeaderRequestParams = `private_connection.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updatePrivateConnection = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updatePrivateConnection( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IPrivateConnection, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updatePrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updatePrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updatePrivateConnection with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest() + ); + request.privateConnection ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest', + ['privateConnection', 'name'] + ); + request.privateConnection.name = defaultValue1; + const expectedHeaderRequestParams = `private_connection.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updatePrivateConnection = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.updatePrivateConnection(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updatePrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updatePrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updatePrivateConnection with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest() + ); + request.privateConnection ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest', + ['privateConnection', 'name'] + ); + request.privateConnection.name = defaultValue1; + const expectedHeaderRequestParams = `private_connection.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updatePrivateConnection = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updatePrivateConnection(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updatePrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updatePrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdatePrivateConnectionProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkUpdatePrivateConnectionProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdatePrivateConnectionProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdatePrivateConnectionProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deletePrivateConnection', () => { + it('invokes deletePrivateConnection without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deletePrivateConnection = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deletePrivateConnection(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deletePrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deletePrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deletePrivateConnection without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deletePrivateConnection = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deletePrivateConnection( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deletePrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deletePrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deletePrivateConnection with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deletePrivateConnection = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deletePrivateConnection(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deletePrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deletePrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deletePrivateConnection with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deletePrivateConnection = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deletePrivateConnection(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deletePrivateConnection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deletePrivateConnection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeletePrivateConnectionProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkDeletePrivateConnectionProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeletePrivateConnectionProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeletePrivateConnectionProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('grantDnsBindPermission', () => { + it('invokes grantDnsBindPermission without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.grantDnsBindPermission = + stubLongRunningCall(expectedResponse); + const [operation] = await client.grantDnsBindPermission(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.grantDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.grantDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes grantDnsBindPermission without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.grantDnsBindPermission = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.grantDnsBindPermission( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.grantDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.grantDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes grantDnsBindPermission with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.grantDnsBindPermission = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.grantDnsBindPermission(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.grantDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.grantDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes grantDnsBindPermission with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.grantDnsBindPermission = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.grantDnsBindPermission(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.grantDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.grantDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkGrantDnsBindPermissionProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkGrantDnsBindPermissionProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkGrantDnsBindPermissionProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkGrantDnsBindPermissionProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('revokeDnsBindPermission', () => { + it('invokes revokeDnsBindPermission without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.revokeDnsBindPermission = + stubLongRunningCall(expectedResponse); + const [operation] = await client.revokeDnsBindPermission(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.revokeDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.revokeDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes revokeDnsBindPermission without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.revokeDnsBindPermission = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.revokeDnsBindPermission( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.vmwareengine.v1.IDnsBindPermission, + protos.google.cloud.vmwareengine.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.revokeDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.revokeDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes revokeDnsBindPermission with call error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.revokeDnsBindPermission = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.revokeDnsBindPermission(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.revokeDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.revokeDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes revokeDnsBindPermission with LRO error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.revokeDnsBindPermission = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.revokeDnsBindPermission(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.revokeDnsBindPermission as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.revokeDnsBindPermission as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkRevokeDnsBindPermissionProgress without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkRevokeDnsBindPermissionProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkRevokeDnsBindPermissionProgress with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkRevokeDnsBindPermissionProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listPrivateClouds', () => { + it('invokes listPrivateClouds without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + ]; + client.innerApiCalls.listPrivateClouds = stubSimpleCall(expectedResponse); + const [response] = await client.listPrivateClouds(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listPrivateClouds as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listPrivateClouds as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listPrivateClouds without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + ]; + client.innerApiCalls.listPrivateClouds = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listPrivateClouds( + request, + ( + err?: Error | null, + result?: protos.google.cloud.vmwareengine.v1.IPrivateCloud[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listPrivateClouds as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listPrivateClouds as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listPrivateClouds with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listPrivateClouds = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listPrivateClouds(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listPrivateClouds as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listPrivateClouds as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listPrivateCloudsStream without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + ]; + client.descriptors.page.listPrivateClouds.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listPrivateCloudsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.PrivateCloud[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.PrivateCloud) => { + 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.listPrivateClouds.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listPrivateClouds, request) + ); + assert( + (client.descriptors.page.listPrivateClouds.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listPrivateCloudsStream with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listPrivateClouds.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listPrivateCloudsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.PrivateCloud[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.PrivateCloud) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listPrivateClouds.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listPrivateClouds, request) + ); + assert( + (client.descriptors.page.listPrivateClouds.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listPrivateClouds without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PrivateCloud() + ), + ]; + client.descriptors.page.listPrivateClouds.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.vmwareengine.v1.IPrivateCloud[] = []; + const iterable = client.listPrivateCloudsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listPrivateClouds.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listPrivateClouds.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listPrivateClouds with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listPrivateClouds.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listPrivateCloudsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.vmwareengine.v1.IPrivateCloud[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listPrivateClouds.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listPrivateClouds.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listClusters', () => { + it('invokes listClusters without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListClustersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + ]; + client.innerApiCalls.listClusters = stubSimpleCall(expectedResponse); + const [response] = await client.listClusters(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listClusters without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListClustersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + ]; + client.innerApiCalls.listClusters = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listClusters( + request, + ( + err?: Error | null, + result?: protos.google.cloud.vmwareengine.v1.ICluster[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listClusters with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListClustersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listClusters = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listClusters(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listClustersStream without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListClustersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + ]; + client.descriptors.page.listClusters.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listClustersStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.Cluster[] = []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.Cluster) => { + 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.listClusters.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listClusters, request) + ); + assert( + (client.descriptors.page.listClusters.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listClustersStream with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListClustersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listClusters.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listClustersStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.Cluster[] = []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.Cluster) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listClusters.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listClusters, request) + ); + assert( + (client.descriptors.page.listClusters.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listClusters without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListClustersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.Cluster() + ), + ]; + client.descriptors.page.listClusters.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.vmwareengine.v1.ICluster[] = []; + const iterable = client.listClustersAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listClusters.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listClusters.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listClusters with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListClustersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listClusters.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listClustersAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.vmwareengine.v1.ICluster[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listClusters.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listClusters.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listNodes', () => { + it('invokes listNodes without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + ]; + client.innerApiCalls.listNodes = stubSimpleCall(expectedResponse); + const [response] = await client.listNodes(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listNodes as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNodes as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNodes without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + ]; + client.innerApiCalls.listNodes = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listNodes( + request, + ( + err?: Error | null, + result?: protos.google.cloud.vmwareengine.v1.INode[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listNodes as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNodes as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNodes with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listNodes = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.listNodes(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listNodes as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNodes as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNodesStream without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + ]; + client.descriptors.page.listNodes.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listNodesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.Node[] = []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.Node) => { + 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.listNodes.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listNodes, request) + ); + assert( + (client.descriptors.page.listNodes.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listNodesStream with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listNodes.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listNodesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.Node[] = []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.Node) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listNodes.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listNodes, request) + ); + assert( + (client.descriptors.page.listNodes.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listNodes without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Node()), + ]; + client.descriptors.page.listNodes.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.vmwareengine.v1.INode[] = []; + const iterable = client.listNodesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listNodes.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.listNodes.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listNodes with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listNodes.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listNodesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.vmwareengine.v1.INode[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listNodes.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.listNodes.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listExternalAddresses', () => { + it('invokes listExternalAddresses without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAddressesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + ]; + client.innerApiCalls.listExternalAddresses = + stubSimpleCall(expectedResponse); + const [response] = await client.listExternalAddresses(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listExternalAddresses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listExternalAddresses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listExternalAddresses without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAddressesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + ]; + client.innerApiCalls.listExternalAddresses = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listExternalAddresses( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.vmwareengine.v1.IExternalAddress[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listExternalAddresses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listExternalAddresses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listExternalAddresses with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAddressesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listExternalAddresses = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listExternalAddresses(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.listExternalAddresses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listExternalAddresses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listExternalAddressesStream without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAddressesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + ]; + client.descriptors.page.listExternalAddresses.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listExternalAddressesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.ExternalAddress[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.ExternalAddress) => { + 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.listExternalAddresses + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listExternalAddresses, request) + ); + assert( + ( + client.descriptors.page.listExternalAddresses + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listExternalAddressesStream with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAddressesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listExternalAddresses.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listExternalAddressesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.ExternalAddress[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.ExternalAddress) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listExternalAddresses + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listExternalAddresses, request) + ); + assert( + ( + client.descriptors.page.listExternalAddresses + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listExternalAddresses without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAddressesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + ]; + client.descriptors.page.listExternalAddresses.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.vmwareengine.v1.IExternalAddress[] = + []; + const iterable = client.listExternalAddressesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listExternalAddresses + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listExternalAddresses + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listExternalAddresses with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAddressesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listExternalAddresses.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listExternalAddressesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.vmwareengine.v1.IExternalAddress[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listExternalAddresses + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listExternalAddresses + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('fetchNetworkPolicyExternalAddresses', () => { + it('invokes fetchNetworkPolicyExternalAddresses without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest', + ['networkPolicy'] + ); + request.networkPolicy = defaultValue1; + const expectedHeaderRequestParams = `network_policy=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + ]; + client.innerApiCalls.fetchNetworkPolicyExternalAddresses = + stubSimpleCall(expectedResponse); + const [response] = + await client.fetchNetworkPolicyExternalAddresses(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.fetchNetworkPolicyExternalAddresses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchNetworkPolicyExternalAddresses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchNetworkPolicyExternalAddresses without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest', + ['networkPolicy'] + ); + request.networkPolicy = defaultValue1; + const expectedHeaderRequestParams = `network_policy=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + ]; + client.innerApiCalls.fetchNetworkPolicyExternalAddresses = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.fetchNetworkPolicyExternalAddresses( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.vmwareengine.v1.IExternalAddress[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.fetchNetworkPolicyExternalAddresses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchNetworkPolicyExternalAddresses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchNetworkPolicyExternalAddresses with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest', + ['networkPolicy'] + ); + request.networkPolicy = defaultValue1; + const expectedHeaderRequestParams = `network_policy=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.fetchNetworkPolicyExternalAddresses = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.fetchNetworkPolicyExternalAddresses(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.fetchNetworkPolicyExternalAddresses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchNetworkPolicyExternalAddresses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchNetworkPolicyExternalAddressesStream without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest', + ['networkPolicy'] + ); + request.networkPolicy = defaultValue1; + const expectedHeaderRequestParams = `network_policy=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + ]; + client.descriptors.page.fetchNetworkPolicyExternalAddresses.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.fetchNetworkPolicyExternalAddressesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.ExternalAddress[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.ExternalAddress) => { + 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.fetchNetworkPolicyExternalAddresses + .createStream as SinonStub + ) + .getCall(0) + .calledWith( + client.innerApiCalls.fetchNetworkPolicyExternalAddresses, + request + ) + ); + assert( + ( + client.descriptors.page.fetchNetworkPolicyExternalAddresses + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes fetchNetworkPolicyExternalAddressesStream with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest', + ['networkPolicy'] + ); + request.networkPolicy = defaultValue1; + const expectedHeaderRequestParams = `network_policy=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.fetchNetworkPolicyExternalAddresses.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.fetchNetworkPolicyExternalAddressesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.ExternalAddress[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.ExternalAddress) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.fetchNetworkPolicyExternalAddresses + .createStream as SinonStub + ) + .getCall(0) + .calledWith( + client.innerApiCalls.fetchNetworkPolicyExternalAddresses, + request + ) + ); + assert( + ( + client.descriptors.page.fetchNetworkPolicyExternalAddresses + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with fetchNetworkPolicyExternalAddresses without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest', + ['networkPolicy'] + ); + request.networkPolicy = defaultValue1; + const expectedHeaderRequestParams = `network_policy=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAddress() + ), + ]; + client.descriptors.page.fetchNetworkPolicyExternalAddresses.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.vmwareengine.v1.IExternalAddress[] = + []; + const iterable = client.fetchNetworkPolicyExternalAddressesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.fetchNetworkPolicyExternalAddresses + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.fetchNetworkPolicyExternalAddresses + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with fetchNetworkPolicyExternalAddresses with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest', + ['networkPolicy'] + ); + request.networkPolicy = defaultValue1; + const expectedHeaderRequestParams = `network_policy=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.fetchNetworkPolicyExternalAddresses.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.fetchNetworkPolicyExternalAddressesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.vmwareengine.v1.IExternalAddress[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.fetchNetworkPolicyExternalAddresses + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.fetchNetworkPolicyExternalAddresses + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listSubnets', () => { + it('invokes listSubnets without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + ]; + client.innerApiCalls.listSubnets = stubSimpleCall(expectedResponse); + const [response] = await client.listSubnets(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listSubnets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listSubnets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listSubnets without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + ]; + client.innerApiCalls.listSubnets = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listSubnets( + request, + ( + err?: Error | null, + result?: protos.google.cloud.vmwareengine.v1.ISubnet[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listSubnets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listSubnets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listSubnets with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listSubnets = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listSubnets(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listSubnets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listSubnets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listSubnetsStream without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + ]; + client.descriptors.page.listSubnets.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listSubnetsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.Subnet[] = []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.Subnet) => { + 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.listSubnets.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listSubnets, request) + ); + assert( + (client.descriptors.page.listSubnets.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listSubnetsStream with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listSubnets.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listSubnetsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.Subnet[] = []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.Subnet) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listSubnets.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listSubnets, request) + ); + assert( + (client.descriptors.page.listSubnets.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listSubnets without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + ]; + client.descriptors.page.listSubnets.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.vmwareengine.v1.ISubnet[] = []; + const iterable = client.listSubnetsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listSubnets.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert( + (client.descriptors.page.listSubnets.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listSubnets with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listSubnets.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listSubnetsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.vmwareengine.v1.ISubnet[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listSubnets.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert( + (client.descriptors.page.listSubnets.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listExternalAccessRules', () => { + it('invokes listExternalAccessRules without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + ]; + client.innerApiCalls.listExternalAccessRules = + stubSimpleCall(expectedResponse); + const [response] = await client.listExternalAccessRules(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listExternalAccessRules as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listExternalAccessRules as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listExternalAccessRules without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + ]; + client.innerApiCalls.listExternalAccessRules = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listExternalAccessRules( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.vmwareengine.v1.IExternalAccessRule[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listExternalAccessRules as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listExternalAccessRules as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listExternalAccessRules with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listExternalAccessRules = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listExternalAccessRules(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.listExternalAccessRules as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listExternalAccessRules as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listExternalAccessRulesStream without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + ]; + client.descriptors.page.listExternalAccessRules.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listExternalAccessRulesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.ExternalAccessRule[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.vmwareengine.v1.ExternalAccessRule + ) => { + 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.listExternalAccessRules + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listExternalAccessRules, request) + ); + assert( + ( + client.descriptors.page.listExternalAccessRules + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listExternalAccessRulesStream with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listExternalAccessRules.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listExternalAccessRulesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.ExternalAccessRule[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.vmwareengine.v1.ExternalAccessRule + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listExternalAccessRules + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listExternalAccessRules, request) + ); + assert( + ( + client.descriptors.page.listExternalAccessRules + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listExternalAccessRules without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ExternalAccessRule() + ), + ]; + client.descriptors.page.listExternalAccessRules.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.vmwareengine.v1.IExternalAccessRule[] = + []; + const iterable = client.listExternalAccessRulesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listExternalAccessRules + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listExternalAccessRules + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listExternalAccessRules with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listExternalAccessRules.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listExternalAccessRulesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.vmwareengine.v1.IExternalAccessRule[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listExternalAccessRules + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listExternalAccessRules + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listLoggingServers', () => { + it('invokes listLoggingServers without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListLoggingServersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListLoggingServersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + ]; + client.innerApiCalls.listLoggingServers = + stubSimpleCall(expectedResponse); + const [response] = await client.listLoggingServers(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listLoggingServers as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listLoggingServers as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listLoggingServers without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListLoggingServersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListLoggingServersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + ]; + client.innerApiCalls.listLoggingServers = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listLoggingServers( + request, + ( + err?: Error | null, + result?: protos.google.cloud.vmwareengine.v1.ILoggingServer[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listLoggingServers as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listLoggingServers as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listLoggingServers with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListLoggingServersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListLoggingServersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listLoggingServers = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listLoggingServers(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listLoggingServers as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listLoggingServers as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listLoggingServersStream without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListLoggingServersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListLoggingServersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + ]; + client.descriptors.page.listLoggingServers.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listLoggingServersStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.LoggingServer[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.LoggingServer) => { + 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.listLoggingServers.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listLoggingServers, request) + ); + assert( + (client.descriptors.page.listLoggingServers.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listLoggingServersStream with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListLoggingServersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListLoggingServersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listLoggingServers.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listLoggingServersStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.vmwareengine.v1.LoggingServer[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.vmwareengine.v1.LoggingServer) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listLoggingServers.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listLoggingServers, request) + ); + assert( + (client.descriptors.page.listLoggingServers.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listLoggingServers without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListLoggingServersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListLoggingServersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.LoggingServer() + ), + ]; + client.descriptors.page.listLoggingServers.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.vmwareengine.v1.ILoggingServer[] = + []; + const iterable = client.listLoggingServersAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listLoggingServers.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listLoggingServers.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listLoggingServers with error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListLoggingServersRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListLoggingServersRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listLoggingServers.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLoggingServersAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.vmwareengine.v1.ILoggingServer[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listLoggingServers.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listLoggingServers.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listNodeTypes', () => { + it('invokes listNodeTypes without error', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.NodeType() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.NodeType() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.NodeType() + ), + ]; + client.innerApiCalls.listNodeTypes = stubSimpleCall(expectedResponse); + const [response] = await client.listNodeTypes(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listNodeTypes as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNodeTypes as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNodeTypes without error using callback', async () => { + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), ]; - client.innerApiCalls.listPrivateClouds = + client.innerApiCalls.listNodeTypes = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listPrivateClouds( + client.listNodeTypes( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.IPrivateCloud[] | null + result?: protos.google.cloud.vmwareengine.v1.INodeType[] | null ) => { if (err) { reject(err); @@ -5594,81 +13067,80 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listPrivateClouds as SinonStub + client.innerApiCalls.listNodeTypes as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listPrivateClouds as SinonStub + client.innerApiCalls.listNodeTypes as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listPrivateClouds with error', async () => { + it('invokes listNodeTypes with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listPrivateClouds = stubSimpleCall( + client.innerApiCalls.listNodeTypes = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listPrivateClouds(request), expectedError); + await assert.rejects(client.listNodeTypes(request), expectedError); const actualRequest = ( - client.innerApiCalls.listPrivateClouds as SinonStub + client.innerApiCalls.listNodeTypes as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listPrivateClouds as SinonStub + client.innerApiCalls.listNodeTypes as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listPrivateCloudsStream without error', async () => { + it('invokes listNodeTypesStream without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), ]; - client.descriptors.page.listPrivateClouds.createStream = + client.descriptors.page.listNodeTypes.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listPrivateCloudsStream(request); + const stream = client.listNodeTypesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.PrivateCloud[] = - []; + const responses: protos.google.cloud.vmwareengine.v1.NodeType[] = []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.PrivateCloud) => { + (response: protos.google.cloud.vmwareengine.v1.NodeType) => { responses.push(response); } ); @@ -5682,12 +13154,12 @@ describe('v1.VmwareEngineClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listPrivateClouds.createStream as SinonStub) + (client.descriptors.page.listNodeTypes.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listPrivateClouds, request) + .calledWith(client.innerApiCalls.listNodeTypes, request) ); assert( - (client.descriptors.page.listPrivateClouds.createStream as SinonStub) + (client.descriptors.page.listNodeTypes.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5695,31 +13167,30 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('invokes listPrivateCloudsStream with error', async () => { + it('invokes listNodeTypesStream with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listPrivateClouds.createStream = + client.descriptors.page.listNodeTypes.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listPrivateCloudsStream(request); + const stream = client.listNodeTypesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.PrivateCloud[] = - []; + const responses: protos.google.cloud.vmwareengine.v1.NodeType[] = []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.PrivateCloud) => { + (response: protos.google.cloud.vmwareengine.v1.NodeType) => { responses.push(response); } ); @@ -5732,12 +13203,12 @@ describe('v1.VmwareEngineClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listPrivateClouds.createStream as SinonStub) + (client.descriptors.page.listNodeTypes.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listPrivateClouds, request) + .calledWith(client.innerApiCalls.listNodeTypes, request) ); assert( - (client.descriptors.page.listPrivateClouds.createStream as SinonStub) + (client.descriptors.page.listNodeTypes.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5745,48 +13216,48 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listPrivateClouds without error', async () => { + it('uses async iteration with listNodeTypes without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.PrivateCloud() + new protos.google.cloud.vmwareengine.v1.NodeType() ), ]; - client.descriptors.page.listPrivateClouds.asyncIterate = + client.descriptors.page.listNodeTypes.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.vmwareengine.v1.IPrivateCloud[] = []; - const iterable = client.listPrivateCloudsAsync(request); + const responses: protos.google.cloud.vmwareengine.v1.INodeType[] = []; + const iterable = client.listNodeTypesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listPrivateClouds.asyncIterate as SinonStub + client.descriptors.page.listNodeTypes.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listPrivateClouds.asyncIterate as SinonStub) + (client.descriptors.page.listNodeTypes.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5794,40 +13265,39 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listPrivateClouds with error', async () => { + it('uses async iteration with listNodeTypes with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest() + new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest', + '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listPrivateClouds.asyncIterate = + client.descriptors.page.listNodeTypes.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPrivateCloudsAsync(request); + const iterable = client.listNodeTypesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.vmwareengine.v1.IPrivateCloud[] = - []; + const responses: protos.google.cloud.vmwareengine.v1.INodeType[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listPrivateClouds.asyncIterate as SinonStub + client.descriptors.page.listNodeTypes.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listPrivateClouds.asyncIterate as SinonStub) + (client.descriptors.page.listNodeTypes.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5836,80 +13306,83 @@ describe('v1.VmwareEngineClient', () => { }); }); - describe('listClusters', () => { - it('invokes listClusters without error', async () => { + describe('listNetworkPeerings', () => { + it('invokes listNetworkPeerings without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListClustersRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), ]; - client.innerApiCalls.listClusters = stubSimpleCall(expectedResponse); - const [response] = await client.listClusters(request); + client.innerApiCalls.listNetworkPeerings = + stubSimpleCall(expectedResponse); + const [response] = await client.listNetworkPeerings(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listClusters as SinonStub + client.innerApiCalls.listNetworkPeerings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listClusters as SinonStub + client.innerApiCalls.listNetworkPeerings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listClusters without error using callback', async () => { + it('invokes listNetworkPeerings without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListClustersRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), ]; - client.innerApiCalls.listClusters = + client.innerApiCalls.listNetworkPeerings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listClusters( + client.listNetworkPeerings( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.ICluster[] | null + result?: + | protos.google.cloud.vmwareengine.v1.INetworkPeering[] + | null ) => { if (err) { reject(err); @@ -5922,80 +13395,81 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listClusters as SinonStub + client.innerApiCalls.listNetworkPeerings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listClusters as SinonStub + client.innerApiCalls.listNetworkPeerings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listClusters with error', async () => { + it('invokes listNetworkPeerings with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListClustersRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listClusters = stubSimpleCall( + client.innerApiCalls.listNetworkPeerings = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listClusters(request), expectedError); + await assert.rejects(client.listNetworkPeerings(request), expectedError); const actualRequest = ( - client.innerApiCalls.listClusters as SinonStub + client.innerApiCalls.listNetworkPeerings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listClusters as SinonStub + client.innerApiCalls.listNetworkPeerings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listClustersStream without error', async () => { + it('invokes listNetworkPeeringsStream without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListClustersRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), ]; - client.descriptors.page.listClusters.createStream = + client.descriptors.page.listNetworkPeerings.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listClustersStream(request); + const stream = client.listNetworkPeeringsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.Cluster[] = []; + const responses: protos.google.cloud.vmwareengine.v1.NetworkPeering[] = + []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.Cluster) => { + (response: protos.google.cloud.vmwareengine.v1.NetworkPeering) => { responses.push(response); } ); @@ -6009,12 +13483,12 @@ describe('v1.VmwareEngineClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listClusters.createStream as SinonStub) + (client.descriptors.page.listNetworkPeerings.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listClusters, request) + .calledWith(client.innerApiCalls.listNetworkPeerings, request) ); assert( - (client.descriptors.page.listClusters.createStream as SinonStub) + (client.descriptors.page.listNetworkPeerings.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6022,32 +13496,31 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('invokes listClustersStream with error', async () => { + it('invokes listNetworkPeeringsStream with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListClustersRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listClusters.createStream = stubPageStreamingCall( - undefined, - expectedError - ); - const stream = client.listClustersStream(request); + client.descriptors.page.listNetworkPeerings.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listNetworkPeeringsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.Cluster[] = []; + const responses: protos.google.cloud.vmwareengine.v1.NetworkPeering[] = + []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.Cluster) => { + (response: protos.google.cloud.vmwareengine.v1.NetworkPeering) => { responses.push(response); } ); @@ -6060,12 +13533,12 @@ describe('v1.VmwareEngineClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listClusters.createStream as SinonStub) + (client.descriptors.page.listNetworkPeerings.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listClusters, request) + .calledWith(client.innerApiCalls.listNetworkPeerings, request) ); assert( - (client.descriptors.page.listClusters.createStream as SinonStub) + (client.descriptors.page.listNetworkPeerings.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6073,48 +13546,49 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listClusters without error', async () => { + it('uses async iteration with listNetworkPeerings without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListClustersRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.Cluster() + new protos.google.cloud.vmwareengine.v1.NetworkPeering() ), ]; - client.descriptors.page.listClusters.asyncIterate = + client.descriptors.page.listNetworkPeerings.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.vmwareengine.v1.ICluster[] = []; - const iterable = client.listClustersAsync(request); + const responses: protos.google.cloud.vmwareengine.v1.INetworkPeering[] = + []; + const iterable = client.listNetworkPeeringsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listClusters.asyncIterate as SinonStub + client.descriptors.page.listNetworkPeerings.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listClusters.asyncIterate as SinonStub) + (client.descriptors.page.listNetworkPeerings.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6122,39 +13596,40 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listClusters with error', async () => { + it('uses async iteration with listNetworkPeerings with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListClustersRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListClustersRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listClusters.asyncIterate = + client.descriptors.page.listNetworkPeerings.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listClustersAsync(request); + const iterable = client.listNetworkPeeringsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.vmwareengine.v1.ICluster[] = []; + const responses: protos.google.cloud.vmwareengine.v1.INetworkPeering[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listClusters.asyncIterate as SinonStub + client.descriptors.page.listNetworkPeerings.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listClusters.asyncIterate as SinonStub) + (client.descriptors.page.listNetworkPeerings.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6163,68 +13638,80 @@ describe('v1.VmwareEngineClient', () => { }); }); - describe('listSubnets', () => { - it('invokes listSubnets without error', async () => { + describe('listPeeringRoutes', () => { + it('invokes listPeeringRoutes without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + new protos.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + '.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), ]; - client.innerApiCalls.listSubnets = stubSimpleCall(expectedResponse); - const [response] = await client.listSubnets(request); + client.innerApiCalls.listPeeringRoutes = stubSimpleCall(expectedResponse); + const [response] = await client.listPeeringRoutes(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listSubnets as SinonStub + client.innerApiCalls.listPeeringRoutes as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSubnets as SinonStub + client.innerApiCalls.listPeeringRoutes as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSubnets without error using callback', async () => { + it('invokes listPeeringRoutes without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + new protos.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + '.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), ]; - client.innerApiCalls.listSubnets = + client.innerApiCalls.listPeeringRoutes = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listSubnets( + client.listPeeringRoutes( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.ISubnet[] | null + result?: protos.google.cloud.vmwareengine.v1.IPeeringRoute[] | null ) => { if (err) { reject(err); @@ -6237,74 +13724,81 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listSubnets as SinonStub + client.innerApiCalls.listPeeringRoutes as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSubnets as SinonStub + client.innerApiCalls.listPeeringRoutes as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSubnets with error', async () => { + it('invokes listPeeringRoutes with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + new protos.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + '.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listSubnets = stubSimpleCall( + client.innerApiCalls.listPeeringRoutes = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listSubnets(request), expectedError); + await assert.rejects(client.listPeeringRoutes(request), expectedError); const actualRequest = ( - client.innerApiCalls.listSubnets as SinonStub + client.innerApiCalls.listPeeringRoutes as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSubnets as SinonStub + client.innerApiCalls.listPeeringRoutes as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSubnetsStream without error', async () => { + it('invokes listPeeringRoutesStream without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + new protos.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + '.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest', ['parent'] ); request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), ]; - client.descriptors.page.listSubnets.createStream = + client.descriptors.page.listPeeringRoutes.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listSubnetsStream(request); + const stream = client.listPeeringRoutesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.Subnet[] = []; + const responses: protos.google.cloud.vmwareengine.v1.PeeringRoute[] = + []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.Subnet) => { + (response: protos.google.cloud.vmwareengine.v1.PeeringRoute) => { responses.push(response); } ); @@ -6318,12 +13812,12 @@ describe('v1.VmwareEngineClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listSubnets.createStream as SinonStub) + (client.descriptors.page.listPeeringRoutes.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listSubnets, request) + .calledWith(client.innerApiCalls.listPeeringRoutes, request) ); assert( - (client.descriptors.page.listSubnets.createStream as SinonStub) + (client.descriptors.page.listPeeringRoutes.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6331,32 +13825,31 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('invokes listSubnetsStream with error', async () => { + it('invokes listPeeringRoutesStream with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + new protos.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + '.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listSubnets.createStream = stubPageStreamingCall( - undefined, - expectedError - ); - const stream = client.listSubnetsStream(request); + client.descriptors.page.listPeeringRoutes.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listPeeringRoutesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.Subnet[] = []; + const responses: protos.google.cloud.vmwareengine.v1.PeeringRoute[] = + []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.Subnet) => { + (response: protos.google.cloud.vmwareengine.v1.PeeringRoute) => { responses.push(response); } ); @@ -6369,12 +13862,12 @@ describe('v1.VmwareEngineClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listSubnets.createStream as SinonStub) + (client.descriptors.page.listPeeringRoutes.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listSubnets, request) + .calledWith(client.innerApiCalls.listPeeringRoutes, request) ); assert( - (client.descriptors.page.listSubnets.createStream as SinonStub) + (client.descriptors.page.listPeeringRoutes.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6382,42 +13875,48 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listSubnets without error', async () => { + it('uses async iteration with listPeeringRoutes without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + new protos.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + '.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), - generateSampleMessage(new protos.google.cloud.vmwareengine.v1.Subnet()), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), + generateSampleMessage( + new protos.google.cloud.vmwareengine.v1.PeeringRoute() + ), ]; - client.descriptors.page.listSubnets.asyncIterate = + client.descriptors.page.listPeeringRoutes.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.vmwareengine.v1.ISubnet[] = []; - const iterable = client.listSubnetsAsync(request); + const responses: protos.google.cloud.vmwareengine.v1.IPeeringRoute[] = []; + const iterable = client.listPeeringRoutesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listSubnets.asyncIterate as SinonStub).getCall( - 0 - ).args[1], + ( + client.descriptors.page.listPeeringRoutes.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listSubnets.asyncIterate as SinonStub) + (client.descriptors.page.listPeeringRoutes.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6425,41 +13924,40 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listSubnets with error', async () => { + it('uses async iteration with listPeeringRoutes with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListSubnetsRequest() + new protos.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListSubnetsRequest', + '.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listSubnets.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); - const iterable = client.listSubnetsAsync(request); + client.descriptors.page.listPeeringRoutes.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listPeeringRoutesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.vmwareengine.v1.ISubnet[] = []; + const responses: protos.google.cloud.vmwareengine.v1.IPeeringRoute[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listSubnets.asyncIterate as SinonStub).getCall( - 0 - ).args[1], + ( + client.descriptors.page.listPeeringRoutes.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listSubnets.asyncIterate as SinonStub) + (client.descriptors.page.listPeeringRoutes.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6468,80 +13966,83 @@ describe('v1.VmwareEngineClient', () => { }); }); - describe('listNodeTypes', () => { - it('invokes listNodeTypes without error', async () => { + describe('listHcxActivationKeys', () => { + it('invokes listHcxActivationKeys without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', + '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), ]; - client.innerApiCalls.listNodeTypes = stubSimpleCall(expectedResponse); - const [response] = await client.listNodeTypes(request); + client.innerApiCalls.listHcxActivationKeys = + stubSimpleCall(expectedResponse); + const [response] = await client.listHcxActivationKeys(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listNodeTypes as SinonStub + client.innerApiCalls.listHcxActivationKeys as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNodeTypes as SinonStub + client.innerApiCalls.listHcxActivationKeys as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNodeTypes without error using callback', async () => { + it('invokes listHcxActivationKeys without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', + '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), ]; - client.innerApiCalls.listNodeTypes = + client.innerApiCalls.listHcxActivationKeys = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listNodeTypes( + client.listHcxActivationKeys( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.INodeType[] | null + result?: + | protos.google.cloud.vmwareengine.v1.IHcxActivationKey[] + | null ) => { if (err) { reject(err); @@ -6554,80 +14055,84 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listNodeTypes as SinonStub + client.innerApiCalls.listHcxActivationKeys as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNodeTypes as SinonStub + client.innerApiCalls.listHcxActivationKeys as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNodeTypes with error', async () => { + it('invokes listHcxActivationKeys with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', + '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listNodeTypes = stubSimpleCall( + client.innerApiCalls.listHcxActivationKeys = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listNodeTypes(request), expectedError); + await assert.rejects( + client.listHcxActivationKeys(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listNodeTypes as SinonStub + client.innerApiCalls.listHcxActivationKeys as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNodeTypes as SinonStub + client.innerApiCalls.listHcxActivationKeys as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNodeTypesStream without error', async () => { + it('invokes listHcxActivationKeysStream without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', + '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), ]; - client.descriptors.page.listNodeTypes.createStream = + client.descriptors.page.listHcxActivationKeys.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listNodeTypesStream(request); + const stream = client.listHcxActivationKeysStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.NodeType[] = []; + const responses: protos.google.cloud.vmwareengine.v1.HcxActivationKey[] = + []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.NodeType) => { + (response: protos.google.cloud.vmwareengine.v1.HcxActivationKey) => { responses.push(response); } ); @@ -6641,12 +14146,18 @@ describe('v1.VmwareEngineClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listNodeTypes.createStream as SinonStub) + ( + client.descriptors.page.listHcxActivationKeys + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listNodeTypes, request) + .calledWith(client.innerApiCalls.listHcxActivationKeys, request) ); assert( - (client.descriptors.page.listNodeTypes.createStream as SinonStub) + ( + client.descriptors.page.listHcxActivationKeys + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6654,30 +14165,31 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('invokes listNodeTypesStream with error', async () => { + it('invokes listHcxActivationKeysStream with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', + '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listNodeTypes.createStream = + client.descriptors.page.listHcxActivationKeys.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listNodeTypesStream(request); + const stream = client.listHcxActivationKeysStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.NodeType[] = []; + const responses: protos.google.cloud.vmwareengine.v1.HcxActivationKey[] = + []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.NodeType) => { + (response: protos.google.cloud.vmwareengine.v1.HcxActivationKey) => { responses.push(response); } ); @@ -6690,12 +14202,18 @@ describe('v1.VmwareEngineClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listNodeTypes.createStream as SinonStub) + ( + client.descriptors.page.listHcxActivationKeys + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listNodeTypes, request) + .calledWith(client.innerApiCalls.listHcxActivationKeys, request) ); assert( - (client.descriptors.page.listNodeTypes.createStream as SinonStub) + ( + client.descriptors.page.listHcxActivationKeys + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6703,48 +14221,53 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listNodeTypes without error', async () => { + it('uses async iteration with listHcxActivationKeys without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', + '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NodeType() + new protos.google.cloud.vmwareengine.v1.HcxActivationKey() ), ]; - client.descriptors.page.listNodeTypes.asyncIterate = + client.descriptors.page.listHcxActivationKeys.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.vmwareengine.v1.INodeType[] = []; - const iterable = client.listNodeTypesAsync(request); + const responses: protos.google.cloud.vmwareengine.v1.IHcxActivationKey[] = + []; + const iterable = client.listHcxActivationKeysAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listNodeTypes.asyncIterate as SinonStub + client.descriptors.page.listHcxActivationKeys + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listNodeTypes.asyncIterate as SinonStub) + ( + client.descriptors.page.listHcxActivationKeys + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6752,39 +14275,44 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listNodeTypes with error', async () => { + it('uses async iteration with listHcxActivationKeys with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNodeTypesRequest() + new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNodeTypesRequest', + '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listNodeTypes.asyncIterate = + client.descriptors.page.listHcxActivationKeys.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listNodeTypesAsync(request); + const iterable = client.listHcxActivationKeysAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.vmwareengine.v1.INodeType[] = []; + const responses: protos.google.cloud.vmwareengine.v1.IHcxActivationKey[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listNodeTypes.asyncIterate as SinonStub + client.descriptors.page.listHcxActivationKeys + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listNodeTypes.asyncIterate as SinonStub) + ( + client.descriptors.page.listHcxActivationKeys + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6792,84 +14320,82 @@ describe('v1.VmwareEngineClient', () => { ); }); }); - - describe('listHcxActivationKeys', () => { - it('invokes listHcxActivationKeys without error', async () => { + + describe('listNetworkPolicies', () => { + it('invokes listNetworkPolicies without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), ]; - client.innerApiCalls.listHcxActivationKeys = + client.innerApiCalls.listNetworkPolicies = stubSimpleCall(expectedResponse); - const [response] = await client.listHcxActivationKeys(request); + const [response] = await client.listNetworkPolicies(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHcxActivationKeys as SinonStub + client.innerApiCalls.listNetworkPolicies as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHcxActivationKeys as SinonStub + client.innerApiCalls.listNetworkPolicies as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHcxActivationKeys without error using callback', async () => { + it('invokes listNetworkPolicies without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), ]; - client.innerApiCalls.listHcxActivationKeys = + client.innerApiCalls.listNetworkPolicies = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listHcxActivationKeys( + client.listNetworkPolicies( request, ( err?: Error | null, - result?: - | protos.google.cloud.vmwareengine.v1.IHcxActivationKey[] - | null + result?: protos.google.cloud.vmwareengine.v1.INetworkPolicy[] | null ) => { if (err) { reject(err); @@ -6882,84 +14408,81 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHcxActivationKeys as SinonStub + client.innerApiCalls.listNetworkPolicies as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHcxActivationKeys as SinonStub + client.innerApiCalls.listNetworkPolicies as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHcxActivationKeys with error', async () => { + it('invokes listNetworkPolicies with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listHcxActivationKeys = stubSimpleCall( + client.innerApiCalls.listNetworkPolicies = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listHcxActivationKeys(request), - expectedError - ); + await assert.rejects(client.listNetworkPolicies(request), expectedError); const actualRequest = ( - client.innerApiCalls.listHcxActivationKeys as SinonStub + client.innerApiCalls.listNetworkPolicies as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHcxActivationKeys as SinonStub + client.innerApiCalls.listNetworkPolicies as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHcxActivationKeysStream without error', async () => { + it('invokes listNetworkPoliciesStream without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), ]; - client.descriptors.page.listHcxActivationKeys.createStream = + client.descriptors.page.listNetworkPolicies.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listHcxActivationKeysStream(request); + const stream = client.listNetworkPoliciesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.HcxActivationKey[] = + const responses: protos.google.cloud.vmwareengine.v1.NetworkPolicy[] = []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.HcxActivationKey) => { + (response: protos.google.cloud.vmwareengine.v1.NetworkPolicy) => { responses.push(response); } ); @@ -6973,18 +14496,12 @@ describe('v1.VmwareEngineClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listHcxActivationKeys - .createStream as SinonStub - ) + (client.descriptors.page.listNetworkPolicies.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listHcxActivationKeys, request) + .calledWith(client.innerApiCalls.listNetworkPolicies, request) ); assert( - ( - client.descriptors.page.listHcxActivationKeys - .createStream as SinonStub - ) + (client.descriptors.page.listNetworkPolicies.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -6992,31 +14509,31 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('invokes listHcxActivationKeysStream with error', async () => { + it('invokes listNetworkPoliciesStream with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHcxActivationKeys.createStream = + client.descriptors.page.listNetworkPolicies.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listHcxActivationKeysStream(request); + const stream = client.listNetworkPoliciesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.HcxActivationKey[] = + const responses: protos.google.cloud.vmwareengine.v1.NetworkPolicy[] = []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.HcxActivationKey) => { + (response: protos.google.cloud.vmwareengine.v1.NetworkPolicy) => { responses.push(response); } ); @@ -7029,18 +14546,12 @@ describe('v1.VmwareEngineClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listHcxActivationKeys - .createStream as SinonStub - ) + (client.descriptors.page.listNetworkPolicies.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listHcxActivationKeys, request) + .calledWith(client.innerApiCalls.listNetworkPolicies, request) ); assert( - ( - client.descriptors.page.listHcxActivationKeys - .createStream as SinonStub - ) + (client.descriptors.page.listNetworkPolicies.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -7048,53 +14559,49 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listHcxActivationKeys without error', async () => { + it('uses async iteration with listNetworkPolicies without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.HcxActivationKey() + new protos.google.cloud.vmwareengine.v1.NetworkPolicy() ), ]; - client.descriptors.page.listHcxActivationKeys.asyncIterate = + client.descriptors.page.listNetworkPolicies.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.vmwareengine.v1.IHcxActivationKey[] = + const responses: protos.google.cloud.vmwareengine.v1.INetworkPolicy[] = []; - const iterable = client.listHcxActivationKeysAsync(request); + const iterable = client.listNetworkPoliciesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listHcxActivationKeys - .asyncIterate as SinonStub + client.descriptors.page.listNetworkPolicies.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHcxActivationKeys - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNetworkPolicies.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -7102,27 +14609,27 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listHcxActivationKeys with error', async () => { + it('uses async iteration with listNetworkPolicies with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest() + new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest', + '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHcxActivationKeys.asyncIterate = + client.descriptors.page.listNetworkPolicies.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listHcxActivationKeysAsync(request); + const iterable = client.listNetworkPoliciesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.vmwareengine.v1.IHcxActivationKey[] = + const responses: protos.google.cloud.vmwareengine.v1.INetworkPolicy[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -7130,16 +14637,12 @@ describe('v1.VmwareEngineClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listHcxActivationKeys - .asyncIterate as SinonStub + client.descriptors.page.listNetworkPolicies.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHcxActivationKeys - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNetworkPolicies.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -7148,81 +14651,83 @@ describe('v1.VmwareEngineClient', () => { }); }); - describe('listNetworkPolicies', () => { - it('invokes listNetworkPolicies without error', async () => { + describe('listManagementDnsZoneBindings', () => { + it('invokes listManagementDnsZoneBindings without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() + new protos.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', + '.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), ]; - client.innerApiCalls.listNetworkPolicies = + client.innerApiCalls.listManagementDnsZoneBindings = stubSimpleCall(expectedResponse); - const [response] = await client.listNetworkPolicies(request); + const [response] = await client.listManagementDnsZoneBindings(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listNetworkPolicies as SinonStub + client.innerApiCalls.listManagementDnsZoneBindings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNetworkPolicies as SinonStub + client.innerApiCalls.listManagementDnsZoneBindings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNetworkPolicies without error using callback', async () => { + it('invokes listManagementDnsZoneBindings without error using callback', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() + new protos.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', + '.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), ]; - client.innerApiCalls.listNetworkPolicies = + client.innerApiCalls.listManagementDnsZoneBindings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listNetworkPolicies( + client.listManagementDnsZoneBindings( request, ( err?: Error | null, - result?: protos.google.cloud.vmwareengine.v1.INetworkPolicy[] | null + result?: + | protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding[] + | null ) => { if (err) { reject(err); @@ -7235,81 +14740,86 @@ describe('v1.VmwareEngineClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listNetworkPolicies as SinonStub + client.innerApiCalls.listManagementDnsZoneBindings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNetworkPolicies as SinonStub + client.innerApiCalls.listManagementDnsZoneBindings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNetworkPolicies with error', async () => { + it('invokes listManagementDnsZoneBindings with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() + new protos.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', + '.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listNetworkPolicies = stubSimpleCall( + client.innerApiCalls.listManagementDnsZoneBindings = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listNetworkPolicies(request), expectedError); + await assert.rejects( + client.listManagementDnsZoneBindings(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listNetworkPolicies as SinonStub + client.innerApiCalls.listManagementDnsZoneBindings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNetworkPolicies as SinonStub + client.innerApiCalls.listManagementDnsZoneBindings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNetworkPoliciesStream without error', async () => { + it('invokes listManagementDnsZoneBindingsStream without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() + new protos.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', + '.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), ]; - client.descriptors.page.listNetworkPolicies.createStream = + client.descriptors.page.listManagementDnsZoneBindings.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listNetworkPoliciesStream(request); + const stream = client.listManagementDnsZoneBindingsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.NetworkPolicy[] = + const responses: protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding[] = []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.NetworkPolicy) => { + ( + response: protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + ) => { responses.push(response); } ); @@ -7323,12 +14833,21 @@ describe('v1.VmwareEngineClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listNetworkPolicies.createStream as SinonStub) + ( + client.descriptors.page.listManagementDnsZoneBindings + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listNetworkPolicies, request) + .calledWith( + client.innerApiCalls.listManagementDnsZoneBindings, + request + ) ); assert( - (client.descriptors.page.listNetworkPolicies.createStream as SinonStub) + ( + client.descriptors.page.listManagementDnsZoneBindings + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -7336,31 +14855,33 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('invokes listNetworkPoliciesStream with error', async () => { + it('invokes listManagementDnsZoneBindingsStream with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() + new protos.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', + '.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listNetworkPolicies.createStream = + client.descriptors.page.listManagementDnsZoneBindings.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listNetworkPoliciesStream(request); + const stream = client.listManagementDnsZoneBindingsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.vmwareengine.v1.NetworkPolicy[] = + const responses: protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding[] = []; stream.on( 'data', - (response: protos.google.cloud.vmwareengine.v1.NetworkPolicy) => { + ( + response: protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + ) => { responses.push(response); } ); @@ -7373,12 +14894,21 @@ describe('v1.VmwareEngineClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listNetworkPolicies.createStream as SinonStub) + ( + client.descriptors.page.listManagementDnsZoneBindings + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listNetworkPolicies, request) + .calledWith( + client.innerApiCalls.listManagementDnsZoneBindings, + request + ) ); assert( - (client.descriptors.page.listNetworkPolicies.createStream as SinonStub) + ( + client.descriptors.page.listManagementDnsZoneBindings + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -7386,49 +14916,53 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listNetworkPolicies without error', async () => { + it('uses async iteration with listManagementDnsZoneBindings without error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() + new protos.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', + '.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.NetworkPolicy() + new protos.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding() ), ]; - client.descriptors.page.listNetworkPolicies.asyncIterate = + client.descriptors.page.listManagementDnsZoneBindings.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.vmwareengine.v1.INetworkPolicy[] = + const responses: protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding[] = []; - const iterable = client.listNetworkPoliciesAsync(request); + const iterable = client.listManagementDnsZoneBindingsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listNetworkPolicies.asyncIterate as SinonStub + client.descriptors.page.listManagementDnsZoneBindings + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listNetworkPolicies.asyncIterate as SinonStub) + ( + client.descriptors.page.listManagementDnsZoneBindings + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -7436,27 +14970,27 @@ describe('v1.VmwareEngineClient', () => { ); }); - it('uses async iteration with listNetworkPolicies with error', async () => { + it('uses async iteration with listManagementDnsZoneBindings with error', async () => { const client = new vmwareengineModule.v1.VmwareEngineClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest() + new protos.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest', + '.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listNetworkPolicies.asyncIterate = + client.descriptors.page.listManagementDnsZoneBindings.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listNetworkPoliciesAsync(request); + const iterable = client.listManagementDnsZoneBindingsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.vmwareengine.v1.INetworkPolicy[] = + const responses: protos.google.cloud.vmwareengine.v1.IManagementDnsZoneBinding[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -7464,12 +14998,16 @@ describe('v1.VmwareEngineClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listNetworkPolicies.asyncIterate as SinonStub + client.descriptors.page.listManagementDnsZoneBindings + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listNetworkPolicies.asyncIterate as SinonStub) + ( + client.descriptors.page.listManagementDnsZoneBindings + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -8221,9 +15759,8 @@ describe('v1.VmwareEngineClient', () => { ]; client.innerApiCalls.listPrivateConnectionPeeringRoutes = stubSimpleCall(expectedResponse); - const [response] = await client.listPrivateConnectionPeeringRoutes( - request - ); + const [response] = + await client.listPrivateConnectionPeeringRoutes(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( client.innerApiCalls.listPrivateConnectionPeeringRoutes as SinonStub @@ -9393,63 +16930,359 @@ describe('v1.VmwareEngineClient', () => { projectId: 'bogus', }); client.initialize(); - client.pathTemplates.clusterPathTemplate.render = sinon + client.pathTemplates.clusterPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.clusterPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('clusterPath', () => { + const result = client.clusterPath( + 'projectValue', + 'locationValue', + 'privateCloudValue', + 'clusterValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.clusterPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromClusterName', () => { + const result = client.matchProjectFromClusterName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.clusterPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromClusterName', () => { + const result = client.matchLocationFromClusterName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.clusterPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPrivateCloudFromClusterName', () => { + const result = client.matchPrivateCloudFromClusterName(fakePath); + assert.strictEqual(result, 'privateCloudValue'); + assert( + (client.pathTemplates.clusterPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchClusterFromClusterName', () => { + const result = client.matchClusterFromClusterName(fakePath); + assert.strictEqual(result, 'clusterValue'); + assert( + (client.pathTemplates.clusterPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dnsBindPermission', () => { + const fakePath = '/rendered/path/dnsBindPermission'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + }; + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dnsBindPermissionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dnsBindPermissionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dnsBindPermissionPath', () => { + const result = client.dnsBindPermissionPath( + 'projectValue', + 'locationValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.dnsBindPermissionPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDnsBindPermissionName', () => { + const result = client.matchProjectFromDnsBindPermissionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.dnsBindPermissionPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDnsBindPermissionName', () => { + const result = client.matchLocationFromDnsBindPermissionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.dnsBindPermissionPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dnsForwarding', () => { + const fakePath = '/rendered/path/dnsForwarding'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + private_cloud: 'privateCloudValue', + }; + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dnsForwardingPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dnsForwardingPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dnsForwardingPath', () => { + const result = client.dnsForwardingPath( + 'projectValue', + 'locationValue', + 'privateCloudValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dnsForwardingPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDnsForwardingName', () => { + const result = client.matchProjectFromDnsForwardingName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dnsForwardingPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDnsForwardingName', () => { + const result = client.matchLocationFromDnsForwardingName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dnsForwardingPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPrivateCloudFromDnsForwardingName', () => { + const result = client.matchPrivateCloudFromDnsForwardingName(fakePath); + assert.strictEqual(result, 'privateCloudValue'); + assert( + (client.pathTemplates.dnsForwardingPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('externalAccessRule', () => { + const fakePath = '/rendered/path/externalAccessRule'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + network_policy: 'networkPolicyValue', + external_access_rule: 'externalAccessRuleValue', + }; + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.externalAccessRulePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.externalAccessRulePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('externalAccessRulePath', () => { + const result = client.externalAccessRulePath( + 'projectValue', + 'locationValue', + 'networkPolicyValue', + 'externalAccessRuleValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.externalAccessRulePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExternalAccessRuleName', () => { + const result = client.matchProjectFromExternalAccessRuleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.externalAccessRulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExternalAccessRuleName', () => { + const result = client.matchLocationFromExternalAccessRuleName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.externalAccessRulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNetworkPolicyFromExternalAccessRuleName', () => { + const result = + client.matchNetworkPolicyFromExternalAccessRuleName(fakePath); + assert.strictEqual(result, 'networkPolicyValue'); + assert( + ( + client.pathTemplates.externalAccessRulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExternalAccessRuleFromExternalAccessRuleName', () => { + const result = + client.matchExternalAccessRuleFromExternalAccessRuleName(fakePath); + assert.strictEqual(result, 'externalAccessRuleValue'); + assert( + ( + client.pathTemplates.externalAccessRulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('externalAddress', () => { + const fakePath = '/rendered/path/externalAddress'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + private_cloud: 'privateCloudValue', + external_address: 'externalAddressValue', + }; + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.externalAddressPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.clusterPathTemplate.match = sinon + client.pathTemplates.externalAddressPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('clusterPath', () => { - const result = client.clusterPath( + it('externalAddressPath', () => { + const result = client.externalAddressPath( 'projectValue', 'locationValue', 'privateCloudValue', - 'clusterValue' + 'externalAddressValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.clusterPathTemplate.render as SinonStub) + (client.pathTemplates.externalAddressPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromClusterName', () => { - const result = client.matchProjectFromClusterName(fakePath); + it('matchProjectFromExternalAddressName', () => { + const result = client.matchProjectFromExternalAddressName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.clusterPathTemplate.match as SinonStub) + (client.pathTemplates.externalAddressPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromClusterName', () => { - const result = client.matchLocationFromClusterName(fakePath); + it('matchLocationFromExternalAddressName', () => { + const result = client.matchLocationFromExternalAddressName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.clusterPathTemplate.match as SinonStub) + (client.pathTemplates.externalAddressPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchPrivateCloudFromClusterName', () => { - const result = client.matchPrivateCloudFromClusterName(fakePath); + it('matchPrivateCloudFromExternalAddressName', () => { + const result = + client.matchPrivateCloudFromExternalAddressName(fakePath); assert.strictEqual(result, 'privateCloudValue'); assert( - (client.pathTemplates.clusterPathTemplate.match as SinonStub) + (client.pathTemplates.externalAddressPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchClusterFromClusterName', () => { - const result = client.matchClusterFromClusterName(fakePath); - assert.strictEqual(result, 'clusterValue'); + it('matchExternalAddressFromExternalAddressName', () => { + const result = + client.matchExternalAddressFromExternalAddressName(fakePath); + assert.strictEqual(result, 'externalAddressValue'); assert( - (client.pathTemplates.clusterPathTemplate.match as SinonStub) + (client.pathTemplates.externalAddressPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -9586,6 +17419,244 @@ describe('v1.VmwareEngineClient', () => { }); }); + describe('loggingServer', () => { + const fakePath = '/rendered/path/loggingServer'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + private_cloud: 'privateCloudValue', + logging_server: 'loggingServerValue', + }; + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.loggingServerPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.loggingServerPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('loggingServerPath', () => { + const result = client.loggingServerPath( + 'projectValue', + 'locationValue', + 'privateCloudValue', + 'loggingServerValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.loggingServerPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromLoggingServerName', () => { + const result = client.matchProjectFromLoggingServerName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.loggingServerPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromLoggingServerName', () => { + const result = client.matchLocationFromLoggingServerName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.loggingServerPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPrivateCloudFromLoggingServerName', () => { + const result = client.matchPrivateCloudFromLoggingServerName(fakePath); + assert.strictEqual(result, 'privateCloudValue'); + assert( + (client.pathTemplates.loggingServerPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLoggingServerFromLoggingServerName', () => { + const result = client.matchLoggingServerFromLoggingServerName(fakePath); + assert.strictEqual(result, 'loggingServerValue'); + assert( + (client.pathTemplates.loggingServerPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('managementDnsZoneBinding', () => { + const fakePath = '/rendered/path/managementDnsZoneBinding'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + private_cloud: 'privateCloudValue', + management_dns_zone_binding: 'managementDnsZoneBindingValue', + }; + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.managementDnsZoneBindingPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.managementDnsZoneBindingPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('managementDnsZoneBindingPath', () => { + const result = client.managementDnsZoneBindingPath( + 'projectValue', + 'locationValue', + 'privateCloudValue', + 'managementDnsZoneBindingValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.managementDnsZoneBindingPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromManagementDnsZoneBindingName', () => { + const result = + client.matchProjectFromManagementDnsZoneBindingName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.managementDnsZoneBindingPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromManagementDnsZoneBindingName', () => { + const result = + client.matchLocationFromManagementDnsZoneBindingName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.managementDnsZoneBindingPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPrivateCloudFromManagementDnsZoneBindingName', () => { + const result = + client.matchPrivateCloudFromManagementDnsZoneBindingName(fakePath); + assert.strictEqual(result, 'privateCloudValue'); + assert( + ( + client.pathTemplates.managementDnsZoneBindingPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchManagementDnsZoneBindingFromManagementDnsZoneBindingName', () => { + const result = + client.matchManagementDnsZoneBindingFromManagementDnsZoneBindingName( + fakePath + ); + assert.strictEqual(result, 'managementDnsZoneBindingValue'); + assert( + ( + client.pathTemplates.managementDnsZoneBindingPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('networkPeering', () => { + const fakePath = '/rendered/path/networkPeering'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + network_peering: 'networkPeeringValue', + }; + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.networkPeeringPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.networkPeeringPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('networkPeeringPath', () => { + const result = client.networkPeeringPath( + 'projectValue', + 'locationValue', + 'networkPeeringValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.networkPeeringPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNetworkPeeringName', () => { + const result = client.matchProjectFromNetworkPeeringName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.networkPeeringPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNetworkPeeringName', () => { + const result = client.matchLocationFromNetworkPeeringName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.networkPeeringPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNetworkPeeringFromNetworkPeeringName', () => { + const result = + client.matchNetworkPeeringFromNetworkPeeringName(fakePath); + assert.strictEqual(result, 'networkPeeringValue'); + assert( + (client.pathTemplates.networkPeeringPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('networkPolicy', () => { const fakePath = '/rendered/path/networkPolicy'; const expectedParameters = { @@ -9650,6 +17721,94 @@ describe('v1.VmwareEngineClient', () => { }); }); + describe('node', () => { + const fakePath = '/rendered/path/node'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + private_cloud: 'privateCloudValue', + cluster: 'clusterValue', + node: 'nodeValue', + }; + const client = new vmwareengineModule.v1.VmwareEngineClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nodePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nodePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nodePath', () => { + const result = client.nodePath( + 'projectValue', + 'locationValue', + 'privateCloudValue', + 'clusterValue', + 'nodeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nodePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNodeName', () => { + const result = client.matchProjectFromNodeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nodePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNodeName', () => { + const result = client.matchLocationFromNodeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nodePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPrivateCloudFromNodeName', () => { + const result = client.matchPrivateCloudFromNodeName(fakePath); + assert.strictEqual(result, 'privateCloudValue'); + assert( + (client.pathTemplates.nodePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchClusterFromNodeName', () => { + const result = client.matchClusterFromNodeName(fakePath); + assert.strictEqual(result, 'clusterValue'); + assert( + (client.pathTemplates.nodePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNodeFromNodeName', () => { + const result = client.matchNodeFromNodeName(fakePath); + assert.strictEqual(result, 'nodeValue'); + assert( + (client.pathTemplates.nodePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('nodeType', () => { const fakePath = '/rendered/path/nodeType'; const expectedParameters = {