From 65a900b5b616bfe92782792d94e7f97ac5e64aa8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:48:09 -0800 Subject: [PATCH] chore: [Many APIs] remove body selector from http rule (#5785) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: remove body selector from http rule PiperOrigin-RevId: 693215877 Source-Link: https://github.com/googleapis/googleapis/commit/bb6b53e326ce2db403d18be7158c265e07948920 Source-Link: https://github.com/googleapis/googleapis-gen/commit/db8b5a93484ad44055b2bacc4c7cf87e970fe0ed Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImRiOGI1YTkzNDg0YWQ0NDA1NWIyYmFjYzRjN2NmODdlOTcwZmUwZWQifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImRiOGI1YTkzNDg0YWQ0NDA1NWIyYmFjYzRjN2NmODdlOTcwZmUwZWQifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGI4YjVhOTM0ODRhZDQ0MDU1YjJiYWNjNGM3Y2Y4N2U5NzBmZTBlZCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBhcmFsbGVsc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6ImRiOGI1YTkzNDg0YWQ0NDA1NWIyYmFjYzRjN2NmODdlOTcwZmUwZWQifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJ1bi8uT3dsQm90LnlhbWwiLCJoIjoiZGI4YjVhOTM0ODRhZDQ0MDU1YjJiYWNjNGM3Y2Y4N2U5NzBmZTBlZCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRyYW5zbGF0ZS8uT3dsQm90LnlhbWwiLCJoIjoiZGI4YjVhOTM0ODRhZDQ0MDU1YjJiYWNjNGM3Y2Y4N2U5NzBmZTBlZCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtZmxlZXRlbmdpbmUtZGVsaXZlcnkvLk93bEJvdC55YW1sIiwiaCI6ImRiOGI1YTkzNDg0YWQ0NDA1NWIyYmFjYzRjN2NmODdlOTcwZmUwZWQifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtZmxlZXRlbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6ImRiOGI1YTkzNDg0YWQ0NDA1NWIyYmFjYzRjN2NmODdlOTcwZmUwZWQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- packages/google-cloud-compute/README.md | 4 +- .../google/cloud/compute/v1/compute.proto | 805 +- .../google-cloud-compute/protos/protos.d.ts | 2618 +++--- .../google-cloud-compute/protos/protos.js | 7088 +++++++++++------ .../google-cloud-compute/protos/protos.json | 1170 ++- .../generated/v1/global_operations.delete.js | 2 +- .../generated/v1/global_operations.get.js | 2 +- .../generated/v1/global_operations.wait.js | 2 +- .../global_organization_operations.delete.js | 2 +- .../v1/global_organization_operations.get.js | 2 +- .../generated/v1/region_operations.delete.js | 2 +- .../generated/v1/region_operations.get.js | 2 +- .../generated/v1/region_operations.wait.js | 2 +- ...ppet_metadata_google.cloud.compute.v1.json | 12 +- .../generated/v1/zone_operations.delete.js | 2 +- .../generated/v1/zone_operations.get.js | 2 +- .../generated/v1/zone_operations.wait.js | 2 +- .../src/v1/backend_services_client.ts | 2 +- .../src/v1/global_operations_client.ts | 6 +- .../global_organization_operations_client.ts | 4 +- .../src/v1/networks_client.ts | 2 +- .../src/v1/region_backend_services_client.ts | 2 +- .../src/v1/region_operations_client.ts | 6 +- .../src/v1/regions_client.ts | 4 +- .../src/v1/storage_pools_client.ts | 2 +- .../src/v1/zone_operations_client.ts | 6 +- packages/google-cloud-dialogflow-cx/README.md | 4 +- .../cx/v3beta1/advanced_settings.proto | 9 +- .../cx/v3beta1/data_store_connection.proto | 8 + .../cloud/dialogflow/cx/v3beta1/flow.proto | 4 + .../cloud/dialogflow/cx/v3beta1/page.proto | 7 + .../cloud/dialogflow/cx/v3beta1/session.proto | 3 + .../dialogflow/cx/v3beta1/test_case.proto | 10 +- .../cloud/dialogflow/cx/v3beta1/tool.proto | 20 + .../protos/protos.d.ts | 136 +- .../protos/protos.js | 363 +- .../protos/protos.json | 49 +- packages/google-cloud-gkehub/README.md | 4 +- .../v1beta/policycontroller.proto | 330 + .../google/cloud/gkehub/v1beta/feature.proto | 9 + .../google-cloud-gkehub/protos/protos.d.ts | 1539 +++- packages/google-cloud-gkehub/protos/protos.js | 4221 +++++++++- .../google-cloud-gkehub/protos/protos.json | 431 +- .../src/v1beta/gke_hub_proto_list.json | 1 + .../src/v1beta/parallelstore_client.ts | 1 - .../protos/google/cloud/run/v2/k8s.min.proto | 13 +- .../protos/google/cloud/run/v2/service.proto | 4 +- packages/google-cloud-run/protos/protos.d.ts | 6 + packages/google-cloud-run/protos/protos.js | 40 + packages/google-cloud-run/protos/protos.json | 5 + packages/google-cloud-translate/README.md | 4 +- .../cloud/translate/v3/adaptive_mt.proto | 5 + .../translate/v3/translation_service.proto | 5 + .../google-cloud-translate/protos/protos.d.ts | 12 + .../google-cloud-translate/protos/protos.js | 46 + .../google-cloud-translate/protos/protos.json | 17 + .../README.md | 4 +- .../maps/fleetengine/delivery/v1/common.proto | 2 +- .../delivery/v1/delivery_api.proto | 2 +- .../delivery/v1/delivery_vehicles.proto | 2 +- .../maps/fleetengine/delivery/v1/header.proto | 2 +- .../delivery/v1/task_tracking_info.proto | 2 +- .../maps/fleetengine/delivery/v1/tasks.proto | 2 +- .../protos/protos.json | 5 +- .../maps/fleetengine/v1/fleetengine.proto | 2 +- .../google/maps/fleetengine/v1/header.proto | 2 +- .../google/maps/fleetengine/v1/traffic.proto | 2 +- .../google/maps/fleetengine/v1/trip_api.proto | 2 +- .../google/maps/fleetengine/v1/trips.proto | 2 +- .../maps/fleetengine/v1/vehicle_api.proto | 2 +- .../google/maps/fleetengine/v1/vehicles.proto | 2 +- .../protos/protos.json | 2 +- .../google-maps-fleetengine/v1/package.json | 4 +- .../maps/fleetengine/delivery/v1/common.proto | 2 +- .../delivery/v1/delivery_api.proto | 2 +- .../delivery/v1/delivery_vehicles.proto | 2 +- .../maps/fleetengine/delivery/v1/header.proto | 2 +- .../delivery/v1/task_tracking_info.proto | 2 +- .../maps/fleetengine/delivery/v1/tasks.proto | 2 +- .../v1/protos/protos.json | 2 +- 80 files changed, 14708 insertions(+), 4406 deletions(-) create mode 100644 packages/google-cloud-gkehub/protos/google/cloud/gkehub/policycontroller/v1beta/policycontroller.proto diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index 0bbe967354b..bd18405fd5d 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. 1. [Select or create a Cloud Platform project][projects]. 1. [Enable billing for your project][billing]. 1. [Enable the Google Compute Engine API][enable_api]. -1. [Set up authentication with a service account][auth] so you can access the +1. [Set up authentication][auth] so you can access the API from your local workstation. ### Installing the client library @@ -946,4 +946,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=compute.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started +[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto index bc5c257cc47..6c8628a6bc6 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20240430 +// Source file revision: 20241015 // API name: compute // API version: v1 @@ -957,15 +957,40 @@ message AddressesScopedList { // Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the Image supports nested virtualization being enabled or disabled). message AdvancedMachineFeatures { + // Type of Performance Monitoring Unit requested on instance. + enum PerformanceMonitoringUnit { + // A value indicating that the enum field is not set. + UNDEFINED_PERFORMANCE_MONITORING_UNIT = 0; + + // Architecturally defined non-LLC events. + ARCHITECTURAL = 155113693; + + // Most documented core/L2 and LLC events. + ENHANCED = 476873590; + + PERFORMANCE_MONITORING_UNIT_UNSPECIFIED = 429210692; + + // Most documented core/L2 events. + STANDARD = 484642493; + + } + // Whether to enable nested virtualization or not (default is false). optional bool enable_nested_virtualization = 16639365; // Whether to enable UEFI networking for instance creation. optional bool enable_uefi_networking = 334485668; + // Type of Performance Monitoring Unit requested on instance. + // Check the PerformanceMonitoringUnit enum for the list of possible values. + optional string performance_monitoring_unit = 533618956; + // The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. optional int32 threads_per_core = 352611671; + // Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode. + optional string turbo_mode = 432965412; + // The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width. optional int32 visible_core_count = 193198684; @@ -2220,10 +2245,14 @@ message AllocationAggregateReservation { // A value indicating that the enum field is not set. UNDEFINED_VM_FAMILY = 0; + VM_FAMILY_CLOUD_TPU_DEVICE_CT3 = 42845948; + VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 108020067; VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 18705267; + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 517384376; + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407; } @@ -2618,7 +2647,7 @@ message AttachedDisk { // Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks. optional string device_name = 67541716; - // Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. + // Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Note: Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method. optional CustomerEncryptionKey disk_encryption_key = 271660677; // The size of the disk in GB. @@ -2657,7 +2686,7 @@ message AttachedDisk { // [Output Only] shielded vm initial state stored on disk optional InitialStateConfig shielded_instance_initial_state = 192356867; - // Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk. + // Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk. optional string source = 177235995; // Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. @@ -2744,13 +2773,13 @@ message AttachedDiskInitializeParams { // Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name. repeated string resource_policies = 22220385; - // The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set. + // The source image to create this disk. When creating a new instance boot disk, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set. optional string source_image = 50443319; // The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. optional CustomerEncryptionKey source_image_encryption_key = 381503659; - // The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. + // The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. optional string source_snapshot = 126061928; // The customer-supplied encryption key of the source snapshot. @@ -2761,12 +2790,11 @@ message AttachedDiskInitializeParams { } -// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging. +// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging. message AuditConfig { // The configuration for logging of each type of permission. repeated AuditLogConfig audit_log_configs = 488420626; - // This is deprecated and has no effect. Do not use. repeated string exempted_members = 232615576; // Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. @@ -2798,7 +2826,6 @@ message AuditLogConfig { // Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. repeated string exempted_members = 232615576; - // This is deprecated and has no effect. Do not use. optional bool ignore_child_exemptions = 70141850; // The log type that this config enables. @@ -2807,36 +2834,6 @@ message AuditLogConfig { } -// This is deprecated and has no effect. Do not use. -message AuthorizationLoggingOptions { - // This is deprecated and has no effect. Do not use. - enum PermissionType { - // A value indicating that the enum field is not set. - UNDEFINED_PERMISSION_TYPE = 0; - - // This is deprecated and has no effect. Do not use. - ADMIN_READ = 128951462; - - // This is deprecated and has no effect. Do not use. - ADMIN_WRITE = 244412079; - - // This is deprecated and has no effect. Do not use. - DATA_READ = 305224971; - - // This is deprecated and has no effect. Do not use. - DATA_WRITE = 340181738; - - // This is deprecated and has no effect. Do not use. - PERMISSION_TYPE_UNSPECIFIED = 440313346; - - } - - // This is deprecated and has no effect. Do not use. - // Check the PermissionType enum for the list of possible values. - optional string permission_type = 525978538; - -} - // Represents an Autoscaler resource. Google Compute Engine has two Autoscaler resources: * [Zonal](/compute/docs/reference/rest/v1/autoscalers) * [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource. message Autoscaler { // [Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. @@ -3315,6 +3312,9 @@ message BackendBucket { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; + // [Output Only] List of resources referencing that backend bucket. + repeated BackendBucketUsedBy used_by = 389320729; + } // Message containing Cloud CDN configuration for a backend bucket. @@ -3425,6 +3425,13 @@ message BackendBucketList { } +// +message BackendBucketUsedBy { + // [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + optional string reference = 148586315; + +} + // Represents a Backend Service resource. A backend service defines how Google Cloud load balancers distribute traffic. The backend service configuration contains a set of values, such as the protocol used to connect to backends, various distribution and session settings, health checks, and timeouts. These settings provide fine-grained control over how your load balancer behaves. Most of the settings have default values that allow for easy configuration if you need to get started quickly. Backend services in Google Compute Engine can be either regionally or globally scoped. * [Global](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) * [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) For more information, see Backend Services. message BackendService { // Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. @@ -3440,6 +3447,25 @@ message BackendService { } + // Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 health checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health checks are used to check the health of the backends. This field is applicable to either: - Advanced global external Application Load Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load Balancer, - Internal proxy Network Load Balancer (load balancing scheme INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED). + enum IpAddressSelectionPolicy { + // A value indicating that the enum field is not set. + UNDEFINED_IP_ADDRESS_SELECTION_POLICY = 0; + + // Only send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check the health of the backends. This is the default setting. + IPV4_ONLY = 22373798; + + // Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv6 health-checks are used to check the health of the backends. + IPV6_ONLY = 79632100; + + // Unspecified IP address selection policy. + IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED = 36210144; + + // Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). + PREFER_IPV6 = 408601302; + + } + // Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. enum LoadBalancingScheme { // A value indicating that the enum field is not set. @@ -3464,7 +3490,7 @@ message BackendService { } - // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not configured—that is, if session affinity remains at the default value of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. enum LocalityLbPolicy { // A value indicating that the enum field is not set. UNDEFINED_LOCALITY_LB_POLICY = 0; @@ -3552,6 +3578,9 @@ message BackendService { // No session affinity. Connections from the same client IP may go to any instance in the pool. NONE = 2402104; + // Strong cookie-based affinity. Connections bearing the same cookie will be served by the same backend VM while that VM remains healthy, as long as the cookie has not expired. + STRONG_COOKIE_AFFINITY = 438628091; + } // Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. @@ -3610,6 +3639,10 @@ message BackendService { // [Output Only] The unique identifier for the resource. This identifier is defined by the server. optional uint64 id = 3355; + // Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 health checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health checks are used to check the health of the backends. This field is applicable to either: - Advanced global external Application Load Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load Balancer, - Internal proxy Network Load Balancer (load balancing scheme INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED). + // Check the IpAddressSelectionPolicy enum for the list of possible values. + optional string ip_address_selection_policy = 77600840; + // [Output Only] Type of resource. Always compute#backendService for backend services. optional string kind = 3292052; @@ -3620,7 +3653,7 @@ message BackendService { // A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration. repeated BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557; - // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not configured—that is, if session affinity remains at the default value of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. // Check the LocalityLbPolicy enum for the list of possible values. optional string locality_lb_policy = 131431487; @@ -3674,11 +3707,15 @@ message BackendService { // Check the SessionAffinity enum for the list of possible values. optional string session_affinity = 463888561; + // Describes the HTTP cookie used for stateful session affinity. This field is applicable and required if the sessionAffinity is set to STRONG_COOKIE_AFFINITY. + optional BackendServiceHttpCookie strong_session_affinity_cookie = 238195722; + optional Subsetting subsetting = 450283536; // The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. optional int32 timeout_sec = 79994995; + // [Output Only] List of resources referencing given backend service. repeated BackendServiceUsedBy used_by = 389320729; } @@ -3854,6 +3891,19 @@ message BackendServiceGroupHealth { } +// The HTTP cookie used for stateful session affinity. +message BackendServiceHttpCookie { + // Name of the cookie. + optional string name = 3373707; + + // Path to set for the cookie. + optional string path = 3433509; + + // Lifetime of the cookie. + optional Duration ttl = 115180; + +} + // Identity-Aware Proxy message BackendServiceIAP { // Whether the serving infrastructure will authenticate and authorize all incoming requests. @@ -4011,6 +4061,7 @@ message BackendServiceReference { // message BackendServiceUsedBy { + // [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. optional string reference = 148586315; } @@ -4235,7 +4286,6 @@ message BfdStatusPacketCounts { // Associates `members`, or principals, with a `role`. message Binding { - // This is deprecated and has no effect. Do not use. optional string binding_id = 441088277; // The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). @@ -4308,7 +4358,7 @@ message BulkInsertInstanceResource { // The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided. optional InstanceProperties instance_properties = 215355165; - // Policy for chosing target zone. For more information, see Create VMs in bulk . + // Policy for choosing target zone. For more information, see Create VMs in bulk. optional LocationPolicy location_policy = 465689852; // The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted. @@ -4621,6 +4671,8 @@ message Commitment { GENERAL_PURPOSE = 299793543; + GENERAL_PURPOSE_C4 = 301911817; + GENERAL_PURPOSE_E2 = 301911877; GENERAL_PURPOSE_N2 = 301912156; @@ -4653,6 +4705,9 @@ message Commitment { // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; + // [Input Only] Optional, specifies the CUD end time requested by the customer in RFC3339 text format. Needed when the customer wants CUD's end date is later than the start date + term duration. + optional string custom_end_timestamp = 181770852; + // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; @@ -4687,6 +4742,9 @@ message Commitment { // List of create-on-create reservations for this commitment. repeated Reservation reservations = 399717927; + // [Output Only] Status information for Commitment resource. + optional CommitmentResourceStatus resource_status = 249429315; + // A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. repeated ResourceCommitment resources = 164412965; @@ -4759,6 +4817,13 @@ message CommitmentList { } +// [Output Only] Contains output only fields. +message CommitmentResourceStatus { + // [Output Only] Indicates the end time of customer's eligibility to send custom term requests in RFC3339 text format. Term extension requests that (not the end time in the request) after this time will be rejected. + optional string custom_term_eligibility_end_timestamp = 363976187; + +} + // message CommitmentsScopedList { // [Output Only] A list of commitments contained in this scope. @@ -4769,106 +4834,31 @@ message CommitmentsScopedList { } -// This is deprecated and has no effect. Do not use. -message Condition { - // This is deprecated and has no effect. Do not use. - // Additional supported values which may be not listed in the enum directly due to technical reasons: - // NO_ATTR - enum Iam { - // A value indicating that the enum field is not set. - UNDEFINED_IAM = 0; - - // This is deprecated and has no effect. Do not use. - APPROVER = 357258949; - - // This is deprecated and has no effect. Do not use. - ATTRIBUTION = 232465503; - - // This is deprecated and has no effect. Do not use. - AUTHORITY = 504108835; - - // This is deprecated and has no effect. Do not use. - CREDENTIALS_TYPE = 348222141; - - // This is deprecated and has no effect. Do not use. - CREDS_ASSERTION = 332343272; - - // This is deprecated and has no effect. Do not use. - JUSTIFICATION_TYPE = 206147719; - - // This is deprecated and has no effect. Do not use. - SECURITY_REALM = 526269616; - - } - - // This is deprecated and has no effect. Do not use. - enum Op { - // A value indicating that the enum field is not set. - UNDEFINED_OP = 0; - - // This is deprecated and has no effect. Do not use. - DISCHARGED = 266338274; - - // This is deprecated and has no effect. Do not use. - EQUALS = 442201023; - - // This is deprecated and has no effect. Do not use. - IN = 2341; - - // This is deprecated and has no effect. Do not use. - NOT_EQUALS = 19718859; - - // This is deprecated and has no effect. Do not use. - NOT_IN = 161144369; - - // This is deprecated and has no effect. Do not use. - NO_OP = 74481951; - - } - - // This is deprecated and has no effect. Do not use. - // Additional supported values which may be not listed in the enum directly due to technical reasons: - // NO_ATTR - enum Sys { +// A set of Confidential Instance options. +message ConfidentialInstanceConfig { + // Defines the type of technology used by the confidential instance. + enum ConfidentialInstanceType { // A value indicating that the enum field is not set. - UNDEFINED_SYS = 0; + UNDEFINED_CONFIDENTIAL_INSTANCE_TYPE = 0; - // This is deprecated and has no effect. Do not use. - IP = 2343; + // No type specified. Do not use this value. + CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 115021829; - // This is deprecated and has no effect. Do not use. - NAME = 2388619; + // AMD Secure Encrypted Virtualization. + SEV = 81988; - // This is deprecated and has no effect. Do not use. - REGION = 266017524; + // AMD Secure Encrypted Virtualization - Secure Nested Paging. + SEV_SNP = 21753562; - // This is deprecated and has no effect. Do not use. - SERVICE = 17781397; + // Intel Trust Domain eXtension. + TDX = 82920; } - // This is deprecated and has no effect. Do not use. - // Check the Iam enum for the list of possible values. - optional string iam = 104021; - - // This is deprecated and has no effect. Do not use. - // Check the Op enum for the list of possible values. - optional string op = 3553; - - // This is deprecated and has no effect. Do not use. - optional string svc = 114272; - - // This is deprecated and has no effect. Do not use. - // Check the Sys enum for the list of possible values. - optional string sys = 114381; + // Defines the type of technology used by the confidential instance. + // Check the ConfidentialInstanceType enum for the list of possible values. + optional string confidential_instance_type = 43484717; - // This is deprecated and has no effect. Do not use. - repeated string values = 249928994; - -} - -// A set of Confidential Instance options. -message ConfidentialInstanceConfig { // Defines whether the instance should have confidential compute enabled. optional bool enable_confidential_compute = 102135228; @@ -5038,6 +5028,29 @@ message CreateSnapshotRegionDiskRequest { } +// Specifies the custom error response policy that must be applied when the backend service or backend bucket responds with an error. +message CustomErrorResponsePolicy { + // Specifies rules for returning error responses. In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority. For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX). If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect. + repeated CustomErrorResponsePolicyCustomErrorResponseRule error_response_rules = 14620304; + + // The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are: - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket - compute/v1/projects/project/global/backendBuckets/myBackendBucket - global/backendBuckets/myBackendBucket If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService. If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured). errorService is not supported for internal or regional HTTP/HTTPS load balancers. + optional string error_service = 164214654; + +} + +// Specifies the mapping between the response code that will be returned along with the custom error content and the response code returned by the backend service. +message CustomErrorResponsePolicyCustomErrorResponseRule { + // Valid values include: - A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value. - 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599. - 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499. Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy. + repeated string match_response_codes = 104973410; + + // The HTTP status code returned with the response containing the custom error content. If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client. + optional int32 override_response_code = 530328568; + + // The full path to a file within backendBucket . For example: /errors/defaultError.html path must start with a leading slash. path cannot have trailing slashes. If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client. The value must be from 1 to 1024 characters + optional string path = 3433509; + +} + // message CustomerEncryptionKey { // The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1 @@ -5317,7 +5330,7 @@ message DeleteGlobalNetworkEndpointGroupRequest { // A request message for GlobalOperations.Delete. See the method description for details. message DeleteGlobalOperationRequest { - // Name of the Operations resource to delete. + // Name of the Operations resource to delete, or its unique numeric identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -5331,7 +5344,7 @@ message DeleteGlobalOperationResponse { // A request message for GlobalOrganizationOperations.Delete. See the method description for details. message DeleteGlobalOrganizationOperationRequest { - // Name of the Operations resource to delete. + // Name of the Operations resource to delete, or its unique numeric identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Parent ID for this request. @@ -6155,7 +6168,7 @@ message DeleteRegionNotificationEndpointRequest { // A request message for RegionOperations.Delete. See the method description for details. message DeleteRegionOperationRequest { - // Name of the Operations resource to delete. + // Name of the Operations resource to delete, or its unique numeric identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -6782,7 +6795,7 @@ message DeleteVpnTunnelRequest { // A request message for ZoneOperations.Delete. See the method description for details. message DeleteZoneOperationRequest { - // Name of the Operations resource to delete. + // Name of the Operations resource to delete, or its unique numeric identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -6986,6 +6999,22 @@ message DisableXpnResourceProjectRequest { // Represents a Persistent Disk resource. Google Compute Engine has two Disk resources: * [Zonal](/compute/docs/reference/rest/v1/disks) * [Regional](/compute/docs/reference/rest/v1/regionDisks) Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. The disks resource represents a zonal persistent disk. For more information, read Zonal persistent disks. The regionDisks resource represents a regional persistent disk. For more information, read Regional resources. message Disk { + // The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The AccessMode means the disk can be attached to multiple instances in RW mode. - READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO mode. The AccessMode is only valid for Hyperdisk disk types. + enum AccessMode { + // A value indicating that the enum field is not set. + UNDEFINED_ACCESS_MODE = 0; + + // The AccessMode means the disk can be attached to multiple instances in RO mode. + READ_ONLY_MANY = 63460265; + + // The AccessMode means the disk can be attached to multiple instances in RW mode. + READ_WRITE_MANY = 488743208; + + // The default AccessMode, means the disk can be attached to single instance in RW mode. + READ_WRITE_SINGLE = 99323089; + + } + // The architecture of the disk. Valid values are ARM64 or X86_64. enum Architecture { // A value indicating that the enum field is not set. @@ -7027,6 +7056,10 @@ message Disk { } + // The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The AccessMode means the disk can be attached to multiple instances in RW mode. - READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO mode. The AccessMode is only valid for Hyperdisk disk types. + // Check the AccessMode enum for the list of possible values. + optional string access_mode = 41155486; + // The architecture of the disk. Valid values are ARM64 or X86_64. // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; @@ -8060,7 +8093,7 @@ message FirewallPolicyRule { } - // The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next". + // The Action to perform when the client connection triggers the rule. Valid actions for firewall rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next". optional string action = 187661878; // An optional description for this resource. @@ -8076,13 +8109,13 @@ message FirewallPolicyRule { // Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. optional bool enable_logging = 295396515; - // [Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules + // [Output only] Type of the resource. Returns compute#firewallPolicyRule for firewall rules and compute#packetMirroringRule for packet mirroring rules. optional string kind = 3292052; // A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced. optional FirewallPolicyRuleMatcher match = 103668165; - // An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority. + // An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority. optional int32 priority = 445151652; // An optional name for the rule. This field is not a unique identifier and can be updated. @@ -8091,7 +8124,7 @@ message FirewallPolicyRule { // [Output Only] Calculation of the complexity of a single firewall policy rule. optional int32 rule_tuple_count = 388342037; - // A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action = 'apply_security_profile_group' and cannot be specified for other actions. + // A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'. Cannot be specified for other actions. optional string security_profile_group = 207411626; // A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. @@ -8767,7 +8800,7 @@ message GetGlobalNetworkEndpointGroupRequest { // A request message for GlobalOperations.Get. See the method description for details. message GetGlobalOperationRequest { - // Name of the Operations resource to return. + // Name of the Operations resource to return, or its unique numeric identifier. string operation = 52090215 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_response_field) = "name" @@ -8780,7 +8813,7 @@ message GetGlobalOperationRequest { // A request message for GlobalOrganizationOperations.Get. See the method description for details. message GetGlobalOrganizationOperationRequest { - // Name of the Operations resource to return. + // Name of the Operations resource to return, or its unique numeric identifier. string operation = 52090215 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_response_field) = "name" @@ -9806,7 +9839,7 @@ message GetRegionNotificationEndpointRequest { // A request message for RegionOperations.Get. See the method description for details. message GetRegionOperationRequest { - // Name of the Operations resource to return. + // Name of the Operations resource to return, or its unique numeric identifier. string operation = 52090215 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_response_field) = "name" @@ -10364,7 +10397,7 @@ message GetXpnResourcesProjectsRequest { // A request message for ZoneOperations.Get. See the method description for details. message GetZoneOperationRequest { - // Name of the Operations resource to return. + // Name of the Operations resource to return, or its unique numeric identifier. string operation = 52090215 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_response_field) = "name" @@ -10514,6 +10547,8 @@ message GuestOsFeature { SEV_SNP_CAPABLE = 426919; + TDX_CAPABLE = 240446133; + UEFI_COMPATIBLE = 195865408; VIRTIO_SCSI_MULTIQUEUE = 201597069; @@ -10751,6 +10786,9 @@ message HealthCheck { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; + // The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing. + repeated string source_regions = 405568475; + optional SSLHealthCheck ssl_health_check = 280032440; optional TCPHealthCheck tcp_health_check = 469980419; @@ -10922,6 +10960,9 @@ message HealthChecksScopedList { // message HealthStatus { // Health state of the IPv4 address of the instance. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // HEALTHY + // UNHEALTHY enum HealthState { // A value indicating that the enum field is not set. UNDEFINED_HEALTH_STATE = 0; @@ -10932,6 +10973,16 @@ message HealthStatus { } + // Health state of the IPv6 address of the instance. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // HEALTHY + // UNHEALTHY + enum Ipv6HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_IPV6_HEALTH_STATE = 0; + + } + // enum WeightError { // A value indicating that the enum field is not set. @@ -10970,6 +11021,12 @@ message HealthStatus { // For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip. optional string ip_address = 406272220; + optional string ipv6_address = 341563804; + + // Health state of the IPv6 address of the instance. + // Check the Ipv6HealthState enum for the list of possible values. + optional string ipv6_health_state = 190316614; + // The named port of the instance group, not necessarily the port that is health-checked. optional int32 port = 3446913; @@ -10984,24 +11041,37 @@ message HealthStatus { // message HealthStatusForNetworkEndpoint { // Health state of the network endpoint determined based on the health checks configured. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // DRAINING + // HEALTHY + // UNHEALTHY + // UNKNOWN enum HealthState { // A value indicating that the enum field is not set. UNDEFINED_HEALTH_STATE = 0; - // Endpoint is being drained. DRAINING = 480455402; - // Endpoint is healthy. HEALTHY = 439801213; - // Endpoint is unhealthy. UNHEALTHY = 462118084; - // Health status of the endpoint is unknown. UNKNOWN = 433141802; } + // Health state of the ipv6 network endpoint determined based on the health checks configured. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // DRAINING + // HEALTHY + // UNHEALTHY + // UNKNOWN + enum Ipv6HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_IPV6_HEALTH_STATE = 0; + + } + // URL of the backend service associated with the health state of the network endpoint. optional BackendServiceReference backend_service = 306946058; @@ -11018,6 +11088,10 @@ message HealthStatusForNetworkEndpoint { // Check the HealthState enum for the list of possible values. optional string health_state = 324007150; + // Health state of the ipv6 network endpoint determined based on the health checks configured. + // Check the Ipv6HealthState enum for the list of possible values. + optional string ipv6_health_state = 190316614; + } // Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit. @@ -11241,6 +11315,9 @@ message HttpRouteAction { // The HttpRouteRule setting specifies how to match an HTTP request and the corresponding routing action that load balancing proxies perform. message HttpRouteRule { + // customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. If a policy for an error code is not configured for the RouteRule, a policy for the error code configured in pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes effect. For example, consider a UrlMap with the following configuration: - UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx errors - A RouteRule for /coming_soon/ is configured for the error code 404. If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with routeRules.routeAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the customErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is ignored and the response from the service is returned to the client. customErrorResponsePolicy is supported only for global external Application Load Balancers. + optional CustomErrorResponsePolicy custom_error_response_policy = 202816619; + // The short description conveying the intent of this routeRule. The description can have a maximum length of 1024 characters. optional string description = 422937596; @@ -13396,7 +13473,7 @@ message InstanceGroupManager { // The autohealing policy for this managed instance group. You can specify only one value. repeated InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109; - // The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035. + // The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. The maximum character length is 58 and the name must comply with RFC1035 format. When a VM is created in the group, the MIG appends a hyphen and a random four-character string to the base instance name. If you want the MIG to assign sequential numbers instead of a random string, then end the base instance name with a hyphen followed by one or more hash symbols. The hash symbols indicate the number of digits. For example, a base instance name of "vm-###" results in "vm-001" as a VM name. @pattern [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) optional string base_instance_name = 389106439; // [Output Only] The creation timestamp for this managed instance group in RFC3339 text format. @@ -13417,6 +13494,9 @@ message InstanceGroupManager { // [Output Only] A unique identifier for this resource type. The server generates this identifier. optional uint64 id = 3355; + // Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance flexibility configuration on MIG overrides instance template configuration. + optional InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090; + // [Output Only] The URL of the Instance Group resource. optional string instance_group = 81095253; @@ -13436,12 +13516,18 @@ message InstanceGroupManager { // The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. optional string name = 3373707; - // Named ports configured for the Instance Groups complementary to this Instance Group Manager. + // [Output Only] Named ports configured on the Instance Groups complementary to this Instance Group Manager. repeated NamedPort named_ports = 427598732; // [Output Only] The URL of the region where the managed instance group resides (for regional resources). optional string region = 138946292; + // [Output Only] Reserved for future use. + optional bool satisfies_pzi = 480964257; + + // [Output Only] Reserved for future use. + optional bool satisfies_pzs = 480964267; + // [Output Only] The URL for this managed instance group. The server defines this URL. optional string self_link = 456214797; @@ -13553,6 +13639,23 @@ message InstanceGroupManagerAutoHealingPolicy { } +// +message InstanceGroupManagerInstanceFlexibilityPolicy { + // Named instance selections configuring properties that the group will use when creating new VMs. + map instance_selections = 22954577; + +} + +// +message InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection { + // Full machine-type names, e.g. "n1-standard-16". + repeated string machine_types = 79720065; + + // Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference. + optional int32 rank = 3492908; + +} + // message InstanceGroupManagerInstanceLifecyclePolicy { // The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. @@ -13656,7 +13759,7 @@ message InstanceGroupManagerResizeRequest { // Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted. optional Duration requested_run_duration = 232146425; - // The number of instances to be created by this resize request. The group's target size will be increased by this number. + // The number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'. optional int32 resize_by = 533735362; // [Output Only] The URL for this resize request. The server defines this URL. @@ -14305,7 +14408,7 @@ message InstanceProperties { // Labels to apply to instances that are created from these properties. map labels = 500195327; - // The machine type to use for instances that are created from these properties. + // The machine type to use for instances that are created from these properties. This field only accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or partial URL, for example `projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`. optional string machine_type = 227711026; // The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information. @@ -14545,7 +14648,7 @@ message InstancesBulkInsertOperationMetadata { // message InstancesGetEffectiveFirewallsResponse { - // Effective firewalls from firewall policies. + // [Output Only] Effective firewalls from firewall policies. repeated InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy firewall_policys = 410985794; // Effective firewalls on the instance. @@ -14566,6 +14669,10 @@ message InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy { NETWORK_REGIONAL = 190804272; + SYSTEM_GLOBAL = 60099507; + + SYSTEM_REGIONAL = 161777199; + UNSPECIFIED = 526786327; } @@ -14576,7 +14683,10 @@ message InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy { // [Output Only] The name of the firewall policy. optional string name = 3373707; - // The rules that apply to the network. + // [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + optional int32 priority = 445151652; + + // [Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules. repeated FirewallPolicyRule rules = 108873975; // [Output Only] The short name of the firewall policy. @@ -14925,7 +15035,7 @@ message Interconnect { // Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. optional bool admin_enabled = 445675089; - // [Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails. + // [Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails. // Check the AvailableFeatures enum for the list of possible values. repeated string available_features = 496344307; @@ -15001,7 +15111,7 @@ message Interconnect { // Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google's network that the interconnect is connected to. optional string remote_location = 324388750; - // Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH. + // Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH. // Check the RequestedFeatures enum for the list of possible values. repeated string requested_features = 461240814; @@ -19155,90 +19265,6 @@ message LocationPolicyLocationConstraints { } -// This is deprecated and has no effect. Do not use. -message LogConfig { - // This is deprecated and has no effect. Do not use. - optional LogConfigCloudAuditOptions cloud_audit = 412852561; - - // This is deprecated and has no effect. Do not use. - optional LogConfigCounterOptions counter = 420959740; - - // This is deprecated and has no effect. Do not use. - optional LogConfigDataAccessOptions data_access = 286633881; - -} - -// This is deprecated and has no effect. Do not use. -message LogConfigCloudAuditOptions { - // This is deprecated and has no effect. Do not use. - enum LogName { - // A value indicating that the enum field is not set. - UNDEFINED_LOG_NAME = 0; - - // This is deprecated and has no effect. Do not use. - ADMIN_ACTIVITY = 427503135; - - // This is deprecated and has no effect. Do not use. - DATA_ACCESS = 238070681; - - // This is deprecated and has no effect. Do not use. - UNSPECIFIED_LOG_NAME = 410515182; - - } - - // This is deprecated and has no effect. Do not use. - optional AuthorizationLoggingOptions authorization_logging_options = 217861624; - - // This is deprecated and has no effect. Do not use. - // Check the LogName enum for the list of possible values. - optional string log_name = 402913958; - -} - -// This is deprecated and has no effect. Do not use. -message LogConfigCounterOptions { - // This is deprecated and has no effect. Do not use. - repeated LogConfigCounterOptionsCustomField custom_fields = 249651015; - - // This is deprecated and has no effect. Do not use. - optional string field = 97427706; - - // This is deprecated and has no effect. Do not use. - optional string metric = 533067184; - -} - -// This is deprecated and has no effect. Do not use. -message LogConfigCounterOptionsCustomField { - // This is deprecated and has no effect. Do not use. - optional string name = 3373707; - - // This is deprecated and has no effect. Do not use. - optional string value = 111972721; - -} - -// This is deprecated and has no effect. Do not use. -message LogConfigDataAccessOptions { - // This is deprecated and has no effect. Do not use. - enum LogMode { - // A value indicating that the enum field is not set. - UNDEFINED_LOG_MODE = 0; - - // This is deprecated and has no effect. Do not use. - LOG_FAIL_CLOSED = 360469778; - - // This is deprecated and has no effect. Do not use. - LOG_MODE_UNSPECIFIED = 88160822; - - } - - // This is deprecated and has no effect. Do not use. - // Check the LogMode enum for the list of possible values. - optional string log_mode = 402897342; - -} - // Represents a machine image resource. A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, see Machine images. message MachineImage { // [Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. @@ -19339,9 +19365,29 @@ message MachineImageList { // Represents a Machine Type resource. You can use specific machine types for your VM instances based on performance and pricing requirements. For more information, read Machine Types. message MachineType { + // [Output Only] The architecture of the machine type. + enum Architecture { + // A value indicating that the enum field is not set. + UNDEFINED_ARCHITECTURE = 0; + + // Default value indicating Architecture is not set. + ARCHITECTURE_UNSPECIFIED = 394750507; + + // Machines with architecture ARM64 + ARM64 = 62547450; + + // Machines with architecture X86_64 + X86_64 = 425300551; + + } + // [Output Only] A list of accelerator configurations assigned to this machine type. repeated Accelerators accelerators = 269577064; + // [Output Only] The architecture of the machine type. + // Check the Architecture enum for the list of possible values. + optional string architecture = 302803283; + // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; @@ -19558,6 +19604,9 @@ message ManagedInstance { // [Output Only] Preserved state generated based on stateful policy for this instance. optional PreservedState preserved_state_from_policy = 470783954; + // [Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy. + optional ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825; + // [Output Only] Intended version of this instance. optional ManagedInstanceVersion version = 351608024; @@ -19603,6 +19652,13 @@ message ManagedInstanceLastAttempt { } +// +message ManagedInstancePropertiesFromFlexibilityPolicy { + // The machine type to be used for this instance. + optional string machine_type = 227711026; + +} + // message ManagedInstanceVersion { // [Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }. @@ -20130,6 +20186,9 @@ message NetworkEndpoint { // Metadata defined as annotations on the network endpoint. map annotations = 112032548; + // Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type. + optional int32 client_destination_port = 123765766; + // Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT. optional string fqdn = 3150485; @@ -20139,6 +20198,9 @@ message NetworkEndpoint { // Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork. optional string ip_address = 406272220; + // Optional IPv6 address of network endpoint. + optional string ipv6_address = 341563804; + // Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. This field can not be set for network endpoints of type GCE_VM_IP. optional int32 port = 3446913; @@ -20157,6 +20219,9 @@ message NetworkEndpointGroup { // The network endpoint is represented by IP address and port pair. GCE_VM_IP_PORT = 501838375; + // The network endpoint is represented by an IP, Port and Client Destination Port. + GCE_VM_IP_PORTMAP = 22819253; + // The network endpoint is represented by fully qualified domain name and port. INTERNET_FQDN_PORT = 404154477; @@ -20345,6 +20410,9 @@ message NetworkEndpointGroupPscData { // [Output Only] Address allocated from given subnetwork for PSC. This IP address acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. optional string consumer_psc_address = 452646572; + // The psc producer port is used to connect PSC NEG with specific port on the PSC Producer side; should only be used for the PRIVATE_SERVICE_CONNECT NEG type + optional int32 producer_port = 410021134; + // [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. optional uint64 psc_connection_id = 292082397; @@ -20453,6 +20521,9 @@ message NetworkInterface { // GVNIC GVNIC = 68209305; + // IDPF + IDPF = 2242641; + // No type specified. UNSPECIFIED_NIC_TYPE = 67411801; @@ -20469,9 +20540,12 @@ message NetworkInterface { // The network interface can have both IPv4 and IPv6 addresses. IPV4_IPV6 = 22197249; - // The network interface will be assigned IPv4 address. + // The network interface will only be assigned IPv4 addresses. IPV4_ONLY = 22373798; + // The network interface will only be assigned IPv6 addresses. + IPV6_ONLY = 79632100; + UNSPECIFIED_STACK_TYPE = 298084569; } @@ -20675,7 +20749,7 @@ message NetworksAddPeeringRequest { // message NetworksGetEffectiveFirewallsResponse { - // Effective firewalls from firewall policy. + // [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall Policies and Hierarchical Firewall Policies. Use regionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall Policies as well. repeated NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy firewall_policys = 410985794; // Effective firewalls on the network. @@ -20694,6 +20768,8 @@ message NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy { NETWORK = 413984270; + SYSTEM = 313484847; + UNSPECIFIED = 526786327; } @@ -20704,7 +20780,10 @@ message NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy { // [Output Only] The name of the firewall policy. optional string name = 3373707; - // The rules that apply to the network. + // [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + optional int32 priority = 445151652; + + // [Output Only] The rules that apply to the network. repeated FirewallPolicyRule rules = 108873975; // [Output Only] The short name of the firewall policy. @@ -21465,7 +21544,7 @@ message Operation { // [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. optional uint64 target_id = 258165385; - // [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. + // [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the disk that the snapshot was created from. optional string target_link = 62671336; // [Output Only] User who requested the operation, for example: `user@example.com` or `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. @@ -22972,6 +23051,9 @@ message PatchUrlMapRequest { // A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service is used. message PathMatcher { + // defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the PathMatcher level and applies only when no policy has been defined for the error code at lower levels like RouteRule and PathRule within this PathMatcher. If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. For example, consider a UrlMap with the following configuration: - UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors - A RouteRule for /coming_soon/ is configured for the error code 404. If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with pathMatcher.defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers. + optional CustomErrorResponsePolicy default_custom_error_response_policy = 81266089; + // defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction. optional HttpRouteAction default_route_action = 378919466; @@ -23000,6 +23082,9 @@ message PathMatcher { // A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. message PathRule { + // customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. If a policy for an error code is not configured for the PathRule, a policy for the error code configured in pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes effect. For example, consider a UrlMap with the following configuration: - UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx errors - A PathRule for /coming_soon/ is configured for the error code 404. If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect. customErrorResponsePolicy is supported only for global external Application Load Balancers. + optional CustomErrorResponsePolicy custom_error_response_policy = 202816619; + // The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. repeated string paths = 106438894; @@ -23116,9 +23201,6 @@ message Policy { optional bool iam_owned = 450566203; - // This is deprecated and has no effect. Do not use. - repeated Rule rules = 108873975; - // Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). optional int32 version = 351608024; @@ -24806,7 +24888,7 @@ message RegionNetworkEndpointGroupsDetachEndpointsRequest { // message RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse { - // Effective firewalls from firewall policy. + // [Output only] Effective firewalls from firewall policy. It applies to Regional Network Firewall Policies in the specified region, Global Network Firewall Policies and Hierachial Firewall Policies which are associated with the network. repeated RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy firewall_policys = 410985794; // Effective firewalls on the network. @@ -24837,7 +24919,7 @@ message RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirew // [Output Only] The name of the firewall policy. optional string name = 3373707; - // The rules that apply to the network. + // [Output only] The rules that apply to the network. repeated FirewallPolicyRule rules = 108873975; // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. @@ -25213,23 +25295,23 @@ message RequestMirrorPolicy { // Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. message Reservation { - // [Output Only] The status of the reservation. + // [Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; - // Resources are being allocated for the reservation. + // Reservation resources are being allocated. CREATING = 455564985; - // Reservation is currently being deleted. + // Reservation deletion is in progress. DELETING = 528602024; INVALID = 530283991; - // Reservation has allocated all its resources. + // Reservation resources have been allocated, and the reservation is ready for use. READY = 77848963; - // Reservation is currently being resized. + // Reservation update is in progress. UPDATING = 494614342; } @@ -25276,7 +25358,7 @@ message Reservation { // Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. optional bool specific_reservation_required = 226550687; - // [Output Only] The status of the reservation. + // [Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -25900,10 +25982,19 @@ message ResourceStatus { // [Output Only] An opaque ID of the host on which the VM is running. optional string physical_host = 464370704; + optional ResourceStatusScheduling scheduling = 386688404; + optional UpcomingMaintenance upcoming_maintenance = 227348592; } +// +message ResourceStatusScheduling { + // Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. + optional int32 availability_domain = 252514344; + +} + // A request message for Instances.Resume. See the method description for details. message ResumeInstanceRequest { // Name of the instance resource to resume. @@ -25992,7 +26083,7 @@ message Route { // [Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets. optional string next_hop_hub = 198679219; - // The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule + // The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 address in RFC 4291 format. For example, the following are all valid IP addresses: - 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. optional string next_hop_ilb = 198679901; // The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ @@ -26637,7 +26728,7 @@ message RouterNatRule { // An optional description of this rule. optional string description = 422937596; - // CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'" + // CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` The following example is a valid match expression for private NAT: `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'` optional string match = 103668165; // An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT. @@ -26693,10 +26784,10 @@ message RouterNatSubnetworkToNat { // message RouterStatus { - // Best routes for this router's network. + // A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network in the same region as this Cloud Router. Lists all of the best routes per prefix that are programmed into this region's VPC data plane. When global dynamic routing mode is turned on in the VPC network, this list can include cross-region dynamic routes from Cloud Routers in other regions. repeated Route best_routes = 395826693; - // Best routes learned by this router. + // A list of the best BGP routes learned by this Cloud Router. It is possible that routes listed might not be programmed into the data plane, if the Google Cloud control plane finds a more optimal route for a prefix than a route learned by this Cloud Router. repeated Route best_routes_for_router = 119389689; repeated RouterStatusBgpPeerStatus bgp_peer_status = 218459131; @@ -26880,57 +26971,6 @@ message RoutersScopedList { } -// This is deprecated and has no effect. Do not use. -message Rule { - // This is deprecated and has no effect. Do not use. - enum Action { - // A value indicating that the enum field is not set. - UNDEFINED_ACTION = 0; - - // This is deprecated and has no effect. Do not use. - ALLOW = 62368553; - - // This is deprecated and has no effect. Do not use. - ALLOW_WITH_LOG = 76034177; - - // This is deprecated and has no effect. Do not use. - DENY = 2094604; - - // This is deprecated and has no effect. Do not use. - DENY_WITH_LOG = 351433982; - - // This is deprecated and has no effect. Do not use. - LOG = 75556; - - // This is deprecated and has no effect. Do not use. - NO_ACTION = 260643444; - - } - - // This is deprecated and has no effect. Do not use. - // Check the Action enum for the list of possible values. - optional string action = 187661878; - - // This is deprecated and has no effect. Do not use. - repeated Condition conditions = 142882488; - - // This is deprecated and has no effect. Do not use. - optional string description = 422937596; - - // This is deprecated and has no effect. Do not use. - repeated string ins = 104430; - - // This is deprecated and has no effect. Do not use. - repeated LogConfig log_configs = 152873846; - - // This is deprecated and has no effect. Do not use. - repeated string not_ins = 518443138; - - // This is deprecated and has no effect. Do not use. - repeated string permissions = 59962500; - -} - // message SSLHealthCheck { // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. @@ -27212,6 +27252,9 @@ message Scheduling { // Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine. optional bool automatic_restart = 350821371; + // Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. + optional int32 availability_domain = 252514344; + // Specifies the termination action for the instance. // Check the InstanceTerminationAction enum for the list of possible values. optional string instance_termination_action = 107380667; @@ -27222,6 +27265,9 @@ message Scheduling { // An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API. optional string location_hint = 350519505; + // Specifies the max run duration for the given instance. If specified, the instance termination action will be performed at the end of the run duration. + optional Duration max_run_duration = 430839747; + // The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. optional int32 min_node_cpus = 317231675; @@ -27232,6 +27278,8 @@ message Scheduling { // Check the OnHostMaintenance enum for the list of possible values. optional string on_host_maintenance = 64616796; + optional SchedulingOnInstanceStopAction on_instance_stop_action = 529876681; + // Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. optional bool preemptible = 324203169; @@ -27239,6 +27287,9 @@ message Scheduling { // Check the ProvisioningModel enum for the list of possible values. optional string provisioning_model = 494423; + // Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time. + optional string termination_time = 428082984; + } // Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. @@ -27270,6 +27321,13 @@ message SchedulingNodeAffinity { } +// Defines the behaviour for instances with the instance_termination_action STOP. +message SchedulingOnInstanceStopAction { + // If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time. + optional bool discard_local_ssd = 319517903; + +} + // message ScratchDisks { // Size of the scratch disk, defined in GB. @@ -27443,9 +27501,45 @@ message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdCo optional float auto_deploy_load_threshold = 522227738; + optional float detection_absolute_qps = 383123174; + + optional float detection_load_threshold = 430499148; + + optional float detection_relative_to_baseline_qps = 291343749; + // The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy. optional string name = 3373707; + // Configuration options for enabling Adaptive Protection to operate on specified granular traffic units. + repeated SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; + +} + +// Configurations to specifc granular traffic units processed by Adaptive Protection. +message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig { + // Type of this configuration. + enum Type { + // A value indicating that the enum field is not set. + UNDEFINED_TYPE = 0; + + HTTP_HEADER_HOST = 374321891; + + HTTP_PATH = 311503228; + + UNSPECIFIED_TYPE = 53933922; + + } + + // If enabled, traffic matching each unique value for the specified type constitutes a separate traffic unit. It can only be set to true if `value` is empty. + optional bool enable_each_unique_value = 469206341; + + // Type of this configuration. + // Check the Type enum for the list of possible values. + optional string type = 3575610; + + // Requests that match this value constitute a granular traffic unit. + optional string value = 111972721; + } // @@ -28057,6 +28151,9 @@ message ServiceAttachment { // The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment. optional string producer_forwarding_rule = 247927889; + // The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer. If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint. If unspecified, the default propagated connection limit is 250. + optional uint32 propagated_connection_limit = 332719230; + // [Output Only] An 128-bit global unique ID of the PSC service attachment. optional Uint128 psc_service_attachment_id = 527695214; @@ -28131,6 +28228,9 @@ message ServiceAttachmentConnectedEndpoint { // The url of a connected endpoint. optional string endpoint = 130489749; + // The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to. + optional uint32 propagated_connection_count = 324594130; + // The PSC connection id of the connected endpoint. optional uint64 psc_connection_id = 292082397; @@ -31196,7 +31296,7 @@ message StoragePool { // Check the PerformanceProvisioningType enum for the list of possible values. optional string performance_provisioning_type = 468553469; - // Size, in GiB, of the storage pool. + // Size, in GiB, of the storage pool. For more information about the size limits, see https://cloud.google.com/compute/docs/disks/storage-pools. optional int64 pool_provisioned_capacity_gb = 478537682; // Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced. @@ -31387,7 +31487,7 @@ message StoragePoolResourceStatus { // [Output Only] Space used by data stored in disks within the storage pool (in bytes). This will reflect the total number of bytes written to the disks in the pool, in contrast to the capacity of those disks. optional int64 pool_used_capacity_bytes = 510407877; - // Sum of all the disks' provisioned IOPS, minus some amount that is allowed per disk that is not counted towards pool's IOPS capacity. + // [Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per disk that is not counted towards pool's IOPS capacity. For more information, see https://cloud.google.com/compute/docs/disks/storage-pools. optional int64 pool_used_iops = 99558536; // [Output Only] Sum of all the disks' provisioned throughput in MB/s. @@ -31611,6 +31711,9 @@ message Subnetwork { // New VMs in this subnet will only be assigned IPv4 addresses. IPV4_ONLY = 22373798; + // New VMs in this subnet will only be assigned IPv6 addresses. + IPV6_ONLY = 79632100; + UNSPECIFIED_STACK_TYPE = 298084569; } @@ -31649,7 +31752,7 @@ message Subnetwork { // [Output Only] The unique identifier for the resource. This identifier is defined by the server. optional uint64 id = 3355; - // [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + // The internal IPv6 address range that is owned by this subnetwork. optional string internal_ipv6_prefix = 506270056; // The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange. @@ -32186,10 +32289,26 @@ message TargetHttpsProxy { } + // Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early Data allows a TLS resumption handshake to include the initial application payload (a HTTP request) alongside the handshake, reducing the effective round trips to "zero". This applies to TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). This can improve application performance, especially on networks where interruptions may be common, such as on mobile. Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a value of "1", to allow the backend to determine whether Early Data was included. Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend before the handshake has fully completed. Applications that allow idempotent HTTP methods to make non-idempotent changes, such as a GET request updating a database, should not accept Early Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a HTTP 425 (Too Early) status code, in order to remain RFC compliant. The default value is DISABLED. + enum TlsEarlyData { + // A value indicating that the enum field is not set. + UNDEFINED_TLS_EARLY_DATA = 0; + + // TLS 1.3 Early Data is not advertised, and any (invalid) attempts to send Early Data will be rejected by closing the connection. + DISABLED = 516696700; + + // This enables TLS 1.3 0-RTT, and only allows Early Data to be included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE). This mode does not enforce any other limitations for requests with Early Data. The application owner should validate that Early Data is acceptable for a given request path. + PERMISSIVE = 504345247; + + // This enables TLS 1.3 0-RTT, and only allows Early Data to be included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE) without query parameters. Requests that send Early Data with non-idempotent HTTP methods or with query parameters will be rejected with a HTTP 425. + STRICT = 308826825; + + } + // Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how the proxy should authorize inbound traffic. If left blank, access will not be restricted by an authorization policy. Refer to the AuthorizationPolicy resource for additional details. authorizationPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. Note: This field currently has no impact. optional string authorization_policy = 33945528; - // URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}. + // URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for Global external Application Load Balancer or Classic Application Load Balancer. For other products use Certificate Manager Certificates instead. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}. optional string certificate_map = 156463796; // [Output Only] Creation timestamp in RFC3339 text format. @@ -32229,12 +32348,16 @@ message TargetHttpsProxy { // Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, communications are not encrypted. optional string server_tls_policy = 295825266; - // URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. + // URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}. repeated string ssl_certificates = 366006543; // URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource has no SSL policy configured. optional string ssl_policy = 295190213; + // Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early Data allows a TLS resumption handshake to include the initial application payload (a HTTP request) alongside the handshake, reducing the effective round trips to "zero". This applies to TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). This can improve application performance, especially on networks where interruptions may be common, such as on mobile. Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a value of "1", to allow the backend to determine whether Early Data was included. Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend before the handshake has fully completed. Applications that allow idempotent HTTP methods to make non-idempotent changes, such as a GET request updating a database, should not accept Early Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a HTTP 425 (Too Early) status code, in order to remain RFC compliant. The default value is DISABLED. + // Check the TlsEarlyData enum for the list of possible values. + optional string tls_early_data = 61108426; + // A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL to the BackendService. For example, the following are all valid URLs for specifying a URL map: - https://www.googleapis.compute/v1/projects/project/global/urlMaps/ url-map - projects/project/global/urlMaps/url-map - global/urlMaps/url-map optional string url_map = 367020684; @@ -32423,6 +32546,9 @@ message TargetPool { // No session affinity. Connections from the same client IP may go to any instance in the pool. NONE = 2402104; + // Strong cookie-based affinity. Connections bearing the same cookie will be served by the same backend VM while that VM remains healthy, as long as the cookie has not expired. + STRONG_COOKIE_AFFINITY = 438628091; + } // The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. @@ -34085,15 +34211,18 @@ message UpdateUrlMapRequest { } -// Represents a URL Map resource. Compute Engine has two URL Map resources: * [Global](/compute/docs/reference/rest/v1/urlMaps) * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) A URL map resource is a component of certain types of cloud load balancers and Traffic Director: * urlMaps are used by global external Application Load Balancers, classic Application Load Balancers, and cross-region internal Application Load Balancers. * regionUrlMaps are used by internal Application Load Balancers, regional external Application Load Balancers and regional internal Application Load Balancers. For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts. +// Represents a URL Map resource. Compute Engine has two URL Map resources: * [Global](/compute/docs/reference/rest/v1/urlMaps) * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) A URL map resource is a component of certain types of cloud load balancers and Traffic Director: * urlMaps are used by global external Application Load Balancers, classic Application Load Balancers, and cross-region internal Application Load Balancers. * regionUrlMaps are used by internal Application Load Balancers, regional external Application Load Balancers and regional internal Application Load Balancers. For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL, EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts. message UrlMap { // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; + // defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the load balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers. + optional CustomErrorResponsePolicy default_custom_error_response_policy = 81266089; + // defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional HttpRouteAction default_route_action = 378919466; - // The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional string default_service = 370242231; // When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. @@ -34359,6 +34488,9 @@ message UsableSubnetwork { // New VMs in this subnet will only be assigned IPv4 addresses. IPV4_ONLY = 22373798; + // New VMs in this subnet will only be assigned IPv6 addresses. + IPV6_ONLY = 79632100; + } // [Output Only] The external IPv6 address range that is assigned to this subnetwork. @@ -34558,7 +34690,7 @@ message VpnGateway { } - // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used. + // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6, IPV6_ONLY. If not specified, IPV4_ONLY is used if the gateway IP version is IPV4, or IPV4_IPV6 if the gateway IP version is IPV6. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; @@ -34569,6 +34701,9 @@ message VpnGateway { // Enable VPN gateway with only IPv4 protocol. IPV4_ONLY = 22373798; + // Enable VPN gateway with only IPv6 protocol. + IPV6_ONLY = 79632100; + } // [Output Only] Creation timestamp in RFC3339 text format. @@ -34605,7 +34740,7 @@ message VpnGateway { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used. + // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6, IPV6_ONLY. If not specified, IPV4_ONLY is used if the gateway IP version is IPV4, or IPV4_IPV6 if the gateway IP version is IPV6. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; @@ -34835,7 +34970,7 @@ message VpnTunnel { // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. map labels = 500195327; - // Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported. + // Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels. repeated string local_traffic_selector = 317314613; // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. @@ -34850,13 +34985,13 @@ message VpnTunnel { // URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway. optional string peer_gcp_gateway = 281867452; - // IP address of the peer VPN gateway. Only IPv4 is supported. + // IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels. optional string peer_ip = 383249700; // [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. optional string region = 138946292; - // Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported. + // Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels. repeated string remote_traffic_selector = 358887098; // URL of the router resource to be used for dynamic routing. @@ -34875,7 +35010,7 @@ message VpnTunnel { // Check the Status enum for the list of possible values. optional string status = 181260274; - // URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. + // URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels. optional string target_vpn_gateway = 532512843; // URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created. @@ -34968,7 +35103,7 @@ message WafExpressionSetExpression { // A request message for GlobalOperations.Wait. See the method description for details. message WaitGlobalOperationRequest { - // Name of the Operations resource to return. + // Name of the Operations resource to return, or its unique numeric identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -34978,7 +35113,7 @@ message WaitGlobalOperationRequest { // A request message for RegionOperations.Wait. See the method description for details. message WaitRegionOperationRequest { - // Name of the Operations resource to return. + // Name of the Operations resource to return, or its unique numeric identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -34991,7 +35126,7 @@ message WaitRegionOperationRequest { // A request message for ZoneOperations.Wait. See the method description for details. message WaitZoneOperationRequest { - // Name of the Operations resource to return. + // Name of the Operations resource to return, or its unique numeric identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -35220,7 +35355,7 @@ message WeightedBackendService { // Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; - // Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000. + // Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. Don't configure session affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting configuration takes precedence. The value must be from 0 to 1000. optional uint32 weight = 282149496; } @@ -35307,7 +35442,7 @@ message XpnResourceId { } -// Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-a is located in the us-east1 region. For more information, read Regions and Zones. +// Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-b is located in the us-east1 region. For more information, read Regions and Zones. message Zone { // [Output Only] Status of the zone, either UP or DOWN. enum Status { @@ -35797,7 +35932,7 @@ service BackendServices { option (google.api.method_signature) = "project"; } - // Retrieves an aggregated list of all usable backend services in the specified project. + // Retrieves a list of all usable backend services in the specified project. rpc ListUsable(ListUsableBackendServicesRequest) returns (BackendServiceListUsable) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/backendServices/listUsable" @@ -38914,7 +39049,7 @@ service Networks { option (google.api.method_signature) = "project,network"; } - // Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode. + // Patches the specified network with the data included in the request. Only routingConfig can be modified. rpc Patch(PatchNetworkRequest) returns (Operation) { option (google.api.http) = { body: "network_resource" @@ -39717,7 +39852,7 @@ service RegionBackendServices { option (google.api.method_signature) = "project,region"; } - // Retrieves an aggregated list of all usable backend services in the specified project in the given region. + // Retrieves a list of all usable backend services in the specified project in the given region. rpc ListUsable(ListUsableRegionBackendServicesRequest) returns (BackendServiceListUsable) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}/backendServices/listUsable" @@ -41348,7 +41483,7 @@ service Regions { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + // Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. rpc Get(GetRegionRequest) returns (Region) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}" @@ -41356,7 +41491,7 @@ service Regions { option (google.api.method_signature) = "project,region"; } - // Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + // Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. rpc List(ListRegionsRequest) returns (RegionList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions" @@ -42277,7 +42412,7 @@ service StoragePools { option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; } - // Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: size_tb and provisioned_iops. + // Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. rpc Update(UpdateStoragePoolRequest) returns (Operation) { option (google.api.http) = { body: "storage_pool_resource" diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index c3d86ec3e26..0134e0bde04 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -8805,9 +8805,15 @@ export namespace google { /** AdvancedMachineFeatures enableUefiNetworking */ enableUefiNetworking?: (boolean|null); + /** AdvancedMachineFeatures performanceMonitoringUnit */ + performanceMonitoringUnit?: (string|null); + /** AdvancedMachineFeatures threadsPerCore */ threadsPerCore?: (number|null); + /** AdvancedMachineFeatures turboMode */ + turboMode?: (string|null); + /** AdvancedMachineFeatures visibleCoreCount */ visibleCoreCount?: (number|null); } @@ -8827,9 +8833,15 @@ export namespace google { /** AdvancedMachineFeatures enableUefiNetworking. */ public enableUefiNetworking?: (boolean|null); + /** AdvancedMachineFeatures performanceMonitoringUnit. */ + public performanceMonitoringUnit?: (string|null); + /** AdvancedMachineFeatures threadsPerCore. */ public threadsPerCore?: (number|null); + /** AdvancedMachineFeatures turboMode. */ + public turboMode?: (string|null); + /** AdvancedMachineFeatures visibleCoreCount. */ public visibleCoreCount?: (number|null); @@ -8839,9 +8851,15 @@ export namespace google { /** AdvancedMachineFeatures _enableUefiNetworking. */ public _enableUefiNetworking?: "enableUefiNetworking"; + /** AdvancedMachineFeatures _performanceMonitoringUnit. */ + public _performanceMonitoringUnit?: "performanceMonitoringUnit"; + /** AdvancedMachineFeatures _threadsPerCore. */ public _threadsPerCore?: "threadsPerCore"; + /** AdvancedMachineFeatures _turboMode. */ + public _turboMode?: "turboMode"; + /** AdvancedMachineFeatures _visibleCoreCount. */ public _visibleCoreCount?: "visibleCoreCount"; @@ -8923,6 +8941,18 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace AdvancedMachineFeatures { + + /** PerformanceMonitoringUnit enum. */ + enum PerformanceMonitoringUnit { + UNDEFINED_PERFORMANCE_MONITORING_UNIT = 0, + ARCHITECTURAL = 155113693, + ENHANCED = 476873590, + PERFORMANCE_MONITORING_UNIT_UNSPECIFIED = 429210692, + STANDARD = 484642493 + } + } + /** Properties of an AggregatedListAcceleratorTypesRequest. */ interface IAggregatedListAcceleratorTypesRequest { @@ -16198,8 +16228,10 @@ export namespace google { /** VmFamily enum. */ enum VmFamily { UNDEFINED_VM_FAMILY = 0, + VM_FAMILY_CLOUD_TPU_DEVICE_CT3 = 42845948, VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 108020067, VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 18705267, + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 517384376, VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407 } @@ -18862,119 +18894,6 @@ export namespace google { } } - /** Properties of an AuthorizationLoggingOptions. */ - interface IAuthorizationLoggingOptions { - - /** AuthorizationLoggingOptions permissionType */ - permissionType?: (string|null); - } - - /** Represents an AuthorizationLoggingOptions. */ - class AuthorizationLoggingOptions implements IAuthorizationLoggingOptions { - - /** - * Constructs a new AuthorizationLoggingOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.compute.v1.IAuthorizationLoggingOptions); - - /** AuthorizationLoggingOptions permissionType. */ - public permissionType?: (string|null); - - /** AuthorizationLoggingOptions _permissionType. */ - public _permissionType?: "permissionType"; - - /** - * Creates a new AuthorizationLoggingOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns AuthorizationLoggingOptions instance - */ - public static create(properties?: google.cloud.compute.v1.IAuthorizationLoggingOptions): google.cloud.compute.v1.AuthorizationLoggingOptions; - - /** - * Encodes the specified AuthorizationLoggingOptions message. Does not implicitly {@link google.cloud.compute.v1.AuthorizationLoggingOptions.verify|verify} messages. - * @param message AuthorizationLoggingOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.compute.v1.IAuthorizationLoggingOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AuthorizationLoggingOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AuthorizationLoggingOptions.verify|verify} messages. - * @param message AuthorizationLoggingOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.compute.v1.IAuthorizationLoggingOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AuthorizationLoggingOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuthorizationLoggingOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.AuthorizationLoggingOptions; - - /** - * Decodes an AuthorizationLoggingOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuthorizationLoggingOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.AuthorizationLoggingOptions; - - /** - * Verifies an AuthorizationLoggingOptions message. - * @param message Plain 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 AuthorizationLoggingOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AuthorizationLoggingOptions - */ - public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AuthorizationLoggingOptions; - - /** - * Creates a plain object from an AuthorizationLoggingOptions message. Also converts values to other types if specified. - * @param message AuthorizationLoggingOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.compute.v1.AuthorizationLoggingOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AuthorizationLoggingOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AuthorizationLoggingOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace AuthorizationLoggingOptions { - - /** PermissionType enum. */ - enum PermissionType { - UNDEFINED_PERMISSION_TYPE = 0, - ADMIN_READ = 128951462, - ADMIN_WRITE = 244412079, - DATA_READ = 305224971, - DATA_WRITE = 340181738, - PERMISSION_TYPE_UNSPECIFIED = 440313346 - } - } - /** Properties of an Autoscaler. */ interface IAutoscaler { @@ -20794,6 +20713,9 @@ export namespace google { /** BackendBucket selfLink */ selfLink?: (string|null); + + /** BackendBucket usedBy */ + usedBy?: (google.cloud.compute.v1.IBackendBucketUsedBy[]|null); } /** Represents a BackendBucket. */ @@ -20841,6 +20763,9 @@ export namespace google { /** BackendBucket selfLink. */ public selfLink?: (string|null); + /** BackendBucket usedBy. */ + public usedBy: google.cloud.compute.v1.IBackendBucketUsedBy[]; + /** BackendBucket _bucketName. */ public _bucketName?: "bucketName"; @@ -21618,6 +21543,106 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BackendBucketUsedBy. */ + interface IBackendBucketUsedBy { + + /** BackendBucketUsedBy reference */ + reference?: (string|null); + } + + /** Represents a BackendBucketUsedBy. */ + class BackendBucketUsedBy implements IBackendBucketUsedBy { + + /** + * Constructs a new BackendBucketUsedBy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendBucketUsedBy); + + /** BackendBucketUsedBy reference. */ + public reference?: (string|null); + + /** BackendBucketUsedBy _reference. */ + public _reference?: "reference"; + + /** + * Creates a new BackendBucketUsedBy instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendBucketUsedBy instance + */ + public static create(properties?: google.cloud.compute.v1.IBackendBucketUsedBy): google.cloud.compute.v1.BackendBucketUsedBy; + + /** + * Encodes the specified BackendBucketUsedBy message. Does not implicitly {@link google.cloud.compute.v1.BackendBucketUsedBy.verify|verify} messages. + * @param message BackendBucketUsedBy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBackendBucketUsedBy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBucketUsedBy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendBucketUsedBy.verify|verify} messages. + * @param message BackendBucketUsedBy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBackendBucketUsedBy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendBucketUsedBy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendBucketUsedBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.BackendBucketUsedBy; + + /** + * Decodes a BackendBucketUsedBy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendBucketUsedBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.BackendBucketUsedBy; + + /** + * Verifies a BackendBucketUsedBy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendBucketUsedBy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendBucketUsedBy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BackendBucketUsedBy; + + /** + * Creates a plain object from a BackendBucketUsedBy message. Also converts values to other types if specified. + * @param message BackendBucketUsedBy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BackendBucketUsedBy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendBucketUsedBy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendBucketUsedBy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendService. */ interface IBackendService { @@ -21678,6 +21703,9 @@ export namespace google { /** BackendService id */ id?: (number|Long|string|null); + /** BackendService ipAddressSelectionPolicy */ + ipAddressSelectionPolicy?: (string|null); + /** BackendService kind */ kind?: (string|null); @@ -21738,6 +21766,9 @@ export namespace google { /** BackendService sessionAffinity */ sessionAffinity?: (string|null); + /** BackendService strongSessionAffinityCookie */ + strongSessionAffinityCookie?: (google.cloud.compute.v1.IBackendServiceHttpCookie|null); + /** BackendService subsetting */ subsetting?: (google.cloud.compute.v1.ISubsetting|null); @@ -21814,6 +21845,9 @@ export namespace google { /** BackendService id. */ public id?: (number|Long|string|null); + /** BackendService ipAddressSelectionPolicy. */ + public ipAddressSelectionPolicy?: (string|null); + /** BackendService kind. */ public kind?: (string|null); @@ -21874,6 +21908,9 @@ export namespace google { /** BackendService sessionAffinity. */ public sessionAffinity?: (string|null); + /** BackendService strongSessionAffinityCookie. */ + public strongSessionAffinityCookie?: (google.cloud.compute.v1.IBackendServiceHttpCookie|null); + /** BackendService subsetting. */ public subsetting?: (google.cloud.compute.v1.ISubsetting|null); @@ -21928,6 +21965,9 @@ export namespace google { /** BackendService _id. */ public _id?: "id"; + /** BackendService _ipAddressSelectionPolicy. */ + public _ipAddressSelectionPolicy?: "ipAddressSelectionPolicy"; + /** BackendService _kind. */ public _kind?: "kind"; @@ -21979,6 +22019,9 @@ export namespace google { /** BackendService _sessionAffinity. */ public _sessionAffinity?: "sessionAffinity"; + /** BackendService _strongSessionAffinityCookie. */ + public _strongSessionAffinityCookie?: "strongSessionAffinityCookie"; + /** BackendService _subsetting. */ public _subsetting?: "subsetting"; @@ -22072,6 +22115,15 @@ export namespace google { DISABLED = 516696700 } + /** IpAddressSelectionPolicy enum. */ + enum IpAddressSelectionPolicy { + UNDEFINED_IP_ADDRESS_SELECTION_POLICY = 0, + IPV4_ONLY = 22373798, + IPV6_ONLY = 79632100, + IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED = 36210144, + PREFER_IPV6 = 408601302 + } + /** LoadBalancingScheme enum. */ enum LoadBalancingScheme { UNDEFINED_LOAD_BALANCING_SCHEME = 0, @@ -22119,7 +22171,8 @@ export namespace google { GENERATED_COOKIE = 370321204, HEADER_FIELD = 200737960, HTTP_COOKIE = 494981627, - NONE = 2402104 + NONE = 2402104, + STRONG_COOKIE_AFFINITY = 438628091 } } @@ -23058,6 +23111,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BackendServiceHttpCookie. */ + interface IBackendServiceHttpCookie { + + /** BackendServiceHttpCookie name */ + name?: (string|null); + + /** BackendServiceHttpCookie path */ + path?: (string|null); + + /** BackendServiceHttpCookie ttl */ + ttl?: (google.cloud.compute.v1.IDuration|null); + } + + /** Represents a BackendServiceHttpCookie. */ + class BackendServiceHttpCookie implements IBackendServiceHttpCookie { + + /** + * Constructs a new BackendServiceHttpCookie. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendServiceHttpCookie); + + /** BackendServiceHttpCookie name. */ + public name?: (string|null); + + /** BackendServiceHttpCookie path. */ + public path?: (string|null); + + /** BackendServiceHttpCookie ttl. */ + public ttl?: (google.cloud.compute.v1.IDuration|null); + + /** BackendServiceHttpCookie _name. */ + public _name?: "name"; + + /** BackendServiceHttpCookie _path. */ + public _path?: "path"; + + /** BackendServiceHttpCookie _ttl. */ + public _ttl?: "ttl"; + + /** + * Creates a new BackendServiceHttpCookie instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendServiceHttpCookie instance + */ + public static create(properties?: google.cloud.compute.v1.IBackendServiceHttpCookie): google.cloud.compute.v1.BackendServiceHttpCookie; + + /** + * Encodes the specified BackendServiceHttpCookie message. Does not implicitly {@link google.cloud.compute.v1.BackendServiceHttpCookie.verify|verify} messages. + * @param message BackendServiceHttpCookie message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBackendServiceHttpCookie, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendServiceHttpCookie message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendServiceHttpCookie.verify|verify} messages. + * @param message BackendServiceHttpCookie message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBackendServiceHttpCookie, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendServiceHttpCookie message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendServiceHttpCookie + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.BackendServiceHttpCookie; + + /** + * Decodes a BackendServiceHttpCookie message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendServiceHttpCookie + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.BackendServiceHttpCookie; + + /** + * Verifies a BackendServiceHttpCookie message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendServiceHttpCookie message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendServiceHttpCookie + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BackendServiceHttpCookie; + + /** + * Creates a plain object from a BackendServiceHttpCookie message. Also converts values to other types if specified. + * @param message BackendServiceHttpCookie + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BackendServiceHttpCookie, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendServiceHttpCookie to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendServiceHttpCookie + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendServiceIAP. */ interface IBackendServiceIAP { @@ -26838,6 +27009,9 @@ export namespace google { /** Commitment creationTimestamp */ creationTimestamp?: (string|null); + /** Commitment customEndTimestamp */ + customEndTimestamp?: (string|null); + /** Commitment description */ description?: (string|null); @@ -26871,6 +27045,9 @@ export namespace google { /** Commitment reservations */ reservations?: (google.cloud.compute.v1.IReservation[]|null); + /** Commitment resourceStatus */ + resourceStatus?: (google.cloud.compute.v1.ICommitmentResourceStatus|null); + /** Commitment resources */ resources?: (google.cloud.compute.v1.IResourceCommitment[]|null); @@ -26911,6 +27088,9 @@ export namespace google { /** Commitment creationTimestamp. */ public creationTimestamp?: (string|null); + /** Commitment customEndTimestamp. */ + public customEndTimestamp?: (string|null); + /** Commitment description. */ public description?: (string|null); @@ -26944,6 +27124,9 @@ export namespace google { /** Commitment reservations. */ public reservations: google.cloud.compute.v1.IReservation[]; + /** Commitment resourceStatus. */ + public resourceStatus?: (google.cloud.compute.v1.ICommitmentResourceStatus|null); + /** Commitment resources. */ public resources: google.cloud.compute.v1.IResourceCommitment[]; @@ -26974,6 +27157,9 @@ export namespace google { /** Commitment _creationTimestamp. */ public _creationTimestamp?: "creationTimestamp"; + /** Commitment _customEndTimestamp. */ + public _customEndTimestamp?: "customEndTimestamp"; + /** Commitment _description. */ public _description?: "description"; @@ -26998,6 +27184,9 @@ export namespace google { /** Commitment _region. */ public _region?: "region"; + /** Commitment _resourceStatus. */ + public _resourceStatus?: "resourceStatus"; + /** Commitment _selfLink. */ public _selfLink?: "selfLink"; @@ -27134,6 +27323,7 @@ export namespace google { COMPUTE_OPTIMIZED_C3D = 383246484, COMPUTE_OPTIMIZED_H3 = 428004939, GENERAL_PURPOSE = 299793543, + GENERAL_PURPOSE_C4 = 301911817, GENERAL_PURPOSE_E2 = 301911877, GENERAL_PURPOSE_N2 = 301912156, GENERAL_PURPOSE_N2D = 232471400, @@ -27437,6 +27627,106 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CommitmentResourceStatus. */ + interface ICommitmentResourceStatus { + + /** CommitmentResourceStatus customTermEligibilityEndTimestamp */ + customTermEligibilityEndTimestamp?: (string|null); + } + + /** Represents a CommitmentResourceStatus. */ + class CommitmentResourceStatus implements ICommitmentResourceStatus { + + /** + * Constructs a new CommitmentResourceStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICommitmentResourceStatus); + + /** CommitmentResourceStatus customTermEligibilityEndTimestamp. */ + public customTermEligibilityEndTimestamp?: (string|null); + + /** CommitmentResourceStatus _customTermEligibilityEndTimestamp. */ + public _customTermEligibilityEndTimestamp?: "customTermEligibilityEndTimestamp"; + + /** + * Creates a new CommitmentResourceStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitmentResourceStatus instance + */ + public static create(properties?: google.cloud.compute.v1.ICommitmentResourceStatus): google.cloud.compute.v1.CommitmentResourceStatus; + + /** + * Encodes the specified CommitmentResourceStatus message. Does not implicitly {@link google.cloud.compute.v1.CommitmentResourceStatus.verify|verify} messages. + * @param message CommitmentResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICommitmentResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitmentResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CommitmentResourceStatus.verify|verify} messages. + * @param message CommitmentResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICommitmentResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitmentResourceStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitmentResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.CommitmentResourceStatus; + + /** + * Decodes a CommitmentResourceStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitmentResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.CommitmentResourceStatus; + + /** + * Verifies a CommitmentResourceStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitmentResourceStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitmentResourceStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CommitmentResourceStatus; + + /** + * Creates a plain object from a CommitmentResourceStatus message. Also converts values to other types if specified. + * @param message CommitmentResourceStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CommitmentResourceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitmentResourceStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitmentResourceStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CommitmentsScopedList. */ interface ICommitmentsScopedList { @@ -27543,177 +27833,12 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Condition. */ - interface ICondition { - - /** Condition iam */ - iam?: (string|null); - - /** Condition op */ - op?: (string|null); - - /** Condition svc */ - svc?: (string|null); - - /** Condition sys */ - sys?: (string|null); - - /** Condition values */ - values?: (string[]|null); - } - - /** Represents a Condition. */ - class Condition implements ICondition { - - /** - * Constructs a new Condition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.compute.v1.ICondition); - - /** Condition iam. */ - public iam?: (string|null); - - /** Condition op. */ - public op?: (string|null); - - /** Condition svc. */ - public svc?: (string|null); - - /** Condition sys. */ - public sys?: (string|null); - - /** Condition values. */ - public values: string[]; - - /** Condition _iam. */ - public _iam?: "iam"; - - /** Condition _op. */ - public _op?: "op"; - - /** Condition _svc. */ - public _svc?: "svc"; - - /** Condition _sys. */ - public _sys?: "sys"; - - /** - * Creates a new Condition instance using the specified properties. - * @param [properties] Properties to set - * @returns Condition instance - */ - public static create(properties?: google.cloud.compute.v1.ICondition): google.cloud.compute.v1.Condition; - - /** - * Encodes the specified Condition message. Does not implicitly {@link google.cloud.compute.v1.Condition.verify|verify} messages. - * @param message Condition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.compute.v1.ICondition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Condition message, length delimited. Does not implicitly {@link google.cloud.compute.v1.Condition.verify|verify} messages. - * @param message Condition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.compute.v1.ICondition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Condition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Condition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.Condition; - - /** - * Decodes a Condition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Condition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.Condition; - - /** - * Verifies a Condition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Condition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Condition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.Condition; - - /** - * Creates a plain object from a Condition message. Also converts values to other types if specified. - * @param message Condition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.compute.v1.Condition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Condition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Condition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Condition { - - /** Iam enum. */ - enum Iam { - UNDEFINED_IAM = 0, - APPROVER = 357258949, - ATTRIBUTION = 232465503, - AUTHORITY = 504108835, - CREDENTIALS_TYPE = 348222141, - CREDS_ASSERTION = 332343272, - JUSTIFICATION_TYPE = 206147719, - SECURITY_REALM = 526269616 - } - - /** Op enum. */ - enum Op { - UNDEFINED_OP = 0, - DISCHARGED = 266338274, - EQUALS = 442201023, - IN = 2341, - NOT_EQUALS = 19718859, - NOT_IN = 161144369, - NO_OP = 74481951 - } - - /** Sys enum. */ - enum Sys { - UNDEFINED_SYS = 0, - IP = 2343, - NAME = 2388619, - REGION = 266017524, - SERVICE = 17781397 - } - } - /** Properties of a ConfidentialInstanceConfig. */ interface IConfidentialInstanceConfig { + /** ConfidentialInstanceConfig confidentialInstanceType */ + confidentialInstanceType?: (string|null); + /** ConfidentialInstanceConfig enableConfidentialCompute */ enableConfidentialCompute?: (boolean|null); } @@ -27727,9 +27852,15 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IConfidentialInstanceConfig); + /** ConfidentialInstanceConfig confidentialInstanceType. */ + public confidentialInstanceType?: (string|null); + /** ConfidentialInstanceConfig enableConfidentialCompute. */ public enableConfidentialCompute?: (boolean|null); + /** ConfidentialInstanceConfig _confidentialInstanceType. */ + public _confidentialInstanceType?: "confidentialInstanceType"; + /** ConfidentialInstanceConfig _enableConfidentialCompute. */ public _enableConfidentialCompute?: "enableConfidentialCompute"; @@ -27811,6 +27942,18 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace ConfidentialInstanceConfig { + + /** ConfidentialInstanceType enum. */ + enum ConfidentialInstanceType { + UNDEFINED_CONFIDENTIAL_INSTANCE_TYPE = 0, + CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 115021829, + SEV = 81988, + SEV_SNP = 21753562, + TDX = 82920 + } + } + /** Properties of a ConnectionDraining. */ interface IConnectionDraining { @@ -28800,6 +28943,227 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CustomErrorResponsePolicy. */ + interface ICustomErrorResponsePolicy { + + /** CustomErrorResponsePolicy errorResponseRules */ + errorResponseRules?: (google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule[]|null); + + /** CustomErrorResponsePolicy errorService */ + errorService?: (string|null); + } + + /** Represents a CustomErrorResponsePolicy. */ + class CustomErrorResponsePolicy implements ICustomErrorResponsePolicy { + + /** + * Constructs a new CustomErrorResponsePolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICustomErrorResponsePolicy); + + /** CustomErrorResponsePolicy errorResponseRules. */ + public errorResponseRules: google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule[]; + + /** CustomErrorResponsePolicy errorService. */ + public errorService?: (string|null); + + /** CustomErrorResponsePolicy _errorService. */ + public _errorService?: "errorService"; + + /** + * Creates a new CustomErrorResponsePolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomErrorResponsePolicy instance + */ + public static create(properties?: google.cloud.compute.v1.ICustomErrorResponsePolicy): google.cloud.compute.v1.CustomErrorResponsePolicy; + + /** + * Encodes the specified CustomErrorResponsePolicy message. Does not implicitly {@link google.cloud.compute.v1.CustomErrorResponsePolicy.verify|verify} messages. + * @param message CustomErrorResponsePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICustomErrorResponsePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomErrorResponsePolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CustomErrorResponsePolicy.verify|verify} messages. + * @param message CustomErrorResponsePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICustomErrorResponsePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomErrorResponsePolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomErrorResponsePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.CustomErrorResponsePolicy; + + /** + * Decodes a CustomErrorResponsePolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomErrorResponsePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.CustomErrorResponsePolicy; + + /** + * Verifies a CustomErrorResponsePolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomErrorResponsePolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomErrorResponsePolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CustomErrorResponsePolicy; + + /** + * Creates a plain object from a CustomErrorResponsePolicy message. Also converts values to other types if specified. + * @param message CustomErrorResponsePolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CustomErrorResponsePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomErrorResponsePolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomErrorResponsePolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CustomErrorResponsePolicyCustomErrorResponseRule. */ + interface ICustomErrorResponsePolicyCustomErrorResponseRule { + + /** CustomErrorResponsePolicyCustomErrorResponseRule matchResponseCodes */ + matchResponseCodes?: (string[]|null); + + /** CustomErrorResponsePolicyCustomErrorResponseRule overrideResponseCode */ + overrideResponseCode?: (number|null); + + /** CustomErrorResponsePolicyCustomErrorResponseRule path */ + path?: (string|null); + } + + /** Represents a CustomErrorResponsePolicyCustomErrorResponseRule. */ + class CustomErrorResponsePolicyCustomErrorResponseRule implements ICustomErrorResponsePolicyCustomErrorResponseRule { + + /** + * Constructs a new CustomErrorResponsePolicyCustomErrorResponseRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule); + + /** CustomErrorResponsePolicyCustomErrorResponseRule matchResponseCodes. */ + public matchResponseCodes: string[]; + + /** CustomErrorResponsePolicyCustomErrorResponseRule overrideResponseCode. */ + public overrideResponseCode?: (number|null); + + /** CustomErrorResponsePolicyCustomErrorResponseRule path. */ + public path?: (string|null); + + /** CustomErrorResponsePolicyCustomErrorResponseRule _overrideResponseCode. */ + public _overrideResponseCode?: "overrideResponseCode"; + + /** CustomErrorResponsePolicyCustomErrorResponseRule _path. */ + public _path?: "path"; + + /** + * Creates a new CustomErrorResponsePolicyCustomErrorResponseRule instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomErrorResponsePolicyCustomErrorResponseRule instance + */ + public static create(properties?: google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule): google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule; + + /** + * Encodes the specified CustomErrorResponsePolicyCustomErrorResponseRule message. Does not implicitly {@link google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.verify|verify} messages. + * @param message CustomErrorResponsePolicyCustomErrorResponseRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomErrorResponsePolicyCustomErrorResponseRule message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.verify|verify} messages. + * @param message CustomErrorResponsePolicyCustomErrorResponseRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomErrorResponsePolicyCustomErrorResponseRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomErrorResponsePolicyCustomErrorResponseRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule; + + /** + * Decodes a CustomErrorResponsePolicyCustomErrorResponseRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomErrorResponsePolicyCustomErrorResponseRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule; + + /** + * Verifies a CustomErrorResponsePolicyCustomErrorResponseRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomErrorResponsePolicyCustomErrorResponseRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomErrorResponsePolicyCustomErrorResponseRule + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule; + + /** + * Creates a plain object from a CustomErrorResponsePolicyCustomErrorResponseRule message. Also converts values to other types if specified. + * @param message CustomErrorResponsePolicyCustomErrorResponseRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomErrorResponsePolicyCustomErrorResponseRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomErrorResponsePolicyCustomErrorResponseRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CustomerEncryptionKey. */ interface ICustomerEncryptionKey { @@ -40672,6 +41036,9 @@ export namespace google { /** Properties of a Disk. */ interface IDisk { + /** Disk accessMode */ + accessMode?: (string|null); + /** Disk architecture */ architecture?: (string|null); @@ -40829,6 +41196,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IDisk); + /** Disk accessMode. */ + public accessMode?: (string|null); + /** Disk architecture. */ public architecture?: (string|null); @@ -40976,6 +41346,9 @@ export namespace google { /** Disk zone. */ public zone?: (string|null); + /** Disk _accessMode. */ + public _accessMode?: "accessMode"; + /** Disk _architecture. */ public _architecture?: "architecture"; @@ -41179,6 +41552,14 @@ export namespace google { namespace Disk { + /** AccessMode enum. */ + enum AccessMode { + UNDEFINED_ACCESS_MODE = 0, + READ_ONLY_MANY = 63460265, + READ_WRITE_MANY = 488743208, + READ_WRITE_SINGLE = 99323089 + } + /** Architecture enum. */ enum Architecture { UNDEFINED_ARCHITECTURE = 0, @@ -65920,6 +66301,7 @@ export namespace google { SEV_LIVE_MIGRATABLE = 392039820, SEV_LIVE_MIGRATABLE_V2 = 168551983, SEV_SNP_CAPABLE = 426919, + TDX_CAPABLE = 240446133, UEFI_COMPATIBLE = 195865408, VIRTIO_SCSI_MULTIQUEUE = 201597069, WINDOWS = 456863331 @@ -66487,6 +66869,9 @@ export namespace google { /** HealthCheck selfLink */ selfLink?: (string|null); + /** HealthCheck sourceRegions */ + sourceRegions?: (string[]|null); + /** HealthCheck sslHealthCheck */ sslHealthCheck?: (google.cloud.compute.v1.ISSLHealthCheck|null); @@ -66554,6 +66939,9 @@ export namespace google { /** HealthCheck selfLink. */ public selfLink?: (string|null); + /** HealthCheck sourceRegions. */ + public sourceRegions: string[]; + /** HealthCheck sslHealthCheck. */ public sslHealthCheck?: (google.cloud.compute.v1.ISSLHealthCheck|null); @@ -67778,6 +68166,12 @@ export namespace google { /** HealthStatus ipAddress */ ipAddress?: (string|null); + /** HealthStatus ipv6Address */ + ipv6Address?: (string|null); + + /** HealthStatus ipv6HealthState */ + ipv6HealthState?: (string|null); + /** HealthStatus port */ port?: (number|null); @@ -67815,6 +68209,12 @@ export namespace google { /** HealthStatus ipAddress. */ public ipAddress?: (string|null); + /** HealthStatus ipv6Address. */ + public ipv6Address?: (string|null); + + /** HealthStatus ipv6HealthState. */ + public ipv6HealthState?: (string|null); + /** HealthStatus port. */ public port?: (number|null); @@ -67839,6 +68239,12 @@ export namespace google { /** HealthStatus _ipAddress. */ public _ipAddress?: "ipAddress"; + /** HealthStatus _ipv6Address. */ + public _ipv6Address?: "ipv6Address"; + + /** HealthStatus _ipv6HealthState. */ + public _ipv6HealthState?: "ipv6HealthState"; + /** HealthStatus _port. */ public _port?: "port"; @@ -67935,6 +68341,11 @@ export namespace google { UNHEALTHY = 462118084 } + /** Ipv6HealthState enum. */ + enum Ipv6HealthState { + UNDEFINED_IPV6_HEALTH_STATE = 0 + } + /** WeightError enum. */ enum WeightError { UNDEFINED_WEIGHT_ERROR = 0, @@ -67962,6 +68373,9 @@ export namespace google { /** HealthStatusForNetworkEndpoint healthState */ healthState?: (string|null); + + /** HealthStatusForNetworkEndpoint ipv6HealthState */ + ipv6HealthState?: (string|null); } /** Represents a HealthStatusForNetworkEndpoint. */ @@ -67988,6 +68402,9 @@ export namespace google { /** HealthStatusForNetworkEndpoint healthState. */ public healthState?: (string|null); + /** HealthStatusForNetworkEndpoint ipv6HealthState. */ + public ipv6HealthState?: (string|null); + /** HealthStatusForNetworkEndpoint _backendService. */ public _backendService?: "backendService"; @@ -68003,6 +68420,9 @@ export namespace google { /** HealthStatusForNetworkEndpoint _healthState. */ public _healthState?: "healthState"; + /** HealthStatusForNetworkEndpoint _ipv6HealthState. */ + public _ipv6HealthState?: "ipv6HealthState"; + /** * Creates a new HealthStatusForNetworkEndpoint instance using the specified properties. * @param [properties] Properties to set @@ -68091,6 +68511,11 @@ export namespace google { UNHEALTHY = 462118084, UNKNOWN = 433141802 } + + /** Ipv6HealthState enum. */ + enum Ipv6HealthState { + UNDEFINED_IPV6_HEALTH_STATE = 0 + } } /** Properties of a Help. */ @@ -69700,6 +70125,9 @@ export namespace google { /** Properties of a HttpRouteRule. */ interface IHttpRouteRule { + /** HttpRouteRule customErrorResponsePolicy */ + customErrorResponsePolicy?: (google.cloud.compute.v1.ICustomErrorResponsePolicy|null); + /** HttpRouteRule description */ description?: (string|null); @@ -69731,6 +70159,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IHttpRouteRule); + /** HttpRouteRule customErrorResponsePolicy. */ + public customErrorResponsePolicy?: (google.cloud.compute.v1.ICustomErrorResponsePolicy|null); + /** HttpRouteRule description. */ public description?: (string|null); @@ -69752,6 +70183,9 @@ export namespace google { /** HttpRouteRule urlRedirect. */ public urlRedirect?: (google.cloud.compute.v1.IHttpRedirectAction|null); + /** HttpRouteRule _customErrorResponsePolicy. */ + public _customErrorResponsePolicy?: "customErrorResponsePolicy"; + /** HttpRouteRule _description. */ public _description?: "description"; @@ -81096,6 +81530,9 @@ export namespace google { /** InstanceGroupManager id */ id?: (number|Long|string|null); + /** InstanceGroupManager instanceFlexibilityPolicy */ + instanceFlexibilityPolicy?: (google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy|null); + /** InstanceGroupManager instanceGroup */ instanceGroup?: (string|null); @@ -81120,6 +81557,12 @@ export namespace google { /** InstanceGroupManager region */ region?: (string|null); + /** InstanceGroupManager satisfiesPzi */ + satisfiesPzi?: (boolean|null); + + /** InstanceGroupManager satisfiesPzs */ + satisfiesPzs?: (boolean|null); + /** InstanceGroupManager selfLink */ selfLink?: (string|null); @@ -81181,6 +81624,9 @@ export namespace google { /** InstanceGroupManager id. */ public id?: (number|Long|string|null); + /** InstanceGroupManager instanceFlexibilityPolicy. */ + public instanceFlexibilityPolicy?: (google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy|null); + /** InstanceGroupManager instanceGroup. */ public instanceGroup?: (string|null); @@ -81205,6 +81651,12 @@ export namespace google { /** InstanceGroupManager region. */ public region?: (string|null); + /** InstanceGroupManager satisfiesPzi. */ + public satisfiesPzi?: (boolean|null); + + /** InstanceGroupManager satisfiesPzs. */ + public satisfiesPzs?: (boolean|null); + /** InstanceGroupManager selfLink. */ public selfLink?: (string|null); @@ -81253,6 +81705,9 @@ export namespace google { /** InstanceGroupManager _id. */ public _id?: "id"; + /** InstanceGroupManager _instanceFlexibilityPolicy. */ + public _instanceFlexibilityPolicy?: "instanceFlexibilityPolicy"; + /** InstanceGroupManager _instanceGroup. */ public _instanceGroup?: "instanceGroup"; @@ -81274,6 +81729,12 @@ export namespace google { /** InstanceGroupManager _region. */ public _region?: "region"; + /** InstanceGroupManager _satisfiesPzi. */ + public _satisfiesPzi?: "satisfiesPzi"; + + /** InstanceGroupManager _satisfiesPzs. */ + public _satisfiesPzs?: "satisfiesPzs"; + /** InstanceGroupManager _selfLink. */ public _selfLink?: "selfLink"; @@ -81945,6 +82406,209 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerInstanceFlexibilityPolicy. */ + interface IInstanceGroupManagerInstanceFlexibilityPolicy { + + /** InstanceGroupManagerInstanceFlexibilityPolicy instanceSelections */ + instanceSelections?: ({ [k: string]: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection }|null); + } + + /** Represents an InstanceGroupManagerInstanceFlexibilityPolicy. */ + class InstanceGroupManagerInstanceFlexibilityPolicy implements IInstanceGroupManagerInstanceFlexibilityPolicy { + + /** + * Constructs a new InstanceGroupManagerInstanceFlexibilityPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy); + + /** InstanceGroupManagerInstanceFlexibilityPolicy instanceSelections. */ + public instanceSelections: { [k: string]: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection }; + + /** + * Creates a new InstanceGroupManagerInstanceFlexibilityPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerInstanceFlexibilityPolicy instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy): google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy; + + /** + * Encodes the specified InstanceGroupManagerInstanceFlexibilityPolicy message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.verify|verify} messages. + * @param message InstanceGroupManagerInstanceFlexibilityPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerInstanceFlexibilityPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.verify|verify} messages. + * @param message InstanceGroupManagerInstanceFlexibilityPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerInstanceFlexibilityPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerInstanceFlexibilityPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy; + + /** + * Decodes an InstanceGroupManagerInstanceFlexibilityPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerInstanceFlexibilityPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy; + + /** + * Verifies an InstanceGroupManagerInstanceFlexibilityPolicy message. + * @param message Plain 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 InstanceGroupManagerInstanceFlexibilityPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerInstanceFlexibilityPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy; + + /** + * Creates a plain object from an InstanceGroupManagerInstanceFlexibilityPolicy message. Also converts values to other types if specified. + * @param message InstanceGroupManagerInstanceFlexibilityPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerInstanceFlexibilityPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerInstanceFlexibilityPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection. */ + interface IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection { + + /** InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection machineTypes */ + machineTypes?: (string[]|null); + + /** InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection rank */ + rank?: (number|null); + } + + /** Represents an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection. */ + class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection implements IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection { + + /** + * Constructs a new InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection); + + /** InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection machineTypes. */ + public machineTypes: string[]; + + /** InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection rank. */ + public rank?: (number|null); + + /** InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection _rank. */ + public _rank?: "rank"; + + /** + * Creates a new InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection): google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection; + + /** + * Encodes the specified InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.verify|verify} messages. + * @param message InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.verify|verify} messages. + * @param message InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection; + + /** + * Decodes an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection; + + /** + * Verifies an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message. + * @param message Plain 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 InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection; + + /** + * Creates a plain object from an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message. Also converts values to other types if specified. + * @param message InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagerInstanceLifecyclePolicy. */ interface IInstanceGroupManagerInstanceLifecyclePolicy { @@ -88336,6 +89000,9 @@ export namespace google { /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy name */ name?: (string|null); + /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy priority */ + priority?: (number|null); + /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy rules */ rules?: (google.cloud.compute.v1.IFirewallPolicyRule[]|null); @@ -88361,6 +89028,9 @@ export namespace google { /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy name. */ public name?: (string|null); + /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy priority. */ + public priority?: (number|null); + /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy rules. */ public rules: google.cloud.compute.v1.IFirewallPolicyRule[]; @@ -88376,6 +89046,9 @@ export namespace google { /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy _name. */ public _name?: "name"; + /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy _priority. */ + public _priority?: "priority"; + /** InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy _shortName. */ public _shortName?: "shortName"; @@ -88468,6 +89141,8 @@ export namespace google { HIERARCHY = 69902869, NETWORK = 413984270, NETWORK_REGIONAL = 190804272, + SYSTEM_GLOBAL = 60099507, + SYSTEM_REGIONAL = 161777199, UNSPECIFIED = 526786327 } } @@ -113689,578 +114364,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LogConfig. */ - interface ILogConfig { - - /** LogConfig cloudAudit */ - cloudAudit?: (google.cloud.compute.v1.ILogConfigCloudAuditOptions|null); - - /** LogConfig counter */ - counter?: (google.cloud.compute.v1.ILogConfigCounterOptions|null); - - /** LogConfig dataAccess */ - dataAccess?: (google.cloud.compute.v1.ILogConfigDataAccessOptions|null); - } - - /** Represents a LogConfig. */ - class LogConfig implements ILogConfig { - - /** - * Constructs a new LogConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.compute.v1.ILogConfig); - - /** LogConfig cloudAudit. */ - public cloudAudit?: (google.cloud.compute.v1.ILogConfigCloudAuditOptions|null); - - /** LogConfig counter. */ - public counter?: (google.cloud.compute.v1.ILogConfigCounterOptions|null); - - /** LogConfig dataAccess. */ - public dataAccess?: (google.cloud.compute.v1.ILogConfigDataAccessOptions|null); - - /** LogConfig _cloudAudit. */ - public _cloudAudit?: "cloudAudit"; - - /** LogConfig _counter. */ - public _counter?: "counter"; - - /** LogConfig _dataAccess. */ - public _dataAccess?: "dataAccess"; - - /** - * Creates a new LogConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns LogConfig instance - */ - public static create(properties?: google.cloud.compute.v1.ILogConfig): google.cloud.compute.v1.LogConfig; - - /** - * Encodes the specified LogConfig message. Does not implicitly {@link google.cloud.compute.v1.LogConfig.verify|verify} messages. - * @param message LogConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.compute.v1.ILogConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LogConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfig.verify|verify} messages. - * @param message LogConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.compute.v1.ILogConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LogConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.LogConfig; - - /** - * Decodes a LogConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.LogConfig; - - /** - * Verifies a LogConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LogConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LogConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.LogConfig; - - /** - * Creates a plain object from a LogConfig message. Also converts values to other types if specified. - * @param message LogConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.compute.v1.LogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LogConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LogConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LogConfigCloudAuditOptions. */ - interface ILogConfigCloudAuditOptions { - - /** LogConfigCloudAuditOptions authorizationLoggingOptions */ - authorizationLoggingOptions?: (google.cloud.compute.v1.IAuthorizationLoggingOptions|null); - - /** LogConfigCloudAuditOptions logName */ - logName?: (string|null); - } - - /** Represents a LogConfigCloudAuditOptions. */ - class LogConfigCloudAuditOptions implements ILogConfigCloudAuditOptions { - - /** - * Constructs a new LogConfigCloudAuditOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.compute.v1.ILogConfigCloudAuditOptions); - - /** LogConfigCloudAuditOptions authorizationLoggingOptions. */ - public authorizationLoggingOptions?: (google.cloud.compute.v1.IAuthorizationLoggingOptions|null); - - /** LogConfigCloudAuditOptions logName. */ - public logName?: (string|null); - - /** LogConfigCloudAuditOptions _authorizationLoggingOptions. */ - public _authorizationLoggingOptions?: "authorizationLoggingOptions"; - - /** LogConfigCloudAuditOptions _logName. */ - public _logName?: "logName"; - - /** - * Creates a new LogConfigCloudAuditOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns LogConfigCloudAuditOptions instance - */ - public static create(properties?: google.cloud.compute.v1.ILogConfigCloudAuditOptions): google.cloud.compute.v1.LogConfigCloudAuditOptions; - - /** - * Encodes the specified LogConfigCloudAuditOptions message. Does not implicitly {@link google.cloud.compute.v1.LogConfigCloudAuditOptions.verify|verify} messages. - * @param message LogConfigCloudAuditOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.compute.v1.ILogConfigCloudAuditOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LogConfigCloudAuditOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfigCloudAuditOptions.verify|verify} messages. - * @param message LogConfigCloudAuditOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.compute.v1.ILogConfigCloudAuditOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LogConfigCloudAuditOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LogConfigCloudAuditOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.LogConfigCloudAuditOptions; - - /** - * Decodes a LogConfigCloudAuditOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LogConfigCloudAuditOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.LogConfigCloudAuditOptions; - - /** - * Verifies a LogConfigCloudAuditOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LogConfigCloudAuditOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LogConfigCloudAuditOptions - */ - public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.LogConfigCloudAuditOptions; - - /** - * Creates a plain object from a LogConfigCloudAuditOptions message. Also converts values to other types if specified. - * @param message LogConfigCloudAuditOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.compute.v1.LogConfigCloudAuditOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LogConfigCloudAuditOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LogConfigCloudAuditOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace LogConfigCloudAuditOptions { - - /** LogName enum. */ - enum LogName { - UNDEFINED_LOG_NAME = 0, - ADMIN_ACTIVITY = 427503135, - DATA_ACCESS = 238070681, - UNSPECIFIED_LOG_NAME = 410515182 - } - } - - /** Properties of a LogConfigCounterOptions. */ - interface ILogConfigCounterOptions { - - /** LogConfigCounterOptions customFields */ - customFields?: (google.cloud.compute.v1.ILogConfigCounterOptionsCustomField[]|null); - - /** LogConfigCounterOptions field */ - field?: (string|null); - - /** LogConfigCounterOptions metric */ - metric?: (string|null); - } - - /** Represents a LogConfigCounterOptions. */ - class LogConfigCounterOptions implements ILogConfigCounterOptions { - - /** - * Constructs a new LogConfigCounterOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.compute.v1.ILogConfigCounterOptions); - - /** LogConfigCounterOptions customFields. */ - public customFields: google.cloud.compute.v1.ILogConfigCounterOptionsCustomField[]; - - /** LogConfigCounterOptions field. */ - public field?: (string|null); - - /** LogConfigCounterOptions metric. */ - public metric?: (string|null); - - /** LogConfigCounterOptions _field. */ - public _field?: "field"; - - /** LogConfigCounterOptions _metric. */ - public _metric?: "metric"; - - /** - * Creates a new LogConfigCounterOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns LogConfigCounterOptions instance - */ - public static create(properties?: google.cloud.compute.v1.ILogConfigCounterOptions): google.cloud.compute.v1.LogConfigCounterOptions; - - /** - * Encodes the specified LogConfigCounterOptions message. Does not implicitly {@link google.cloud.compute.v1.LogConfigCounterOptions.verify|verify} messages. - * @param message LogConfigCounterOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.compute.v1.ILogConfigCounterOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LogConfigCounterOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfigCounterOptions.verify|verify} messages. - * @param message LogConfigCounterOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.compute.v1.ILogConfigCounterOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LogConfigCounterOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LogConfigCounterOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.LogConfigCounterOptions; - - /** - * Decodes a LogConfigCounterOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LogConfigCounterOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.LogConfigCounterOptions; - - /** - * Verifies a LogConfigCounterOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LogConfigCounterOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LogConfigCounterOptions - */ - public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.LogConfigCounterOptions; - - /** - * Creates a plain object from a LogConfigCounterOptions message. Also converts values to other types if specified. - * @param message LogConfigCounterOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.compute.v1.LogConfigCounterOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LogConfigCounterOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LogConfigCounterOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LogConfigCounterOptionsCustomField. */ - interface ILogConfigCounterOptionsCustomField { - - /** LogConfigCounterOptionsCustomField name */ - name?: (string|null); - - /** LogConfigCounterOptionsCustomField value */ - value?: (string|null); - } - - /** Represents a LogConfigCounterOptionsCustomField. */ - class LogConfigCounterOptionsCustomField implements ILogConfigCounterOptionsCustomField { - - /** - * Constructs a new LogConfigCounterOptionsCustomField. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.compute.v1.ILogConfigCounterOptionsCustomField); - - /** LogConfigCounterOptionsCustomField name. */ - public name?: (string|null); - - /** LogConfigCounterOptionsCustomField value. */ - public value?: (string|null); - - /** LogConfigCounterOptionsCustomField _name. */ - public _name?: "name"; - - /** LogConfigCounterOptionsCustomField _value. */ - public _value?: "value"; - - /** - * Creates a new LogConfigCounterOptionsCustomField instance using the specified properties. - * @param [properties] Properties to set - * @returns LogConfigCounterOptionsCustomField instance - */ - public static create(properties?: google.cloud.compute.v1.ILogConfigCounterOptionsCustomField): google.cloud.compute.v1.LogConfigCounterOptionsCustomField; - - /** - * Encodes the specified LogConfigCounterOptionsCustomField message. Does not implicitly {@link google.cloud.compute.v1.LogConfigCounterOptionsCustomField.verify|verify} messages. - * @param message LogConfigCounterOptionsCustomField message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.compute.v1.ILogConfigCounterOptionsCustomField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LogConfigCounterOptionsCustomField message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfigCounterOptionsCustomField.verify|verify} messages. - * @param message LogConfigCounterOptionsCustomField message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.compute.v1.ILogConfigCounterOptionsCustomField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LogConfigCounterOptionsCustomField message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LogConfigCounterOptionsCustomField - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.LogConfigCounterOptionsCustomField; - - /** - * Decodes a LogConfigCounterOptionsCustomField message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LogConfigCounterOptionsCustomField - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.LogConfigCounterOptionsCustomField; - - /** - * Verifies a LogConfigCounterOptionsCustomField message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LogConfigCounterOptionsCustomField message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LogConfigCounterOptionsCustomField - */ - public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.LogConfigCounterOptionsCustomField; - - /** - * Creates a plain object from a LogConfigCounterOptionsCustomField message. Also converts values to other types if specified. - * @param message LogConfigCounterOptionsCustomField - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.compute.v1.LogConfigCounterOptionsCustomField, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LogConfigCounterOptionsCustomField to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LogConfigCounterOptionsCustomField - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LogConfigDataAccessOptions. */ - interface ILogConfigDataAccessOptions { - - /** LogConfigDataAccessOptions logMode */ - logMode?: (string|null); - } - - /** Represents a LogConfigDataAccessOptions. */ - class LogConfigDataAccessOptions implements ILogConfigDataAccessOptions { - - /** - * Constructs a new LogConfigDataAccessOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.compute.v1.ILogConfigDataAccessOptions); - - /** LogConfigDataAccessOptions logMode. */ - public logMode?: (string|null); - - /** LogConfigDataAccessOptions _logMode. */ - public _logMode?: "logMode"; - - /** - * Creates a new LogConfigDataAccessOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns LogConfigDataAccessOptions instance - */ - public static create(properties?: google.cloud.compute.v1.ILogConfigDataAccessOptions): google.cloud.compute.v1.LogConfigDataAccessOptions; - - /** - * Encodes the specified LogConfigDataAccessOptions message. Does not implicitly {@link google.cloud.compute.v1.LogConfigDataAccessOptions.verify|verify} messages. - * @param message LogConfigDataAccessOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.compute.v1.ILogConfigDataAccessOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LogConfigDataAccessOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfigDataAccessOptions.verify|verify} messages. - * @param message LogConfigDataAccessOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.compute.v1.ILogConfigDataAccessOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LogConfigDataAccessOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LogConfigDataAccessOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.LogConfigDataAccessOptions; - - /** - * Decodes a LogConfigDataAccessOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LogConfigDataAccessOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.LogConfigDataAccessOptions; - - /** - * Verifies a LogConfigDataAccessOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LogConfigDataAccessOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LogConfigDataAccessOptions - */ - public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.LogConfigDataAccessOptions; - - /** - * Creates a plain object from a LogConfigDataAccessOptions message. Also converts values to other types if specified. - * @param message LogConfigDataAccessOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.compute.v1.LogConfigDataAccessOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LogConfigDataAccessOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LogConfigDataAccessOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace LogConfigDataAccessOptions { - - /** LogMode enum. */ - enum LogMode { - UNDEFINED_LOG_MODE = 0, - LOG_FAIL_CLOSED = 360469778, - LOG_MODE_UNSPECIFIED = 88160822 - } - } - /** Properties of a MachineImage. */ interface IMachineImage { @@ -114666,6 +114769,9 @@ export namespace google { /** MachineType accelerators */ accelerators?: (google.cloud.compute.v1.IAccelerators[]|null); + /** MachineType architecture */ + architecture?: (string|null); + /** MachineType creationTimestamp */ creationTimestamp?: (string|null); @@ -114724,6 +114830,9 @@ export namespace google { /** MachineType accelerators. */ public accelerators: google.cloud.compute.v1.IAccelerators[]; + /** MachineType architecture. */ + public architecture?: (string|null); + /** MachineType creationTimestamp. */ public creationTimestamp?: (string|null); @@ -114769,6 +114878,9 @@ export namespace google { /** MachineType zone. */ public zone?: (string|null); + /** MachineType _architecture. */ + public _architecture?: "architecture"; + /** MachineType _creationTimestamp. */ public _creationTimestamp?: "creationTimestamp"; @@ -114889,6 +115001,17 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace MachineType { + + /** Architecture enum. */ + enum Architecture { + UNDEFINED_ARCHITECTURE = 0, + ARCHITECTURE_UNSPECIFIED = 394750507, + ARM64 = 62547450, + X86_64 = 425300551 + } + } + /** Properties of a MachineTypeAggregatedList. */ interface IMachineTypeAggregatedList { @@ -115315,6 +115438,9 @@ export namespace google { /** ManagedInstance preservedStateFromPolicy */ preservedStateFromPolicy?: (google.cloud.compute.v1.IPreservedState|null); + /** ManagedInstance propertiesFromFlexibilityPolicy */ + propertiesFromFlexibilityPolicy?: (google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy|null); + /** ManagedInstance version */ version?: (google.cloud.compute.v1.IManagedInstanceVersion|null); } @@ -115355,6 +115481,9 @@ export namespace google { /** ManagedInstance preservedStateFromPolicy. */ public preservedStateFromPolicy?: (google.cloud.compute.v1.IPreservedState|null); + /** ManagedInstance propertiesFromFlexibilityPolicy. */ + public propertiesFromFlexibilityPolicy?: (google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy|null); + /** ManagedInstance version. */ public version?: (google.cloud.compute.v1.IManagedInstanceVersion|null); @@ -115382,6 +115511,9 @@ export namespace google { /** ManagedInstance _preservedStateFromPolicy. */ public _preservedStateFromPolicy?: "preservedStateFromPolicy"; + /** ManagedInstance _propertiesFromFlexibilityPolicy. */ + public _propertiesFromFlexibilityPolicy?: "propertiesFromFlexibilityPolicy"; + /** ManagedInstance _version. */ public _version?: "version"; @@ -115719,6 +115851,106 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ManagedInstancePropertiesFromFlexibilityPolicy. */ + interface IManagedInstancePropertiesFromFlexibilityPolicy { + + /** ManagedInstancePropertiesFromFlexibilityPolicy machineType */ + machineType?: (string|null); + } + + /** Represents a ManagedInstancePropertiesFromFlexibilityPolicy. */ + class ManagedInstancePropertiesFromFlexibilityPolicy implements IManagedInstancePropertiesFromFlexibilityPolicy { + + /** + * Constructs a new ManagedInstancePropertiesFromFlexibilityPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy); + + /** ManagedInstancePropertiesFromFlexibilityPolicy machineType. */ + public machineType?: (string|null); + + /** ManagedInstancePropertiesFromFlexibilityPolicy _machineType. */ + public _machineType?: "machineType"; + + /** + * Creates a new ManagedInstancePropertiesFromFlexibilityPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns ManagedInstancePropertiesFromFlexibilityPolicy instance + */ + public static create(properties?: google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy): google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy; + + /** + * Encodes the specified ManagedInstancePropertiesFromFlexibilityPolicy message. Does not implicitly {@link google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.verify|verify} messages. + * @param message ManagedInstancePropertiesFromFlexibilityPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ManagedInstancePropertiesFromFlexibilityPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.verify|verify} messages. + * @param message ManagedInstancePropertiesFromFlexibilityPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ManagedInstancePropertiesFromFlexibilityPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ManagedInstancePropertiesFromFlexibilityPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy; + + /** + * Decodes a ManagedInstancePropertiesFromFlexibilityPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ManagedInstancePropertiesFromFlexibilityPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy; + + /** + * Verifies a ManagedInstancePropertiesFromFlexibilityPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ManagedInstancePropertiesFromFlexibilityPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ManagedInstancePropertiesFromFlexibilityPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy; + + /** + * Creates a plain object from a ManagedInstancePropertiesFromFlexibilityPolicy message. Also converts values to other types if specified. + * @param message ManagedInstancePropertiesFromFlexibilityPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ManagedInstancePropertiesFromFlexibilityPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ManagedInstancePropertiesFromFlexibilityPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ManagedInstanceVersion. */ interface IManagedInstanceVersion { @@ -118681,6 +118913,9 @@ export namespace google { /** NetworkEndpoint annotations */ annotations?: ({ [k: string]: string }|null); + /** NetworkEndpoint clientDestinationPort */ + clientDestinationPort?: (number|null); + /** NetworkEndpoint fqdn */ fqdn?: (string|null); @@ -118690,6 +118925,9 @@ export namespace google { /** NetworkEndpoint ipAddress */ ipAddress?: (string|null); + /** NetworkEndpoint ipv6Address */ + ipv6Address?: (string|null); + /** NetworkEndpoint port */ port?: (number|null); } @@ -118706,6 +118944,9 @@ export namespace google { /** NetworkEndpoint annotations. */ public annotations: { [k: string]: string }; + /** NetworkEndpoint clientDestinationPort. */ + public clientDestinationPort?: (number|null); + /** NetworkEndpoint fqdn. */ public fqdn?: (string|null); @@ -118715,9 +118956,15 @@ export namespace google { /** NetworkEndpoint ipAddress. */ public ipAddress?: (string|null); + /** NetworkEndpoint ipv6Address. */ + public ipv6Address?: (string|null); + /** NetworkEndpoint port. */ public port?: (number|null); + /** NetworkEndpoint _clientDestinationPort. */ + public _clientDestinationPort?: "clientDestinationPort"; + /** NetworkEndpoint _fqdn. */ public _fqdn?: "fqdn"; @@ -118727,6 +118974,9 @@ export namespace google { /** NetworkEndpoint _ipAddress. */ public _ipAddress?: "ipAddress"; + /** NetworkEndpoint _ipv6Address. */ + public _ipv6Address?: "ipv6Address"; + /** NetworkEndpoint _port. */ public _port?: "port"; @@ -119074,6 +119324,7 @@ export namespace google { UNDEFINED_NETWORK_ENDPOINT_TYPE = 0, GCE_VM_IP = 401880793, GCE_VM_IP_PORT = 501838375, + GCE_VM_IP_PORTMAP = 22819253, INTERNET_FQDN_PORT = 404154477, INTERNET_IP_PORT = 477719963, NON_GCP_PRIVATE_IP_PORT = 336447968, @@ -119723,6 +119974,9 @@ export namespace google { /** NetworkEndpointGroupPscData consumerPscAddress */ consumerPscAddress?: (string|null); + /** NetworkEndpointGroupPscData producerPort */ + producerPort?: (number|null); + /** NetworkEndpointGroupPscData pscConnectionId */ pscConnectionId?: (number|Long|string|null); @@ -119742,6 +119996,9 @@ export namespace google { /** NetworkEndpointGroupPscData consumerPscAddress. */ public consumerPscAddress?: (string|null); + /** NetworkEndpointGroupPscData producerPort. */ + public producerPort?: (number|null); + /** NetworkEndpointGroupPscData pscConnectionId. */ public pscConnectionId?: (number|Long|string|null); @@ -119751,6 +120008,9 @@ export namespace google { /** NetworkEndpointGroupPscData _consumerPscAddress. */ public _consumerPscAddress?: "consumerPscAddress"; + /** NetworkEndpointGroupPscData _producerPort. */ + public _producerPort?: "producerPort"; + /** NetworkEndpointGroupPscData _pscConnectionId. */ public _pscConnectionId?: "pscConnectionId"; @@ -120738,6 +120998,7 @@ export namespace google { enum NicType { UNDEFINED_NIC_TYPE = 0, GVNIC = 68209305, + IDPF = 2242641, UNSPECIFIED_NIC_TYPE = 67411801, VIRTIO_NET = 452123481 } @@ -120747,6 +121008,7 @@ export namespace google { UNDEFINED_STACK_TYPE = 0, IPV4_IPV6 = 22197249, IPV4_ONLY = 22373798, + IPV6_ONLY = 79632100, UNSPECIFIED_STACK_TYPE = 298084569 } } @@ -121568,6 +121830,9 @@ export namespace google { /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy name */ name?: (string|null); + /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy priority */ + priority?: (number|null); + /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy rules */ rules?: (google.cloud.compute.v1.IFirewallPolicyRule[]|null); @@ -121593,6 +121858,9 @@ export namespace google { /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy name. */ public name?: (string|null); + /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy priority. */ + public priority?: (number|null); + /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy rules. */ public rules: google.cloud.compute.v1.IFirewallPolicyRule[]; @@ -121608,6 +121876,9 @@ export namespace google { /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy _name. */ public _name?: "name"; + /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy _priority. */ + public _priority?: "priority"; + /** NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy _shortName. */ public _shortName?: "shortName"; @@ -121699,6 +121970,7 @@ export namespace google { UNDEFINED_TYPE = 0, HIERARCHY = 69902869, NETWORK = 413984270, + SYSTEM = 313484847, UNSPECIFIED = 526786327 } } @@ -134029,6 +134301,9 @@ export namespace google { /** Properties of a PathMatcher. */ interface IPathMatcher { + /** PathMatcher defaultCustomErrorResponsePolicy */ + defaultCustomErrorResponsePolicy?: (google.cloud.compute.v1.ICustomErrorResponsePolicy|null); + /** PathMatcher defaultRouteAction */ defaultRouteAction?: (google.cloud.compute.v1.IHttpRouteAction|null); @@ -134063,6 +134338,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IPathMatcher); + /** PathMatcher defaultCustomErrorResponsePolicy. */ + public defaultCustomErrorResponsePolicy?: (google.cloud.compute.v1.ICustomErrorResponsePolicy|null); + /** PathMatcher defaultRouteAction. */ public defaultRouteAction?: (google.cloud.compute.v1.IHttpRouteAction|null); @@ -134087,6 +134365,9 @@ export namespace google { /** PathMatcher routeRules. */ public routeRules: google.cloud.compute.v1.IHttpRouteRule[]; + /** PathMatcher _defaultCustomErrorResponsePolicy. */ + public _defaultCustomErrorResponsePolicy?: "defaultCustomErrorResponsePolicy"; + /** PathMatcher _defaultRouteAction. */ public _defaultRouteAction?: "defaultRouteAction"; @@ -134186,6 +134467,9 @@ export namespace google { /** Properties of a PathRule. */ interface IPathRule { + /** PathRule customErrorResponsePolicy */ + customErrorResponsePolicy?: (google.cloud.compute.v1.ICustomErrorResponsePolicy|null); + /** PathRule paths */ paths?: (string[]|null); @@ -134208,6 +134492,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IPathRule); + /** PathRule customErrorResponsePolicy. */ + public customErrorResponsePolicy?: (google.cloud.compute.v1.ICustomErrorResponsePolicy|null); + /** PathRule paths. */ public paths: string[]; @@ -134220,6 +134507,9 @@ export namespace google { /** PathRule urlRedirect. */ public urlRedirect?: (google.cloud.compute.v1.IHttpRedirectAction|null); + /** PathRule _customErrorResponsePolicy. */ + public _customErrorResponsePolicy?: "customErrorResponsePolicy"; + /** PathRule _routeAction. */ public _routeAction?: "routeAction"; @@ -134705,9 +134995,6 @@ export namespace google { /** Policy iamOwned */ iamOwned?: (boolean|null); - /** Policy rules */ - rules?: (google.cloud.compute.v1.IRule[]|null); - /** Policy version */ version?: (number|null); } @@ -134733,9 +135020,6 @@ export namespace google { /** Policy iamOwned. */ public iamOwned?: (boolean|null); - /** Policy rules. */ - public rules: google.cloud.compute.v1.IRule[]; - /** Policy version. */ public version?: (number|null); @@ -148879,6 +149163,9 @@ export namespace google { /** ResourceStatus physicalHost */ physicalHost?: (string|null); + /** ResourceStatus scheduling */ + scheduling?: (google.cloud.compute.v1.IResourceStatusScheduling|null); + /** ResourceStatus upcomingMaintenance */ upcomingMaintenance?: (google.cloud.compute.v1.IUpcomingMaintenance|null); } @@ -148895,12 +149182,18 @@ export namespace google { /** ResourceStatus physicalHost. */ public physicalHost?: (string|null); + /** ResourceStatus scheduling. */ + public scheduling?: (google.cloud.compute.v1.IResourceStatusScheduling|null); + /** ResourceStatus upcomingMaintenance. */ public upcomingMaintenance?: (google.cloud.compute.v1.IUpcomingMaintenance|null); /** ResourceStatus _physicalHost. */ public _physicalHost?: "physicalHost"; + /** ResourceStatus _scheduling. */ + public _scheduling?: "scheduling"; + /** ResourceStatus _upcomingMaintenance. */ public _upcomingMaintenance?: "upcomingMaintenance"; @@ -148982,6 +149275,106 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ResourceStatusScheduling. */ + interface IResourceStatusScheduling { + + /** ResourceStatusScheduling availabilityDomain */ + availabilityDomain?: (number|null); + } + + /** Represents a ResourceStatusScheduling. */ + class ResourceStatusScheduling implements IResourceStatusScheduling { + + /** + * Constructs a new ResourceStatusScheduling. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IResourceStatusScheduling); + + /** ResourceStatusScheduling availabilityDomain. */ + public availabilityDomain?: (number|null); + + /** ResourceStatusScheduling _availabilityDomain. */ + public _availabilityDomain?: "availabilityDomain"; + + /** + * Creates a new ResourceStatusScheduling instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceStatusScheduling instance + */ + public static create(properties?: google.cloud.compute.v1.IResourceStatusScheduling): google.cloud.compute.v1.ResourceStatusScheduling; + + /** + * Encodes the specified ResourceStatusScheduling message. Does not implicitly {@link google.cloud.compute.v1.ResourceStatusScheduling.verify|verify} messages. + * @param message ResourceStatusScheduling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IResourceStatusScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceStatusScheduling message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ResourceStatusScheduling.verify|verify} messages. + * @param message ResourceStatusScheduling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IResourceStatusScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceStatusScheduling message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceStatusScheduling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.ResourceStatusScheduling; + + /** + * Decodes a ResourceStatusScheduling message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceStatusScheduling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.ResourceStatusScheduling; + + /** + * Verifies a ResourceStatusScheduling message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceStatusScheduling message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceStatusScheduling + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ResourceStatusScheduling; + + /** + * Creates a plain object from a ResourceStatusScheduling message. Also converts values to other types if specified. + * @param message ResourceStatusScheduling + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ResourceStatusScheduling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceStatusScheduling to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceStatusScheduling + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ResumeInstanceRequest. */ interface IResumeInstanceRequest { @@ -153072,159 +153465,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Rule. */ - interface IRule { - - /** Rule action */ - action?: (string|null); - - /** Rule conditions */ - conditions?: (google.cloud.compute.v1.ICondition[]|null); - - /** Rule description */ - description?: (string|null); - - /** Rule ins */ - ins?: (string[]|null); - - /** Rule logConfigs */ - logConfigs?: (google.cloud.compute.v1.ILogConfig[]|null); - - /** Rule notIns */ - notIns?: (string[]|null); - - /** Rule permissions */ - permissions?: (string[]|null); - } - - /** Represents a Rule. */ - class Rule implements IRule { - - /** - * Constructs a new Rule. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.compute.v1.IRule); - - /** Rule action. */ - public action?: (string|null); - - /** Rule conditions. */ - public conditions: google.cloud.compute.v1.ICondition[]; - - /** Rule description. */ - public description?: (string|null); - - /** Rule ins. */ - public ins: string[]; - - /** Rule logConfigs. */ - public logConfigs: google.cloud.compute.v1.ILogConfig[]; - - /** Rule notIns. */ - public notIns: string[]; - - /** Rule permissions. */ - public permissions: string[]; - - /** Rule _action. */ - public _action?: "action"; - - /** Rule _description. */ - public _description?: "description"; - - /** - * Creates a new Rule instance using the specified properties. - * @param [properties] Properties to set - * @returns Rule instance - */ - public static create(properties?: google.cloud.compute.v1.IRule): google.cloud.compute.v1.Rule; - - /** - * Encodes the specified Rule message. Does not implicitly {@link google.cloud.compute.v1.Rule.verify|verify} messages. - * @param message Rule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.compute.v1.IRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Rule message, length delimited. Does not implicitly {@link google.cloud.compute.v1.Rule.verify|verify} messages. - * @param message Rule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.compute.v1.IRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Rule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Rule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.Rule; - - /** - * Decodes a Rule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Rule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.Rule; - - /** - * Verifies a Rule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Rule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Rule - */ - public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.Rule; - - /** - * Creates a plain object from a Rule message. Also converts values to other types if specified. - * @param message Rule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.compute.v1.Rule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Rule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Rule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Rule { - - /** Action enum. */ - enum Action { - UNDEFINED_ACTION = 0, - ALLOW = 62368553, - ALLOW_WITH_LOG = 76034177, - DENY = 2094604, - DENY_WITH_LOG = 351433982, - LOG = 75556, - NO_ACTION = 260643444 - } - } - /** Properties of a SSLHealthCheck. */ interface ISSLHealthCheck { @@ -153938,6 +154178,9 @@ export namespace google { /** Scheduling automaticRestart */ automaticRestart?: (boolean|null); + /** Scheduling availabilityDomain */ + availabilityDomain?: (number|null); + /** Scheduling instanceTerminationAction */ instanceTerminationAction?: (string|null); @@ -153947,6 +154190,9 @@ export namespace google { /** Scheduling locationHint */ locationHint?: (string|null); + /** Scheduling maxRunDuration */ + maxRunDuration?: (google.cloud.compute.v1.IDuration|null); + /** Scheduling minNodeCpus */ minNodeCpus?: (number|null); @@ -153956,11 +154202,17 @@ export namespace google { /** Scheduling onHostMaintenance */ onHostMaintenance?: (string|null); + /** Scheduling onInstanceStopAction */ + onInstanceStopAction?: (google.cloud.compute.v1.ISchedulingOnInstanceStopAction|null); + /** Scheduling preemptible */ preemptible?: (boolean|null); /** Scheduling provisioningModel */ provisioningModel?: (string|null); + + /** Scheduling terminationTime */ + terminationTime?: (string|null); } /** Represents a Scheduling. */ @@ -153975,6 +154227,9 @@ export namespace google { /** Scheduling automaticRestart. */ public automaticRestart?: (boolean|null); + /** Scheduling availabilityDomain. */ + public availabilityDomain?: (number|null); + /** Scheduling instanceTerminationAction. */ public instanceTerminationAction?: (string|null); @@ -153984,6 +154239,9 @@ export namespace google { /** Scheduling locationHint. */ public locationHint?: (string|null); + /** Scheduling maxRunDuration. */ + public maxRunDuration?: (google.cloud.compute.v1.IDuration|null); + /** Scheduling minNodeCpus. */ public minNodeCpus?: (number|null); @@ -153993,15 +154251,24 @@ export namespace google { /** Scheduling onHostMaintenance. */ public onHostMaintenance?: (string|null); + /** Scheduling onInstanceStopAction. */ + public onInstanceStopAction?: (google.cloud.compute.v1.ISchedulingOnInstanceStopAction|null); + /** Scheduling preemptible. */ public preemptible?: (boolean|null); /** Scheduling provisioningModel. */ public provisioningModel?: (string|null); + /** Scheduling terminationTime. */ + public terminationTime?: (string|null); + /** Scheduling _automaticRestart. */ public _automaticRestart?: "automaticRestart"; + /** Scheduling _availabilityDomain. */ + public _availabilityDomain?: "availabilityDomain"; + /** Scheduling _instanceTerminationAction. */ public _instanceTerminationAction?: "instanceTerminationAction"; @@ -154011,18 +154278,27 @@ export namespace google { /** Scheduling _locationHint. */ public _locationHint?: "locationHint"; + /** Scheduling _maxRunDuration. */ + public _maxRunDuration?: "maxRunDuration"; + /** Scheduling _minNodeCpus. */ public _minNodeCpus?: "minNodeCpus"; /** Scheduling _onHostMaintenance. */ public _onHostMaintenance?: "onHostMaintenance"; + /** Scheduling _onInstanceStopAction. */ + public _onInstanceStopAction?: "onInstanceStopAction"; + /** Scheduling _preemptible. */ public _preemptible?: "preemptible"; /** Scheduling _provisioningModel. */ public _provisioningModel?: "provisioningModel"; + /** Scheduling _terminationTime. */ + public _terminationTime?: "terminationTime"; + /** * Creates a new Scheduling instance using the specified properties. * @param [properties] Properties to set @@ -154252,6 +154528,106 @@ export namespace google { } } + /** Properties of a SchedulingOnInstanceStopAction. */ + interface ISchedulingOnInstanceStopAction { + + /** SchedulingOnInstanceStopAction discardLocalSsd */ + discardLocalSsd?: (boolean|null); + } + + /** Represents a SchedulingOnInstanceStopAction. */ + class SchedulingOnInstanceStopAction implements ISchedulingOnInstanceStopAction { + + /** + * Constructs a new SchedulingOnInstanceStopAction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISchedulingOnInstanceStopAction); + + /** SchedulingOnInstanceStopAction discardLocalSsd. */ + public discardLocalSsd?: (boolean|null); + + /** SchedulingOnInstanceStopAction _discardLocalSsd. */ + public _discardLocalSsd?: "discardLocalSsd"; + + /** + * Creates a new SchedulingOnInstanceStopAction instance using the specified properties. + * @param [properties] Properties to set + * @returns SchedulingOnInstanceStopAction instance + */ + public static create(properties?: google.cloud.compute.v1.ISchedulingOnInstanceStopAction): google.cloud.compute.v1.SchedulingOnInstanceStopAction; + + /** + * Encodes the specified SchedulingOnInstanceStopAction message. Does not implicitly {@link google.cloud.compute.v1.SchedulingOnInstanceStopAction.verify|verify} messages. + * @param message SchedulingOnInstanceStopAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISchedulingOnInstanceStopAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SchedulingOnInstanceStopAction message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SchedulingOnInstanceStopAction.verify|verify} messages. + * @param message SchedulingOnInstanceStopAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISchedulingOnInstanceStopAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchedulingOnInstanceStopAction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchedulingOnInstanceStopAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.SchedulingOnInstanceStopAction; + + /** + * Decodes a SchedulingOnInstanceStopAction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SchedulingOnInstanceStopAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.SchedulingOnInstanceStopAction; + + /** + * Verifies a SchedulingOnInstanceStopAction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SchedulingOnInstanceStopAction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SchedulingOnInstanceStopAction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SchedulingOnInstanceStopAction; + + /** + * Creates a plain object from a SchedulingOnInstanceStopAction message. Also converts values to other types if specified. + * @param message SchedulingOnInstanceStopAction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SchedulingOnInstanceStopAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SchedulingOnInstanceStopAction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SchedulingOnInstanceStopAction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ScratchDisks. */ interface IScratchDisks { @@ -155410,8 +155786,20 @@ export namespace google { /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig autoDeployLoadThreshold */ autoDeployLoadThreshold?: (number|null); + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionAbsoluteQps */ + detectionAbsoluteQps?: (number|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionLoadThreshold */ + detectionLoadThreshold?: (number|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionRelativeToBaselineQps */ + detectionRelativeToBaselineQps?: (number|null); + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig name */ name?: (string|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig trafficGranularityConfigs */ + trafficGranularityConfigs?: (google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig[]|null); } /** Represents a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig. */ @@ -155435,9 +155823,21 @@ export namespace google { /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig autoDeployLoadThreshold. */ public autoDeployLoadThreshold?: (number|null); + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionAbsoluteQps. */ + public detectionAbsoluteQps?: (number|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionLoadThreshold. */ + public detectionLoadThreshold?: (number|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionRelativeToBaselineQps. */ + public detectionRelativeToBaselineQps?: (number|null); + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig name. */ public name?: (string|null); + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig trafficGranularityConfigs. */ + public trafficGranularityConfigs: google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig[]; + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _autoDeployConfidenceThreshold. */ public _autoDeployConfidenceThreshold?: "autoDeployConfidenceThreshold"; @@ -155450,6 +155850,15 @@ export namespace google { /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _autoDeployLoadThreshold. */ public _autoDeployLoadThreshold?: "autoDeployLoadThreshold"; + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _detectionAbsoluteQps. */ + public _detectionAbsoluteQps?: "detectionAbsoluteQps"; + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _detectionLoadThreshold. */ + public _detectionLoadThreshold?: "detectionLoadThreshold"; + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _detectionRelativeToBaselineQps. */ + public _detectionRelativeToBaselineQps?: "detectionRelativeToBaselineQps"; + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _name. */ public _name?: "name"; @@ -155531,6 +155940,135 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig. */ + interface ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig { + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig enableEachUniqueValue */ + enableEachUniqueValue?: (boolean|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig type */ + type?: (string|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig value */ + value?: (string|null); + } + + /** Represents a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig. */ + class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig implements ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig { + + /** + * Constructs a new SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig enableEachUniqueValue. */ + public enableEachUniqueValue?: (boolean|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig type. */ + public type?: (string|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig value. */ + public value?: (string|null); + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig _enableEachUniqueValue. */ + public _enableEachUniqueValue?: "enableEachUniqueValue"; + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig _type. */ + public _type?: "type"; + + /** SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig _value. */ + public _value?: "value"; + + /** + * Creates a new SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig): google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig; + + /** + * Encodes the specified SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.verify|verify} messages. + * @param message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.verify|verify} messages. + * @param message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig; + + /** + * Decodes a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig; + + /** + * Verifies a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig; + + /** + * Creates a plain object from a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message. Also converts values to other types if specified. + * @param message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig { + + /** Type enum. */ + enum Type { + UNDEFINED_TYPE = 0, + HTTP_HEADER_HOST = 374321891, + HTTP_PATH = 311503228, + UNSPECIFIED_TYPE = 53933922 + } + } + /** Properties of a SecurityPolicyAdvancedOptionsConfig. */ interface ISecurityPolicyAdvancedOptionsConfig { @@ -159042,6 +159580,9 @@ export namespace google { /** ServiceAttachment producerForwardingRule */ producerForwardingRule?: (string|null); + /** ServiceAttachment propagatedConnectionLimit */ + propagatedConnectionLimit?: (number|null); + /** ServiceAttachment pscServiceAttachmentId */ pscServiceAttachmentId?: (google.cloud.compute.v1.IUint128|null); @@ -159109,6 +159650,9 @@ export namespace google { /** ServiceAttachment producerForwardingRule. */ public producerForwardingRule?: (string|null); + /** ServiceAttachment propagatedConnectionLimit. */ + public propagatedConnectionLimit?: (number|null); + /** ServiceAttachment pscServiceAttachmentId. */ public pscServiceAttachmentId?: (google.cloud.compute.v1.IUint128|null); @@ -159151,6 +159695,9 @@ export namespace google { /** ServiceAttachment _producerForwardingRule. */ public _producerForwardingRule?: "producerForwardingRule"; + /** ServiceAttachment _propagatedConnectionLimit. */ + public _propagatedConnectionLimit?: "propagatedConnectionLimit"; + /** ServiceAttachment _pscServiceAttachmentId. */ public _pscServiceAttachmentId?: "pscServiceAttachmentId"; @@ -159412,6 +159959,9 @@ export namespace google { /** ServiceAttachmentConnectedEndpoint endpoint */ endpoint?: (string|null); + /** ServiceAttachmentConnectedEndpoint propagatedConnectionCount */ + propagatedConnectionCount?: (number|null); + /** ServiceAttachmentConnectedEndpoint pscConnectionId */ pscConnectionId?: (number|Long|string|null); @@ -159434,6 +159984,9 @@ export namespace google { /** ServiceAttachmentConnectedEndpoint endpoint. */ public endpoint?: (string|null); + /** ServiceAttachmentConnectedEndpoint propagatedConnectionCount. */ + public propagatedConnectionCount?: (number|null); + /** ServiceAttachmentConnectedEndpoint pscConnectionId. */ public pscConnectionId?: (number|Long|string|null); @@ -159446,6 +159999,9 @@ export namespace google { /** ServiceAttachmentConnectedEndpoint _endpoint. */ public _endpoint?: "endpoint"; + /** ServiceAttachmentConnectedEndpoint _propagatedConnectionCount. */ + public _propagatedConnectionCount?: "propagatedConnectionCount"; + /** ServiceAttachmentConnectedEndpoint _pscConnectionId. */ public _pscConnectionId?: "pscConnectionId"; @@ -178780,6 +179336,7 @@ export namespace google { UNDEFINED_STACK_TYPE = 0, IPV4_IPV6 = 22197249, IPV4_ONLY = 22373798, + IPV6_ONLY = 79632100, UNSPECIFIED_STACK_TYPE = 298084569 } @@ -181652,6 +182209,9 @@ export namespace google { /** TargetHttpsProxy sslPolicy */ sslPolicy?: (string|null); + /** TargetHttpsProxy tlsEarlyData */ + tlsEarlyData?: (string|null); + /** TargetHttpsProxy urlMap */ urlMap?: (string|null); } @@ -181713,6 +182273,9 @@ export namespace google { /** TargetHttpsProxy sslPolicy. */ public sslPolicy?: (string|null); + /** TargetHttpsProxy tlsEarlyData. */ + public tlsEarlyData?: (string|null); + /** TargetHttpsProxy urlMap. */ public urlMap?: (string|null); @@ -181761,6 +182324,9 @@ export namespace google { /** TargetHttpsProxy _sslPolicy. */ public _sslPolicy?: "sslPolicy"; + /** TargetHttpsProxy _tlsEarlyData. */ + public _tlsEarlyData?: "tlsEarlyData"; + /** TargetHttpsProxy _urlMap. */ public _urlMap?: "urlMap"; @@ -181851,6 +182417,14 @@ export namespace google { ENABLE = 438835587, NONE = 2402104 } + + /** TlsEarlyData enum. */ + enum TlsEarlyData { + UNDEFINED_TLS_EARLY_DATA = 0, + DISABLED = 516696700, + PERMISSIVE = 504345247, + STRICT = 308826825 + } } /** Properties of a TargetHttpsProxyAggregatedList. */ @@ -182952,7 +183526,8 @@ export namespace google { GENERATED_COOKIE = 370321204, HEADER_FIELD = 200737960, HTTP_COOKIE = 494981627, - NONE = 2402104 + NONE = 2402104, + STRONG_COOKIE_AFFINITY = 438628091 } } @@ -193071,6 +193646,9 @@ export namespace google { /** UrlMap creationTimestamp */ creationTimestamp?: (string|null); + /** UrlMap defaultCustomErrorResponsePolicy */ + defaultCustomErrorResponsePolicy?: (google.cloud.compute.v1.ICustomErrorResponsePolicy|null); + /** UrlMap defaultRouteAction */ defaultRouteAction?: (google.cloud.compute.v1.IHttpRouteAction|null); @@ -193126,6 +193704,9 @@ export namespace google { /** UrlMap creationTimestamp. */ public creationTimestamp?: (string|null); + /** UrlMap defaultCustomErrorResponsePolicy. */ + public defaultCustomErrorResponsePolicy?: (google.cloud.compute.v1.ICustomErrorResponsePolicy|null); + /** UrlMap defaultRouteAction. */ public defaultRouteAction?: (google.cloud.compute.v1.IHttpRouteAction|null); @@ -193171,6 +193752,9 @@ export namespace google { /** UrlMap _creationTimestamp. */ public _creationTimestamp?: "creationTimestamp"; + /** UrlMap _defaultCustomErrorResponsePolicy. */ + public _defaultCustomErrorResponsePolicy?: "defaultCustomErrorResponsePolicy"; + /** UrlMap _defaultRouteAction. */ public _defaultRouteAction?: "defaultRouteAction"; @@ -194704,7 +195288,8 @@ export namespace google { enum StackType { UNDEFINED_STACK_TYPE = 0, IPV4_IPV6 = 22197249, - IPV4_ONLY = 22373798 + IPV4_ONLY = 22373798, + IPV6_ONLY = 79632100 } } @@ -196030,7 +196615,8 @@ export namespace google { enum StackType { UNDEFINED_STACK_TYPE = 0, IPV4_IPV6 = 22197249, - IPV4_ONLY = 22373798 + IPV4_ONLY = 22373798, + IPV6_ONLY = 79632100 } } diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 20a2edf3866..d9c104bd4a0 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -24928,7 +24928,9 @@ * @interface IAdvancedMachineFeatures * @property {boolean|null} [enableNestedVirtualization] AdvancedMachineFeatures enableNestedVirtualization * @property {boolean|null} [enableUefiNetworking] AdvancedMachineFeatures enableUefiNetworking + * @property {string|null} [performanceMonitoringUnit] AdvancedMachineFeatures performanceMonitoringUnit * @property {number|null} [threadsPerCore] AdvancedMachineFeatures threadsPerCore + * @property {string|null} [turboMode] AdvancedMachineFeatures turboMode * @property {number|null} [visibleCoreCount] AdvancedMachineFeatures visibleCoreCount */ @@ -24963,6 +24965,14 @@ */ AdvancedMachineFeatures.prototype.enableUefiNetworking = null; + /** + * AdvancedMachineFeatures performanceMonitoringUnit. + * @member {string|null|undefined} performanceMonitoringUnit + * @memberof google.cloud.compute.v1.AdvancedMachineFeatures + * @instance + */ + AdvancedMachineFeatures.prototype.performanceMonitoringUnit = null; + /** * AdvancedMachineFeatures threadsPerCore. * @member {number|null|undefined} threadsPerCore @@ -24971,6 +24981,14 @@ */ AdvancedMachineFeatures.prototype.threadsPerCore = null; + /** + * AdvancedMachineFeatures turboMode. + * @member {string|null|undefined} turboMode + * @memberof google.cloud.compute.v1.AdvancedMachineFeatures + * @instance + */ + AdvancedMachineFeatures.prototype.turboMode = null; + /** * AdvancedMachineFeatures visibleCoreCount. * @member {number|null|undefined} visibleCoreCount @@ -25004,6 +25022,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * AdvancedMachineFeatures _performanceMonitoringUnit. + * @member {"performanceMonitoringUnit"|undefined} _performanceMonitoringUnit + * @memberof google.cloud.compute.v1.AdvancedMachineFeatures + * @instance + */ + Object.defineProperty(AdvancedMachineFeatures.prototype, "_performanceMonitoringUnit", { + get: $util.oneOfGetter($oneOfFields = ["performanceMonitoringUnit"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * AdvancedMachineFeatures _threadsPerCore. * @member {"threadsPerCore"|undefined} _threadsPerCore @@ -25015,6 +25044,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * AdvancedMachineFeatures _turboMode. + * @member {"turboMode"|undefined} _turboMode + * @memberof google.cloud.compute.v1.AdvancedMachineFeatures + * @instance + */ + Object.defineProperty(AdvancedMachineFeatures.prototype, "_turboMode", { + get: $util.oneOfGetter($oneOfFields = ["turboMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * AdvancedMachineFeatures _visibleCoreCount. * @member {"visibleCoreCount"|undefined} _visibleCoreCount @@ -25058,6 +25098,10 @@ writer.uint32(/* id 334485668, wireType 0 =*/2675885344).bool(message.enableUefiNetworking); if (message.threadsPerCore != null && Object.hasOwnProperty.call(message, "threadsPerCore")) writer.uint32(/* id 352611671, wireType 0 =*/2820893368).int32(message.threadsPerCore); + if (message.turboMode != null && Object.hasOwnProperty.call(message, "turboMode")) + writer.uint32(/* id 432965412, wireType 2 =*/3463723298).string(message.turboMode); + if (message.performanceMonitoringUnit != null && Object.hasOwnProperty.call(message, "performanceMonitoringUnit")) + writer.uint32(/* id 533618956, wireType 2 =*/4268951650).string(message.performanceMonitoringUnit); return writer; }; @@ -25100,10 +25144,18 @@ message.enableUefiNetworking = reader.bool(); break; } + case 533618956: { + message.performanceMonitoringUnit = reader.string(); + break; + } case 352611671: { message.threadsPerCore = reader.int32(); break; } + case 432965412: { + message.turboMode = reader.string(); + break; + } case 193198684: { message.visibleCoreCount = reader.int32(); break; @@ -25154,11 +25206,21 @@ if (typeof message.enableUefiNetworking !== "boolean") return "enableUefiNetworking: boolean expected"; } + if (message.performanceMonitoringUnit != null && message.hasOwnProperty("performanceMonitoringUnit")) { + properties._performanceMonitoringUnit = 1; + if (!$util.isString(message.performanceMonitoringUnit)) + return "performanceMonitoringUnit: string expected"; + } if (message.threadsPerCore != null && message.hasOwnProperty("threadsPerCore")) { properties._threadsPerCore = 1; if (!$util.isInteger(message.threadsPerCore)) return "threadsPerCore: integer expected"; } + if (message.turboMode != null && message.hasOwnProperty("turboMode")) { + properties._turboMode = 1; + if (!$util.isString(message.turboMode)) + return "turboMode: string expected"; + } if (message.visibleCoreCount != null && message.hasOwnProperty("visibleCoreCount")) { properties._visibleCoreCount = 1; if (!$util.isInteger(message.visibleCoreCount)) @@ -25183,8 +25245,12 @@ message.enableNestedVirtualization = Boolean(object.enableNestedVirtualization); if (object.enableUefiNetworking != null) message.enableUefiNetworking = Boolean(object.enableUefiNetworking); + if (object.performanceMonitoringUnit != null) + message.performanceMonitoringUnit = String(object.performanceMonitoringUnit); if (object.threadsPerCore != null) message.threadsPerCore = object.threadsPerCore | 0; + if (object.turboMode != null) + message.turboMode = String(object.turboMode); if (object.visibleCoreCount != null) message.visibleCoreCount = object.visibleCoreCount | 0; return message; @@ -25223,6 +25289,16 @@ if (options.oneofs) object._threadsPerCore = "threadsPerCore"; } + if (message.turboMode != null && message.hasOwnProperty("turboMode")) { + object.turboMode = message.turboMode; + if (options.oneofs) + object._turboMode = "turboMode"; + } + if (message.performanceMonitoringUnit != null && message.hasOwnProperty("performanceMonitoringUnit")) { + object.performanceMonitoringUnit = message.performanceMonitoringUnit; + if (options.oneofs) + object._performanceMonitoringUnit = "performanceMonitoringUnit"; + } return object; }; @@ -25252,6 +25328,26 @@ return typeUrlPrefix + "/google.cloud.compute.v1.AdvancedMachineFeatures"; }; + /** + * PerformanceMonitoringUnit enum. + * @name google.cloud.compute.v1.AdvancedMachineFeatures.PerformanceMonitoringUnit + * @enum {number} + * @property {number} UNDEFINED_PERFORMANCE_MONITORING_UNIT=0 UNDEFINED_PERFORMANCE_MONITORING_UNIT value + * @property {number} ARCHITECTURAL=155113693 ARCHITECTURAL value + * @property {number} ENHANCED=476873590 ENHANCED value + * @property {number} PERFORMANCE_MONITORING_UNIT_UNSPECIFIED=429210692 PERFORMANCE_MONITORING_UNIT_UNSPECIFIED value + * @property {number} STANDARD=484642493 STANDARD value + */ + AdvancedMachineFeatures.PerformanceMonitoringUnit = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_PERFORMANCE_MONITORING_UNIT"] = 0; + values[valuesById[155113693] = "ARCHITECTURAL"] = 155113693; + values[valuesById[476873590] = "ENHANCED"] = 476873590; + values[valuesById[429210692] = "PERFORMANCE_MONITORING_UNIT_UNSPECIFIED"] = 429210692; + values[valuesById[484642493] = "STANDARD"] = 484642493; + return values; + })(); + return AdvancedMachineFeatures; })(); @@ -47117,15 +47213,19 @@ * @name google.cloud.compute.v1.AllocationAggregateReservation.VmFamily * @enum {number} * @property {number} UNDEFINED_VM_FAMILY=0 UNDEFINED_VM_FAMILY value + * @property {number} VM_FAMILY_CLOUD_TPU_DEVICE_CT3=42845948 VM_FAMILY_CLOUD_TPU_DEVICE_CT3 value * @property {number} VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L=108020067 VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L value * @property {number} VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP=18705267 VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP value + * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P=517384376 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P value * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P=517384407 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P value */ AllocationAggregateReservation.VmFamily = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_VM_FAMILY"] = 0; + values[valuesById[42845948] = "VM_FAMILY_CLOUD_TPU_DEVICE_CT3"] = 42845948; values[valuesById[108020067] = "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L"] = 108020067; values[valuesById[18705267] = "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP"] = 18705267; + values[valuesById[517384376] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P"] = 517384376; values[valuesById[517384407] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P"] = 517384407; return values; })(); @@ -54479,249 +54579,6 @@ return AuditLogConfig; })(); - v1.AuthorizationLoggingOptions = (function() { - - /** - * Properties of an AuthorizationLoggingOptions. - * @memberof google.cloud.compute.v1 - * @interface IAuthorizationLoggingOptions - * @property {string|null} [permissionType] AuthorizationLoggingOptions permissionType - */ - - /** - * Constructs a new AuthorizationLoggingOptions. - * @memberof google.cloud.compute.v1 - * @classdesc Represents an AuthorizationLoggingOptions. - * @implements IAuthorizationLoggingOptions - * @constructor - * @param {google.cloud.compute.v1.IAuthorizationLoggingOptions=} [properties] Properties to set - */ - function AuthorizationLoggingOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AuthorizationLoggingOptions permissionType. - * @member {string|null|undefined} permissionType - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @instance - */ - AuthorizationLoggingOptions.prototype.permissionType = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * AuthorizationLoggingOptions _permissionType. - * @member {"permissionType"|undefined} _permissionType - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @instance - */ - Object.defineProperty(AuthorizationLoggingOptions.prototype, "_permissionType", { - get: $util.oneOfGetter($oneOfFields = ["permissionType"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new AuthorizationLoggingOptions instance using the specified properties. - * @function create - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {google.cloud.compute.v1.IAuthorizationLoggingOptions=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AuthorizationLoggingOptions} AuthorizationLoggingOptions instance - */ - AuthorizationLoggingOptions.create = function create(properties) { - return new AuthorizationLoggingOptions(properties); - }; - - /** - * Encodes the specified AuthorizationLoggingOptions message. Does not implicitly {@link google.cloud.compute.v1.AuthorizationLoggingOptions.verify|verify} messages. - * @function encode - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {google.cloud.compute.v1.IAuthorizationLoggingOptions} message AuthorizationLoggingOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthorizationLoggingOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.permissionType != null && Object.hasOwnProperty.call(message, "permissionType")) - writer.uint32(/* id 525978538, wireType 2 =*/4207828306).string(message.permissionType); - return writer; - }; - - /** - * Encodes the specified AuthorizationLoggingOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AuthorizationLoggingOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {google.cloud.compute.v1.IAuthorizationLoggingOptions} message AuthorizationLoggingOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthorizationLoggingOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AuthorizationLoggingOptions message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AuthorizationLoggingOptions} AuthorizationLoggingOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthorizationLoggingOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AuthorizationLoggingOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 525978538: { - message.permissionType = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AuthorizationLoggingOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AuthorizationLoggingOptions} AuthorizationLoggingOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthorizationLoggingOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuthorizationLoggingOptions message. - * @function verify - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuthorizationLoggingOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.permissionType != null && message.hasOwnProperty("permissionType")) { - properties._permissionType = 1; - if (!$util.isString(message.permissionType)) - return "permissionType: string expected"; - } - return null; - }; - - /** - * Creates an AuthorizationLoggingOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AuthorizationLoggingOptions} AuthorizationLoggingOptions - */ - AuthorizationLoggingOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AuthorizationLoggingOptions) - return object; - var message = new $root.google.cloud.compute.v1.AuthorizationLoggingOptions(); - if (object.permissionType != null) - message.permissionType = String(object.permissionType); - return message; - }; - - /** - * Creates a plain object from an AuthorizationLoggingOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {google.cloud.compute.v1.AuthorizationLoggingOptions} message AuthorizationLoggingOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AuthorizationLoggingOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.permissionType != null && message.hasOwnProperty("permissionType")) { - object.permissionType = message.permissionType; - if (options.oneofs) - object._permissionType = "permissionType"; - } - return object; - }; - - /** - * Converts this AuthorizationLoggingOptions to JSON. - * @function toJSON - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @instance - * @returns {Object.} JSON object - */ - AuthorizationLoggingOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for AuthorizationLoggingOptions - * @function getTypeUrl - * @memberof google.cloud.compute.v1.AuthorizationLoggingOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AuthorizationLoggingOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.compute.v1.AuthorizationLoggingOptions"; - }; - - /** - * PermissionType enum. - * @name google.cloud.compute.v1.AuthorizationLoggingOptions.PermissionType - * @enum {number} - * @property {number} UNDEFINED_PERMISSION_TYPE=0 UNDEFINED_PERMISSION_TYPE value - * @property {number} ADMIN_READ=128951462 ADMIN_READ value - * @property {number} ADMIN_WRITE=244412079 ADMIN_WRITE value - * @property {number} DATA_READ=305224971 DATA_READ value - * @property {number} DATA_WRITE=340181738 DATA_WRITE value - * @property {number} PERMISSION_TYPE_UNSPECIFIED=440313346 PERMISSION_TYPE_UNSPECIFIED value - */ - AuthorizationLoggingOptions.PermissionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_PERMISSION_TYPE"] = 0; - values[valuesById[128951462] = "ADMIN_READ"] = 128951462; - values[valuesById[244412079] = "ADMIN_WRITE"] = 244412079; - values[valuesById[305224971] = "DATA_READ"] = 305224971; - values[valuesById[340181738] = "DATA_WRITE"] = 340181738; - values[valuesById[440313346] = "PERMISSION_TYPE_UNSPECIFIED"] = 440313346; - return values; - })(); - - return AuthorizationLoggingOptions; - })(); - v1.Autoscaler = (function() { /** @@ -59892,6 +59749,7 @@ * @property {string|null} [kind] BackendBucket kind * @property {string|null} [name] BackendBucket name * @property {string|null} [selfLink] BackendBucket selfLink + * @property {Array.|null} [usedBy] BackendBucket usedBy */ /** @@ -59904,6 +59762,7 @@ */ function BackendBucket(properties) { this.customResponseHeaders = []; + this.usedBy = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60006,6 +59865,14 @@ */ BackendBucket.prototype.selfLink = null; + /** + * BackendBucket usedBy. + * @member {Array.} usedBy + * @memberof google.cloud.compute.v1.BackendBucket + * @instance + */ + BackendBucket.prototype.usedBy = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -60175,6 +60042,9 @@ if (message.customResponseHeaders != null && message.customResponseHeaders.length) for (var i = 0; i < message.customResponseHeaders.length; ++i) writer.uint32(/* id 387539094, wireType 2 =*/3100312754).string(message.customResponseHeaders[i]); + if (message.usedBy != null && message.usedBy.length) + for (var i = 0; i < message.usedBy.length; ++i) + $root.google.cloud.compute.v1.BackendBucketUsedBy.encode(message.usedBy[i], writer.uint32(/* id 389320729, wireType 2 =*/3114565834).fork()).ldelim(); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) @@ -60263,6 +60133,12 @@ message.selfLink = reader.string(); break; } + case 389320729: { + if (!(message.usedBy && message.usedBy.length)) + message.usedBy = []; + message.usedBy.push($root.google.cloud.compute.v1.BackendBucketUsedBy.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -60364,6 +60240,15 @@ if (!$util.isString(message.selfLink)) return "selfLink: string expected"; } + if (message.usedBy != null && message.hasOwnProperty("usedBy")) { + if (!Array.isArray(message.usedBy)) + return "usedBy: array expected"; + for (var i = 0; i < message.usedBy.length; ++i) { + var error = $root.google.cloud.compute.v1.BackendBucketUsedBy.verify(message.usedBy[i]); + if (error) + return "usedBy." + error; + } + } return null; }; @@ -60418,6 +60303,16 @@ message.name = String(object.name); if (object.selfLink != null) message.selfLink = String(object.selfLink); + if (object.usedBy) { + if (!Array.isArray(object.usedBy)) + throw TypeError(".google.cloud.compute.v1.BackendBucket.usedBy: array expected"); + message.usedBy = []; + for (var i = 0; i < object.usedBy.length; ++i) { + if (typeof object.usedBy[i] !== "object") + throw TypeError(".google.cloud.compute.v1.BackendBucket.usedBy: object expected"); + message.usedBy[i] = $root.google.cloud.compute.v1.BackendBucketUsedBy.fromObject(object.usedBy[i]); + } + } return message; }; @@ -60434,8 +60329,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.customResponseHeaders = []; + object.usedBy = []; + } if (message.id != null && message.hasOwnProperty("id")) { if (typeof message.id === "number") object.id = options.longs === String ? String(message.id) : message.id; @@ -60489,6 +60386,11 @@ for (var j = 0; j < message.customResponseHeaders.length; ++j) object.customResponseHeaders[j] = message.customResponseHeaders[j]; } + if (message.usedBy && message.usedBy.length) { + object.usedBy = []; + for (var j = 0; j < message.usedBy.length; ++j) + object.usedBy[j] = $root.google.cloud.compute.v1.BackendBucketUsedBy.toObject(message.usedBy[j], options); + } if (message.description != null && message.hasOwnProperty("description")) { object.description = message.description; if (options.oneofs) @@ -62400,6 +62302,227 @@ return BackendBucketList; })(); + v1.BackendBucketUsedBy = (function() { + + /** + * Properties of a BackendBucketUsedBy. + * @memberof google.cloud.compute.v1 + * @interface IBackendBucketUsedBy + * @property {string|null} [reference] BackendBucketUsedBy reference + */ + + /** + * Constructs a new BackendBucketUsedBy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendBucketUsedBy. + * @implements IBackendBucketUsedBy + * @constructor + * @param {google.cloud.compute.v1.IBackendBucketUsedBy=} [properties] Properties to set + */ + function BackendBucketUsedBy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendBucketUsedBy reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @instance + */ + BackendBucketUsedBy.prototype.reference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BackendBucketUsedBy _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @instance + */ + Object.defineProperty(BackendBucketUsedBy.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendBucketUsedBy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {google.cloud.compute.v1.IBackendBucketUsedBy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendBucketUsedBy} BackendBucketUsedBy instance + */ + BackendBucketUsedBy.create = function create(properties) { + return new BackendBucketUsedBy(properties); + }; + + /** + * Encodes the specified BackendBucketUsedBy message. Does not implicitly {@link google.cloud.compute.v1.BackendBucketUsedBy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {google.cloud.compute.v1.IBackendBucketUsedBy} message BackendBucketUsedBy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketUsedBy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 148586315, wireType 2 =*/1188690522).string(message.reference); + return writer; + }; + + /** + * Encodes the specified BackendBucketUsedBy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendBucketUsedBy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {google.cloud.compute.v1.IBackendBucketUsedBy} message BackendBucketUsedBy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketUsedBy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendBucketUsedBy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.BackendBucketUsedBy} BackendBucketUsedBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketUsedBy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.BackendBucketUsedBy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 148586315: { + message.reference = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendBucketUsedBy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BackendBucketUsedBy} BackendBucketUsedBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketUsedBy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendBucketUsedBy message. + * @function verify + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendBucketUsedBy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + return null; + }; + + /** + * Creates a BackendBucketUsedBy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendBucketUsedBy} BackendBucketUsedBy + */ + BackendBucketUsedBy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendBucketUsedBy) + return object; + var message = new $root.google.cloud.compute.v1.BackendBucketUsedBy(); + if (object.reference != null) + message.reference = String(object.reference); + return message; + }; + + /** + * Creates a plain object from a BackendBucketUsedBy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {google.cloud.compute.v1.BackendBucketUsedBy} message BackendBucketUsedBy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendBucketUsedBy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + return object; + }; + + /** + * Converts this BackendBucketUsedBy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @instance + * @returns {Object.} JSON object + */ + BackendBucketUsedBy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendBucketUsedBy + * @function getTypeUrl + * @memberof google.cloud.compute.v1.BackendBucketUsedBy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendBucketUsedBy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.BackendBucketUsedBy"; + }; + + return BackendBucketUsedBy; + })(); + v1.BackendService = (function() { /** @@ -62425,6 +62548,7 @@ * @property {Array.|null} [healthChecks] BackendService healthChecks * @property {google.cloud.compute.v1.IBackendServiceIAP|null} [iap] BackendService iap * @property {number|Long|null} [id] BackendService id + * @property {string|null} [ipAddressSelectionPolicy] BackendService ipAddressSelectionPolicy * @property {string|null} [kind] BackendService kind * @property {string|null} [loadBalancingScheme] BackendService loadBalancingScheme * @property {Array.|null} [localityLbPolicies] BackendService localityLbPolicies @@ -62445,6 +62569,7 @@ * @property {Array.|null} [serviceBindings] BackendService serviceBindings * @property {string|null} [serviceLbPolicy] BackendService serviceLbPolicy * @property {string|null} [sessionAffinity] BackendService sessionAffinity + * @property {google.cloud.compute.v1.IBackendServiceHttpCookie|null} [strongSessionAffinityCookie] BackendService strongSessionAffinityCookie * @property {google.cloud.compute.v1.ISubsetting|null} [subsetting] BackendService subsetting * @property {number|null} [timeoutSec] BackendService timeoutSec * @property {Array.|null} [usedBy] BackendService usedBy @@ -62625,6 +62750,14 @@ */ BackendService.prototype.id = null; + /** + * BackendService ipAddressSelectionPolicy. + * @member {string|null|undefined} ipAddressSelectionPolicy + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + BackendService.prototype.ipAddressSelectionPolicy = null; + /** * BackendService kind. * @member {string|null|undefined} kind @@ -62785,6 +62918,14 @@ */ BackendService.prototype.sessionAffinity = null; + /** + * BackendService strongSessionAffinityCookie. + * @member {google.cloud.compute.v1.IBackendServiceHttpCookie|null|undefined} strongSessionAffinityCookie + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + BackendService.prototype.strongSessionAffinityCookie = null; + /** * BackendService subsetting. * @member {google.cloud.compute.v1.ISubsetting|null|undefined} subsetting @@ -62977,6 +63118,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * BackendService _ipAddressSelectionPolicy. + * @member {"ipAddressSelectionPolicy"|undefined} _ipAddressSelectionPolicy + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + Object.defineProperty(BackendService.prototype, "_ipAddressSelectionPolicy", { + get: $util.oneOfGetter($oneOfFields = ["ipAddressSelectionPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * BackendService _kind. * @member {"kind"|undefined} _kind @@ -63164,6 +63316,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * BackendService _strongSessionAffinityCookie. + * @member {"strongSessionAffinityCookie"|undefined} _strongSessionAffinityCookie + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + Object.defineProperty(BackendService.prototype, "_strongSessionAffinityCookie", { + get: $util.oneOfGetter($oneOfFields = ["strongSessionAffinityCookie"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * BackendService _subsetting. * @member {"subsetting"|undefined} _subsetting @@ -63236,6 +63399,8 @@ writer.uint32(/* id 41534345, wireType 2 =*/332274762).string(message.portName); if (message.maxStreamDuration != null && Object.hasOwnProperty.call(message, "maxStreamDuration")) $root.google.cloud.compute.v1.Duration.encode(message.maxStreamDuration, writer.uint32(/* id 61428376, wireType 2 =*/491427010).fork()).ldelim(); + if (message.ipAddressSelectionPolicy != null && Object.hasOwnProperty.call(message, "ipAddressSelectionPolicy")) + writer.uint32(/* id 77600840, wireType 2 =*/620806722).string(message.ipAddressSelectionPolicy); if (message.timeoutSec != null && Object.hasOwnProperty.call(message, "timeoutSec")) writer.uint32(/* id 79994995, wireType 0 =*/639959960).int32(message.timeoutSec); if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) @@ -63266,6 +63431,8 @@ writer.uint32(/* id 232872494, wireType 2 =*/1862979954).string(message.network); if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.strongSessionAffinityCookie != null && Object.hasOwnProperty.call(message, "strongSessionAffinityCookie")) + $root.google.cloud.compute.v1.BackendServiceHttpCookie.encode(message.strongSessionAffinityCookie, writer.uint32(/* id 238195722, wireType 2 =*/1905565778).fork()).ldelim(); if (message.enableCDN != null && Object.hasOwnProperty.call(message, "enableCDN")) writer.uint32(/* id 250733499, wireType 0 =*/2005867992).bool(message.enableCDN); if (message.logConfig != null && Object.hasOwnProperty.call(message, "logConfig")) @@ -63420,6 +63587,10 @@ message.id = reader.uint64(); break; } + case 77600840: { + message.ipAddressSelectionPolicy = reader.string(); + break; + } case 3292052: { message.kind = reader.string(); break; @@ -63523,6 +63694,10 @@ message.sessionAffinity = reader.string(); break; } + case 238195722: { + message.strongSessionAffinityCookie = $root.google.cloud.compute.v1.BackendServiceHttpCookie.decode(reader, reader.uint32()); + break; + } case 450283536: { message.subsetting = $root.google.cloud.compute.v1.Subsetting.decode(reader, reader.uint32()); break; @@ -63699,6 +63874,11 @@ if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; } + if (message.ipAddressSelectionPolicy != null && message.hasOwnProperty("ipAddressSelectionPolicy")) { + properties._ipAddressSelectionPolicy = 1; + if (!$util.isString(message.ipAddressSelectionPolicy)) + return "ipAddressSelectionPolicy: string expected"; + } if (message.kind != null && message.hasOwnProperty("kind")) { properties._kind = 1; if (!$util.isString(message.kind)) @@ -63820,6 +64000,14 @@ if (!$util.isString(message.sessionAffinity)) return "sessionAffinity: string expected"; } + if (message.strongSessionAffinityCookie != null && message.hasOwnProperty("strongSessionAffinityCookie")) { + properties._strongSessionAffinityCookie = 1; + { + var error = $root.google.cloud.compute.v1.BackendServiceHttpCookie.verify(message.strongSessionAffinityCookie); + if (error) + return "strongSessionAffinityCookie." + error; + } + } if (message.subsetting != null && message.hasOwnProperty("subsetting")) { properties._subsetting = 1; { @@ -63946,6 +64134,8 @@ message.id = object.id; else if (typeof object.id === "object") message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.ipAddressSelectionPolicy != null) + message.ipAddressSelectionPolicy = String(object.ipAddressSelectionPolicy); if (object.kind != null) message.kind = String(object.kind); if (object.loadBalancingScheme != null) @@ -64016,6 +64206,11 @@ message.serviceLbPolicy = String(object.serviceLbPolicy); if (object.sessionAffinity != null) message.sessionAffinity = String(object.sessionAffinity); + if (object.strongSessionAffinityCookie != null) { + if (typeof object.strongSessionAffinityCookie !== "object") + throw TypeError(".google.cloud.compute.v1.BackendService.strongSessionAffinityCookie: object expected"); + message.strongSessionAffinityCookie = $root.google.cloud.compute.v1.BackendServiceHttpCookie.fromObject(object.strongSessionAffinityCookie); + } if (object.subsetting != null) { if (typeof object.subsetting !== "object") throw TypeError(".google.cloud.compute.v1.BackendService.subsetting: object expected"); @@ -64124,6 +64319,11 @@ if (options.oneofs) object._maxStreamDuration = "maxStreamDuration"; } + if (message.ipAddressSelectionPolicy != null && message.hasOwnProperty("ipAddressSelectionPolicy")) { + object.ipAddressSelectionPolicy = message.ipAddressSelectionPolicy; + if (options.oneofs) + object._ipAddressSelectionPolicy = "ipAddressSelectionPolicy"; + } if (message.timeoutSec != null && message.hasOwnProperty("timeoutSec")) { object.timeoutSec = message.timeoutSec; if (options.oneofs) @@ -64194,6 +64394,11 @@ if (options.oneofs) object._fingerprint = "fingerprint"; } + if (message.strongSessionAffinityCookie != null && message.hasOwnProperty("strongSessionAffinityCookie")) { + object.strongSessionAffinityCookie = $root.google.cloud.compute.v1.BackendServiceHttpCookie.toObject(message.strongSessionAffinityCookie, options); + if (options.oneofs) + object._strongSessionAffinityCookie = "strongSessionAffinityCookie"; + } if (message.enableCDN != null && message.hasOwnProperty("enableCDN")) { object.enableCDN = message.enableCDN; if (options.oneofs) @@ -64319,6 +64524,26 @@ return values; })(); + /** + * IpAddressSelectionPolicy enum. + * @name google.cloud.compute.v1.BackendService.IpAddressSelectionPolicy + * @enum {number} + * @property {number} UNDEFINED_IP_ADDRESS_SELECTION_POLICY=0 UNDEFINED_IP_ADDRESS_SELECTION_POLICY value + * @property {number} IPV4_ONLY=22373798 IPV4_ONLY value + * @property {number} IPV6_ONLY=79632100 IPV6_ONLY value + * @property {number} IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED=36210144 IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED value + * @property {number} PREFER_IPV6=408601302 PREFER_IPV6 value + */ + BackendService.IpAddressSelectionPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_IP_ADDRESS_SELECTION_POLICY"] = 0; + values[valuesById[22373798] = "IPV4_ONLY"] = 22373798; + values[valuesById[79632100] = "IPV6_ONLY"] = 79632100; + values[valuesById[36210144] = "IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED"] = 36210144; + values[valuesById[408601302] = "PREFER_IPV6"] = 408601302; + return values; + })(); + /** * LoadBalancingScheme enum. * @name google.cloud.compute.v1.BackendService.LoadBalancingScheme @@ -64412,6 +64637,7 @@ * @property {number} HEADER_FIELD=200737960 HEADER_FIELD value * @property {number} HTTP_COOKIE=494981627 HTTP_COOKIE value * @property {number} NONE=2402104 NONE value + * @property {number} STRONG_COOKIE_AFFINITY=438628091 STRONG_COOKIE_AFFINITY value */ BackendService.SessionAffinity = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -64424,6 +64650,7 @@ values[valuesById[200737960] = "HEADER_FIELD"] = 200737960; values[valuesById[494981627] = "HTTP_COOKIE"] = 494981627; values[valuesById[2402104] = "NONE"] = 2402104; + values[valuesById[438628091] = "STRONG_COOKIE_AFFINITY"] = 438628091; return values; })(); @@ -67078,6 +67305,309 @@ return BackendServiceGroupHealth; })(); + v1.BackendServiceHttpCookie = (function() { + + /** + * Properties of a BackendServiceHttpCookie. + * @memberof google.cloud.compute.v1 + * @interface IBackendServiceHttpCookie + * @property {string|null} [name] BackendServiceHttpCookie name + * @property {string|null} [path] BackendServiceHttpCookie path + * @property {google.cloud.compute.v1.IDuration|null} [ttl] BackendServiceHttpCookie ttl + */ + + /** + * Constructs a new BackendServiceHttpCookie. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendServiceHttpCookie. + * @implements IBackendServiceHttpCookie + * @constructor + * @param {google.cloud.compute.v1.IBackendServiceHttpCookie=} [properties] Properties to set + */ + function BackendServiceHttpCookie(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendServiceHttpCookie name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @instance + */ + BackendServiceHttpCookie.prototype.name = null; + + /** + * BackendServiceHttpCookie path. + * @member {string|null|undefined} path + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @instance + */ + BackendServiceHttpCookie.prototype.path = null; + + /** + * BackendServiceHttpCookie ttl. + * @member {google.cloud.compute.v1.IDuration|null|undefined} ttl + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @instance + */ + BackendServiceHttpCookie.prototype.ttl = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BackendServiceHttpCookie _name. + * @member {"name"|undefined} _name + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @instance + */ + Object.defineProperty(BackendServiceHttpCookie.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BackendServiceHttpCookie _path. + * @member {"path"|undefined} _path + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @instance + */ + Object.defineProperty(BackendServiceHttpCookie.prototype, "_path", { + get: $util.oneOfGetter($oneOfFields = ["path"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BackendServiceHttpCookie _ttl. + * @member {"ttl"|undefined} _ttl + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @instance + */ + Object.defineProperty(BackendServiceHttpCookie.prototype, "_ttl", { + get: $util.oneOfGetter($oneOfFields = ["ttl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendServiceHttpCookie instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {google.cloud.compute.v1.IBackendServiceHttpCookie=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendServiceHttpCookie} BackendServiceHttpCookie instance + */ + BackendServiceHttpCookie.create = function create(properties) { + return new BackendServiceHttpCookie(properties); + }; + + /** + * Encodes the specified BackendServiceHttpCookie message. Does not implicitly {@link google.cloud.compute.v1.BackendServiceHttpCookie.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {google.cloud.compute.v1.IBackendServiceHttpCookie} message BackendServiceHttpCookie message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceHttpCookie.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ttl != null && Object.hasOwnProperty.call(message, "ttl")) + $root.google.cloud.compute.v1.Duration.encode(message.ttl, writer.uint32(/* id 115180, wireType 2 =*/921442).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 3433509, wireType 2 =*/27468074).string(message.path); + return writer; + }; + + /** + * Encodes the specified BackendServiceHttpCookie message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendServiceHttpCookie.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {google.cloud.compute.v1.IBackendServiceHttpCookie} message BackendServiceHttpCookie message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceHttpCookie.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendServiceHttpCookie message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.BackendServiceHttpCookie} BackendServiceHttpCookie + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceHttpCookie.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.BackendServiceHttpCookie(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3373707: { + message.name = reader.string(); + break; + } + case 3433509: { + message.path = reader.string(); + break; + } + case 115180: { + message.ttl = $root.google.cloud.compute.v1.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendServiceHttpCookie message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BackendServiceHttpCookie} BackendServiceHttpCookie + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceHttpCookie.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendServiceHttpCookie message. + * @function verify + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendServiceHttpCookie.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.path != null && message.hasOwnProperty("path")) { + properties._path = 1; + if (!$util.isString(message.path)) + return "path: string expected"; + } + if (message.ttl != null && message.hasOwnProperty("ttl")) { + properties._ttl = 1; + { + var error = $root.google.cloud.compute.v1.Duration.verify(message.ttl); + if (error) + return "ttl." + error; + } + } + return null; + }; + + /** + * Creates a BackendServiceHttpCookie message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendServiceHttpCookie} BackendServiceHttpCookie + */ + BackendServiceHttpCookie.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendServiceHttpCookie) + return object; + var message = new $root.google.cloud.compute.v1.BackendServiceHttpCookie(); + if (object.name != null) + message.name = String(object.name); + if (object.path != null) + message.path = String(object.path); + if (object.ttl != null) { + if (typeof object.ttl !== "object") + throw TypeError(".google.cloud.compute.v1.BackendServiceHttpCookie.ttl: object expected"); + message.ttl = $root.google.cloud.compute.v1.Duration.fromObject(object.ttl); + } + return message; + }; + + /** + * Creates a plain object from a BackendServiceHttpCookie message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {google.cloud.compute.v1.BackendServiceHttpCookie} message BackendServiceHttpCookie + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendServiceHttpCookie.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.ttl != null && message.hasOwnProperty("ttl")) { + object.ttl = $root.google.cloud.compute.v1.Duration.toObject(message.ttl, options); + if (options.oneofs) + object._ttl = "ttl"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.path != null && message.hasOwnProperty("path")) { + object.path = message.path; + if (options.oneofs) + object._path = "path"; + } + return object; + }; + + /** + * Converts this BackendServiceHttpCookie to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @instance + * @returns {Object.} JSON object + */ + BackendServiceHttpCookie.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendServiceHttpCookie + * @function getTypeUrl + * @memberof google.cloud.compute.v1.BackendServiceHttpCookie + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendServiceHttpCookie.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.BackendServiceHttpCookie"; + }; + + return BackendServiceHttpCookie; + })(); + v1.BackendServiceIAP = (function() { /** @@ -77213,6 +77743,7 @@ * @property {boolean|null} [autoRenew] Commitment autoRenew * @property {string|null} [category] Commitment category * @property {string|null} [creationTimestamp] Commitment creationTimestamp + * @property {string|null} [customEndTimestamp] Commitment customEndTimestamp * @property {string|null} [description] Commitment description * @property {string|null} [endTimestamp] Commitment endTimestamp * @property {Array.|null} [existingReservations] Commitment existingReservations @@ -77224,6 +77755,7 @@ * @property {string|null} [plan] Commitment plan * @property {string|null} [region] Commitment region * @property {Array.|null} [reservations] Commitment reservations + * @property {google.cloud.compute.v1.ICommitmentResourceStatus|null} [resourceStatus] Commitment resourceStatus * @property {Array.|null} [resources] Commitment resources * @property {string|null} [selfLink] Commitment selfLink * @property {string|null} [splitSourceCommitment] Commitment splitSourceCommitment @@ -77276,6 +77808,14 @@ */ Commitment.prototype.creationTimestamp = null; + /** + * Commitment customEndTimestamp. + * @member {string|null|undefined} customEndTimestamp + * @memberof google.cloud.compute.v1.Commitment + * @instance + */ + Commitment.prototype.customEndTimestamp = null; + /** * Commitment description. * @member {string|null|undefined} description @@ -77364,6 +77904,14 @@ */ Commitment.prototype.reservations = $util.emptyArray; + /** + * Commitment resourceStatus. + * @member {google.cloud.compute.v1.ICommitmentResourceStatus|null|undefined} resourceStatus + * @memberof google.cloud.compute.v1.Commitment + * @instance + */ + Commitment.prototype.resourceStatus = null; + /** * Commitment resources. * @member {Array.} resources @@ -77456,6 +78004,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Commitment _customEndTimestamp. + * @member {"customEndTimestamp"|undefined} _customEndTimestamp + * @memberof google.cloud.compute.v1.Commitment + * @instance + */ + Object.defineProperty(Commitment.prototype, "_customEndTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["customEndTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Commitment _description. * @member {"description"|undefined} _description @@ -77544,6 +78103,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Commitment _resourceStatus. + * @member {"resourceStatus"|undefined} _resourceStatus + * @memberof google.cloud.compute.v1.Commitment + * @instance + */ + Object.defineProperty(Commitment.prototype, "_resourceStatus", { + get: $util.oneOfGetter($oneOfFields = ["resourceStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Commitment _selfLink. * @member {"selfLink"|undefined} _selfLink @@ -77657,9 +78227,13 @@ $root.google.cloud.compute.v1.ResourceCommitment.encode(message.resources[i], writer.uint32(/* id 164412965, wireType 2 =*/1315303722).fork()).ldelim(); if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.customEndTimestamp != null && Object.hasOwnProperty.call(message, "customEndTimestamp")) + writer.uint32(/* id 181770852, wireType 2 =*/1454166818).string(message.customEndTimestamp); if (message.mergeSourceCommitments != null && message.mergeSourceCommitments.length) for (var i = 0; i < message.mergeSourceCommitments.length; ++i) writer.uint32(/* id 188093761, wireType 2 =*/1504750090).string(message.mergeSourceCommitments[i]); + if (message.resourceStatus != null && Object.hasOwnProperty.call(message, "resourceStatus")) + $root.google.cloud.compute.v1.CommitmentResourceStatus.encode(message.resourceStatus, writer.uint32(/* id 249429315, wireType 2 =*/1995434522).fork()).ldelim(); if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 297428154, wireType 2 =*/2379425234).string(message.statusMessage); if (message.reservations != null && message.reservations.length) @@ -77726,6 +78300,10 @@ message.creationTimestamp = reader.string(); break; } + case 181770852: { + message.customEndTimestamp = reader.string(); + break; + } case 422937596: { message.description = reader.string(); break; @@ -77776,6 +78354,10 @@ message.reservations.push($root.google.cloud.compute.v1.Reservation.decode(reader, reader.uint32())); break; } + case 249429315: { + message.resourceStatus = $root.google.cloud.compute.v1.CommitmentResourceStatus.decode(reader, reader.uint32()); + break; + } case 164412965: { if (!(message.resources && message.resources.length)) message.resources = []; @@ -77857,6 +78439,11 @@ if (!$util.isString(message.creationTimestamp)) return "creationTimestamp: string expected"; } + if (message.customEndTimestamp != null && message.hasOwnProperty("customEndTimestamp")) { + properties._customEndTimestamp = 1; + if (!$util.isString(message.customEndTimestamp)) + return "customEndTimestamp: string expected"; + } if (message.description != null && message.hasOwnProperty("description")) { properties._description = 1; if (!$util.isString(message.description)) @@ -77923,6 +78510,14 @@ return "reservations." + error; } } + if (message.resourceStatus != null && message.hasOwnProperty("resourceStatus")) { + properties._resourceStatus = 1; + { + var error = $root.google.cloud.compute.v1.CommitmentResourceStatus.verify(message.resourceStatus); + if (error) + return "resourceStatus." + error; + } + } if (message.resources != null && message.hasOwnProperty("resources")) { if (!Array.isArray(message.resources)) return "resources: array expected"; @@ -77983,6 +78578,8 @@ message.category = String(object.category); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); + if (object.customEndTimestamp != null) + message.customEndTimestamp = String(object.customEndTimestamp); if (object.description != null) message.description = String(object.description); if (object.endTimestamp != null) @@ -78033,6 +78630,11 @@ message.reservations[i] = $root.google.cloud.compute.v1.Reservation.fromObject(object.reservations[i]); } } + if (object.resourceStatus != null) { + if (typeof object.resourceStatus !== "object") + throw TypeError(".google.cloud.compute.v1.Commitment.resourceStatus: object expected"); + message.resourceStatus = $root.google.cloud.compute.v1.CommitmentResourceStatus.fromObject(object.resourceStatus); + } if (object.resources) { if (!Array.isArray(object.resources)) throw TypeError(".google.cloud.compute.v1.Commitment.resources: array expected"); @@ -78135,11 +78737,21 @@ if (options.oneofs) object._status = "status"; } + if (message.customEndTimestamp != null && message.hasOwnProperty("customEndTimestamp")) { + object.customEndTimestamp = message.customEndTimestamp; + if (options.oneofs) + object._customEndTimestamp = "customEndTimestamp"; + } if (message.mergeSourceCommitments && message.mergeSourceCommitments.length) { object.mergeSourceCommitments = []; for (var j = 0; j < message.mergeSourceCommitments.length; ++j) object.mergeSourceCommitments[j] = message.mergeSourceCommitments[j]; } + if (message.resourceStatus != null && message.hasOwnProperty("resourceStatus")) { + object.resourceStatus = $root.google.cloud.compute.v1.CommitmentResourceStatus.toObject(message.resourceStatus, options); + if (options.oneofs) + object._resourceStatus = "resourceStatus"; + } if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) { object.statusMessage = message.statusMessage; if (options.oneofs) @@ -78286,6 +78898,7 @@ * @property {number} COMPUTE_OPTIMIZED_C3D=383246484 COMPUTE_OPTIMIZED_C3D value * @property {number} COMPUTE_OPTIMIZED_H3=428004939 COMPUTE_OPTIMIZED_H3 value * @property {number} GENERAL_PURPOSE=299793543 GENERAL_PURPOSE value + * @property {number} GENERAL_PURPOSE_C4=301911817 GENERAL_PURPOSE_C4 value * @property {number} GENERAL_PURPOSE_E2=301911877 GENERAL_PURPOSE_E2 value * @property {number} GENERAL_PURPOSE_N2=301912156 GENERAL_PURPOSE_N2 value * @property {number} GENERAL_PURPOSE_N2D=232471400 GENERAL_PURPOSE_N2D value @@ -78309,6 +78922,7 @@ values[valuesById[383246484] = "COMPUTE_OPTIMIZED_C3D"] = 383246484; values[valuesById[428004939] = "COMPUTE_OPTIMIZED_H3"] = 428004939; values[valuesById[299793543] = "GENERAL_PURPOSE"] = 299793543; + values[valuesById[301911817] = "GENERAL_PURPOSE_C4"] = 301911817; values[valuesById[301911877] = "GENERAL_PURPOSE_E2"] = 301911877; values[valuesById[301912156] = "GENERAL_PURPOSE_N2"] = 301912156; values[valuesById[232471400] = "GENERAL_PURPOSE_N2D"] = 232471400; @@ -79234,26 +79848,24 @@ return CommitmentList; })(); - v1.CommitmentsScopedList = (function() { + v1.CommitmentResourceStatus = (function() { /** - * Properties of a CommitmentsScopedList. + * Properties of a CommitmentResourceStatus. * @memberof google.cloud.compute.v1 - * @interface ICommitmentsScopedList - * @property {Array.|null} [commitments] CommitmentsScopedList commitments - * @property {google.cloud.compute.v1.IWarning|null} [warning] CommitmentsScopedList warning + * @interface ICommitmentResourceStatus + * @property {string|null} [customTermEligibilityEndTimestamp] CommitmentResourceStatus customTermEligibilityEndTimestamp */ /** - * Constructs a new CommitmentsScopedList. + * Constructs a new CommitmentResourceStatus. * @memberof google.cloud.compute.v1 - * @classdesc Represents a CommitmentsScopedList. - * @implements ICommitmentsScopedList + * @classdesc Represents a CommitmentResourceStatus. + * @implements ICommitmentResourceStatus * @constructor - * @param {google.cloud.compute.v1.ICommitmentsScopedList=} [properties] Properties to set + * @param {google.cloud.compute.v1.ICommitmentResourceStatus=} [properties] Properties to set */ - function CommitmentsScopedList(properties) { - this.commitments = []; + function CommitmentResourceStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79261,106 +79873,89 @@ } /** - * CommitmentsScopedList commitments. - * @member {Array.} commitments - * @memberof google.cloud.compute.v1.CommitmentsScopedList - * @instance - */ - CommitmentsScopedList.prototype.commitments = $util.emptyArray; - - /** - * CommitmentsScopedList warning. - * @member {google.cloud.compute.v1.IWarning|null|undefined} warning - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * CommitmentResourceStatus customTermEligibilityEndTimestamp. + * @member {string|null|undefined} customTermEligibilityEndTimestamp + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @instance */ - CommitmentsScopedList.prototype.warning = null; + CommitmentResourceStatus.prototype.customTermEligibilityEndTimestamp = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * CommitmentsScopedList _warning. - * @member {"warning"|undefined} _warning - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * CommitmentResourceStatus _customTermEligibilityEndTimestamp. + * @member {"customTermEligibilityEndTimestamp"|undefined} _customTermEligibilityEndTimestamp + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @instance */ - Object.defineProperty(CommitmentsScopedList.prototype, "_warning", { - get: $util.oneOfGetter($oneOfFields = ["warning"]), + Object.defineProperty(CommitmentResourceStatus.prototype, "_customTermEligibilityEndTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["customTermEligibilityEndTimestamp"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new CommitmentsScopedList instance using the specified properties. + * Creates a new CommitmentResourceStatus instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static - * @param {google.cloud.compute.v1.ICommitmentsScopedList=} [properties] Properties to set - * @returns {google.cloud.compute.v1.CommitmentsScopedList} CommitmentsScopedList instance + * @param {google.cloud.compute.v1.ICommitmentResourceStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CommitmentResourceStatus} CommitmentResourceStatus instance */ - CommitmentsScopedList.create = function create(properties) { - return new CommitmentsScopedList(properties); + CommitmentResourceStatus.create = function create(properties) { + return new CommitmentResourceStatus(properties); }; /** - * Encodes the specified CommitmentsScopedList message. Does not implicitly {@link google.cloud.compute.v1.CommitmentsScopedList.verify|verify} messages. + * Encodes the specified CommitmentResourceStatus message. Does not implicitly {@link google.cloud.compute.v1.CommitmentResourceStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static - * @param {google.cloud.compute.v1.ICommitmentsScopedList} message CommitmentsScopedList message or plain object to encode + * @param {google.cloud.compute.v1.ICommitmentResourceStatus} message CommitmentResourceStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitmentsScopedList.encode = function encode(message, writer) { + CommitmentResourceStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) - $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); - if (message.commitments != null && message.commitments.length) - for (var i = 0; i < message.commitments.length; ++i) - $root.google.cloud.compute.v1.Commitment.encode(message.commitments[i], writer.uint32(/* id 450664446, wireType 2 =*/3605315570).fork()).ldelim(); + if (message.customTermEligibilityEndTimestamp != null && Object.hasOwnProperty.call(message, "customTermEligibilityEndTimestamp")) + writer.uint32(/* id 363976187, wireType 2 =*/2911809498).string(message.customTermEligibilityEndTimestamp); return writer; }; /** - * Encodes the specified CommitmentsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CommitmentsScopedList.verify|verify} messages. + * Encodes the specified CommitmentResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CommitmentResourceStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static - * @param {google.cloud.compute.v1.ICommitmentsScopedList} message CommitmentsScopedList message or plain object to encode + * @param {google.cloud.compute.v1.ICommitmentResourceStatus} message CommitmentResourceStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitmentsScopedList.encodeDelimited = function encodeDelimited(message, writer) { + CommitmentResourceStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitmentsScopedList message from the specified reader or buffer. + * Decodes a CommitmentResourceStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.CommitmentsScopedList} CommitmentsScopedList + * @returns {google.cloud.compute.v1.CommitmentResourceStatus} CommitmentResourceStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitmentsScopedList.decode = function decode(reader, length) { + CommitmentResourceStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.CommitmentsScopedList(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.CommitmentResourceStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 450664446: { - if (!(message.commitments && message.commitments.length)) - message.commitments = []; - message.commitments.push($root.google.cloud.compute.v1.Commitment.decode(reader, reader.uint32())); - break; - } - case 50704284: { - message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + case 363976187: { + message.customTermEligibilityEndTimestamp = reader.string(); break; } default: @@ -79372,163 +79967,128 @@ }; /** - * Decodes a CommitmentsScopedList message from the specified reader or buffer, length delimited. + * Decodes a CommitmentResourceStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.CommitmentsScopedList} CommitmentsScopedList + * @returns {google.cloud.compute.v1.CommitmentResourceStatus} CommitmentResourceStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitmentsScopedList.decodeDelimited = function decodeDelimited(reader) { + CommitmentResourceStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitmentsScopedList message. + * Verifies a CommitmentResourceStatus message. * @function verify - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitmentsScopedList.verify = function verify(message) { + CommitmentResourceStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.commitments != null && message.hasOwnProperty("commitments")) { - if (!Array.isArray(message.commitments)) - return "commitments: array expected"; - for (var i = 0; i < message.commitments.length; ++i) { - var error = $root.google.cloud.compute.v1.Commitment.verify(message.commitments[i]); - if (error) - return "commitments." + error; - } - } - if (message.warning != null && message.hasOwnProperty("warning")) { - properties._warning = 1; - { - var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); - if (error) - return "warning." + error; - } + if (message.customTermEligibilityEndTimestamp != null && message.hasOwnProperty("customTermEligibilityEndTimestamp")) { + properties._customTermEligibilityEndTimestamp = 1; + if (!$util.isString(message.customTermEligibilityEndTimestamp)) + return "customTermEligibilityEndTimestamp: string expected"; } return null; }; /** - * Creates a CommitmentsScopedList message from a plain object. Also converts values to their respective internal types. + * Creates a CommitmentResourceStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.CommitmentsScopedList} CommitmentsScopedList + * @returns {google.cloud.compute.v1.CommitmentResourceStatus} CommitmentResourceStatus */ - CommitmentsScopedList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.CommitmentsScopedList) + CommitmentResourceStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CommitmentResourceStatus) return object; - var message = new $root.google.cloud.compute.v1.CommitmentsScopedList(); - if (object.commitments) { - if (!Array.isArray(object.commitments)) - throw TypeError(".google.cloud.compute.v1.CommitmentsScopedList.commitments: array expected"); - message.commitments = []; - for (var i = 0; i < object.commitments.length; ++i) { - if (typeof object.commitments[i] !== "object") - throw TypeError(".google.cloud.compute.v1.CommitmentsScopedList.commitments: object expected"); - message.commitments[i] = $root.google.cloud.compute.v1.Commitment.fromObject(object.commitments[i]); - } - } - if (object.warning != null) { - if (typeof object.warning !== "object") - throw TypeError(".google.cloud.compute.v1.CommitmentsScopedList.warning: object expected"); - message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); - } + var message = new $root.google.cloud.compute.v1.CommitmentResourceStatus(); + if (object.customTermEligibilityEndTimestamp != null) + message.customTermEligibilityEndTimestamp = String(object.customTermEligibilityEndTimestamp); return message; }; /** - * Creates a plain object from a CommitmentsScopedList message. Also converts values to other types if specified. + * Creates a plain object from a CommitmentResourceStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static - * @param {google.cloud.compute.v1.CommitmentsScopedList} message CommitmentsScopedList + * @param {google.cloud.compute.v1.CommitmentResourceStatus} message CommitmentResourceStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitmentsScopedList.toObject = function toObject(message, options) { + CommitmentResourceStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.commitments = []; - if (message.warning != null && message.hasOwnProperty("warning")) { - object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (message.customTermEligibilityEndTimestamp != null && message.hasOwnProperty("customTermEligibilityEndTimestamp")) { + object.customTermEligibilityEndTimestamp = message.customTermEligibilityEndTimestamp; if (options.oneofs) - object._warning = "warning"; - } - if (message.commitments && message.commitments.length) { - object.commitments = []; - for (var j = 0; j < message.commitments.length; ++j) - object.commitments[j] = $root.google.cloud.compute.v1.Commitment.toObject(message.commitments[j], options); + object._customTermEligibilityEndTimestamp = "customTermEligibilityEndTimestamp"; } return object; }; /** - * Converts this CommitmentsScopedList to JSON. + * Converts this CommitmentResourceStatus to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @instance * @returns {Object.} JSON object */ - CommitmentsScopedList.prototype.toJSON = function toJSON() { + CommitmentResourceStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CommitmentsScopedList + * Gets the default type url for CommitmentResourceStatus * @function getTypeUrl - * @memberof google.cloud.compute.v1.CommitmentsScopedList + * @memberof google.cloud.compute.v1.CommitmentResourceStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CommitmentsScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitmentResourceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.CommitmentsScopedList"; + return typeUrlPrefix + "/google.cloud.compute.v1.CommitmentResourceStatus"; }; - return CommitmentsScopedList; + return CommitmentResourceStatus; })(); - v1.Condition = (function() { + v1.CommitmentsScopedList = (function() { /** - * Properties of a Condition. + * Properties of a CommitmentsScopedList. * @memberof google.cloud.compute.v1 - * @interface ICondition - * @property {string|null} [iam] Condition iam - * @property {string|null} [op] Condition op - * @property {string|null} [svc] Condition svc - * @property {string|null} [sys] Condition sys - * @property {Array.|null} [values] Condition values + * @interface ICommitmentsScopedList + * @property {Array.|null} [commitments] CommitmentsScopedList commitments + * @property {google.cloud.compute.v1.IWarning|null} [warning] CommitmentsScopedList warning */ /** - * Constructs a new Condition. + * Constructs a new CommitmentsScopedList. * @memberof google.cloud.compute.v1 - * @classdesc Represents a Condition. - * @implements ICondition + * @classdesc Represents a CommitmentsScopedList. + * @implements ICommitmentsScopedList * @constructor - * @param {google.cloud.compute.v1.ICondition=} [properties] Properties to set + * @param {google.cloud.compute.v1.ICommitmentsScopedList=} [properties] Properties to set */ - function Condition(properties) { - this.values = []; + function CommitmentsScopedList(properties) { + this.commitments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79536,181 +80096,106 @@ } /** - * Condition iam. - * @member {string|null|undefined} iam - * @memberof google.cloud.compute.v1.Condition - * @instance - */ - Condition.prototype.iam = null; - - /** - * Condition op. - * @member {string|null|undefined} op - * @memberof google.cloud.compute.v1.Condition - * @instance - */ - Condition.prototype.op = null; - - /** - * Condition svc. - * @member {string|null|undefined} svc - * @memberof google.cloud.compute.v1.Condition - * @instance - */ - Condition.prototype.svc = null; - - /** - * Condition sys. - * @member {string|null|undefined} sys - * @memberof google.cloud.compute.v1.Condition + * CommitmentsScopedList commitments. + * @member {Array.} commitments + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @instance */ - Condition.prototype.sys = null; + CommitmentsScopedList.prototype.commitments = $util.emptyArray; /** - * Condition values. - * @member {Array.} values - * @memberof google.cloud.compute.v1.Condition + * CommitmentsScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @instance */ - Condition.prototype.values = $util.emptyArray; + CommitmentsScopedList.prototype.warning = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * Condition _iam. - * @member {"iam"|undefined} _iam - * @memberof google.cloud.compute.v1.Condition - * @instance - */ - Object.defineProperty(Condition.prototype, "_iam", { - get: $util.oneOfGetter($oneOfFields = ["iam"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Condition _op. - * @member {"op"|undefined} _op - * @memberof google.cloud.compute.v1.Condition - * @instance - */ - Object.defineProperty(Condition.prototype, "_op", { - get: $util.oneOfGetter($oneOfFields = ["op"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Condition _svc. - * @member {"svc"|undefined} _svc - * @memberof google.cloud.compute.v1.Condition - * @instance - */ - Object.defineProperty(Condition.prototype, "_svc", { - get: $util.oneOfGetter($oneOfFields = ["svc"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Condition _sys. - * @member {"sys"|undefined} _sys - * @memberof google.cloud.compute.v1.Condition + * CommitmentsScopedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @instance */ - Object.defineProperty(Condition.prototype, "_sys", { - get: $util.oneOfGetter($oneOfFields = ["sys"]), + Object.defineProperty(CommitmentsScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new Condition instance using the specified properties. + * Creates a new CommitmentsScopedList instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static - * @param {google.cloud.compute.v1.ICondition=} [properties] Properties to set - * @returns {google.cloud.compute.v1.Condition} Condition instance + * @param {google.cloud.compute.v1.ICommitmentsScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CommitmentsScopedList} CommitmentsScopedList instance */ - Condition.create = function create(properties) { - return new Condition(properties); + CommitmentsScopedList.create = function create(properties) { + return new CommitmentsScopedList(properties); }; /** - * Encodes the specified Condition message. Does not implicitly {@link google.cloud.compute.v1.Condition.verify|verify} messages. + * Encodes the specified CommitmentsScopedList message. Does not implicitly {@link google.cloud.compute.v1.CommitmentsScopedList.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static - * @param {google.cloud.compute.v1.ICondition} message Condition message or plain object to encode + * @param {google.cloud.compute.v1.ICommitmentsScopedList} message CommitmentsScopedList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Condition.encode = function encode(message, writer) { + CommitmentsScopedList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.op != null && Object.hasOwnProperty.call(message, "op")) - writer.uint32(/* id 3553, wireType 2 =*/28426).string(message.op); - if (message.iam != null && Object.hasOwnProperty.call(message, "iam")) - writer.uint32(/* id 104021, wireType 2 =*/832170).string(message.iam); - if (message.svc != null && Object.hasOwnProperty.call(message, "svc")) - writer.uint32(/* id 114272, wireType 2 =*/914178).string(message.svc); - if (message.sys != null && Object.hasOwnProperty.call(message, "sys")) - writer.uint32(/* id 114381, wireType 2 =*/915050).string(message.sys); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 249928994, wireType 2 =*/1999431954).string(message.values[i]); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.commitments != null && message.commitments.length) + for (var i = 0; i < message.commitments.length; ++i) + $root.google.cloud.compute.v1.Commitment.encode(message.commitments[i], writer.uint32(/* id 450664446, wireType 2 =*/3605315570).fork()).ldelim(); return writer; }; /** - * Encodes the specified Condition message, length delimited. Does not implicitly {@link google.cloud.compute.v1.Condition.verify|verify} messages. + * Encodes the specified CommitmentsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CommitmentsScopedList.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static - * @param {google.cloud.compute.v1.ICondition} message Condition message or plain object to encode + * @param {google.cloud.compute.v1.ICommitmentsScopedList} message CommitmentsScopedList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Condition.encodeDelimited = function encodeDelimited(message, writer) { + CommitmentsScopedList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Condition message from the specified reader or buffer. + * Decodes a CommitmentsScopedList message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.Condition} Condition + * @returns {google.cloud.compute.v1.CommitmentsScopedList} CommitmentsScopedList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Condition.decode = function decode(reader, length) { + CommitmentsScopedList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.Condition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.CommitmentsScopedList(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 104021: { - message.iam = reader.string(); - break; - } - case 3553: { - message.op = reader.string(); - break; - } - case 114272: { - message.svc = reader.string(); - break; - } - case 114381: { - message.sys = reader.string(); + case 450664446: { + if (!(message.commitments && message.commitments.length)) + message.commitments = []; + message.commitments.push($root.google.cloud.compute.v1.Commitment.decode(reader, reader.uint32())); break; } - case 249928994: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); break; } default: @@ -79722,233 +80207,138 @@ }; /** - * Decodes a Condition message from the specified reader or buffer, length delimited. + * Decodes a CommitmentsScopedList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.Condition} Condition + * @returns {google.cloud.compute.v1.CommitmentsScopedList} CommitmentsScopedList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Condition.decodeDelimited = function decodeDelimited(reader) { + CommitmentsScopedList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Condition message. + * Verifies a CommitmentsScopedList message. * @function verify - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Condition.verify = function verify(message) { + CommitmentsScopedList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.iam != null && message.hasOwnProperty("iam")) { - properties._iam = 1; - if (!$util.isString(message.iam)) - return "iam: string expected"; - } - if (message.op != null && message.hasOwnProperty("op")) { - properties._op = 1; - if (!$util.isString(message.op)) - return "op: string expected"; - } - if (message.svc != null && message.hasOwnProperty("svc")) { - properties._svc = 1; - if (!$util.isString(message.svc)) - return "svc: string expected"; - } - if (message.sys != null && message.hasOwnProperty("sys")) { - properties._sys = 1; - if (!$util.isString(message.sys)) - return "sys: string expected"; + if (message.commitments != null && message.hasOwnProperty("commitments")) { + if (!Array.isArray(message.commitments)) + return "commitments: array expected"; + for (var i = 0; i < message.commitments.length; ++i) { + var error = $root.google.cloud.compute.v1.Commitment.verify(message.commitments[i]); + if (error) + return "commitments." + error; + } } - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } } return null; }; /** - * Creates a Condition message from a plain object. Also converts values to their respective internal types. + * Creates a CommitmentsScopedList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.Condition} Condition + * @returns {google.cloud.compute.v1.CommitmentsScopedList} CommitmentsScopedList */ - Condition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.Condition) + CommitmentsScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CommitmentsScopedList) return object; - var message = new $root.google.cloud.compute.v1.Condition(); - if (object.iam != null) - message.iam = String(object.iam); - if (object.op != null) - message.op = String(object.op); - if (object.svc != null) - message.svc = String(object.svc); - if (object.sys != null) - message.sys = String(object.sys); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.compute.v1.Condition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); + var message = new $root.google.cloud.compute.v1.CommitmentsScopedList(); + if (object.commitments) { + if (!Array.isArray(object.commitments)) + throw TypeError(".google.cloud.compute.v1.CommitmentsScopedList.commitments: array expected"); + message.commitments = []; + for (var i = 0; i < object.commitments.length; ++i) { + if (typeof object.commitments[i] !== "object") + throw TypeError(".google.cloud.compute.v1.CommitmentsScopedList.commitments: object expected"); + message.commitments[i] = $root.google.cloud.compute.v1.Commitment.fromObject(object.commitments[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.CommitmentsScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); } return message; }; /** - * Creates a plain object from a Condition message. Also converts values to other types if specified. + * Creates a plain object from a CommitmentsScopedList message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static - * @param {google.cloud.compute.v1.Condition} message Condition + * @param {google.cloud.compute.v1.CommitmentsScopedList} message CommitmentsScopedList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Condition.toObject = function toObject(message, options) { + CommitmentsScopedList.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.values = []; - if (message.op != null && message.hasOwnProperty("op")) { - object.op = message.op; - if (options.oneofs) - object._op = "op"; - } - if (message.iam != null && message.hasOwnProperty("iam")) { - object.iam = message.iam; - if (options.oneofs) - object._iam = "iam"; - } - if (message.svc != null && message.hasOwnProperty("svc")) { - object.svc = message.svc; - if (options.oneofs) - object._svc = "svc"; - } - if (message.sys != null && message.hasOwnProperty("sys")) { - object.sys = message.sys; + object.commitments = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); if (options.oneofs) - object._sys = "sys"; + object._warning = "warning"; } - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; + if (message.commitments && message.commitments.length) { + object.commitments = []; + for (var j = 0; j < message.commitments.length; ++j) + object.commitments[j] = $root.google.cloud.compute.v1.Commitment.toObject(message.commitments[j], options); } return object; }; /** - * Converts this Condition to JSON. + * Converts this CommitmentsScopedList to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @instance * @returns {Object.} JSON object */ - Condition.prototype.toJSON = function toJSON() { + CommitmentsScopedList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Condition + * Gets the default type url for CommitmentsScopedList * @function getTypeUrl - * @memberof google.cloud.compute.v1.Condition + * @memberof google.cloud.compute.v1.CommitmentsScopedList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Condition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitmentsScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.Condition"; + return typeUrlPrefix + "/google.cloud.compute.v1.CommitmentsScopedList"; }; - /** - * Iam enum. - * @name google.cloud.compute.v1.Condition.Iam - * @enum {number} - * @property {number} UNDEFINED_IAM=0 UNDEFINED_IAM value - * @property {number} APPROVER=357258949 APPROVER value - * @property {number} ATTRIBUTION=232465503 ATTRIBUTION value - * @property {number} AUTHORITY=504108835 AUTHORITY value - * @property {number} CREDENTIALS_TYPE=348222141 CREDENTIALS_TYPE value - * @property {number} CREDS_ASSERTION=332343272 CREDS_ASSERTION value - * @property {number} JUSTIFICATION_TYPE=206147719 JUSTIFICATION_TYPE value - * @property {number} SECURITY_REALM=526269616 SECURITY_REALM value - */ - Condition.Iam = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_IAM"] = 0; - values[valuesById[357258949] = "APPROVER"] = 357258949; - values[valuesById[232465503] = "ATTRIBUTION"] = 232465503; - values[valuesById[504108835] = "AUTHORITY"] = 504108835; - values[valuesById[348222141] = "CREDENTIALS_TYPE"] = 348222141; - values[valuesById[332343272] = "CREDS_ASSERTION"] = 332343272; - values[valuesById[206147719] = "JUSTIFICATION_TYPE"] = 206147719; - values[valuesById[526269616] = "SECURITY_REALM"] = 526269616; - return values; - })(); - - /** - * Op enum. - * @name google.cloud.compute.v1.Condition.Op - * @enum {number} - * @property {number} UNDEFINED_OP=0 UNDEFINED_OP value - * @property {number} DISCHARGED=266338274 DISCHARGED value - * @property {number} EQUALS=442201023 EQUALS value - * @property {number} IN=2341 IN value - * @property {number} NOT_EQUALS=19718859 NOT_EQUALS value - * @property {number} NOT_IN=161144369 NOT_IN value - * @property {number} NO_OP=74481951 NO_OP value - */ - Condition.Op = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_OP"] = 0; - values[valuesById[266338274] = "DISCHARGED"] = 266338274; - values[valuesById[442201023] = "EQUALS"] = 442201023; - values[valuesById[2341] = "IN"] = 2341; - values[valuesById[19718859] = "NOT_EQUALS"] = 19718859; - values[valuesById[161144369] = "NOT_IN"] = 161144369; - values[valuesById[74481951] = "NO_OP"] = 74481951; - return values; - })(); - - /** - * Sys enum. - * @name google.cloud.compute.v1.Condition.Sys - * @enum {number} - * @property {number} UNDEFINED_SYS=0 UNDEFINED_SYS value - * @property {number} IP=2343 IP value - * @property {number} NAME=2388619 NAME value - * @property {number} REGION=266017524 REGION value - * @property {number} SERVICE=17781397 SERVICE value - */ - Condition.Sys = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_SYS"] = 0; - values[valuesById[2343] = "IP"] = 2343; - values[valuesById[2388619] = "NAME"] = 2388619; - values[valuesById[266017524] = "REGION"] = 266017524; - values[valuesById[17781397] = "SERVICE"] = 17781397; - return values; - })(); - - return Condition; + return CommitmentsScopedList; })(); v1.ConfidentialInstanceConfig = (function() { @@ -79957,6 +80347,7 @@ * Properties of a ConfidentialInstanceConfig. * @memberof google.cloud.compute.v1 * @interface IConfidentialInstanceConfig + * @property {string|null} [confidentialInstanceType] ConfidentialInstanceConfig confidentialInstanceType * @property {boolean|null} [enableConfidentialCompute] ConfidentialInstanceConfig enableConfidentialCompute */ @@ -79975,6 +80366,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ConfidentialInstanceConfig confidentialInstanceType. + * @member {string|null|undefined} confidentialInstanceType + * @memberof google.cloud.compute.v1.ConfidentialInstanceConfig + * @instance + */ + ConfidentialInstanceConfig.prototype.confidentialInstanceType = null; + /** * ConfidentialInstanceConfig enableConfidentialCompute. * @member {boolean|null|undefined} enableConfidentialCompute @@ -79986,6 +80385,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * ConfidentialInstanceConfig _confidentialInstanceType. + * @member {"confidentialInstanceType"|undefined} _confidentialInstanceType + * @memberof google.cloud.compute.v1.ConfidentialInstanceConfig + * @instance + */ + Object.defineProperty(ConfidentialInstanceConfig.prototype, "_confidentialInstanceType", { + get: $util.oneOfGetter($oneOfFields = ["confidentialInstanceType"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * ConfidentialInstanceConfig _enableConfidentialCompute. * @member {"enableConfidentialCompute"|undefined} _enableConfidentialCompute @@ -80021,6 +80431,8 @@ ConfidentialInstanceConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.confidentialInstanceType != null && Object.hasOwnProperty.call(message, "confidentialInstanceType")) + writer.uint32(/* id 43484717, wireType 2 =*/347877738).string(message.confidentialInstanceType); if (message.enableConfidentialCompute != null && Object.hasOwnProperty.call(message, "enableConfidentialCompute")) writer.uint32(/* id 102135228, wireType 0 =*/817081824).bool(message.enableConfidentialCompute); return writer; @@ -80057,6 +80469,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 43484717: { + message.confidentialInstanceType = reader.string(); + break; + } case 102135228: { message.enableConfidentialCompute = reader.bool(); break; @@ -80097,6 +80513,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.confidentialInstanceType != null && message.hasOwnProperty("confidentialInstanceType")) { + properties._confidentialInstanceType = 1; + if (!$util.isString(message.confidentialInstanceType)) + return "confidentialInstanceType: string expected"; + } if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { properties._enableConfidentialCompute = 1; if (typeof message.enableConfidentialCompute !== "boolean") @@ -80117,6 +80538,8 @@ if (object instanceof $root.google.cloud.compute.v1.ConfidentialInstanceConfig) return object; var message = new $root.google.cloud.compute.v1.ConfidentialInstanceConfig(); + if (object.confidentialInstanceType != null) + message.confidentialInstanceType = String(object.confidentialInstanceType); if (object.enableConfidentialCompute != null) message.enableConfidentialCompute = Boolean(object.enableConfidentialCompute); return message; @@ -80135,6 +80558,11 @@ if (!options) options = {}; var object = {}; + if (message.confidentialInstanceType != null && message.hasOwnProperty("confidentialInstanceType")) { + object.confidentialInstanceType = message.confidentialInstanceType; + if (options.oneofs) + object._confidentialInstanceType = "confidentialInstanceType"; + } if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { object.enableConfidentialCompute = message.enableConfidentialCompute; if (options.oneofs) @@ -80169,6 +80597,26 @@ return typeUrlPrefix + "/google.cloud.compute.v1.ConfidentialInstanceConfig"; }; + /** + * ConfidentialInstanceType enum. + * @name google.cloud.compute.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + * @enum {number} + * @property {number} UNDEFINED_CONFIDENTIAL_INSTANCE_TYPE=0 UNDEFINED_CONFIDENTIAL_INSTANCE_TYPE value + * @property {number} CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED=115021829 CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED value + * @property {number} SEV=81988 SEV value + * @property {number} SEV_SNP=21753562 SEV_SNP value + * @property {number} TDX=82920 TDX value + */ + ConfidentialInstanceConfig.ConfidentialInstanceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CONFIDENTIAL_INSTANCE_TYPE"] = 0; + values[valuesById[115021829] = "CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED"] = 115021829; + values[valuesById[81988] = "SEV"] = 81988; + values[valuesById[21753562] = "SEV_SNP"] = 21753562; + values[valuesById[82920] = "TDX"] = 82920; + return values; + })(); + return ConfidentialInstanceConfig; })(); @@ -82821,6 +83269,571 @@ return CreateSnapshotRegionDiskRequest; })(); + v1.CustomErrorResponsePolicy = (function() { + + /** + * Properties of a CustomErrorResponsePolicy. + * @memberof google.cloud.compute.v1 + * @interface ICustomErrorResponsePolicy + * @property {Array.|null} [errorResponseRules] CustomErrorResponsePolicy errorResponseRules + * @property {string|null} [errorService] CustomErrorResponsePolicy errorService + */ + + /** + * Constructs a new CustomErrorResponsePolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CustomErrorResponsePolicy. + * @implements ICustomErrorResponsePolicy + * @constructor + * @param {google.cloud.compute.v1.ICustomErrorResponsePolicy=} [properties] Properties to set + */ + function CustomErrorResponsePolicy(properties) { + this.errorResponseRules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomErrorResponsePolicy errorResponseRules. + * @member {Array.} errorResponseRules + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @instance + */ + CustomErrorResponsePolicy.prototype.errorResponseRules = $util.emptyArray; + + /** + * CustomErrorResponsePolicy errorService. + * @member {string|null|undefined} errorService + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @instance + */ + CustomErrorResponsePolicy.prototype.errorService = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CustomErrorResponsePolicy _errorService. + * @member {"errorService"|undefined} _errorService + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @instance + */ + Object.defineProperty(CustomErrorResponsePolicy.prototype, "_errorService", { + get: $util.oneOfGetter($oneOfFields = ["errorService"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CustomErrorResponsePolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {google.cloud.compute.v1.ICustomErrorResponsePolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CustomErrorResponsePolicy} CustomErrorResponsePolicy instance + */ + CustomErrorResponsePolicy.create = function create(properties) { + return new CustomErrorResponsePolicy(properties); + }; + + /** + * Encodes the specified CustomErrorResponsePolicy message. Does not implicitly {@link google.cloud.compute.v1.CustomErrorResponsePolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {google.cloud.compute.v1.ICustomErrorResponsePolicy} message CustomErrorResponsePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomErrorResponsePolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.errorResponseRules != null && message.errorResponseRules.length) + for (var i = 0; i < message.errorResponseRules.length; ++i) + $root.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.encode(message.errorResponseRules[i], writer.uint32(/* id 14620304, wireType 2 =*/116962434).fork()).ldelim(); + if (message.errorService != null && Object.hasOwnProperty.call(message, "errorService")) + writer.uint32(/* id 164214654, wireType 2 =*/1313717234).string(message.errorService); + return writer; + }; + + /** + * Encodes the specified CustomErrorResponsePolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CustomErrorResponsePolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {google.cloud.compute.v1.ICustomErrorResponsePolicy} message CustomErrorResponsePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomErrorResponsePolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomErrorResponsePolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.CustomErrorResponsePolicy} CustomErrorResponsePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomErrorResponsePolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.CustomErrorResponsePolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 14620304: { + if (!(message.errorResponseRules && message.errorResponseRules.length)) + message.errorResponseRules = []; + message.errorResponseRules.push($root.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.decode(reader, reader.uint32())); + break; + } + case 164214654: { + message.errorService = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomErrorResponsePolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CustomErrorResponsePolicy} CustomErrorResponsePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomErrorResponsePolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomErrorResponsePolicy message. + * @function verify + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomErrorResponsePolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.errorResponseRules != null && message.hasOwnProperty("errorResponseRules")) { + if (!Array.isArray(message.errorResponseRules)) + return "errorResponseRules: array expected"; + for (var i = 0; i < message.errorResponseRules.length; ++i) { + var error = $root.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.verify(message.errorResponseRules[i]); + if (error) + return "errorResponseRules." + error; + } + } + if (message.errorService != null && message.hasOwnProperty("errorService")) { + properties._errorService = 1; + if (!$util.isString(message.errorService)) + return "errorService: string expected"; + } + return null; + }; + + /** + * Creates a CustomErrorResponsePolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CustomErrorResponsePolicy} CustomErrorResponsePolicy + */ + CustomErrorResponsePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CustomErrorResponsePolicy) + return object; + var message = new $root.google.cloud.compute.v1.CustomErrorResponsePolicy(); + if (object.errorResponseRules) { + if (!Array.isArray(object.errorResponseRules)) + throw TypeError(".google.cloud.compute.v1.CustomErrorResponsePolicy.errorResponseRules: array expected"); + message.errorResponseRules = []; + for (var i = 0; i < object.errorResponseRules.length; ++i) { + if (typeof object.errorResponseRules[i] !== "object") + throw TypeError(".google.cloud.compute.v1.CustomErrorResponsePolicy.errorResponseRules: object expected"); + message.errorResponseRules[i] = $root.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.fromObject(object.errorResponseRules[i]); + } + } + if (object.errorService != null) + message.errorService = String(object.errorService); + return message; + }; + + /** + * Creates a plain object from a CustomErrorResponsePolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {google.cloud.compute.v1.CustomErrorResponsePolicy} message CustomErrorResponsePolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomErrorResponsePolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.errorResponseRules = []; + if (message.errorResponseRules && message.errorResponseRules.length) { + object.errorResponseRules = []; + for (var j = 0; j < message.errorResponseRules.length; ++j) + object.errorResponseRules[j] = $root.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.toObject(message.errorResponseRules[j], options); + } + if (message.errorService != null && message.hasOwnProperty("errorService")) { + object.errorService = message.errorService; + if (options.oneofs) + object._errorService = "errorService"; + } + return object; + }; + + /** + * Converts this CustomErrorResponsePolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @instance + * @returns {Object.} JSON object + */ + CustomErrorResponsePolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomErrorResponsePolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomErrorResponsePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CustomErrorResponsePolicy"; + }; + + return CustomErrorResponsePolicy; + })(); + + v1.CustomErrorResponsePolicyCustomErrorResponseRule = (function() { + + /** + * Properties of a CustomErrorResponsePolicyCustomErrorResponseRule. + * @memberof google.cloud.compute.v1 + * @interface ICustomErrorResponsePolicyCustomErrorResponseRule + * @property {Array.|null} [matchResponseCodes] CustomErrorResponsePolicyCustomErrorResponseRule matchResponseCodes + * @property {number|null} [overrideResponseCode] CustomErrorResponsePolicyCustomErrorResponseRule overrideResponseCode + * @property {string|null} [path] CustomErrorResponsePolicyCustomErrorResponseRule path + */ + + /** + * Constructs a new CustomErrorResponsePolicyCustomErrorResponseRule. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CustomErrorResponsePolicyCustomErrorResponseRule. + * @implements ICustomErrorResponsePolicyCustomErrorResponseRule + * @constructor + * @param {google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule=} [properties] Properties to set + */ + function CustomErrorResponsePolicyCustomErrorResponseRule(properties) { + this.matchResponseCodes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomErrorResponsePolicyCustomErrorResponseRule matchResponseCodes. + * @member {Array.} matchResponseCodes + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @instance + */ + CustomErrorResponsePolicyCustomErrorResponseRule.prototype.matchResponseCodes = $util.emptyArray; + + /** + * CustomErrorResponsePolicyCustomErrorResponseRule overrideResponseCode. + * @member {number|null|undefined} overrideResponseCode + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @instance + */ + CustomErrorResponsePolicyCustomErrorResponseRule.prototype.overrideResponseCode = null; + + /** + * CustomErrorResponsePolicyCustomErrorResponseRule path. + * @member {string|null|undefined} path + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @instance + */ + CustomErrorResponsePolicyCustomErrorResponseRule.prototype.path = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CustomErrorResponsePolicyCustomErrorResponseRule _overrideResponseCode. + * @member {"overrideResponseCode"|undefined} _overrideResponseCode + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @instance + */ + Object.defineProperty(CustomErrorResponsePolicyCustomErrorResponseRule.prototype, "_overrideResponseCode", { + get: $util.oneOfGetter($oneOfFields = ["overrideResponseCode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * CustomErrorResponsePolicyCustomErrorResponseRule _path. + * @member {"path"|undefined} _path + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @instance + */ + Object.defineProperty(CustomErrorResponsePolicyCustomErrorResponseRule.prototype, "_path", { + get: $util.oneOfGetter($oneOfFields = ["path"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CustomErrorResponsePolicyCustomErrorResponseRule instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule} CustomErrorResponsePolicyCustomErrorResponseRule instance + */ + CustomErrorResponsePolicyCustomErrorResponseRule.create = function create(properties) { + return new CustomErrorResponsePolicyCustomErrorResponseRule(properties); + }; + + /** + * Encodes the specified CustomErrorResponsePolicyCustomErrorResponseRule message. Does not implicitly {@link google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule} message CustomErrorResponsePolicyCustomErrorResponseRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomErrorResponsePolicyCustomErrorResponseRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 3433509, wireType 2 =*/27468074).string(message.path); + if (message.matchResponseCodes != null && message.matchResponseCodes.length) + for (var i = 0; i < message.matchResponseCodes.length; ++i) + writer.uint32(/* id 104973410, wireType 2 =*/839787282).string(message.matchResponseCodes[i]); + if (message.overrideResponseCode != null && Object.hasOwnProperty.call(message, "overrideResponseCode")) + writer.uint32(/* id 530328568, wireType 0 =*/4242628544).int32(message.overrideResponseCode); + return writer; + }; + + /** + * Encodes the specified CustomErrorResponsePolicyCustomErrorResponseRule message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {google.cloud.compute.v1.ICustomErrorResponsePolicyCustomErrorResponseRule} message CustomErrorResponsePolicyCustomErrorResponseRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomErrorResponsePolicyCustomErrorResponseRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomErrorResponsePolicyCustomErrorResponseRule message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule} CustomErrorResponsePolicyCustomErrorResponseRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomErrorResponsePolicyCustomErrorResponseRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 104973410: { + if (!(message.matchResponseCodes && message.matchResponseCodes.length)) + message.matchResponseCodes = []; + message.matchResponseCodes.push(reader.string()); + break; + } + case 530328568: { + message.overrideResponseCode = reader.int32(); + break; + } + case 3433509: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomErrorResponsePolicyCustomErrorResponseRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule} CustomErrorResponsePolicyCustomErrorResponseRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomErrorResponsePolicyCustomErrorResponseRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomErrorResponsePolicyCustomErrorResponseRule message. + * @function verify + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomErrorResponsePolicyCustomErrorResponseRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.matchResponseCodes != null && message.hasOwnProperty("matchResponseCodes")) { + if (!Array.isArray(message.matchResponseCodes)) + return "matchResponseCodes: array expected"; + for (var i = 0; i < message.matchResponseCodes.length; ++i) + if (!$util.isString(message.matchResponseCodes[i])) + return "matchResponseCodes: string[] expected"; + } + if (message.overrideResponseCode != null && message.hasOwnProperty("overrideResponseCode")) { + properties._overrideResponseCode = 1; + if (!$util.isInteger(message.overrideResponseCode)) + return "overrideResponseCode: integer expected"; + } + if (message.path != null && message.hasOwnProperty("path")) { + properties._path = 1; + if (!$util.isString(message.path)) + return "path: string expected"; + } + return null; + }; + + /** + * Creates a CustomErrorResponsePolicyCustomErrorResponseRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule} CustomErrorResponsePolicyCustomErrorResponseRule + */ + CustomErrorResponsePolicyCustomErrorResponseRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule) + return object; + var message = new $root.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule(); + if (object.matchResponseCodes) { + if (!Array.isArray(object.matchResponseCodes)) + throw TypeError(".google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule.matchResponseCodes: array expected"); + message.matchResponseCodes = []; + for (var i = 0; i < object.matchResponseCodes.length; ++i) + message.matchResponseCodes[i] = String(object.matchResponseCodes[i]); + } + if (object.overrideResponseCode != null) + message.overrideResponseCode = object.overrideResponseCode | 0; + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomErrorResponsePolicyCustomErrorResponseRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule} message CustomErrorResponsePolicyCustomErrorResponseRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomErrorResponsePolicyCustomErrorResponseRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.matchResponseCodes = []; + if (message.path != null && message.hasOwnProperty("path")) { + object.path = message.path; + if (options.oneofs) + object._path = "path"; + } + if (message.matchResponseCodes && message.matchResponseCodes.length) { + object.matchResponseCodes = []; + for (var j = 0; j < message.matchResponseCodes.length; ++j) + object.matchResponseCodes[j] = message.matchResponseCodes[j]; + } + if (message.overrideResponseCode != null && message.hasOwnProperty("overrideResponseCode")) { + object.overrideResponseCode = message.overrideResponseCode; + if (options.oneofs) + object._overrideResponseCode = "overrideResponseCode"; + } + return object; + }; + + /** + * Converts this CustomErrorResponsePolicyCustomErrorResponseRule to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @instance + * @returns {Object.} JSON object + */ + CustomErrorResponsePolicyCustomErrorResponseRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomErrorResponsePolicyCustomErrorResponseRule + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomErrorResponsePolicyCustomErrorResponseRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule"; + }; + + return CustomErrorResponsePolicyCustomErrorResponseRule; + })(); + v1.CustomerEncryptionKey = (function() { /** @@ -111788,6 +112801,7 @@ * Properties of a Disk. * @memberof google.cloud.compute.v1 * @interface IDisk + * @property {string|null} [accessMode] Disk accessMode * @property {string|null} [architecture] Disk architecture * @property {google.cloud.compute.v1.IDiskAsyncReplication|null} [asyncPrimaryDisk] Disk asyncPrimaryDisk * @property {Object.|null} [asyncSecondaryDisks] Disk asyncSecondaryDisks @@ -111862,6 +112876,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Disk accessMode. + * @member {string|null|undefined} accessMode + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Disk.prototype.accessMode = null; + /** * Disk architecture. * @member {string|null|undefined} architecture @@ -112257,6 +113279,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * Disk _accessMode. + * @member {"accessMode"|undefined} _accessMode + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Object.defineProperty(Disk.prototype, "_accessMode", { + get: $util.oneOfGetter($oneOfFields = ["accessMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Disk _architecture. * @member {"architecture"|undefined} _architecture @@ -112749,6 +113782,8 @@ writer.uint32(/* id 22220385, wireType 2 =*/177763082).string(message.resourcePolicies[i]); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.accessMode != null && Object.hasOwnProperty.call(message, "accessMode")) + writer.uint32(/* id 41155486, wireType 2 =*/329243890).string(message.accessMode); if (message.lastAttachTimestamp != null && Object.hasOwnProperty.call(message, "lastAttachTimestamp")) writer.uint32(/* id 42159653, wireType 2 =*/337277226).string(message.lastAttachTimestamp); if (message.licenseCodes != null && message.licenseCodes.length) { @@ -112877,6 +113912,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 41155486: { + message.accessMode = reader.string(); + break; + } case 302803283: { message.architecture = reader.string(); break; @@ -113164,6 +114203,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.accessMode != null && message.hasOwnProperty("accessMode")) { + properties._accessMode = 1; + if (!$util.isString(message.accessMode)) + return "accessMode: string expected"; + } if (message.architecture != null && message.hasOwnProperty("architecture")) { properties._architecture = 1; if (!$util.isString(message.architecture)) @@ -113464,6 +114508,8 @@ if (object instanceof $root.google.cloud.compute.v1.Disk) return object; var message = new $root.google.cloud.compute.v1.Disk(); + if (object.accessMode != null) + message.accessMode = String(object.accessMode); if (object.architecture != null) message.architecture = String(object.architecture); if (object.asyncPrimaryDisk != null) { @@ -113739,6 +114785,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.accessMode != null && message.hasOwnProperty("accessMode")) { + object.accessMode = message.accessMode; + if (options.oneofs) + object._accessMode = "accessMode"; + } if (message.lastAttachTimestamp != null && message.hasOwnProperty("lastAttachTimestamp")) { object.lastAttachTimestamp = message.lastAttachTimestamp; if (options.oneofs) @@ -113989,6 +115040,24 @@ return typeUrlPrefix + "/google.cloud.compute.v1.Disk"; }; + /** + * AccessMode enum. + * @name google.cloud.compute.v1.Disk.AccessMode + * @enum {number} + * @property {number} UNDEFINED_ACCESS_MODE=0 UNDEFINED_ACCESS_MODE value + * @property {number} READ_ONLY_MANY=63460265 READ_ONLY_MANY value + * @property {number} READ_WRITE_MANY=488743208 READ_WRITE_MANY value + * @property {number} READ_WRITE_SINGLE=99323089 READ_WRITE_SINGLE value + */ + Disk.AccessMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ACCESS_MODE"] = 0; + values[valuesById[63460265] = "READ_ONLY_MANY"] = 63460265; + values[valuesById[488743208] = "READ_WRITE_MANY"] = 488743208; + values[valuesById[99323089] = "READ_WRITE_SINGLE"] = 99323089; + return values; + })(); + /** * Architecture enum. * @name google.cloud.compute.v1.Disk.Architecture @@ -175530,6 +176599,7 @@ * @property {number} SEV_LIVE_MIGRATABLE=392039820 SEV_LIVE_MIGRATABLE value * @property {number} SEV_LIVE_MIGRATABLE_V2=168551983 SEV_LIVE_MIGRATABLE_V2 value * @property {number} SEV_SNP_CAPABLE=426919 SEV_SNP_CAPABLE value + * @property {number} TDX_CAPABLE=240446133 TDX_CAPABLE value * @property {number} UEFI_COMPATIBLE=195865408 UEFI_COMPATIBLE value * @property {number} VIRTIO_SCSI_MULTIQUEUE=201597069 VIRTIO_SCSI_MULTIQUEUE value * @property {number} WINDOWS=456863331 WINDOWS value @@ -175546,6 +176616,7 @@ values[valuesById[392039820] = "SEV_LIVE_MIGRATABLE"] = 392039820; values[valuesById[168551983] = "SEV_LIVE_MIGRATABLE_V2"] = 168551983; values[valuesById[426919] = "SEV_SNP_CAPABLE"] = 426919; + values[valuesById[240446133] = "TDX_CAPABLE"] = 240446133; values[valuesById[195865408] = "UEFI_COMPATIBLE"] = 195865408; values[valuesById[201597069] = "VIRTIO_SCSI_MULTIQUEUE"] = 201597069; values[valuesById[456863331] = "WINDOWS"] = 456863331; @@ -177024,6 +178095,7 @@ * @property {string|null} [name] HealthCheck name * @property {string|null} [region] HealthCheck region * @property {string|null} [selfLink] HealthCheck selfLink + * @property {Array.|null} [sourceRegions] HealthCheck sourceRegions * @property {google.cloud.compute.v1.ISSLHealthCheck|null} [sslHealthCheck] HealthCheck sslHealthCheck * @property {google.cloud.compute.v1.ITCPHealthCheck|null} [tcpHealthCheck] HealthCheck tcpHealthCheck * @property {number|null} [timeoutSec] HealthCheck timeoutSec @@ -177040,6 +178112,7 @@ * @param {google.cloud.compute.v1.IHealthCheck=} [properties] Properties to set */ function HealthCheck(properties) { + this.sourceRegions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177158,6 +178231,14 @@ */ HealthCheck.prototype.selfLink = null; + /** + * HealthCheck sourceRegions. + * @member {Array.} sourceRegions + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.sourceRegions = $util.emptyArray; + /** * HealthCheck sslHealthCheck. * @member {google.cloud.compute.v1.ISSLHealthCheck|null|undefined} sslHealthCheck @@ -177462,6 +178543,9 @@ $root.google.cloud.compute.v1.HealthCheckLogConfig.encode(message.logConfig, writer.uint32(/* id 351299741, wireType 2 =*/2810397930).fork()).ldelim(); if (message.healthyThreshold != null && Object.hasOwnProperty.call(message, "healthyThreshold")) writer.uint32(/* id 403212361, wireType 0 =*/3225698888).int32(message.healthyThreshold); + if (message.sourceRegions != null && message.sourceRegions.length) + for (var i = 0; i < message.sourceRegions.length; ++i) + writer.uint32(/* id 405568475, wireType 2 =*/3244547802).string(message.sourceRegions[i]); if (message.httpHealthCheck != null && Object.hasOwnProperty.call(message, "httpHealthCheck")) $root.google.cloud.compute.v1.HTTPHealthCheck.encode(message.httpHealthCheck, writer.uint32(/* id 412586940, wireType 2 =*/3300695522).fork()).ldelim(); if (message.description != null && Object.hasOwnProperty.call(message, "description")) @@ -177562,6 +178646,12 @@ message.selfLink = reader.string(); break; } + case 405568475: { + if (!(message.sourceRegions && message.sourceRegions.length)) + message.sourceRegions = []; + message.sourceRegions.push(reader.string()); + break; + } case 280032440: { message.sslHealthCheck = $root.google.cloud.compute.v1.SSLHealthCheck.decode(reader, reader.uint32()); break; @@ -177703,6 +178793,13 @@ if (!$util.isString(message.selfLink)) return "selfLink: string expected"; } + if (message.sourceRegions != null && message.hasOwnProperty("sourceRegions")) { + if (!Array.isArray(message.sourceRegions)) + return "sourceRegions: array expected"; + for (var i = 0; i < message.sourceRegions.length; ++i) + if (!$util.isString(message.sourceRegions[i])) + return "sourceRegions: string[] expected"; + } if (message.sslHealthCheck != null && message.hasOwnProperty("sslHealthCheck")) { properties._sslHealthCheck = 1; { @@ -177799,6 +178896,13 @@ message.region = String(object.region); if (object.selfLink != null) message.selfLink = String(object.selfLink); + if (object.sourceRegions) { + if (!Array.isArray(object.sourceRegions)) + throw TypeError(".google.cloud.compute.v1.HealthCheck.sourceRegions: array expected"); + message.sourceRegions = []; + for (var i = 0; i < object.sourceRegions.length; ++i) + message.sourceRegions[i] = String(object.sourceRegions[i]); + } if (object.sslHealthCheck != null) { if (typeof object.sslHealthCheck !== "object") throw TypeError(".google.cloud.compute.v1.HealthCheck.sslHealthCheck: object expected"); @@ -177831,6 +178935,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.sourceRegions = []; if (message.id != null && message.hasOwnProperty("id")) { if (typeof message.id === "number") object.id = options.longs === String ? String(message.id) : message.id; @@ -177904,6 +179010,11 @@ if (options.oneofs) object._healthyThreshold = "healthyThreshold"; } + if (message.sourceRegions && message.sourceRegions.length) { + object.sourceRegions = []; + for (var j = 0; j < message.sourceRegions.length; ++j) + object.sourceRegions[j] = message.sourceRegions[j]; + } if (message.httpHealthCheck != null && message.hasOwnProperty("httpHealthCheck")) { object.httpHealthCheck = $root.google.cloud.compute.v1.HTTPHealthCheck.toObject(message.httpHealthCheck, options); if (options.oneofs) @@ -180937,6 +182048,8 @@ * @property {string|null} [healthState] HealthStatus healthState * @property {string|null} [instance] HealthStatus instance * @property {string|null} [ipAddress] HealthStatus ipAddress + * @property {string|null} [ipv6Address] HealthStatus ipv6Address + * @property {string|null} [ipv6HealthState] HealthStatus ipv6HealthState * @property {number|null} [port] HealthStatus port * @property {string|null} [weight] HealthStatus weight * @property {string|null} [weightError] HealthStatus weightError @@ -181006,6 +182119,22 @@ */ HealthStatus.prototype.ipAddress = null; + /** + * HealthStatus ipv6Address. + * @member {string|null|undefined} ipv6Address + * @memberof google.cloud.compute.v1.HealthStatus + * @instance + */ + HealthStatus.prototype.ipv6Address = null; + + /** + * HealthStatus ipv6HealthState. + * @member {string|null|undefined} ipv6HealthState + * @memberof google.cloud.compute.v1.HealthStatus + * @instance + */ + HealthStatus.prototype.ipv6HealthState = null; + /** * HealthStatus port. * @member {number|null|undefined} port @@ -181088,6 +182217,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * HealthStatus _ipv6Address. + * @member {"ipv6Address"|undefined} _ipv6Address + * @memberof google.cloud.compute.v1.HealthStatus + * @instance + */ + Object.defineProperty(HealthStatus.prototype, "_ipv6Address", { + get: $util.oneOfGetter($oneOfFields = ["ipv6Address"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * HealthStatus _ipv6HealthState. + * @member {"ipv6HealthState"|undefined} _ipv6HealthState + * @memberof google.cloud.compute.v1.HealthStatus + * @instance + */ + Object.defineProperty(HealthStatus.prototype, "_ipv6HealthState", { + get: $util.oneOfGetter($oneOfFields = ["ipv6HealthState"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * HealthStatus _port. * @member {"port"|undefined} _port @@ -181154,12 +182305,16 @@ writer.uint32(/* id 112032548, wireType 2 =*/896260386).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); if (message.forwardingRuleIp != null && Object.hasOwnProperty.call(message, "forwardingRuleIp")) writer.uint32(/* id 172250632, wireType 2 =*/1378005058).string(message.forwardingRuleIp); + if (message.ipv6HealthState != null && Object.hasOwnProperty.call(message, "ipv6HealthState")) + writer.uint32(/* id 190316614, wireType 2 =*/1522532914).string(message.ipv6HealthState); if (message.forwardingRule != null && Object.hasOwnProperty.call(message, "forwardingRule")) writer.uint32(/* id 269964030, wireType 2 =*/2159712242).string(message.forwardingRule); if (message.weight != null && Object.hasOwnProperty.call(message, "weight")) writer.uint32(/* id 282149496, wireType 2 =*/2257195970).string(message.weight); if (message.healthState != null && Object.hasOwnProperty.call(message, "healthState")) writer.uint32(/* id 324007150, wireType 2 =*/2592057202).string(message.healthState); + if (message.ipv6Address != null && Object.hasOwnProperty.call(message, "ipv6Address")) + writer.uint32(/* id 341563804, wireType 2 =*/2732510434).string(message.ipv6Address); if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) writer.uint32(/* id 406272220, wireType 2 =*/3250177762).string(message.ipAddress); if (message.weightError != null && Object.hasOwnProperty.call(message, "weightError")) @@ -181241,6 +182396,14 @@ message.ipAddress = reader.string(); break; } + case 341563804: { + message.ipv6Address = reader.string(); + break; + } + case 190316614: { + message.ipv6HealthState = reader.string(); + break; + } case 3446913: { message.port = reader.int32(); break; @@ -181322,6 +182485,16 @@ if (!$util.isString(message.ipAddress)) return "ipAddress: string expected"; } + if (message.ipv6Address != null && message.hasOwnProperty("ipv6Address")) { + properties._ipv6Address = 1; + if (!$util.isString(message.ipv6Address)) + return "ipv6Address: string expected"; + } + if (message.ipv6HealthState != null && message.hasOwnProperty("ipv6HealthState")) { + properties._ipv6HealthState = 1; + if (!$util.isString(message.ipv6HealthState)) + return "ipv6HealthState: string expected"; + } if (message.port != null && message.hasOwnProperty("port")) { properties._port = 1; if (!$util.isInteger(message.port)) @@ -181369,6 +182542,10 @@ message.instance = String(object.instance); if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); + if (object.ipv6Address != null) + message.ipv6Address = String(object.ipv6Address); + if (object.ipv6HealthState != null) + message.ipv6HealthState = String(object.ipv6HealthState); if (object.port != null) message.port = object.port | 0; if (object.weight != null) @@ -181414,6 +182591,11 @@ if (options.oneofs) object._forwardingRuleIp = "forwardingRuleIp"; } + if (message.ipv6HealthState != null && message.hasOwnProperty("ipv6HealthState")) { + object.ipv6HealthState = message.ipv6HealthState; + if (options.oneofs) + object._ipv6HealthState = "ipv6HealthState"; + } if (message.forwardingRule != null && message.hasOwnProperty("forwardingRule")) { object.forwardingRule = message.forwardingRule; if (options.oneofs) @@ -181429,6 +182611,11 @@ if (options.oneofs) object._healthState = "healthState"; } + if (message.ipv6Address != null && message.hasOwnProperty("ipv6Address")) { + object.ipv6Address = message.ipv6Address; + if (options.oneofs) + object._ipv6Address = "ipv6Address"; + } if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { object.ipAddress = message.ipAddress; if (options.oneofs) @@ -181484,6 +182671,18 @@ return values; })(); + /** + * Ipv6HealthState enum. + * @name google.cloud.compute.v1.HealthStatus.Ipv6HealthState + * @enum {number} + * @property {number} UNDEFINED_IPV6_HEALTH_STATE=0 UNDEFINED_IPV6_HEALTH_STATE value + */ + HealthStatus.Ipv6HealthState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_IPV6_HEALTH_STATE"] = 0; + return values; + })(); + /** * WeightError enum. * @name google.cloud.compute.v1.HealthStatus.WeightError @@ -181518,6 +182717,7 @@ * @property {google.cloud.compute.v1.IHealthCheckReference|null} [healthCheck] HealthStatusForNetworkEndpoint healthCheck * @property {google.cloud.compute.v1.IHealthCheckServiceReference|null} [healthCheckService] HealthStatusForNetworkEndpoint healthCheckService * @property {string|null} [healthState] HealthStatusForNetworkEndpoint healthState + * @property {string|null} [ipv6HealthState] HealthStatusForNetworkEndpoint ipv6HealthState */ /** @@ -181575,6 +182775,14 @@ */ HealthStatusForNetworkEndpoint.prototype.healthState = null; + /** + * HealthStatusForNetworkEndpoint ipv6HealthState. + * @member {string|null|undefined} ipv6HealthState + * @memberof google.cloud.compute.v1.HealthStatusForNetworkEndpoint + * @instance + */ + HealthStatusForNetworkEndpoint.prototype.ipv6HealthState = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -181633,6 +182841,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * HealthStatusForNetworkEndpoint _ipv6HealthState. + * @member {"ipv6HealthState"|undefined} _ipv6HealthState + * @memberof google.cloud.compute.v1.HealthStatusForNetworkEndpoint + * @instance + */ + Object.defineProperty(HealthStatusForNetworkEndpoint.prototype, "_ipv6HealthState", { + get: $util.oneOfGetter($oneOfFields = ["ipv6HealthState"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new HealthStatusForNetworkEndpoint instance using the specified properties. * @function create @@ -181657,6 +182876,8 @@ HealthStatusForNetworkEndpoint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.ipv6HealthState != null && Object.hasOwnProperty.call(message, "ipv6HealthState")) + writer.uint32(/* id 190316614, wireType 2 =*/1522532914).string(message.ipv6HealthState); if (message.forwardingRule != null && Object.hasOwnProperty.call(message, "forwardingRule")) $root.google.cloud.compute.v1.ForwardingRuleReference.encode(message.forwardingRule, writer.uint32(/* id 269964030, wireType 2 =*/2159712242).fork()).ldelim(); if (message.backendService != null && Object.hasOwnProperty.call(message, "backendService")) @@ -181721,6 +182942,10 @@ message.healthState = reader.string(); break; } + case 190316614: { + message.ipv6HealthState = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -181794,6 +183019,11 @@ if (!$util.isString(message.healthState)) return "healthState: string expected"; } + if (message.ipv6HealthState != null && message.hasOwnProperty("ipv6HealthState")) { + properties._ipv6HealthState = 1; + if (!$util.isString(message.ipv6HealthState)) + return "ipv6HealthState: string expected"; + } return null; }; @@ -181831,6 +183061,8 @@ } if (object.healthState != null) message.healthState = String(object.healthState); + if (object.ipv6HealthState != null) + message.ipv6HealthState = String(object.ipv6HealthState); return message; }; @@ -181847,6 +183079,11 @@ if (!options) options = {}; var object = {}; + if (message.ipv6HealthState != null && message.hasOwnProperty("ipv6HealthState")) { + object.ipv6HealthState = message.ipv6HealthState; + if (options.oneofs) + object._ipv6HealthState = "ipv6HealthState"; + } if (message.forwardingRule != null && message.hasOwnProperty("forwardingRule")) { object.forwardingRule = $root.google.cloud.compute.v1.ForwardingRuleReference.toObject(message.forwardingRule, options); if (options.oneofs) @@ -181921,6 +183158,18 @@ return values; })(); + /** + * Ipv6HealthState enum. + * @name google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Ipv6HealthState + * @enum {number} + * @property {number} UNDEFINED_IPV6_HEALTH_STATE=0 UNDEFINED_IPV6_HEALTH_STATE value + */ + HealthStatusForNetworkEndpoint.Ipv6HealthState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_IPV6_HEALTH_STATE"] = 0; + return values; + })(); + return HealthStatusForNetworkEndpoint; })(); @@ -186253,6 +187502,7 @@ * Properties of a HttpRouteRule. * @memberof google.cloud.compute.v1 * @interface IHttpRouteRule + * @property {google.cloud.compute.v1.ICustomErrorResponsePolicy|null} [customErrorResponsePolicy] HttpRouteRule customErrorResponsePolicy * @property {string|null} [description] HttpRouteRule description * @property {google.cloud.compute.v1.IHttpHeaderAction|null} [headerAction] HttpRouteRule headerAction * @property {Array.|null} [matchRules] HttpRouteRule matchRules @@ -186278,6 +187528,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * HttpRouteRule customErrorResponsePolicy. + * @member {google.cloud.compute.v1.ICustomErrorResponsePolicy|null|undefined} customErrorResponsePolicy + * @memberof google.cloud.compute.v1.HttpRouteRule + * @instance + */ + HttpRouteRule.prototype.customErrorResponsePolicy = null; + /** * HttpRouteRule description. * @member {string|null|undefined} description @@ -186337,6 +187595,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * HttpRouteRule _customErrorResponsePolicy. + * @member {"customErrorResponsePolicy"|undefined} _customErrorResponsePolicy + * @memberof google.cloud.compute.v1.HttpRouteRule + * @instance + */ + Object.defineProperty(HttpRouteRule.prototype, "_customErrorResponsePolicy", { + get: $util.oneOfGetter($oneOfFields = ["customErrorResponsePolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * HttpRouteRule _description. * @member {"description"|undefined} _description @@ -186427,6 +187696,8 @@ HttpRouteRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.customErrorResponsePolicy != null && Object.hasOwnProperty.call(message, "customErrorResponsePolicy")) + $root.google.cloud.compute.v1.CustomErrorResponsePolicy.encode(message.customErrorResponsePolicy, writer.uint32(/* id 202816619, wireType 2 =*/1622532954).fork()).ldelim(); if (message.headerAction != null && Object.hasOwnProperty.call(message, "headerAction")) $root.google.cloud.compute.v1.HttpHeaderAction.encode(message.headerAction, writer.uint32(/* id 328077352, wireType 2 =*/2624618818).fork()).ldelim(); if (message.service != null && Object.hasOwnProperty.call(message, "service")) @@ -186476,6 +187747,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 202816619: { + message.customErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.decode(reader, reader.uint32()); + break; + } case 422937596: { message.description = reader.string(); break; @@ -186542,6 +187817,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.customErrorResponsePolicy != null && message.hasOwnProperty("customErrorResponsePolicy")) { + properties._customErrorResponsePolicy = 1; + { + var error = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.verify(message.customErrorResponsePolicy); + if (error) + return "customErrorResponsePolicy." + error; + } + } if (message.description != null && message.hasOwnProperty("description")) { properties._description = 1; if (!$util.isString(message.description)) @@ -186605,6 +187888,11 @@ if (object instanceof $root.google.cloud.compute.v1.HttpRouteRule) return object; var message = new $root.google.cloud.compute.v1.HttpRouteRule(); + if (object.customErrorResponsePolicy != null) { + if (typeof object.customErrorResponsePolicy !== "object") + throw TypeError(".google.cloud.compute.v1.HttpRouteRule.customErrorResponsePolicy: object expected"); + message.customErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.fromObject(object.customErrorResponsePolicy); + } if (object.description != null) message.description = String(object.description); if (object.headerAction != null) { @@ -186654,6 +187942,11 @@ var object = {}; if (options.arrays || options.defaults) object.matchRules = []; + if (message.customErrorResponsePolicy != null && message.hasOwnProperty("customErrorResponsePolicy")) { + object.customErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.toObject(message.customErrorResponsePolicy, options); + if (options.oneofs) + object._customErrorResponsePolicy = "customErrorResponsePolicy"; + } if (message.headerAction != null && message.hasOwnProperty("headerAction")) { object.headerAction = $root.google.cloud.compute.v1.HttpHeaderAction.toObject(message.headerAction, options); if (options.oneofs) @@ -217064,6 +218357,7 @@ * @property {google.cloud.compute.v1.IDistributionPolicy|null} [distributionPolicy] InstanceGroupManager distributionPolicy * @property {string|null} [fingerprint] InstanceGroupManager fingerprint * @property {number|Long|null} [id] InstanceGroupManager id + * @property {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy|null} [instanceFlexibilityPolicy] InstanceGroupManager instanceFlexibilityPolicy * @property {string|null} [instanceGroup] InstanceGroupManager instanceGroup * @property {google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy|null} [instanceLifecyclePolicy] InstanceGroupManager instanceLifecyclePolicy * @property {string|null} [instanceTemplate] InstanceGroupManager instanceTemplate @@ -217072,6 +218366,8 @@ * @property {string|null} [name] InstanceGroupManager name * @property {Array.|null} [namedPorts] InstanceGroupManager namedPorts * @property {string|null} [region] InstanceGroupManager region + * @property {boolean|null} [satisfiesPzi] InstanceGroupManager satisfiesPzi + * @property {boolean|null} [satisfiesPzs] InstanceGroupManager satisfiesPzs * @property {string|null} [selfLink] InstanceGroupManager selfLink * @property {google.cloud.compute.v1.IStatefulPolicy|null} [statefulPolicy] InstanceGroupManager statefulPolicy * @property {google.cloud.compute.v1.IInstanceGroupManagerStatus|null} [status] InstanceGroupManager status @@ -217173,6 +218469,14 @@ */ InstanceGroupManager.prototype.id = null; + /** + * InstanceGroupManager instanceFlexibilityPolicy. + * @member {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy|null|undefined} instanceFlexibilityPolicy + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + InstanceGroupManager.prototype.instanceFlexibilityPolicy = null; + /** * InstanceGroupManager instanceGroup. * @member {string|null|undefined} instanceGroup @@ -217237,6 +218541,22 @@ */ InstanceGroupManager.prototype.region = null; + /** + * InstanceGroupManager satisfiesPzi. + * @member {boolean|null|undefined} satisfiesPzi + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + InstanceGroupManager.prototype.satisfiesPzi = null; + + /** + * InstanceGroupManager satisfiesPzs. + * @member {boolean|null|undefined} satisfiesPzs + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + InstanceGroupManager.prototype.satisfiesPzs = null; + /** * InstanceGroupManager selfLink. * @member {string|null|undefined} selfLink @@ -217392,6 +218712,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstanceGroupManager _instanceFlexibilityPolicy. + * @member {"instanceFlexibilityPolicy"|undefined} _instanceFlexibilityPolicy + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + Object.defineProperty(InstanceGroupManager.prototype, "_instanceFlexibilityPolicy", { + get: $util.oneOfGetter($oneOfFields = ["instanceFlexibilityPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceGroupManager _instanceGroup. * @member {"instanceGroup"|undefined} _instanceGroup @@ -217469,6 +218800,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstanceGroupManager _satisfiesPzi. + * @member {"satisfiesPzi"|undefined} _satisfiesPzi + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + Object.defineProperty(InstanceGroupManager.prototype, "_satisfiesPzi", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceGroupManager _satisfiesPzs. + * @member {"satisfiesPzs"|undefined} _satisfiesPzs + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + Object.defineProperty(InstanceGroupManager.prototype, "_satisfiesPzs", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzs"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceGroupManager _selfLink. * @member {"selfLink"|undefined} _selfLink @@ -217567,6 +218920,8 @@ writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.instanceFlexibilityPolicy != null && Object.hasOwnProperty.call(message, "instanceFlexibilityPolicy")) + $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.encode(message.instanceFlexibilityPolicy, writer.uint32(/* id 26937090, wireType 2 =*/215496722).fork()).ldelim(); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.statefulPolicy != null && Object.hasOwnProperty.call(message, "statefulPolicy")) @@ -217611,6 +218966,10 @@ if (message.autoHealingPolicies != null && message.autoHealingPolicies.length) for (var i = 0; i < message.autoHealingPolicies.length; ++i) $root.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy.encode(message.autoHealingPolicies[i], writer.uint32(/* id 456799109, wireType 2 =*/3654392874).fork()).ldelim(); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 480964257, wireType 0 =*/3847714056).bool(message.satisfiesPzi); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 480964267, wireType 0 =*/3847714136).bool(message.satisfiesPzs); if (message.distributionPolicy != null && Object.hasOwnProperty.call(message, "distributionPolicy")) $root.google.cloud.compute.v1.DistributionPolicy.encode(message.distributionPolicy, writer.uint32(/* id 534558541, wireType 2 =*/4276468330).fork()).ldelim(); return writer; @@ -217685,6 +219044,10 @@ message.id = reader.uint64(); break; } + case 26937090: { + message.instanceFlexibilityPolicy = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.decode(reader, reader.uint32()); + break; + } case 81095253: { message.instanceGroup = reader.string(); break; @@ -217719,6 +219082,14 @@ message.region = reader.string(); break; } + case 480964257: { + message.satisfiesPzi = reader.bool(); + break; + } + case 480964267: { + message.satisfiesPzs = reader.bool(); + break; + } case 456214797: { message.selfLink = reader.string(); break; @@ -217849,6 +219220,14 @@ if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; } + if (message.instanceFlexibilityPolicy != null && message.hasOwnProperty("instanceFlexibilityPolicy")) { + properties._instanceFlexibilityPolicy = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.verify(message.instanceFlexibilityPolicy); + if (error) + return "instanceFlexibilityPolicy." + error; + } + } if (message.instanceGroup != null && message.hasOwnProperty("instanceGroup")) { properties._instanceGroup = 1; if (!$util.isString(message.instanceGroup)) @@ -217896,6 +219275,16 @@ if (!$util.isString(message.region)) return "region: string expected"; } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + properties._satisfiesPzi = 1; + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { + properties._satisfiesPzs = 1; + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { properties._selfLink = 1; if (!$util.isString(message.selfLink)) @@ -218008,6 +219397,11 @@ message.id = object.id; else if (typeof object.id === "object") message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.instanceFlexibilityPolicy != null) { + if (typeof object.instanceFlexibilityPolicy !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManager.instanceFlexibilityPolicy: object expected"); + message.instanceFlexibilityPolicy = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.fromObject(object.instanceFlexibilityPolicy); + } if (object.instanceGroup != null) message.instanceGroup = String(object.instanceGroup); if (object.instanceLifecyclePolicy != null) { @@ -218035,6 +219429,10 @@ } if (object.region != null) message.region = String(object.region); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.statefulPolicy != null) { @@ -218118,6 +219516,11 @@ if (options.oneofs) object._zone = "zone"; } + if (message.instanceFlexibilityPolicy != null && message.hasOwnProperty("instanceFlexibilityPolicy")) { + object.instanceFlexibilityPolicy = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.toObject(message.instanceFlexibilityPolicy, options); + if (options.oneofs) + object._instanceFlexibilityPolicy = "instanceFlexibilityPolicy"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { object.creationTimestamp = message.creationTimestamp; if (options.oneofs) @@ -218218,6 +219621,16 @@ for (var j = 0; j < message.autoHealingPolicies.length; ++j) object.autoHealingPolicies[j] = $root.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy.toObject(message.autoHealingPolicies[j], options); } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + object.satisfiesPzi = message.satisfiesPzi; + if (options.oneofs) + object._satisfiesPzi = "satisfiesPzi"; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { + object.satisfiesPzs = message.satisfiesPzs; + if (options.oneofs) + object._satisfiesPzs = "satisfiesPzs"; + } if (message.distributionPolicy != null && message.hasOwnProperty("distributionPolicy")) { object.distributionPolicy = $root.google.cloud.compute.v1.DistributionPolicy.toObject(message.distributionPolicy, options); if (options.oneofs) @@ -219919,6 +221332,512 @@ return InstanceGroupManagerAutoHealingPolicy; })(); + v1.InstanceGroupManagerInstanceFlexibilityPolicy = (function() { + + /** + * Properties of an InstanceGroupManagerInstanceFlexibilityPolicy. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerInstanceFlexibilityPolicy + * @property {Object.|null} [instanceSelections] InstanceGroupManagerInstanceFlexibilityPolicy instanceSelections + */ + + /** + * Constructs a new InstanceGroupManagerInstanceFlexibilityPolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerInstanceFlexibilityPolicy. + * @implements IInstanceGroupManagerInstanceFlexibilityPolicy + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy=} [properties] Properties to set + */ + function InstanceGroupManagerInstanceFlexibilityPolicy(properties) { + this.instanceSelections = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerInstanceFlexibilityPolicy instanceSelections. + * @member {Object.} instanceSelections + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @instance + */ + InstanceGroupManagerInstanceFlexibilityPolicy.prototype.instanceSelections = $util.emptyObject; + + /** + * Creates a new InstanceGroupManagerInstanceFlexibilityPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy} InstanceGroupManagerInstanceFlexibilityPolicy instance + */ + InstanceGroupManagerInstanceFlexibilityPolicy.create = function create(properties) { + return new InstanceGroupManagerInstanceFlexibilityPolicy(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerInstanceFlexibilityPolicy message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy} message InstanceGroupManagerInstanceFlexibilityPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerInstanceFlexibilityPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.instanceSelections != null && Object.hasOwnProperty.call(message, "instanceSelections")) + for (var keys = Object.keys(message.instanceSelections), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 22954577, wireType 2 =*/183636618).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.encode(message.instanceSelections[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerInstanceFlexibilityPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicy} message InstanceGroupManagerInstanceFlexibilityPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerInstanceFlexibilityPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerInstanceFlexibilityPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy} InstanceGroupManagerInstanceFlexibilityPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerInstanceFlexibilityPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 22954577: { + if (message.instanceSelections === $util.emptyObject) + message.instanceSelections = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.instanceSelections[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerInstanceFlexibilityPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy} InstanceGroupManagerInstanceFlexibilityPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerInstanceFlexibilityPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerInstanceFlexibilityPolicy message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerInstanceFlexibilityPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instanceSelections != null && message.hasOwnProperty("instanceSelections")) { + if (!$util.isObject(message.instanceSelections)) + return "instanceSelections: object expected"; + var key = Object.keys(message.instanceSelections); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.verify(message.instanceSelections[key[i]]); + if (error) + return "instanceSelections." + error; + } + } + return null; + }; + + /** + * Creates an InstanceGroupManagerInstanceFlexibilityPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy} InstanceGroupManagerInstanceFlexibilityPolicy + */ + InstanceGroupManagerInstanceFlexibilityPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy(); + if (object.instanceSelections) { + if (typeof object.instanceSelections !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.instanceSelections: object expected"); + message.instanceSelections = {}; + for (var keys = Object.keys(object.instanceSelections), i = 0; i < keys.length; ++i) { + if (typeof object.instanceSelections[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy.instanceSelections: object expected"); + message.instanceSelections[keys[i]] = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.fromObject(object.instanceSelections[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerInstanceFlexibilityPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy} message InstanceGroupManagerInstanceFlexibilityPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerInstanceFlexibilityPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.instanceSelections = {}; + var keys2; + if (message.instanceSelections && (keys2 = Object.keys(message.instanceSelections)).length) { + object.instanceSelections = {}; + for (var j = 0; j < keys2.length; ++j) + object.instanceSelections[keys2[j]] = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.toObject(message.instanceSelections[keys2[j]], options); + } + return object; + }; + + /** + * Converts this InstanceGroupManagerInstanceFlexibilityPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerInstanceFlexibilityPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerInstanceFlexibilityPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerInstanceFlexibilityPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy"; + }; + + return InstanceGroupManagerInstanceFlexibilityPolicy; + })(); + + v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection = (function() { + + /** + * Properties of an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @property {Array.|null} [machineTypes] InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection machineTypes + * @property {number|null} [rank] InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection rank + */ + + /** + * Constructs a new InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection. + * @implements IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection=} [properties] Properties to set + */ + function InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection(properties) { + this.machineTypes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection machineTypes. + * @member {Array.} machineTypes + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @instance + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.prototype.machineTypes = $util.emptyArray; + + /** + * InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection rank. + * @member {number|null|undefined} rank + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @instance + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.prototype.rank = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection _rank. + * @member {"rank"|undefined} _rank + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @instance + */ + Object.defineProperty(InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.prototype, "_rank", { + get: $util.oneOfGetter($oneOfFields = ["rank"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection} InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection instance + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.create = function create(properties) { + return new InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection} message InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rank != null && Object.hasOwnProperty.call(message, "rank")) + writer.uint32(/* id 3492908, wireType 0 =*/27943264).int32(message.rank); + if (message.machineTypes != null && message.machineTypes.length) + for (var i = 0; i < message.machineTypes.length; ++i) + writer.uint32(/* id 79720065, wireType 2 =*/637760522).string(message.machineTypes[i]); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection} message InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection} InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 79720065: { + if (!(message.machineTypes && message.machineTypes.length)) + message.machineTypes = []; + message.machineTypes.push(reader.string()); + break; + } + case 3492908: { + message.rank = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection} InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.machineTypes != null && message.hasOwnProperty("machineTypes")) { + if (!Array.isArray(message.machineTypes)) + return "machineTypes: array expected"; + for (var i = 0; i < message.machineTypes.length; ++i) + if (!$util.isString(message.machineTypes[i])) + return "machineTypes: string[] expected"; + } + if (message.rank != null && message.hasOwnProperty("rank")) { + properties._rank = 1; + if (!$util.isInteger(message.rank)) + return "rank: integer expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection} InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection(); + if (object.machineTypes) { + if (!Array.isArray(object.machineTypes)) + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.machineTypes: array expected"); + message.machineTypes = []; + for (var i = 0; i < object.machineTypes.length; ++i) + message.machineTypes[i] = String(object.machineTypes[i]); + } + if (object.rank != null) + message.rank = object.rank | 0; + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection} message InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.machineTypes = []; + if (message.rank != null && message.hasOwnProperty("rank")) { + object.rank = message.rank; + if (options.oneofs) + object._rank = "rank"; + } + if (message.machineTypes && message.machineTypes.length) { + object.machineTypes = []; + for (var j = 0; j < message.machineTypes.length; ++j) + object.machineTypes[j] = message.machineTypes[j]; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection"; + }; + + return InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection; + })(); + v1.InstanceGroupManagerInstanceLifecyclePolicy = (function() { /** @@ -236950,6 +238869,7 @@ * @interface IInstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy * @property {string|null} [displayName] InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy displayName * @property {string|null} [name] InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy name + * @property {number|null} [priority] InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy priority * @property {Array.|null} [rules] InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy rules * @property {string|null} [shortName] InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy shortName * @property {string|null} [type] InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy type @@ -236987,6 +238907,14 @@ */ InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.prototype.name = null; + /** + * InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy priority. + * @member {number|null|undefined} priority + * @memberof google.cloud.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy + * @instance + */ + InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.prototype.priority = null; + /** * InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy rules. * @member {Array.} rules @@ -237036,6 +238964,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy _priority. + * @member {"priority"|undefined} _priority + * @memberof google.cloud.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy + * @instance + */ + Object.defineProperty(InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.prototype, "_priority", { + get: $util.oneOfGetter($oneOfFields = ["priority"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy _shortName. * @member {"shortName"|undefined} _shortName @@ -237091,6 +239030,8 @@ if (message.rules != null && message.rules.length) for (var i = 0; i < message.rules.length; ++i) $root.google.cloud.compute.v1.FirewallPolicyRule.encode(message.rules[i], writer.uint32(/* id 108873975, wireType 2 =*/870991802).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 445151652, wireType 0 =*/3561213216).int32(message.priority); if (message.shortName != null && Object.hasOwnProperty.call(message, "shortName")) writer.uint32(/* id 492051566, wireType 2 =*/3936412530).string(message.shortName); return writer; @@ -237135,6 +239076,10 @@ message.name = reader.string(); break; } + case 445151652: { + message.priority = reader.int32(); + break; + } case 108873975: { if (!(message.rules && message.rules.length)) message.rules = []; @@ -237195,6 +239140,11 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.priority != null && message.hasOwnProperty("priority")) { + properties._priority = 1; + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + } if (message.rules != null && message.hasOwnProperty("rules")) { if (!Array.isArray(message.rules)) return "rules: array expected"; @@ -237233,6 +239183,8 @@ message.displayName = String(object.displayName); if (object.name != null) message.name = String(object.name); + if (object.priority != null) + message.priority = object.priority | 0; if (object.rules) { if (!Array.isArray(object.rules)) throw TypeError(".google.cloud.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.rules: array expected"); @@ -237285,6 +239237,11 @@ for (var j = 0; j < message.rules.length; ++j) object.rules[j] = $root.google.cloud.compute.v1.FirewallPolicyRule.toObject(message.rules[j], options); } + if (message.priority != null && message.hasOwnProperty("priority")) { + object.priority = message.priority; + if (options.oneofs) + object._priority = "priority"; + } if (message.shortName != null && message.hasOwnProperty("shortName")) { object.shortName = message.shortName; if (options.oneofs) @@ -237327,6 +239284,8 @@ * @property {number} HIERARCHY=69902869 HIERARCHY value * @property {number} NETWORK=413984270 NETWORK value * @property {number} NETWORK_REGIONAL=190804272 NETWORK_REGIONAL value + * @property {number} SYSTEM_GLOBAL=60099507 SYSTEM_GLOBAL value + * @property {number} SYSTEM_REGIONAL=161777199 SYSTEM_REGIONAL value * @property {number} UNSPECIFIED=526786327 UNSPECIFIED value */ InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Type = (function() { @@ -237335,6 +239294,8 @@ values[valuesById[69902869] = "HIERARCHY"] = 69902869; values[valuesById[413984270] = "NETWORK"] = 413984270; values[valuesById[190804272] = "NETWORK_REGIONAL"] = 190804272; + values[valuesById[60099507] = "SYSTEM_GLOBAL"] = 60099507; + values[valuesById[161777199] = "SYSTEM_REGIONAL"] = 161777199; values[valuesById[526786327] = "UNSPECIFIED"] = 526786327; return values; })(); @@ -308711,1404 +310672,6 @@ return LocationPolicyLocationConstraints; })(); - v1.LogConfig = (function() { - - /** - * Properties of a LogConfig. - * @memberof google.cloud.compute.v1 - * @interface ILogConfig - * @property {google.cloud.compute.v1.ILogConfigCloudAuditOptions|null} [cloudAudit] LogConfig cloudAudit - * @property {google.cloud.compute.v1.ILogConfigCounterOptions|null} [counter] LogConfig counter - * @property {google.cloud.compute.v1.ILogConfigDataAccessOptions|null} [dataAccess] LogConfig dataAccess - */ - - /** - * Constructs a new LogConfig. - * @memberof google.cloud.compute.v1 - * @classdesc Represents a LogConfig. - * @implements ILogConfig - * @constructor - * @param {google.cloud.compute.v1.ILogConfig=} [properties] Properties to set - */ - function LogConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LogConfig cloudAudit. - * @member {google.cloud.compute.v1.ILogConfigCloudAuditOptions|null|undefined} cloudAudit - * @memberof google.cloud.compute.v1.LogConfig - * @instance - */ - LogConfig.prototype.cloudAudit = null; - - /** - * LogConfig counter. - * @member {google.cloud.compute.v1.ILogConfigCounterOptions|null|undefined} counter - * @memberof google.cloud.compute.v1.LogConfig - * @instance - */ - LogConfig.prototype.counter = null; - - /** - * LogConfig dataAccess. - * @member {google.cloud.compute.v1.ILogConfigDataAccessOptions|null|undefined} dataAccess - * @memberof google.cloud.compute.v1.LogConfig - * @instance - */ - LogConfig.prototype.dataAccess = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LogConfig _cloudAudit. - * @member {"cloudAudit"|undefined} _cloudAudit - * @memberof google.cloud.compute.v1.LogConfig - * @instance - */ - Object.defineProperty(LogConfig.prototype, "_cloudAudit", { - get: $util.oneOfGetter($oneOfFields = ["cloudAudit"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * LogConfig _counter. - * @member {"counter"|undefined} _counter - * @memberof google.cloud.compute.v1.LogConfig - * @instance - */ - Object.defineProperty(LogConfig.prototype, "_counter", { - get: $util.oneOfGetter($oneOfFields = ["counter"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * LogConfig _dataAccess. - * @member {"dataAccess"|undefined} _dataAccess - * @memberof google.cloud.compute.v1.LogConfig - * @instance - */ - Object.defineProperty(LogConfig.prototype, "_dataAccess", { - get: $util.oneOfGetter($oneOfFields = ["dataAccess"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LogConfig instance using the specified properties. - * @function create - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {google.cloud.compute.v1.ILogConfig=} [properties] Properties to set - * @returns {google.cloud.compute.v1.LogConfig} LogConfig instance - */ - LogConfig.create = function create(properties) { - return new LogConfig(properties); - }; - - /** - * Encodes the specified LogConfig message. Does not implicitly {@link google.cloud.compute.v1.LogConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {google.cloud.compute.v1.ILogConfig} message LogConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataAccess != null && Object.hasOwnProperty.call(message, "dataAccess")) - $root.google.cloud.compute.v1.LogConfigDataAccessOptions.encode(message.dataAccess, writer.uint32(/* id 286633881, wireType 2 =*/2293071050).fork()).ldelim(); - if (message.cloudAudit != null && Object.hasOwnProperty.call(message, "cloudAudit")) - $root.google.cloud.compute.v1.LogConfigCloudAuditOptions.encode(message.cloudAudit, writer.uint32(/* id 412852561, wireType 2 =*/3302820490).fork()).ldelim(); - if (message.counter != null && Object.hasOwnProperty.call(message, "counter")) - $root.google.cloud.compute.v1.LogConfigCounterOptions.encode(message.counter, writer.uint32(/* id 420959740, wireType 2 =*/3367677922).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified LogConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {google.cloud.compute.v1.ILogConfig} message LogConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LogConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.LogConfig} LogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.LogConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 412852561: { - message.cloudAudit = $root.google.cloud.compute.v1.LogConfigCloudAuditOptions.decode(reader, reader.uint32()); - break; - } - case 420959740: { - message.counter = $root.google.cloud.compute.v1.LogConfigCounterOptions.decode(reader, reader.uint32()); - break; - } - case 286633881: { - message.dataAccess = $root.google.cloud.compute.v1.LogConfigDataAccessOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LogConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.LogConfig} LogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LogConfig message. - * @function verify - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LogConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.cloudAudit != null && message.hasOwnProperty("cloudAudit")) { - properties._cloudAudit = 1; - { - var error = $root.google.cloud.compute.v1.LogConfigCloudAuditOptions.verify(message.cloudAudit); - if (error) - return "cloudAudit." + error; - } - } - if (message.counter != null && message.hasOwnProperty("counter")) { - properties._counter = 1; - { - var error = $root.google.cloud.compute.v1.LogConfigCounterOptions.verify(message.counter); - if (error) - return "counter." + error; - } - } - if (message.dataAccess != null && message.hasOwnProperty("dataAccess")) { - properties._dataAccess = 1; - { - var error = $root.google.cloud.compute.v1.LogConfigDataAccessOptions.verify(message.dataAccess); - if (error) - return "dataAccess." + error; - } - } - return null; - }; - - /** - * Creates a LogConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.LogConfig} LogConfig - */ - LogConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.LogConfig) - return object; - var message = new $root.google.cloud.compute.v1.LogConfig(); - if (object.cloudAudit != null) { - if (typeof object.cloudAudit !== "object") - throw TypeError(".google.cloud.compute.v1.LogConfig.cloudAudit: object expected"); - message.cloudAudit = $root.google.cloud.compute.v1.LogConfigCloudAuditOptions.fromObject(object.cloudAudit); - } - if (object.counter != null) { - if (typeof object.counter !== "object") - throw TypeError(".google.cloud.compute.v1.LogConfig.counter: object expected"); - message.counter = $root.google.cloud.compute.v1.LogConfigCounterOptions.fromObject(object.counter); - } - if (object.dataAccess != null) { - if (typeof object.dataAccess !== "object") - throw TypeError(".google.cloud.compute.v1.LogConfig.dataAccess: object expected"); - message.dataAccess = $root.google.cloud.compute.v1.LogConfigDataAccessOptions.fromObject(object.dataAccess); - } - return message; - }; - - /** - * Creates a plain object from a LogConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {google.cloud.compute.v1.LogConfig} message LogConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LogConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.dataAccess != null && message.hasOwnProperty("dataAccess")) { - object.dataAccess = $root.google.cloud.compute.v1.LogConfigDataAccessOptions.toObject(message.dataAccess, options); - if (options.oneofs) - object._dataAccess = "dataAccess"; - } - if (message.cloudAudit != null && message.hasOwnProperty("cloudAudit")) { - object.cloudAudit = $root.google.cloud.compute.v1.LogConfigCloudAuditOptions.toObject(message.cloudAudit, options); - if (options.oneofs) - object._cloudAudit = "cloudAudit"; - } - if (message.counter != null && message.hasOwnProperty("counter")) { - object.counter = $root.google.cloud.compute.v1.LogConfigCounterOptions.toObject(message.counter, options); - if (options.oneofs) - object._counter = "counter"; - } - return object; - }; - - /** - * Converts this LogConfig to JSON. - * @function toJSON - * @memberof google.cloud.compute.v1.LogConfig - * @instance - * @returns {Object.} JSON object - */ - LogConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LogConfig - * @function getTypeUrl - * @memberof google.cloud.compute.v1.LogConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LogConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.compute.v1.LogConfig"; - }; - - return LogConfig; - })(); - - v1.LogConfigCloudAuditOptions = (function() { - - /** - * Properties of a LogConfigCloudAuditOptions. - * @memberof google.cloud.compute.v1 - * @interface ILogConfigCloudAuditOptions - * @property {google.cloud.compute.v1.IAuthorizationLoggingOptions|null} [authorizationLoggingOptions] LogConfigCloudAuditOptions authorizationLoggingOptions - * @property {string|null} [logName] LogConfigCloudAuditOptions logName - */ - - /** - * Constructs a new LogConfigCloudAuditOptions. - * @memberof google.cloud.compute.v1 - * @classdesc Represents a LogConfigCloudAuditOptions. - * @implements ILogConfigCloudAuditOptions - * @constructor - * @param {google.cloud.compute.v1.ILogConfigCloudAuditOptions=} [properties] Properties to set - */ - function LogConfigCloudAuditOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LogConfigCloudAuditOptions authorizationLoggingOptions. - * @member {google.cloud.compute.v1.IAuthorizationLoggingOptions|null|undefined} authorizationLoggingOptions - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @instance - */ - LogConfigCloudAuditOptions.prototype.authorizationLoggingOptions = null; - - /** - * LogConfigCloudAuditOptions logName. - * @member {string|null|undefined} logName - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @instance - */ - LogConfigCloudAuditOptions.prototype.logName = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LogConfigCloudAuditOptions _authorizationLoggingOptions. - * @member {"authorizationLoggingOptions"|undefined} _authorizationLoggingOptions - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @instance - */ - Object.defineProperty(LogConfigCloudAuditOptions.prototype, "_authorizationLoggingOptions", { - get: $util.oneOfGetter($oneOfFields = ["authorizationLoggingOptions"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * LogConfigCloudAuditOptions _logName. - * @member {"logName"|undefined} _logName - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @instance - */ - Object.defineProperty(LogConfigCloudAuditOptions.prototype, "_logName", { - get: $util.oneOfGetter($oneOfFields = ["logName"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LogConfigCloudAuditOptions instance using the specified properties. - * @function create - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigCloudAuditOptions=} [properties] Properties to set - * @returns {google.cloud.compute.v1.LogConfigCloudAuditOptions} LogConfigCloudAuditOptions instance - */ - LogConfigCloudAuditOptions.create = function create(properties) { - return new LogConfigCloudAuditOptions(properties); - }; - - /** - * Encodes the specified LogConfigCloudAuditOptions message. Does not implicitly {@link google.cloud.compute.v1.LogConfigCloudAuditOptions.verify|verify} messages. - * @function encode - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigCloudAuditOptions} message LogConfigCloudAuditOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfigCloudAuditOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authorizationLoggingOptions != null && Object.hasOwnProperty.call(message, "authorizationLoggingOptions")) - $root.google.cloud.compute.v1.AuthorizationLoggingOptions.encode(message.authorizationLoggingOptions, writer.uint32(/* id 217861624, wireType 2 =*/1742892994).fork()).ldelim(); - if (message.logName != null && Object.hasOwnProperty.call(message, "logName")) - writer.uint32(/* id 402913958, wireType 2 =*/3223311666).string(message.logName); - return writer; - }; - - /** - * Encodes the specified LogConfigCloudAuditOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfigCloudAuditOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigCloudAuditOptions} message LogConfigCloudAuditOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfigCloudAuditOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LogConfigCloudAuditOptions message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.LogConfigCloudAuditOptions} LogConfigCloudAuditOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfigCloudAuditOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.LogConfigCloudAuditOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 217861624: { - message.authorizationLoggingOptions = $root.google.cloud.compute.v1.AuthorizationLoggingOptions.decode(reader, reader.uint32()); - break; - } - case 402913958: { - message.logName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LogConfigCloudAuditOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.LogConfigCloudAuditOptions} LogConfigCloudAuditOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfigCloudAuditOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LogConfigCloudAuditOptions message. - * @function verify - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LogConfigCloudAuditOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.authorizationLoggingOptions != null && message.hasOwnProperty("authorizationLoggingOptions")) { - properties._authorizationLoggingOptions = 1; - { - var error = $root.google.cloud.compute.v1.AuthorizationLoggingOptions.verify(message.authorizationLoggingOptions); - if (error) - return "authorizationLoggingOptions." + error; - } - } - if (message.logName != null && message.hasOwnProperty("logName")) { - properties._logName = 1; - if (!$util.isString(message.logName)) - return "logName: string expected"; - } - return null; - }; - - /** - * Creates a LogConfigCloudAuditOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.LogConfigCloudAuditOptions} LogConfigCloudAuditOptions - */ - LogConfigCloudAuditOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.LogConfigCloudAuditOptions) - return object; - var message = new $root.google.cloud.compute.v1.LogConfigCloudAuditOptions(); - if (object.authorizationLoggingOptions != null) { - if (typeof object.authorizationLoggingOptions !== "object") - throw TypeError(".google.cloud.compute.v1.LogConfigCloudAuditOptions.authorizationLoggingOptions: object expected"); - message.authorizationLoggingOptions = $root.google.cloud.compute.v1.AuthorizationLoggingOptions.fromObject(object.authorizationLoggingOptions); - } - if (object.logName != null) - message.logName = String(object.logName); - return message; - }; - - /** - * Creates a plain object from a LogConfigCloudAuditOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {google.cloud.compute.v1.LogConfigCloudAuditOptions} message LogConfigCloudAuditOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LogConfigCloudAuditOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.authorizationLoggingOptions != null && message.hasOwnProperty("authorizationLoggingOptions")) { - object.authorizationLoggingOptions = $root.google.cloud.compute.v1.AuthorizationLoggingOptions.toObject(message.authorizationLoggingOptions, options); - if (options.oneofs) - object._authorizationLoggingOptions = "authorizationLoggingOptions"; - } - if (message.logName != null && message.hasOwnProperty("logName")) { - object.logName = message.logName; - if (options.oneofs) - object._logName = "logName"; - } - return object; - }; - - /** - * Converts this LogConfigCloudAuditOptions to JSON. - * @function toJSON - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @instance - * @returns {Object.} JSON object - */ - LogConfigCloudAuditOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LogConfigCloudAuditOptions - * @function getTypeUrl - * @memberof google.cloud.compute.v1.LogConfigCloudAuditOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LogConfigCloudAuditOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.compute.v1.LogConfigCloudAuditOptions"; - }; - - /** - * LogName enum. - * @name google.cloud.compute.v1.LogConfigCloudAuditOptions.LogName - * @enum {number} - * @property {number} UNDEFINED_LOG_NAME=0 UNDEFINED_LOG_NAME value - * @property {number} ADMIN_ACTIVITY=427503135 ADMIN_ACTIVITY value - * @property {number} DATA_ACCESS=238070681 DATA_ACCESS value - * @property {number} UNSPECIFIED_LOG_NAME=410515182 UNSPECIFIED_LOG_NAME value - */ - LogConfigCloudAuditOptions.LogName = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_LOG_NAME"] = 0; - values[valuesById[427503135] = "ADMIN_ACTIVITY"] = 427503135; - values[valuesById[238070681] = "DATA_ACCESS"] = 238070681; - values[valuesById[410515182] = "UNSPECIFIED_LOG_NAME"] = 410515182; - return values; - })(); - - return LogConfigCloudAuditOptions; - })(); - - v1.LogConfigCounterOptions = (function() { - - /** - * Properties of a LogConfigCounterOptions. - * @memberof google.cloud.compute.v1 - * @interface ILogConfigCounterOptions - * @property {Array.|null} [customFields] LogConfigCounterOptions customFields - * @property {string|null} [field] LogConfigCounterOptions field - * @property {string|null} [metric] LogConfigCounterOptions metric - */ - - /** - * Constructs a new LogConfigCounterOptions. - * @memberof google.cloud.compute.v1 - * @classdesc Represents a LogConfigCounterOptions. - * @implements ILogConfigCounterOptions - * @constructor - * @param {google.cloud.compute.v1.ILogConfigCounterOptions=} [properties] Properties to set - */ - function LogConfigCounterOptions(properties) { - this.customFields = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LogConfigCounterOptions customFields. - * @member {Array.} customFields - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @instance - */ - LogConfigCounterOptions.prototype.customFields = $util.emptyArray; - - /** - * LogConfigCounterOptions field. - * @member {string|null|undefined} field - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @instance - */ - LogConfigCounterOptions.prototype.field = null; - - /** - * LogConfigCounterOptions metric. - * @member {string|null|undefined} metric - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @instance - */ - LogConfigCounterOptions.prototype.metric = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LogConfigCounterOptions _field. - * @member {"field"|undefined} _field - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @instance - */ - Object.defineProperty(LogConfigCounterOptions.prototype, "_field", { - get: $util.oneOfGetter($oneOfFields = ["field"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * LogConfigCounterOptions _metric. - * @member {"metric"|undefined} _metric - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @instance - */ - Object.defineProperty(LogConfigCounterOptions.prototype, "_metric", { - get: $util.oneOfGetter($oneOfFields = ["metric"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LogConfigCounterOptions instance using the specified properties. - * @function create - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigCounterOptions=} [properties] Properties to set - * @returns {google.cloud.compute.v1.LogConfigCounterOptions} LogConfigCounterOptions instance - */ - LogConfigCounterOptions.create = function create(properties) { - return new LogConfigCounterOptions(properties); - }; - - /** - * Encodes the specified LogConfigCounterOptions message. Does not implicitly {@link google.cloud.compute.v1.LogConfigCounterOptions.verify|verify} messages. - * @function encode - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigCounterOptions} message LogConfigCounterOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfigCounterOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.field != null && Object.hasOwnProperty.call(message, "field")) - writer.uint32(/* id 97427706, wireType 2 =*/779421650).string(message.field); - if (message.customFields != null && message.customFields.length) - for (var i = 0; i < message.customFields.length; ++i) - $root.google.cloud.compute.v1.LogConfigCounterOptionsCustomField.encode(message.customFields[i], writer.uint32(/* id 249651015, wireType 2 =*/1997208122).fork()).ldelim(); - if (message.metric != null && Object.hasOwnProperty.call(message, "metric")) - writer.uint32(/* id 533067184, wireType 2 =*/4264537474).string(message.metric); - return writer; - }; - - /** - * Encodes the specified LogConfigCounterOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfigCounterOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigCounterOptions} message LogConfigCounterOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfigCounterOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LogConfigCounterOptions message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.LogConfigCounterOptions} LogConfigCounterOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfigCounterOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.LogConfigCounterOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 249651015: { - if (!(message.customFields && message.customFields.length)) - message.customFields = []; - message.customFields.push($root.google.cloud.compute.v1.LogConfigCounterOptionsCustomField.decode(reader, reader.uint32())); - break; - } - case 97427706: { - message.field = reader.string(); - break; - } - case 533067184: { - message.metric = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LogConfigCounterOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.LogConfigCounterOptions} LogConfigCounterOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfigCounterOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LogConfigCounterOptions message. - * @function verify - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LogConfigCounterOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.customFields != null && message.hasOwnProperty("customFields")) { - if (!Array.isArray(message.customFields)) - return "customFields: array expected"; - for (var i = 0; i < message.customFields.length; ++i) { - var error = $root.google.cloud.compute.v1.LogConfigCounterOptionsCustomField.verify(message.customFields[i]); - if (error) - return "customFields." + error; - } - } - if (message.field != null && message.hasOwnProperty("field")) { - properties._field = 1; - if (!$util.isString(message.field)) - return "field: string expected"; - } - if (message.metric != null && message.hasOwnProperty("metric")) { - properties._metric = 1; - if (!$util.isString(message.metric)) - return "metric: string expected"; - } - return null; - }; - - /** - * Creates a LogConfigCounterOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.LogConfigCounterOptions} LogConfigCounterOptions - */ - LogConfigCounterOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.LogConfigCounterOptions) - return object; - var message = new $root.google.cloud.compute.v1.LogConfigCounterOptions(); - if (object.customFields) { - if (!Array.isArray(object.customFields)) - throw TypeError(".google.cloud.compute.v1.LogConfigCounterOptions.customFields: array expected"); - message.customFields = []; - for (var i = 0; i < object.customFields.length; ++i) { - if (typeof object.customFields[i] !== "object") - throw TypeError(".google.cloud.compute.v1.LogConfigCounterOptions.customFields: object expected"); - message.customFields[i] = $root.google.cloud.compute.v1.LogConfigCounterOptionsCustomField.fromObject(object.customFields[i]); - } - } - if (object.field != null) - message.field = String(object.field); - if (object.metric != null) - message.metric = String(object.metric); - return message; - }; - - /** - * Creates a plain object from a LogConfigCounterOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {google.cloud.compute.v1.LogConfigCounterOptions} message LogConfigCounterOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LogConfigCounterOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.customFields = []; - if (message.field != null && message.hasOwnProperty("field")) { - object.field = message.field; - if (options.oneofs) - object._field = "field"; - } - if (message.customFields && message.customFields.length) { - object.customFields = []; - for (var j = 0; j < message.customFields.length; ++j) - object.customFields[j] = $root.google.cloud.compute.v1.LogConfigCounterOptionsCustomField.toObject(message.customFields[j], options); - } - if (message.metric != null && message.hasOwnProperty("metric")) { - object.metric = message.metric; - if (options.oneofs) - object._metric = "metric"; - } - return object; - }; - - /** - * Converts this LogConfigCounterOptions to JSON. - * @function toJSON - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @instance - * @returns {Object.} JSON object - */ - LogConfigCounterOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LogConfigCounterOptions - * @function getTypeUrl - * @memberof google.cloud.compute.v1.LogConfigCounterOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LogConfigCounterOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.compute.v1.LogConfigCounterOptions"; - }; - - return LogConfigCounterOptions; - })(); - - v1.LogConfigCounterOptionsCustomField = (function() { - - /** - * Properties of a LogConfigCounterOptionsCustomField. - * @memberof google.cloud.compute.v1 - * @interface ILogConfigCounterOptionsCustomField - * @property {string|null} [name] LogConfigCounterOptionsCustomField name - * @property {string|null} [value] LogConfigCounterOptionsCustomField value - */ - - /** - * Constructs a new LogConfigCounterOptionsCustomField. - * @memberof google.cloud.compute.v1 - * @classdesc Represents a LogConfigCounterOptionsCustomField. - * @implements ILogConfigCounterOptionsCustomField - * @constructor - * @param {google.cloud.compute.v1.ILogConfigCounterOptionsCustomField=} [properties] Properties to set - */ - function LogConfigCounterOptionsCustomField(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LogConfigCounterOptionsCustomField name. - * @member {string|null|undefined} name - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @instance - */ - LogConfigCounterOptionsCustomField.prototype.name = null; - - /** - * LogConfigCounterOptionsCustomField value. - * @member {string|null|undefined} value - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @instance - */ - LogConfigCounterOptionsCustomField.prototype.value = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LogConfigCounterOptionsCustomField _name. - * @member {"name"|undefined} _name - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @instance - */ - Object.defineProperty(LogConfigCounterOptionsCustomField.prototype, "_name", { - get: $util.oneOfGetter($oneOfFields = ["name"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * LogConfigCounterOptionsCustomField _value. - * @member {"value"|undefined} _value - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @instance - */ - Object.defineProperty(LogConfigCounterOptionsCustomField.prototype, "_value", { - get: $util.oneOfGetter($oneOfFields = ["value"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LogConfigCounterOptionsCustomField instance using the specified properties. - * @function create - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {google.cloud.compute.v1.ILogConfigCounterOptionsCustomField=} [properties] Properties to set - * @returns {google.cloud.compute.v1.LogConfigCounterOptionsCustomField} LogConfigCounterOptionsCustomField instance - */ - LogConfigCounterOptionsCustomField.create = function create(properties) { - return new LogConfigCounterOptionsCustomField(properties); - }; - - /** - * Encodes the specified LogConfigCounterOptionsCustomField message. Does not implicitly {@link google.cloud.compute.v1.LogConfigCounterOptionsCustomField.verify|verify} messages. - * @function encode - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {google.cloud.compute.v1.ILogConfigCounterOptionsCustomField} message LogConfigCounterOptionsCustomField message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfigCounterOptionsCustomField.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 111972721, wireType 2 =*/895781770).string(message.value); - return writer; - }; - - /** - * Encodes the specified LogConfigCounterOptionsCustomField message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfigCounterOptionsCustomField.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {google.cloud.compute.v1.ILogConfigCounterOptionsCustomField} message LogConfigCounterOptionsCustomField message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfigCounterOptionsCustomField.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LogConfigCounterOptionsCustomField message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.LogConfigCounterOptionsCustomField} LogConfigCounterOptionsCustomField - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfigCounterOptionsCustomField.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.LogConfigCounterOptionsCustomField(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3373707: { - message.name = reader.string(); - break; - } - case 111972721: { - message.value = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LogConfigCounterOptionsCustomField message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.LogConfigCounterOptionsCustomField} LogConfigCounterOptionsCustomField - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfigCounterOptionsCustomField.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LogConfigCounterOptionsCustomField message. - * @function verify - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LogConfigCounterOptionsCustomField.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) { - properties._name = 1; - if (!$util.isString(message.name)) - return "name: string expected"; - } - if (message.value != null && message.hasOwnProperty("value")) { - properties._value = 1; - if (!$util.isString(message.value)) - return "value: string expected"; - } - return null; - }; - - /** - * Creates a LogConfigCounterOptionsCustomField message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.LogConfigCounterOptionsCustomField} LogConfigCounterOptionsCustomField - */ - LogConfigCounterOptionsCustomField.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.LogConfigCounterOptionsCustomField) - return object; - var message = new $root.google.cloud.compute.v1.LogConfigCounterOptionsCustomField(); - if (object.name != null) - message.name = String(object.name); - if (object.value != null) - message.value = String(object.value); - return message; - }; - - /** - * Creates a plain object from a LogConfigCounterOptionsCustomField message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {google.cloud.compute.v1.LogConfigCounterOptionsCustomField} message LogConfigCounterOptionsCustomField - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LogConfigCounterOptionsCustomField.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.name != null && message.hasOwnProperty("name")) { - object.name = message.name; - if (options.oneofs) - object._name = "name"; - } - if (message.value != null && message.hasOwnProperty("value")) { - object.value = message.value; - if (options.oneofs) - object._value = "value"; - } - return object; - }; - - /** - * Converts this LogConfigCounterOptionsCustomField to JSON. - * @function toJSON - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @instance - * @returns {Object.} JSON object - */ - LogConfigCounterOptionsCustomField.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LogConfigCounterOptionsCustomField - * @function getTypeUrl - * @memberof google.cloud.compute.v1.LogConfigCounterOptionsCustomField - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LogConfigCounterOptionsCustomField.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.compute.v1.LogConfigCounterOptionsCustomField"; - }; - - return LogConfigCounterOptionsCustomField; - })(); - - v1.LogConfigDataAccessOptions = (function() { - - /** - * Properties of a LogConfigDataAccessOptions. - * @memberof google.cloud.compute.v1 - * @interface ILogConfigDataAccessOptions - * @property {string|null} [logMode] LogConfigDataAccessOptions logMode - */ - - /** - * Constructs a new LogConfigDataAccessOptions. - * @memberof google.cloud.compute.v1 - * @classdesc Represents a LogConfigDataAccessOptions. - * @implements ILogConfigDataAccessOptions - * @constructor - * @param {google.cloud.compute.v1.ILogConfigDataAccessOptions=} [properties] Properties to set - */ - function LogConfigDataAccessOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LogConfigDataAccessOptions logMode. - * @member {string|null|undefined} logMode - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @instance - */ - LogConfigDataAccessOptions.prototype.logMode = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LogConfigDataAccessOptions _logMode. - * @member {"logMode"|undefined} _logMode - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @instance - */ - Object.defineProperty(LogConfigDataAccessOptions.prototype, "_logMode", { - get: $util.oneOfGetter($oneOfFields = ["logMode"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LogConfigDataAccessOptions instance using the specified properties. - * @function create - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigDataAccessOptions=} [properties] Properties to set - * @returns {google.cloud.compute.v1.LogConfigDataAccessOptions} LogConfigDataAccessOptions instance - */ - LogConfigDataAccessOptions.create = function create(properties) { - return new LogConfigDataAccessOptions(properties); - }; - - /** - * Encodes the specified LogConfigDataAccessOptions message. Does not implicitly {@link google.cloud.compute.v1.LogConfigDataAccessOptions.verify|verify} messages. - * @function encode - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigDataAccessOptions} message LogConfigDataAccessOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfigDataAccessOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.logMode != null && Object.hasOwnProperty.call(message, "logMode")) - writer.uint32(/* id 402897342, wireType 2 =*/3223178738).string(message.logMode); - return writer; - }; - - /** - * Encodes the specified LogConfigDataAccessOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LogConfigDataAccessOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {google.cloud.compute.v1.ILogConfigDataAccessOptions} message LogConfigDataAccessOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogConfigDataAccessOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LogConfigDataAccessOptions message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.LogConfigDataAccessOptions} LogConfigDataAccessOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfigDataAccessOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.LogConfigDataAccessOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 402897342: { - message.logMode = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LogConfigDataAccessOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.LogConfigDataAccessOptions} LogConfigDataAccessOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogConfigDataAccessOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LogConfigDataAccessOptions message. - * @function verify - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LogConfigDataAccessOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.logMode != null && message.hasOwnProperty("logMode")) { - properties._logMode = 1; - if (!$util.isString(message.logMode)) - return "logMode: string expected"; - } - return null; - }; - - /** - * Creates a LogConfigDataAccessOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.LogConfigDataAccessOptions} LogConfigDataAccessOptions - */ - LogConfigDataAccessOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.LogConfigDataAccessOptions) - return object; - var message = new $root.google.cloud.compute.v1.LogConfigDataAccessOptions(); - if (object.logMode != null) - message.logMode = String(object.logMode); - return message; - }; - - /** - * Creates a plain object from a LogConfigDataAccessOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {google.cloud.compute.v1.LogConfigDataAccessOptions} message LogConfigDataAccessOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LogConfigDataAccessOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.logMode != null && message.hasOwnProperty("logMode")) { - object.logMode = message.logMode; - if (options.oneofs) - object._logMode = "logMode"; - } - return object; - }; - - /** - * Converts this LogConfigDataAccessOptions to JSON. - * @function toJSON - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @instance - * @returns {Object.} JSON object - */ - LogConfigDataAccessOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LogConfigDataAccessOptions - * @function getTypeUrl - * @memberof google.cloud.compute.v1.LogConfigDataAccessOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LogConfigDataAccessOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.compute.v1.LogConfigDataAccessOptions"; - }; - - /** - * LogMode enum. - * @name google.cloud.compute.v1.LogConfigDataAccessOptions.LogMode - * @enum {number} - * @property {number} UNDEFINED_LOG_MODE=0 UNDEFINED_LOG_MODE value - * @property {number} LOG_FAIL_CLOSED=360469778 LOG_FAIL_CLOSED value - * @property {number} LOG_MODE_UNSPECIFIED=88160822 LOG_MODE_UNSPECIFIED value - */ - LogConfigDataAccessOptions.LogMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_LOG_MODE"] = 0; - values[valuesById[360469778] = "LOG_FAIL_CLOSED"] = 360469778; - values[valuesById[88160822] = "LOG_MODE_UNSPECIFIED"] = 88160822; - return values; - })(); - - return LogConfigDataAccessOptions; - })(); - v1.MachineImage = (function() { /** @@ -311482,6 +312045,7 @@ * @memberof google.cloud.compute.v1 * @interface IMachineType * @property {Array.|null} [accelerators] MachineType accelerators + * @property {string|null} [architecture] MachineType architecture * @property {string|null} [creationTimestamp] MachineType creationTimestamp * @property {google.cloud.compute.v1.IDeprecationStatus|null} [deprecated] MachineType deprecated * @property {string|null} [description] MachineType description @@ -311524,6 +312088,14 @@ */ MachineType.prototype.accelerators = $util.emptyArray; + /** + * MachineType architecture. + * @member {string|null|undefined} architecture + * @memberof google.cloud.compute.v1.MachineType + * @instance + */ + MachineType.prototype.architecture = null; + /** * MachineType creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -311647,6 +312219,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * MachineType _architecture. + * @member {"architecture"|undefined} _architecture + * @memberof google.cloud.compute.v1.MachineType + * @instance + */ + Object.defineProperty(MachineType.prototype, "_architecture", { + get: $util.oneOfGetter($oneOfFields = ["architecture"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * MachineType _creationTimestamp. * @member {"creationTimestamp"|undefined} _creationTimestamp @@ -311844,6 +312427,8 @@ if (message.accelerators != null && message.accelerators.length) for (var i = 0; i < message.accelerators.length; ++i) $root.google.cloud.compute.v1.Accelerators.encode(message.accelerators[i], writer.uint32(/* id 269577064, wireType 2 =*/2156616514).fork()).ldelim(); + if (message.architecture != null && Object.hasOwnProperty.call(message, "architecture")) + writer.uint32(/* id 302803283, wireType 2 =*/2422426266).string(message.architecture); if (message.guestCpus != null && Object.hasOwnProperty.call(message, "guestCpus")) writer.uint32(/* id 393356754, wireType 0 =*/3146854032).int32(message.guestCpus); if (message.description != null && Object.hasOwnProperty.call(message, "description")) @@ -311899,6 +312484,10 @@ message.accelerators.push($root.google.cloud.compute.v1.Accelerators.decode(reader, reader.uint32())); break; } + case 302803283: { + message.architecture = reader.string(); + break; + } case 30525366: { message.creationTimestamp = reader.string(); break; @@ -312006,6 +312595,11 @@ return "accelerators." + error; } } + if (message.architecture != null && message.hasOwnProperty("architecture")) { + properties._architecture = 1; + if (!$util.isString(message.architecture)) + return "architecture: string expected"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -312113,6 +312707,8 @@ message.accelerators[i] = $root.google.cloud.compute.v1.Accelerators.fromObject(object.accelerators[i]); } } + if (object.architecture != null) + message.architecture = String(object.architecture); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.deprecated != null) { @@ -312239,6 +312835,11 @@ for (var j = 0; j < message.accelerators.length; ++j) object.accelerators[j] = $root.google.cloud.compute.v1.Accelerators.toObject(message.accelerators[j], options); } + if (message.architecture != null && message.hasOwnProperty("architecture")) { + object.architecture = message.architecture; + if (options.oneofs) + object._architecture = "architecture"; + } if (message.guestCpus != null && message.hasOwnProperty("guestCpus")) { object.guestCpus = message.guestCpus; if (options.oneofs) @@ -312303,6 +312904,24 @@ return typeUrlPrefix + "/google.cloud.compute.v1.MachineType"; }; + /** + * Architecture enum. + * @name google.cloud.compute.v1.MachineType.Architecture + * @enum {number} + * @property {number} UNDEFINED_ARCHITECTURE=0 UNDEFINED_ARCHITECTURE value + * @property {number} ARCHITECTURE_UNSPECIFIED=394750507 ARCHITECTURE_UNSPECIFIED value + * @property {number} ARM64=62547450 ARM64 value + * @property {number} X86_64=425300551 X86_64 value + */ + MachineType.Architecture = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ARCHITECTURE"] = 0; + values[valuesById[394750507] = "ARCHITECTURE_UNSPECIFIED"] = 394750507; + values[valuesById[62547450] = "ARM64"] = 62547450; + values[valuesById[425300551] = "X86_64"] = 425300551; + return values; + })(); + return MachineType; })(); @@ -313502,6 +314121,7 @@ * @property {string|null} [name] ManagedInstance name * @property {google.cloud.compute.v1.IPreservedState|null} [preservedStateFromConfig] ManagedInstance preservedStateFromConfig * @property {google.cloud.compute.v1.IPreservedState|null} [preservedStateFromPolicy] ManagedInstance preservedStateFromPolicy + * @property {google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy|null} [propertiesFromFlexibilityPolicy] ManagedInstance propertiesFromFlexibilityPolicy * @property {google.cloud.compute.v1.IManagedInstanceVersion|null} [version] ManagedInstance version */ @@ -313593,6 +314213,14 @@ */ ManagedInstance.prototype.preservedStateFromPolicy = null; + /** + * ManagedInstance propertiesFromFlexibilityPolicy. + * @member {google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy|null|undefined} propertiesFromFlexibilityPolicy + * @memberof google.cloud.compute.v1.ManagedInstance + * @instance + */ + ManagedInstance.prototype.propertiesFromFlexibilityPolicy = null; + /** * ManagedInstance version. * @member {google.cloud.compute.v1.IManagedInstanceVersion|null|undefined} version @@ -313692,6 +314320,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ManagedInstance _propertiesFromFlexibilityPolicy. + * @member {"propertiesFromFlexibilityPolicy"|undefined} _propertiesFromFlexibilityPolicy + * @memberof google.cloud.compute.v1.ManagedInstance + * @instance + */ + Object.defineProperty(ManagedInstance.prototype, "_propertiesFromFlexibilityPolicy", { + get: $util.oneOfGetter($oneOfFields = ["propertiesFromFlexibilityPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * ManagedInstance _version. * @member {"version"|undefined} _version @@ -313735,6 +314374,8 @@ writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); if (message.preservedStateFromConfig != null && Object.hasOwnProperty.call(message, "preservedStateFromConfig")) $root.google.cloud.compute.v1.PreservedState.encode(message.preservedStateFromConfig, writer.uint32(/* id 98661858, wireType 2 =*/789294866).fork()).ldelim(); + if (message.propertiesFromFlexibilityPolicy != null && Object.hasOwnProperty.call(message, "propertiesFromFlexibilityPolicy")) + $root.google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.encode(message.propertiesFromFlexibilityPolicy, writer.uint32(/* id 155525825, wireType 2 =*/1244206602).fork()).ldelim(); if (message.instanceStatus != null && Object.hasOwnProperty.call(message, "instanceStatus")) writer.uint32(/* id 174577372, wireType 2 =*/1396618978).string(message.instanceStatus); if (message.currentAction != null && Object.hasOwnProperty.call(message, "currentAction")) @@ -313820,6 +314461,10 @@ message.preservedStateFromPolicy = $root.google.cloud.compute.v1.PreservedState.decode(reader, reader.uint32()); break; } + case 155525825: { + message.propertiesFromFlexibilityPolicy = $root.google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.decode(reader, reader.uint32()); + break; + } case 351608024: { message.version = $root.google.cloud.compute.v1.ManagedInstanceVersion.decode(reader, reader.uint32()); break; @@ -313918,6 +314563,14 @@ return "preservedStateFromPolicy." + error; } } + if (message.propertiesFromFlexibilityPolicy != null && message.hasOwnProperty("propertiesFromFlexibilityPolicy")) { + properties._propertiesFromFlexibilityPolicy = 1; + { + var error = $root.google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.verify(message.propertiesFromFlexibilityPolicy); + if (error) + return "propertiesFromFlexibilityPolicy." + error; + } + } if (message.version != null && message.hasOwnProperty("version")) { properties._version = 1; { @@ -313983,6 +314636,11 @@ throw TypeError(".google.cloud.compute.v1.ManagedInstance.preservedStateFromPolicy: object expected"); message.preservedStateFromPolicy = $root.google.cloud.compute.v1.PreservedState.fromObject(object.preservedStateFromPolicy); } + if (object.propertiesFromFlexibilityPolicy != null) { + if (typeof object.propertiesFromFlexibilityPolicy !== "object") + throw TypeError(".google.cloud.compute.v1.ManagedInstance.propertiesFromFlexibilityPolicy: object expected"); + message.propertiesFromFlexibilityPolicy = $root.google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.fromObject(object.propertiesFromFlexibilityPolicy); + } if (object.version != null) { if (typeof object.version !== "object") throw TypeError(".google.cloud.compute.v1.ManagedInstance.version: object expected"); @@ -314029,6 +314687,11 @@ if (options.oneofs) object._preservedStateFromConfig = "preservedStateFromConfig"; } + if (message.propertiesFromFlexibilityPolicy != null && message.hasOwnProperty("propertiesFromFlexibilityPolicy")) { + object.propertiesFromFlexibilityPolicy = $root.google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.toObject(message.propertiesFromFlexibilityPolicy, options); + if (options.oneofs) + object._propertiesFromFlexibilityPolicy = "propertiesFromFlexibilityPolicy"; + } if (message.instanceStatus != null && message.hasOwnProperty("instanceStatus")) { object.instanceStatus = message.instanceStatus; if (options.oneofs) @@ -314665,6 +315328,227 @@ return ManagedInstanceLastAttempt; })(); + v1.ManagedInstancePropertiesFromFlexibilityPolicy = (function() { + + /** + * Properties of a ManagedInstancePropertiesFromFlexibilityPolicy. + * @memberof google.cloud.compute.v1 + * @interface IManagedInstancePropertiesFromFlexibilityPolicy + * @property {string|null} [machineType] ManagedInstancePropertiesFromFlexibilityPolicy machineType + */ + + /** + * Constructs a new ManagedInstancePropertiesFromFlexibilityPolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ManagedInstancePropertiesFromFlexibilityPolicy. + * @implements IManagedInstancePropertiesFromFlexibilityPolicy + * @constructor + * @param {google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy=} [properties] Properties to set + */ + function ManagedInstancePropertiesFromFlexibilityPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ManagedInstancePropertiesFromFlexibilityPolicy machineType. + * @member {string|null|undefined} machineType + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @instance + */ + ManagedInstancePropertiesFromFlexibilityPolicy.prototype.machineType = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ManagedInstancePropertiesFromFlexibilityPolicy _machineType. + * @member {"machineType"|undefined} _machineType + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @instance + */ + Object.defineProperty(ManagedInstancePropertiesFromFlexibilityPolicy.prototype, "_machineType", { + get: $util.oneOfGetter($oneOfFields = ["machineType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ManagedInstancePropertiesFromFlexibilityPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy} ManagedInstancePropertiesFromFlexibilityPolicy instance + */ + ManagedInstancePropertiesFromFlexibilityPolicy.create = function create(properties) { + return new ManagedInstancePropertiesFromFlexibilityPolicy(properties); + }; + + /** + * Encodes the specified ManagedInstancePropertiesFromFlexibilityPolicy message. Does not implicitly {@link google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy} message ManagedInstancePropertiesFromFlexibilityPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagedInstancePropertiesFromFlexibilityPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 227711026, wireType 2 =*/1821688210).string(message.machineType); + return writer; + }; + + /** + * Encodes the specified ManagedInstancePropertiesFromFlexibilityPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {google.cloud.compute.v1.IManagedInstancePropertiesFromFlexibilityPolicy} message ManagedInstancePropertiesFromFlexibilityPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagedInstancePropertiesFromFlexibilityPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ManagedInstancePropertiesFromFlexibilityPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy} ManagedInstancePropertiesFromFlexibilityPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagedInstancePropertiesFromFlexibilityPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 227711026: { + message.machineType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ManagedInstancePropertiesFromFlexibilityPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy} ManagedInstancePropertiesFromFlexibilityPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagedInstancePropertiesFromFlexibilityPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ManagedInstancePropertiesFromFlexibilityPolicy message. + * @function verify + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ManagedInstancePropertiesFromFlexibilityPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.machineType != null && message.hasOwnProperty("machineType")) { + properties._machineType = 1; + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + } + return null; + }; + + /** + * Creates a ManagedInstancePropertiesFromFlexibilityPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy} ManagedInstancePropertiesFromFlexibilityPolicy + */ + ManagedInstancePropertiesFromFlexibilityPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy) + return object; + var message = new $root.google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy(); + if (object.machineType != null) + message.machineType = String(object.machineType); + return message; + }; + + /** + * Creates a plain object from a ManagedInstancePropertiesFromFlexibilityPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy} message ManagedInstancePropertiesFromFlexibilityPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ManagedInstancePropertiesFromFlexibilityPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.machineType != null && message.hasOwnProperty("machineType")) { + object.machineType = message.machineType; + if (options.oneofs) + object._machineType = "machineType"; + } + return object; + }; + + /** + * Converts this ManagedInstancePropertiesFromFlexibilityPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @instance + * @returns {Object.} JSON object + */ + ManagedInstancePropertiesFromFlexibilityPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ManagedInstancePropertiesFromFlexibilityPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ManagedInstancePropertiesFromFlexibilityPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy"; + }; + + return ManagedInstancePropertiesFromFlexibilityPolicy; + })(); + v1.ManagedInstanceVersion = (function() { /** @@ -322974,9 +323858,11 @@ * @memberof google.cloud.compute.v1 * @interface INetworkEndpoint * @property {Object.|null} [annotations] NetworkEndpoint annotations + * @property {number|null} [clientDestinationPort] NetworkEndpoint clientDestinationPort * @property {string|null} [fqdn] NetworkEndpoint fqdn * @property {string|null} [instance] NetworkEndpoint instance * @property {string|null} [ipAddress] NetworkEndpoint ipAddress + * @property {string|null} [ipv6Address] NetworkEndpoint ipv6Address * @property {number|null} [port] NetworkEndpoint port */ @@ -323004,6 +323890,14 @@ */ NetworkEndpoint.prototype.annotations = $util.emptyObject; + /** + * NetworkEndpoint clientDestinationPort. + * @member {number|null|undefined} clientDestinationPort + * @memberof google.cloud.compute.v1.NetworkEndpoint + * @instance + */ + NetworkEndpoint.prototype.clientDestinationPort = null; + /** * NetworkEndpoint fqdn. * @member {string|null|undefined} fqdn @@ -323028,6 +323922,14 @@ */ NetworkEndpoint.prototype.ipAddress = null; + /** + * NetworkEndpoint ipv6Address. + * @member {string|null|undefined} ipv6Address + * @memberof google.cloud.compute.v1.NetworkEndpoint + * @instance + */ + NetworkEndpoint.prototype.ipv6Address = null; + /** * NetworkEndpoint port. * @member {number|null|undefined} port @@ -323039,6 +323941,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * NetworkEndpoint _clientDestinationPort. + * @member {"clientDestinationPort"|undefined} _clientDestinationPort + * @memberof google.cloud.compute.v1.NetworkEndpoint + * @instance + */ + Object.defineProperty(NetworkEndpoint.prototype, "_clientDestinationPort", { + get: $util.oneOfGetter($oneOfFields = ["clientDestinationPort"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * NetworkEndpoint _fqdn. * @member {"fqdn"|undefined} _fqdn @@ -323072,6 +323985,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * NetworkEndpoint _ipv6Address. + * @member {"ipv6Address"|undefined} _ipv6Address + * @memberof google.cloud.compute.v1.NetworkEndpoint + * @instance + */ + Object.defineProperty(NetworkEndpoint.prototype, "_ipv6Address", { + get: $util.oneOfGetter($oneOfFields = ["ipv6Address"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * NetworkEndpoint _port. * @member {"port"|undefined} _port @@ -323116,6 +324040,10 @@ if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations")) for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) writer.uint32(/* id 112032548, wireType 2 =*/896260386).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + if (message.clientDestinationPort != null && Object.hasOwnProperty.call(message, "clientDestinationPort")) + writer.uint32(/* id 123765766, wireType 0 =*/990126128).int32(message.clientDestinationPort); + if (message.ipv6Address != null && Object.hasOwnProperty.call(message, "ipv6Address")) + writer.uint32(/* id 341563804, wireType 2 =*/2732510434).string(message.ipv6Address); if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) writer.uint32(/* id 406272220, wireType 2 =*/3250177762).string(message.ipAddress); return writer; @@ -323175,6 +324103,10 @@ message.annotations[key] = value; break; } + case 123765766: { + message.clientDestinationPort = reader.int32(); + break; + } case 3150485: { message.fqdn = reader.string(); break; @@ -323187,6 +324119,10 @@ message.ipAddress = reader.string(); break; } + case 341563804: { + message.ipv6Address = reader.string(); + break; + } case 3446913: { message.port = reader.int32(); break; @@ -323235,6 +324171,11 @@ if (!$util.isString(message.annotations[key[i]])) return "annotations: string{k:string} expected"; } + if (message.clientDestinationPort != null && message.hasOwnProperty("clientDestinationPort")) { + properties._clientDestinationPort = 1; + if (!$util.isInteger(message.clientDestinationPort)) + return "clientDestinationPort: integer expected"; + } if (message.fqdn != null && message.hasOwnProperty("fqdn")) { properties._fqdn = 1; if (!$util.isString(message.fqdn)) @@ -323250,6 +324191,11 @@ if (!$util.isString(message.ipAddress)) return "ipAddress: string expected"; } + if (message.ipv6Address != null && message.hasOwnProperty("ipv6Address")) { + properties._ipv6Address = 1; + if (!$util.isString(message.ipv6Address)) + return "ipv6Address: string expected"; + } if (message.port != null && message.hasOwnProperty("port")) { properties._port = 1; if (!$util.isInteger(message.port)) @@ -323277,12 +324223,16 @@ for (var keys = Object.keys(object.annotations), i = 0; i < keys.length; ++i) message.annotations[keys[i]] = String(object.annotations[keys[i]]); } + if (object.clientDestinationPort != null) + message.clientDestinationPort = object.clientDestinationPort | 0; if (object.fqdn != null) message.fqdn = String(object.fqdn); if (object.instance != null) message.instance = String(object.instance); if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); + if (object.ipv6Address != null) + message.ipv6Address = String(object.ipv6Address); if (object.port != null) message.port = object.port | 0; return message; @@ -323324,6 +324274,16 @@ for (var j = 0; j < keys2.length; ++j) object.annotations[keys2[j]] = message.annotations[keys2[j]]; } + if (message.clientDestinationPort != null && message.hasOwnProperty("clientDestinationPort")) { + object.clientDestinationPort = message.clientDestinationPort; + if (options.oneofs) + object._clientDestinationPort = "clientDestinationPort"; + } + if (message.ipv6Address != null && message.hasOwnProperty("ipv6Address")) { + object.ipv6Address = message.ipv6Address; + if (options.oneofs) + object._ipv6Address = "ipv6Address"; + } if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { object.ipAddress = message.ipAddress; if (options.oneofs) @@ -324325,6 +325285,7 @@ * @property {number} UNDEFINED_NETWORK_ENDPOINT_TYPE=0 UNDEFINED_NETWORK_ENDPOINT_TYPE value * @property {number} GCE_VM_IP=401880793 GCE_VM_IP value * @property {number} GCE_VM_IP_PORT=501838375 GCE_VM_IP_PORT value + * @property {number} GCE_VM_IP_PORTMAP=22819253 GCE_VM_IP_PORTMAP value * @property {number} INTERNET_FQDN_PORT=404154477 INTERNET_FQDN_PORT value * @property {number} INTERNET_IP_PORT=477719963 INTERNET_IP_PORT value * @property {number} NON_GCP_PRIVATE_IP_PORT=336447968 NON_GCP_PRIVATE_IP_PORT value @@ -324336,6 +325297,7 @@ values[valuesById[0] = "UNDEFINED_NETWORK_ENDPOINT_TYPE"] = 0; values[valuesById[401880793] = "GCE_VM_IP"] = 401880793; values[valuesById[501838375] = "GCE_VM_IP_PORT"] = 501838375; + values[valuesById[22819253] = "GCE_VM_IP_PORTMAP"] = 22819253; values[valuesById[404154477] = "INTERNET_FQDN_PORT"] = 404154477; values[valuesById[477719963] = "INTERNET_IP_PORT"] = 477719963; values[valuesById[336447968] = "NON_GCP_PRIVATE_IP_PORT"] = 336447968; @@ -326116,6 +327078,7 @@ * @memberof google.cloud.compute.v1 * @interface INetworkEndpointGroupPscData * @property {string|null} [consumerPscAddress] NetworkEndpointGroupPscData consumerPscAddress + * @property {number|null} [producerPort] NetworkEndpointGroupPscData producerPort * @property {number|Long|null} [pscConnectionId] NetworkEndpointGroupPscData pscConnectionId * @property {string|null} [pscConnectionStatus] NetworkEndpointGroupPscData pscConnectionStatus */ @@ -326143,6 +327106,14 @@ */ NetworkEndpointGroupPscData.prototype.consumerPscAddress = null; + /** + * NetworkEndpointGroupPscData producerPort. + * @member {number|null|undefined} producerPort + * @memberof google.cloud.compute.v1.NetworkEndpointGroupPscData + * @instance + */ + NetworkEndpointGroupPscData.prototype.producerPort = null; + /** * NetworkEndpointGroupPscData pscConnectionId. * @member {number|Long|null|undefined} pscConnectionId @@ -326173,6 +327144,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * NetworkEndpointGroupPscData _producerPort. + * @member {"producerPort"|undefined} _producerPort + * @memberof google.cloud.compute.v1.NetworkEndpointGroupPscData + * @instance + */ + Object.defineProperty(NetworkEndpointGroupPscData.prototype, "_producerPort", { + get: $util.oneOfGetter($oneOfFields = ["producerPort"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * NetworkEndpointGroupPscData _pscConnectionId. * @member {"pscConnectionId"|undefined} _pscConnectionId @@ -326223,6 +327205,8 @@ writer.uint32(/* id 184149172, wireType 2 =*/1473193378).string(message.pscConnectionStatus); if (message.pscConnectionId != null && Object.hasOwnProperty.call(message, "pscConnectionId")) writer.uint32(/* id 292082397, wireType 0 =*/2336659176).uint64(message.pscConnectionId); + if (message.producerPort != null && Object.hasOwnProperty.call(message, "producerPort")) + writer.uint32(/* id 410021134, wireType 0 =*/3280169072).int32(message.producerPort); if (message.consumerPscAddress != null && Object.hasOwnProperty.call(message, "consumerPscAddress")) writer.uint32(/* id 452646572, wireType 2 =*/3621172578).string(message.consumerPscAddress); return writer; @@ -326263,6 +327247,10 @@ message.consumerPscAddress = reader.string(); break; } + case 410021134: { + message.producerPort = reader.int32(); + break; + } case 292082397: { message.pscConnectionId = reader.uint64(); break; @@ -326312,6 +327300,11 @@ if (!$util.isString(message.consumerPscAddress)) return "consumerPscAddress: string expected"; } + if (message.producerPort != null && message.hasOwnProperty("producerPort")) { + properties._producerPort = 1; + if (!$util.isInteger(message.producerPort)) + return "producerPort: integer expected"; + } if (message.pscConnectionId != null && message.hasOwnProperty("pscConnectionId")) { properties._pscConnectionId = 1; if (!$util.isInteger(message.pscConnectionId) && !(message.pscConnectionId && $util.isInteger(message.pscConnectionId.low) && $util.isInteger(message.pscConnectionId.high))) @@ -326339,6 +327332,8 @@ var message = new $root.google.cloud.compute.v1.NetworkEndpointGroupPscData(); if (object.consumerPscAddress != null) message.consumerPscAddress = String(object.consumerPscAddress); + if (object.producerPort != null) + message.producerPort = object.producerPort | 0; if (object.pscConnectionId != null) if ($util.Long) (message.pscConnectionId = $util.Long.fromValue(object.pscConnectionId)).unsigned = true; @@ -326379,6 +327374,11 @@ if (options.oneofs) object._pscConnectionId = "pscConnectionId"; } + if (message.producerPort != null && message.hasOwnProperty("producerPort")) { + object.producerPort = message.producerPort; + if (options.oneofs) + object._producerPort = "producerPort"; + } if (message.consumerPscAddress != null && message.hasOwnProperty("consumerPscAddress")) { object.consumerPscAddress = message.consumerPscAddress; if (options.oneofs) @@ -328887,6 +329887,7 @@ * @enum {number} * @property {number} UNDEFINED_NIC_TYPE=0 UNDEFINED_NIC_TYPE value * @property {number} GVNIC=68209305 GVNIC value + * @property {number} IDPF=2242641 IDPF value * @property {number} UNSPECIFIED_NIC_TYPE=67411801 UNSPECIFIED_NIC_TYPE value * @property {number} VIRTIO_NET=452123481 VIRTIO_NET value */ @@ -328894,6 +329895,7 @@ var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_NIC_TYPE"] = 0; values[valuesById[68209305] = "GVNIC"] = 68209305; + values[valuesById[2242641] = "IDPF"] = 2242641; values[valuesById[67411801] = "UNSPECIFIED_NIC_TYPE"] = 67411801; values[valuesById[452123481] = "VIRTIO_NET"] = 452123481; return values; @@ -328906,6 +329908,7 @@ * @property {number} UNDEFINED_STACK_TYPE=0 UNDEFINED_STACK_TYPE value * @property {number} IPV4_IPV6=22197249 IPV4_IPV6 value * @property {number} IPV4_ONLY=22373798 IPV4_ONLY value + * @property {number} IPV6_ONLY=79632100 IPV6_ONLY value * @property {number} UNSPECIFIED_STACK_TYPE=298084569 UNSPECIFIED_STACK_TYPE value */ NetworkInterface.StackType = (function() { @@ -328913,6 +329916,7 @@ values[valuesById[0] = "UNDEFINED_STACK_TYPE"] = 0; values[valuesById[22197249] = "IPV4_IPV6"] = 22197249; values[valuesById[22373798] = "IPV4_ONLY"] = 22373798; + values[valuesById[79632100] = "IPV6_ONLY"] = 79632100; values[valuesById[298084569] = "UNSPECIFIED_STACK_TYPE"] = 298084569; return values; })(); @@ -331107,6 +332111,7 @@ * @interface INetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy * @property {string|null} [displayName] NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy displayName * @property {string|null} [name] NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy name + * @property {number|null} [priority] NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy priority * @property {Array.|null} [rules] NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy rules * @property {string|null} [shortName] NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy shortName * @property {string|null} [type] NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy type @@ -331144,6 +332149,14 @@ */ NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.prototype.name = null; + /** + * NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy priority. + * @member {number|null|undefined} priority + * @memberof google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy + * @instance + */ + NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.prototype.priority = null; + /** * NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy rules. * @member {Array.} rules @@ -331193,6 +332206,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy _priority. + * @member {"priority"|undefined} _priority + * @memberof google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy + * @instance + */ + Object.defineProperty(NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.prototype, "_priority", { + get: $util.oneOfGetter($oneOfFields = ["priority"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy _shortName. * @member {"shortName"|undefined} _shortName @@ -331248,6 +332272,8 @@ if (message.rules != null && message.rules.length) for (var i = 0; i < message.rules.length; ++i) $root.google.cloud.compute.v1.FirewallPolicyRule.encode(message.rules[i], writer.uint32(/* id 108873975, wireType 2 =*/870991802).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 445151652, wireType 0 =*/3561213216).int32(message.priority); if (message.shortName != null && Object.hasOwnProperty.call(message, "shortName")) writer.uint32(/* id 492051566, wireType 2 =*/3936412530).string(message.shortName); return writer; @@ -331292,6 +332318,10 @@ message.name = reader.string(); break; } + case 445151652: { + message.priority = reader.int32(); + break; + } case 108873975: { if (!(message.rules && message.rules.length)) message.rules = []; @@ -331352,6 +332382,11 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.priority != null && message.hasOwnProperty("priority")) { + properties._priority = 1; + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + } if (message.rules != null && message.hasOwnProperty("rules")) { if (!Array.isArray(message.rules)) return "rules: array expected"; @@ -331390,6 +332425,8 @@ message.displayName = String(object.displayName); if (object.name != null) message.name = String(object.name); + if (object.priority != null) + message.priority = object.priority | 0; if (object.rules) { if (!Array.isArray(object.rules)) throw TypeError(".google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.rules: array expected"); @@ -331442,6 +332479,11 @@ for (var j = 0; j < message.rules.length; ++j) object.rules[j] = $root.google.cloud.compute.v1.FirewallPolicyRule.toObject(message.rules[j], options); } + if (message.priority != null && message.hasOwnProperty("priority")) { + object.priority = message.priority; + if (options.oneofs) + object._priority = "priority"; + } if (message.shortName != null && message.hasOwnProperty("shortName")) { object.shortName = message.shortName; if (options.oneofs) @@ -331483,6 +332525,7 @@ * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value * @property {number} HIERARCHY=69902869 HIERARCHY value * @property {number} NETWORK=413984270 NETWORK value + * @property {number} SYSTEM=313484847 SYSTEM value * @property {number} UNSPECIFIED=526786327 UNSPECIFIED value */ NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Type = (function() { @@ -331490,6 +332533,7 @@ values[valuesById[0] = "UNDEFINED_TYPE"] = 0; values[valuesById[69902869] = "HIERARCHY"] = 69902869; values[valuesById[413984270] = "NETWORK"] = 413984270; + values[valuesById[313484847] = "SYSTEM"] = 313484847; values[valuesById[526786327] = "UNSPECIFIED"] = 526786327; return values; })(); @@ -365619,6 +366663,7 @@ * Properties of a PathMatcher. * @memberof google.cloud.compute.v1 * @interface IPathMatcher + * @property {google.cloud.compute.v1.ICustomErrorResponsePolicy|null} [defaultCustomErrorResponsePolicy] PathMatcher defaultCustomErrorResponsePolicy * @property {google.cloud.compute.v1.IHttpRouteAction|null} [defaultRouteAction] PathMatcher defaultRouteAction * @property {string|null} [defaultService] PathMatcher defaultService * @property {google.cloud.compute.v1.IHttpRedirectAction|null} [defaultUrlRedirect] PathMatcher defaultUrlRedirect @@ -365646,6 +366691,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * PathMatcher defaultCustomErrorResponsePolicy. + * @member {google.cloud.compute.v1.ICustomErrorResponsePolicy|null|undefined} defaultCustomErrorResponsePolicy + * @memberof google.cloud.compute.v1.PathMatcher + * @instance + */ + PathMatcher.prototype.defaultCustomErrorResponsePolicy = null; + /** * PathMatcher defaultRouteAction. * @member {google.cloud.compute.v1.IHttpRouteAction|null|undefined} defaultRouteAction @@ -365713,6 +366766,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * PathMatcher _defaultCustomErrorResponsePolicy. + * @member {"defaultCustomErrorResponsePolicy"|undefined} _defaultCustomErrorResponsePolicy + * @memberof google.cloud.compute.v1.PathMatcher + * @instance + */ + Object.defineProperty(PathMatcher.prototype, "_defaultCustomErrorResponsePolicy", { + get: $util.oneOfGetter($oneOfFields = ["defaultCustomErrorResponsePolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * PathMatcher _defaultRouteAction. * @member {"defaultRouteAction"|undefined} _defaultRouteAction @@ -365805,6 +366869,8 @@ writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.defaultCustomErrorResponsePolicy != null && Object.hasOwnProperty.call(message, "defaultCustomErrorResponsePolicy")) + $root.google.cloud.compute.v1.CustomErrorResponsePolicy.encode(message.defaultCustomErrorResponsePolicy, writer.uint32(/* id 81266089, wireType 2 =*/650128714).fork()).ldelim(); if (message.pathRules != null && message.pathRules.length) for (var i = 0; i < message.pathRules.length; ++i) $root.google.cloud.compute.v1.PathRule.encode(message.pathRules[i], writer.uint32(/* id 104439901, wireType 2 =*/835519210).fork()).ldelim(); @@ -365855,6 +366921,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 81266089: { + message.defaultCustomErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.decode(reader, reader.uint32()); + break; + } case 378919466: { message.defaultRouteAction = $root.google.cloud.compute.v1.HttpRouteAction.decode(reader, reader.uint32()); break; @@ -365927,6 +366997,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.defaultCustomErrorResponsePolicy != null && message.hasOwnProperty("defaultCustomErrorResponsePolicy")) { + properties._defaultCustomErrorResponsePolicy = 1; + { + var error = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.verify(message.defaultCustomErrorResponsePolicy); + if (error) + return "defaultCustomErrorResponsePolicy." + error; + } + } if (message.defaultRouteAction != null && message.hasOwnProperty("defaultRouteAction")) { properties._defaultRouteAction = 1; { @@ -365999,6 +367077,11 @@ if (object instanceof $root.google.cloud.compute.v1.PathMatcher) return object; var message = new $root.google.cloud.compute.v1.PathMatcher(); + if (object.defaultCustomErrorResponsePolicy != null) { + if (typeof object.defaultCustomErrorResponsePolicy !== "object") + throw TypeError(".google.cloud.compute.v1.PathMatcher.defaultCustomErrorResponsePolicy: object expected"); + message.defaultCustomErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.fromObject(object.defaultCustomErrorResponsePolicy); + } if (object.defaultRouteAction != null) { if (typeof object.defaultRouteAction !== "object") throw TypeError(".google.cloud.compute.v1.PathMatcher.defaultRouteAction: object expected"); @@ -366065,6 +367148,11 @@ if (options.oneofs) object._name = "name"; } + if (message.defaultCustomErrorResponsePolicy != null && message.hasOwnProperty("defaultCustomErrorResponsePolicy")) { + object.defaultCustomErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.toObject(message.defaultCustomErrorResponsePolicy, options); + if (options.oneofs) + object._defaultCustomErrorResponsePolicy = "defaultCustomErrorResponsePolicy"; + } if (message.pathRules && message.pathRules.length) { object.pathRules = []; for (var j = 0; j < message.pathRules.length; ++j) @@ -366138,6 +367226,7 @@ * Properties of a PathRule. * @memberof google.cloud.compute.v1 * @interface IPathRule + * @property {google.cloud.compute.v1.ICustomErrorResponsePolicy|null} [customErrorResponsePolicy] PathRule customErrorResponsePolicy * @property {Array.|null} [paths] PathRule paths * @property {google.cloud.compute.v1.IHttpRouteAction|null} [routeAction] PathRule routeAction * @property {string|null} [service] PathRule service @@ -366160,6 +367249,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * PathRule customErrorResponsePolicy. + * @member {google.cloud.compute.v1.ICustomErrorResponsePolicy|null|undefined} customErrorResponsePolicy + * @memberof google.cloud.compute.v1.PathRule + * @instance + */ + PathRule.prototype.customErrorResponsePolicy = null; + /** * PathRule paths. * @member {Array.} paths @@ -366195,6 +367292,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * PathRule _customErrorResponsePolicy. + * @member {"customErrorResponsePolicy"|undefined} _customErrorResponsePolicy + * @memberof google.cloud.compute.v1.PathRule + * @instance + */ + Object.defineProperty(PathRule.prototype, "_customErrorResponsePolicy", { + get: $util.oneOfGetter($oneOfFields = ["customErrorResponsePolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * PathRule _routeAction. * @member {"routeAction"|undefined} _routeAction @@ -366255,6 +367363,8 @@ if (message.paths != null && message.paths.length) for (var i = 0; i < message.paths.length; ++i) writer.uint32(/* id 106438894, wireType 2 =*/851511154).string(message.paths[i]); + if (message.customErrorResponsePolicy != null && Object.hasOwnProperty.call(message, "customErrorResponsePolicy")) + $root.google.cloud.compute.v1.CustomErrorResponsePolicy.encode(message.customErrorResponsePolicy, writer.uint32(/* id 202816619, wireType 2 =*/1622532954).fork()).ldelim(); if (message.service != null && Object.hasOwnProperty.call(message, "service")) writer.uint32(/* id 373540533, wireType 2 =*/2988324266).string(message.service); if (message.urlRedirect != null && Object.hasOwnProperty.call(message, "urlRedirect")) @@ -366295,6 +367405,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 202816619: { + message.customErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.decode(reader, reader.uint32()); + break; + } case 106438894: { if (!(message.paths && message.paths.length)) message.paths = []; @@ -366349,6 +367463,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.customErrorResponsePolicy != null && message.hasOwnProperty("customErrorResponsePolicy")) { + properties._customErrorResponsePolicy = 1; + { + var error = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.verify(message.customErrorResponsePolicy); + if (error) + return "customErrorResponsePolicy." + error; + } + } if (message.paths != null && message.hasOwnProperty("paths")) { if (!Array.isArray(message.paths)) return "paths: array expected"; @@ -366392,6 +367514,11 @@ if (object instanceof $root.google.cloud.compute.v1.PathRule) return object; var message = new $root.google.cloud.compute.v1.PathRule(); + if (object.customErrorResponsePolicy != null) { + if (typeof object.customErrorResponsePolicy !== "object") + throw TypeError(".google.cloud.compute.v1.PathRule.customErrorResponsePolicy: object expected"); + message.customErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.fromObject(object.customErrorResponsePolicy); + } if (object.paths) { if (!Array.isArray(object.paths)) throw TypeError(".google.cloud.compute.v1.PathRule.paths: array expected"); @@ -366434,6 +367561,11 @@ for (var j = 0; j < message.paths.length; ++j) object.paths[j] = message.paths[j]; } + if (message.customErrorResponsePolicy != null && message.hasOwnProperty("customErrorResponsePolicy")) { + object.customErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.toObject(message.customErrorResponsePolicy, options); + if (options.oneofs) + object._customErrorResponsePolicy = "customErrorResponsePolicy"; + } if (message.service != null && message.hasOwnProperty("service")) { object.service = message.service; if (options.oneofs) @@ -367468,7 +368600,6 @@ * @property {Array.|null} [bindings] Policy bindings * @property {string|null} [etag] Policy etag * @property {boolean|null} [iamOwned] Policy iamOwned - * @property {Array.|null} [rules] Policy rules * @property {number|null} [version] Policy version */ @@ -367483,7 +368614,6 @@ function Policy(properties) { this.auditConfigs = []; this.bindings = []; - this.rules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -367522,14 +368652,6 @@ */ Policy.prototype.iamOwned = null; - /** - * Policy rules. - * @member {Array.} rules - * @memberof google.cloud.compute.v1.Policy - * @instance - */ - Policy.prototype.rules = $util.emptyArray; - /** * Policy version. * @member {number|null|undefined} version @@ -367600,9 +368722,6 @@ writer = $Writer.create(); if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.cloud.compute.v1.Rule.encode(message.rules[i], writer.uint32(/* id 108873975, wireType 2 =*/870991802).fork()).ldelim(); if (message.auditConfigs != null && message.auditConfigs.length) for (var i = 0; i < message.auditConfigs.length; ++i) $root.google.cloud.compute.v1.AuditConfig.encode(message.auditConfigs[i], writer.uint32(/* id 328080653, wireType 2 =*/2624645226).fork()).ldelim(); @@ -367667,12 +368786,6 @@ message.iamOwned = reader.bool(); break; } - case 108873975: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.cloud.compute.v1.Rule.decode(reader, reader.uint32())); - break; - } case 351608024: { message.version = reader.int32(); break; @@ -367741,15 +368854,6 @@ if (typeof message.iamOwned !== "boolean") return "iamOwned: boolean 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.cloud.compute.v1.Rule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } if (message.version != null && message.hasOwnProperty("version")) { properties._version = 1; if (!$util.isInteger(message.version)) @@ -367794,16 +368898,6 @@ message.etag = String(object.etag); if (object.iamOwned != null) message.iamOwned = Boolean(object.iamOwned); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.cloud.compute.v1.Policy.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.cloud.compute.v1.Policy.rules: object expected"); - message.rules[i] = $root.google.cloud.compute.v1.Rule.fromObject(object.rules[i]); - } - } if (object.version != null) message.version = object.version | 0; return message; @@ -367823,7 +368917,6 @@ options = {}; var object = {}; if (options.arrays || options.defaults) { - object.rules = []; object.auditConfigs = []; object.bindings = []; } @@ -367832,11 +368925,6 @@ if (options.oneofs) object._etag = "etag"; } - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.cloud.compute.v1.Rule.toObject(message.rules[j], options); - } if (message.auditConfigs && message.auditConfigs.length) { object.auditConfigs = []; for (var j = 0; j < message.auditConfigs.length; ++j) @@ -405155,6 +406243,7 @@ * @memberof google.cloud.compute.v1 * @interface IResourceStatus * @property {string|null} [physicalHost] ResourceStatus physicalHost + * @property {google.cloud.compute.v1.IResourceStatusScheduling|null} [scheduling] ResourceStatus scheduling * @property {google.cloud.compute.v1.IUpcomingMaintenance|null} [upcomingMaintenance] ResourceStatus upcomingMaintenance */ @@ -405181,6 +406270,14 @@ */ ResourceStatus.prototype.physicalHost = null; + /** + * ResourceStatus scheduling. + * @member {google.cloud.compute.v1.IResourceStatusScheduling|null|undefined} scheduling + * @memberof google.cloud.compute.v1.ResourceStatus + * @instance + */ + ResourceStatus.prototype.scheduling = null; + /** * ResourceStatus upcomingMaintenance. * @member {google.cloud.compute.v1.IUpcomingMaintenance|null|undefined} upcomingMaintenance @@ -405203,6 +406300,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ResourceStatus _scheduling. + * @member {"scheduling"|undefined} _scheduling + * @memberof google.cloud.compute.v1.ResourceStatus + * @instance + */ + Object.defineProperty(ResourceStatus.prototype, "_scheduling", { + get: $util.oneOfGetter($oneOfFields = ["scheduling"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * ResourceStatus _upcomingMaintenance. * @member {"upcomingMaintenance"|undefined} _upcomingMaintenance @@ -405240,6 +406348,8 @@ writer = $Writer.create(); if (message.upcomingMaintenance != null && Object.hasOwnProperty.call(message, "upcomingMaintenance")) $root.google.cloud.compute.v1.UpcomingMaintenance.encode(message.upcomingMaintenance, writer.uint32(/* id 227348592, wireType 2 =*/1818788738).fork()).ldelim(); + if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) + $root.google.cloud.compute.v1.ResourceStatusScheduling.encode(message.scheduling, writer.uint32(/* id 386688404, wireType 2 =*/3093507234).fork()).ldelim(); if (message.physicalHost != null && Object.hasOwnProperty.call(message, "physicalHost")) writer.uint32(/* id 464370704, wireType 2 =*/3714965634).string(message.physicalHost); return writer; @@ -405280,6 +406390,10 @@ message.physicalHost = reader.string(); break; } + case 386688404: { + message.scheduling = $root.google.cloud.compute.v1.ResourceStatusScheduling.decode(reader, reader.uint32()); + break; + } case 227348592: { message.upcomingMaintenance = $root.google.cloud.compute.v1.UpcomingMaintenance.decode(reader, reader.uint32()); break; @@ -405325,6 +406439,14 @@ if (!$util.isString(message.physicalHost)) return "physicalHost: string expected"; } + if (message.scheduling != null && message.hasOwnProperty("scheduling")) { + properties._scheduling = 1; + { + var error = $root.google.cloud.compute.v1.ResourceStatusScheduling.verify(message.scheduling); + if (error) + return "scheduling." + error; + } + } if (message.upcomingMaintenance != null && message.hasOwnProperty("upcomingMaintenance")) { properties._upcomingMaintenance = 1; { @@ -405350,6 +406472,11 @@ var message = new $root.google.cloud.compute.v1.ResourceStatus(); if (object.physicalHost != null) message.physicalHost = String(object.physicalHost); + if (object.scheduling != null) { + if (typeof object.scheduling !== "object") + throw TypeError(".google.cloud.compute.v1.ResourceStatus.scheduling: object expected"); + message.scheduling = $root.google.cloud.compute.v1.ResourceStatusScheduling.fromObject(object.scheduling); + } if (object.upcomingMaintenance != null) { if (typeof object.upcomingMaintenance !== "object") throw TypeError(".google.cloud.compute.v1.ResourceStatus.upcomingMaintenance: object expected"); @@ -405376,6 +406503,11 @@ if (options.oneofs) object._upcomingMaintenance = "upcomingMaintenance"; } + if (message.scheduling != null && message.hasOwnProperty("scheduling")) { + object.scheduling = $root.google.cloud.compute.v1.ResourceStatusScheduling.toObject(message.scheduling, options); + if (options.oneofs) + object._scheduling = "scheduling"; + } if (message.physicalHost != null && message.hasOwnProperty("physicalHost")) { object.physicalHost = message.physicalHost; if (options.oneofs) @@ -405413,6 +406545,227 @@ return ResourceStatus; })(); + v1.ResourceStatusScheduling = (function() { + + /** + * Properties of a ResourceStatusScheduling. + * @memberof google.cloud.compute.v1 + * @interface IResourceStatusScheduling + * @property {number|null} [availabilityDomain] ResourceStatusScheduling availabilityDomain + */ + + /** + * Constructs a new ResourceStatusScheduling. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ResourceStatusScheduling. + * @implements IResourceStatusScheduling + * @constructor + * @param {google.cloud.compute.v1.IResourceStatusScheduling=} [properties] Properties to set + */ + function ResourceStatusScheduling(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceStatusScheduling availabilityDomain. + * @member {number|null|undefined} availabilityDomain + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @instance + */ + ResourceStatusScheduling.prototype.availabilityDomain = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResourceStatusScheduling _availabilityDomain. + * @member {"availabilityDomain"|undefined} _availabilityDomain + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @instance + */ + Object.defineProperty(ResourceStatusScheduling.prototype, "_availabilityDomain", { + get: $util.oneOfGetter($oneOfFields = ["availabilityDomain"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResourceStatusScheduling instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {google.cloud.compute.v1.IResourceStatusScheduling=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ResourceStatusScheduling} ResourceStatusScheduling instance + */ + ResourceStatusScheduling.create = function create(properties) { + return new ResourceStatusScheduling(properties); + }; + + /** + * Encodes the specified ResourceStatusScheduling message. Does not implicitly {@link google.cloud.compute.v1.ResourceStatusScheduling.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {google.cloud.compute.v1.IResourceStatusScheduling} message ResourceStatusScheduling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceStatusScheduling.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.availabilityDomain != null && Object.hasOwnProperty.call(message, "availabilityDomain")) + writer.uint32(/* id 252514344, wireType 0 =*/2020114752).int32(message.availabilityDomain); + return writer; + }; + + /** + * Encodes the specified ResourceStatusScheduling message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ResourceStatusScheduling.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {google.cloud.compute.v1.IResourceStatusScheduling} message ResourceStatusScheduling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceStatusScheduling.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceStatusScheduling message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ResourceStatusScheduling} ResourceStatusScheduling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceStatusScheduling.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ResourceStatusScheduling(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 252514344: { + message.availabilityDomain = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceStatusScheduling message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ResourceStatusScheduling} ResourceStatusScheduling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceStatusScheduling.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceStatusScheduling message. + * @function verify + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceStatusScheduling.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.availabilityDomain != null && message.hasOwnProperty("availabilityDomain")) { + properties._availabilityDomain = 1; + if (!$util.isInteger(message.availabilityDomain)) + return "availabilityDomain: integer expected"; + } + return null; + }; + + /** + * Creates a ResourceStatusScheduling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ResourceStatusScheduling} ResourceStatusScheduling + */ + ResourceStatusScheduling.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ResourceStatusScheduling) + return object; + var message = new $root.google.cloud.compute.v1.ResourceStatusScheduling(); + if (object.availabilityDomain != null) + message.availabilityDomain = object.availabilityDomain | 0; + return message; + }; + + /** + * Creates a plain object from a ResourceStatusScheduling message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {google.cloud.compute.v1.ResourceStatusScheduling} message ResourceStatusScheduling + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceStatusScheduling.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.availabilityDomain != null && message.hasOwnProperty("availabilityDomain")) { + object.availabilityDomain = message.availabilityDomain; + if (options.oneofs) + object._availabilityDomain = "availabilityDomain"; + } + return object; + }; + + /** + * Converts this ResourceStatusScheduling to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @instance + * @returns {Object.} JSON object + */ + ResourceStatusScheduling.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceStatusScheduling + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ResourceStatusScheduling + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceStatusScheduling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ResourceStatusScheduling"; + }; + + return ResourceStatusScheduling; + })(); + v1.ResumeInstanceRequest = (function() { /** @@ -417847,496 +419200,6 @@ return RoutersScopedList; })(); - v1.Rule = (function() { - - /** - * Properties of a Rule. - * @memberof google.cloud.compute.v1 - * @interface IRule - * @property {string|null} [action] Rule action - * @property {Array.|null} [conditions] Rule conditions - * @property {string|null} [description] Rule description - * @property {Array.|null} [ins] Rule ins - * @property {Array.|null} [logConfigs] Rule logConfigs - * @property {Array.|null} [notIns] Rule notIns - * @property {Array.|null} [permissions] Rule permissions - */ - - /** - * Constructs a new Rule. - * @memberof google.cloud.compute.v1 - * @classdesc Represents a Rule. - * @implements IRule - * @constructor - * @param {google.cloud.compute.v1.IRule=} [properties] Properties to set - */ - function Rule(properties) { - this.conditions = []; - this.ins = []; - this.logConfigs = []; - this.notIns = []; - this.permissions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Rule action. - * @member {string|null|undefined} action - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Rule.prototype.action = null; - - /** - * Rule conditions. - * @member {Array.} conditions - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Rule.prototype.conditions = $util.emptyArray; - - /** - * Rule description. - * @member {string|null|undefined} description - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Rule.prototype.description = null; - - /** - * Rule ins. - * @member {Array.} ins - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Rule.prototype.ins = $util.emptyArray; - - /** - * Rule logConfigs. - * @member {Array.} logConfigs - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Rule.prototype.logConfigs = $util.emptyArray; - - /** - * Rule notIns. - * @member {Array.} notIns - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Rule.prototype.notIns = $util.emptyArray; - - /** - * Rule permissions. - * @member {Array.} permissions - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Rule.prototype.permissions = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Rule _action. - * @member {"action"|undefined} _action - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Object.defineProperty(Rule.prototype, "_action", { - get: $util.oneOfGetter($oneOfFields = ["action"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Rule _description. - * @member {"description"|undefined} _description - * @memberof google.cloud.compute.v1.Rule - * @instance - */ - Object.defineProperty(Rule.prototype, "_description", { - get: $util.oneOfGetter($oneOfFields = ["description"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Rule instance using the specified properties. - * @function create - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {google.cloud.compute.v1.IRule=} [properties] Properties to set - * @returns {google.cloud.compute.v1.Rule} Rule instance - */ - Rule.create = function create(properties) { - return new Rule(properties); - }; - - /** - * Encodes the specified Rule message. Does not implicitly {@link google.cloud.compute.v1.Rule.verify|verify} messages. - * @function encode - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {google.cloud.compute.v1.IRule} message Rule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Rule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ins != null && message.ins.length) - for (var i = 0; i < message.ins.length; ++i) - writer.uint32(/* id 104430, wireType 2 =*/835442).string(message.ins[i]); - if (message.permissions != null && message.permissions.length) - for (var i = 0; i < message.permissions.length; ++i) - writer.uint32(/* id 59962500, wireType 2 =*/479700002).string(message.permissions[i]); - if (message.conditions != null && message.conditions.length) - for (var i = 0; i < message.conditions.length; ++i) - $root.google.cloud.compute.v1.Condition.encode(message.conditions[i], writer.uint32(/* id 142882488, wireType 2 =*/1143059906).fork()).ldelim(); - if (message.logConfigs != null && message.logConfigs.length) - for (var i = 0; i < message.logConfigs.length; ++i) - $root.google.cloud.compute.v1.LogConfig.encode(message.logConfigs[i], writer.uint32(/* id 152873846, wireType 2 =*/1222990770).fork()).ldelim(); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 187661878, wireType 2 =*/1501295026).string(message.action); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); - if (message.notIns != null && message.notIns.length) - for (var i = 0; i < message.notIns.length; ++i) - writer.uint32(/* id 518443138, wireType 2 =*/4147545106).string(message.notIns[i]); - return writer; - }; - - /** - * Encodes the specified Rule message, length delimited. Does not implicitly {@link google.cloud.compute.v1.Rule.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {google.cloud.compute.v1.IRule} message Rule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Rule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Rule message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.Rule} Rule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Rule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.Rule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 187661878: { - message.action = reader.string(); - break; - } - case 142882488: { - if (!(message.conditions && message.conditions.length)) - message.conditions = []; - message.conditions.push($root.google.cloud.compute.v1.Condition.decode(reader, reader.uint32())); - break; - } - case 422937596: { - message.description = reader.string(); - break; - } - case 104430: { - if (!(message.ins && message.ins.length)) - message.ins = []; - message.ins.push(reader.string()); - break; - } - case 152873846: { - if (!(message.logConfigs && message.logConfigs.length)) - message.logConfigs = []; - message.logConfigs.push($root.google.cloud.compute.v1.LogConfig.decode(reader, reader.uint32())); - break; - } - case 518443138: { - if (!(message.notIns && message.notIns.length)) - message.notIns = []; - message.notIns.push(reader.string()); - break; - } - case 59962500: { - if (!(message.permissions && message.permissions.length)) - message.permissions = []; - message.permissions.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Rule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.Rule} Rule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Rule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Rule message. - * @function verify - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Rule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.action != null && message.hasOwnProperty("action")) { - properties._action = 1; - if (!$util.isString(message.action)) - return "action: string expected"; - } - if (message.conditions != null && message.hasOwnProperty("conditions")) { - if (!Array.isArray(message.conditions)) - return "conditions: array expected"; - for (var i = 0; i < message.conditions.length; ++i) { - var error = $root.google.cloud.compute.v1.Condition.verify(message.conditions[i]); - if (error) - return "conditions." + error; - } - } - if (message.description != null && message.hasOwnProperty("description")) { - properties._description = 1; - if (!$util.isString(message.description)) - return "description: string expected"; - } - if (message.ins != null && message.hasOwnProperty("ins")) { - if (!Array.isArray(message.ins)) - return "ins: array expected"; - for (var i = 0; i < message.ins.length; ++i) - if (!$util.isString(message.ins[i])) - return "ins: string[] expected"; - } - if (message.logConfigs != null && message.hasOwnProperty("logConfigs")) { - if (!Array.isArray(message.logConfigs)) - return "logConfigs: array expected"; - for (var i = 0; i < message.logConfigs.length; ++i) { - var error = $root.google.cloud.compute.v1.LogConfig.verify(message.logConfigs[i]); - if (error) - return "logConfigs." + error; - } - } - if (message.notIns != null && message.hasOwnProperty("notIns")) { - if (!Array.isArray(message.notIns)) - return "notIns: array expected"; - for (var i = 0; i < message.notIns.length; ++i) - if (!$util.isString(message.notIns[i])) - return "notIns: string[] expected"; - } - if (message.permissions != null && message.hasOwnProperty("permissions")) { - if (!Array.isArray(message.permissions)) - return "permissions: array expected"; - for (var i = 0; i < message.permissions.length; ++i) - if (!$util.isString(message.permissions[i])) - return "permissions: string[] expected"; - } - return null; - }; - - /** - * Creates a Rule message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.Rule} Rule - */ - Rule.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.Rule) - return object; - var message = new $root.google.cloud.compute.v1.Rule(); - if (object.action != null) - message.action = String(object.action); - if (object.conditions) { - if (!Array.isArray(object.conditions)) - throw TypeError(".google.cloud.compute.v1.Rule.conditions: array expected"); - message.conditions = []; - for (var i = 0; i < object.conditions.length; ++i) { - if (typeof object.conditions[i] !== "object") - throw TypeError(".google.cloud.compute.v1.Rule.conditions: object expected"); - message.conditions[i] = $root.google.cloud.compute.v1.Condition.fromObject(object.conditions[i]); - } - } - if (object.description != null) - message.description = String(object.description); - if (object.ins) { - if (!Array.isArray(object.ins)) - throw TypeError(".google.cloud.compute.v1.Rule.ins: array expected"); - message.ins = []; - for (var i = 0; i < object.ins.length; ++i) - message.ins[i] = String(object.ins[i]); - } - if (object.logConfigs) { - if (!Array.isArray(object.logConfigs)) - throw TypeError(".google.cloud.compute.v1.Rule.logConfigs: array expected"); - message.logConfigs = []; - for (var i = 0; i < object.logConfigs.length; ++i) { - if (typeof object.logConfigs[i] !== "object") - throw TypeError(".google.cloud.compute.v1.Rule.logConfigs: object expected"); - message.logConfigs[i] = $root.google.cloud.compute.v1.LogConfig.fromObject(object.logConfigs[i]); - } - } - if (object.notIns) { - if (!Array.isArray(object.notIns)) - throw TypeError(".google.cloud.compute.v1.Rule.notIns: array expected"); - message.notIns = []; - for (var i = 0; i < object.notIns.length; ++i) - message.notIns[i] = String(object.notIns[i]); - } - if (object.permissions) { - if (!Array.isArray(object.permissions)) - throw TypeError(".google.cloud.compute.v1.Rule.permissions: array expected"); - message.permissions = []; - for (var i = 0; i < object.permissions.length; ++i) - message.permissions[i] = String(object.permissions[i]); - } - return message; - }; - - /** - * Creates a plain object from a Rule message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {google.cloud.compute.v1.Rule} message Rule - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Rule.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.ins = []; - object.permissions = []; - object.conditions = []; - object.logConfigs = []; - object.notIns = []; - } - if (message.ins && message.ins.length) { - object.ins = []; - for (var j = 0; j < message.ins.length; ++j) - object.ins[j] = message.ins[j]; - } - if (message.permissions && message.permissions.length) { - object.permissions = []; - for (var j = 0; j < message.permissions.length; ++j) - object.permissions[j] = message.permissions[j]; - } - if (message.conditions && message.conditions.length) { - object.conditions = []; - for (var j = 0; j < message.conditions.length; ++j) - object.conditions[j] = $root.google.cloud.compute.v1.Condition.toObject(message.conditions[j], options); - } - if (message.logConfigs && message.logConfigs.length) { - object.logConfigs = []; - for (var j = 0; j < message.logConfigs.length; ++j) - object.logConfigs[j] = $root.google.cloud.compute.v1.LogConfig.toObject(message.logConfigs[j], options); - } - if (message.action != null && message.hasOwnProperty("action")) { - object.action = message.action; - if (options.oneofs) - object._action = "action"; - } - if (message.description != null && message.hasOwnProperty("description")) { - object.description = message.description; - if (options.oneofs) - object._description = "description"; - } - if (message.notIns && message.notIns.length) { - object.notIns = []; - for (var j = 0; j < message.notIns.length; ++j) - object.notIns[j] = message.notIns[j]; - } - return object; - }; - - /** - * Converts this Rule to JSON. - * @function toJSON - * @memberof google.cloud.compute.v1.Rule - * @instance - * @returns {Object.} JSON object - */ - Rule.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Rule - * @function getTypeUrl - * @memberof google.cloud.compute.v1.Rule - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Rule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.compute.v1.Rule"; - }; - - /** - * Action enum. - * @name google.cloud.compute.v1.Rule.Action - * @enum {number} - * @property {number} UNDEFINED_ACTION=0 UNDEFINED_ACTION value - * @property {number} ALLOW=62368553 ALLOW value - * @property {number} ALLOW_WITH_LOG=76034177 ALLOW_WITH_LOG value - * @property {number} DENY=2094604 DENY value - * @property {number} DENY_WITH_LOG=351433982 DENY_WITH_LOG value - * @property {number} LOG=75556 LOG value - * @property {number} NO_ACTION=260643444 NO_ACTION value - */ - Rule.Action = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_ACTION"] = 0; - values[valuesById[62368553] = "ALLOW"] = 62368553; - values[valuesById[76034177] = "ALLOW_WITH_LOG"] = 76034177; - values[valuesById[2094604] = "DENY"] = 2094604; - values[valuesById[351433982] = "DENY_WITH_LOG"] = 351433982; - values[valuesById[75556] = "LOG"] = 75556; - values[valuesById[260643444] = "NO_ACTION"] = 260643444; - return values; - })(); - - return Rule; - })(); - v1.SSLHealthCheck = (function() { /** @@ -420413,14 +421276,18 @@ * @memberof google.cloud.compute.v1 * @interface IScheduling * @property {boolean|null} [automaticRestart] Scheduling automaticRestart + * @property {number|null} [availabilityDomain] Scheduling availabilityDomain * @property {string|null} [instanceTerminationAction] Scheduling instanceTerminationAction * @property {google.cloud.compute.v1.IDuration|null} [localSsdRecoveryTimeout] Scheduling localSsdRecoveryTimeout * @property {string|null} [locationHint] Scheduling locationHint + * @property {google.cloud.compute.v1.IDuration|null} [maxRunDuration] Scheduling maxRunDuration * @property {number|null} [minNodeCpus] Scheduling minNodeCpus * @property {Array.|null} [nodeAffinities] Scheduling nodeAffinities * @property {string|null} [onHostMaintenance] Scheduling onHostMaintenance + * @property {google.cloud.compute.v1.ISchedulingOnInstanceStopAction|null} [onInstanceStopAction] Scheduling onInstanceStopAction * @property {boolean|null} [preemptible] Scheduling preemptible * @property {string|null} [provisioningModel] Scheduling provisioningModel + * @property {string|null} [terminationTime] Scheduling terminationTime */ /** @@ -420447,6 +421314,14 @@ */ Scheduling.prototype.automaticRestart = null; + /** + * Scheduling availabilityDomain. + * @member {number|null|undefined} availabilityDomain + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Scheduling.prototype.availabilityDomain = null; + /** * Scheduling instanceTerminationAction. * @member {string|null|undefined} instanceTerminationAction @@ -420471,6 +421346,14 @@ */ Scheduling.prototype.locationHint = null; + /** + * Scheduling maxRunDuration. + * @member {google.cloud.compute.v1.IDuration|null|undefined} maxRunDuration + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Scheduling.prototype.maxRunDuration = null; + /** * Scheduling minNodeCpus. * @member {number|null|undefined} minNodeCpus @@ -420495,6 +421378,14 @@ */ Scheduling.prototype.onHostMaintenance = null; + /** + * Scheduling onInstanceStopAction. + * @member {google.cloud.compute.v1.ISchedulingOnInstanceStopAction|null|undefined} onInstanceStopAction + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Scheduling.prototype.onInstanceStopAction = null; + /** * Scheduling preemptible. * @member {boolean|null|undefined} preemptible @@ -420511,6 +421402,14 @@ */ Scheduling.prototype.provisioningModel = null; + /** + * Scheduling terminationTime. + * @member {string|null|undefined} terminationTime + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Scheduling.prototype.terminationTime = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -420525,6 +421424,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Scheduling _availabilityDomain. + * @member {"availabilityDomain"|undefined} _availabilityDomain + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Object.defineProperty(Scheduling.prototype, "_availabilityDomain", { + get: $util.oneOfGetter($oneOfFields = ["availabilityDomain"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Scheduling _instanceTerminationAction. * @member {"instanceTerminationAction"|undefined} _instanceTerminationAction @@ -420558,6 +421468,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Scheduling _maxRunDuration. + * @member {"maxRunDuration"|undefined} _maxRunDuration + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Object.defineProperty(Scheduling.prototype, "_maxRunDuration", { + get: $util.oneOfGetter($oneOfFields = ["maxRunDuration"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Scheduling _minNodeCpus. * @member {"minNodeCpus"|undefined} _minNodeCpus @@ -420580,6 +421501,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Scheduling _onInstanceStopAction. + * @member {"onInstanceStopAction"|undefined} _onInstanceStopAction + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Object.defineProperty(Scheduling.prototype, "_onInstanceStopAction", { + get: $util.oneOfGetter($oneOfFields = ["onInstanceStopAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Scheduling _preemptible. * @member {"preemptible"|undefined} _preemptible @@ -420602,6 +421534,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Scheduling _terminationTime. + * @member {"terminationTime"|undefined} _terminationTime + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Object.defineProperty(Scheduling.prototype, "_terminationTime", { + get: $util.oneOfGetter($oneOfFields = ["terminationTime"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Scheduling instance using the specified properties. * @function create @@ -420632,6 +421575,8 @@ writer.uint32(/* id 64616796, wireType 2 =*/516934370).string(message.onHostMaintenance); if (message.instanceTerminationAction != null && Object.hasOwnProperty.call(message, "instanceTerminationAction")) writer.uint32(/* id 107380667, wireType 2 =*/859045338).string(message.instanceTerminationAction); + if (message.availabilityDomain != null && Object.hasOwnProperty.call(message, "availabilityDomain")) + writer.uint32(/* id 252514344, wireType 0 =*/2020114752).int32(message.availabilityDomain); if (message.localSsdRecoveryTimeout != null && Object.hasOwnProperty.call(message, "localSsdRecoveryTimeout")) $root.google.cloud.compute.v1.Duration.encode(message.localSsdRecoveryTimeout, writer.uint32(/* id 268015590, wireType 2 =*/2144124722).fork()).ldelim(); if (message.minNodeCpus != null && Object.hasOwnProperty.call(message, "minNodeCpus")) @@ -420642,9 +421587,15 @@ writer.uint32(/* id 350519505, wireType 2 =*/2804156042).string(message.locationHint); if (message.automaticRestart != null && Object.hasOwnProperty.call(message, "automaticRestart")) writer.uint32(/* id 350821371, wireType 0 =*/2806570968).bool(message.automaticRestart); + if (message.terminationTime != null && Object.hasOwnProperty.call(message, "terminationTime")) + writer.uint32(/* id 428082984, wireType 2 =*/3424663874).string(message.terminationTime); + if (message.maxRunDuration != null && Object.hasOwnProperty.call(message, "maxRunDuration")) + $root.google.cloud.compute.v1.Duration.encode(message.maxRunDuration, writer.uint32(/* id 430839747, wireType 2 =*/3446717978).fork()).ldelim(); if (message.nodeAffinities != null && message.nodeAffinities.length) for (var i = 0; i < message.nodeAffinities.length; ++i) $root.google.cloud.compute.v1.SchedulingNodeAffinity.encode(message.nodeAffinities[i], writer.uint32(/* id 461799971, wireType 2 =*/3694399770).fork()).ldelim(); + if (message.onInstanceStopAction != null && Object.hasOwnProperty.call(message, "onInstanceStopAction")) + $root.google.cloud.compute.v1.SchedulingOnInstanceStopAction.encode(message.onInstanceStopAction, writer.uint32(/* id 529876681, wireType 2 =*/4239013450).fork()).ldelim(); return writer; }; @@ -420683,6 +421634,10 @@ message.automaticRestart = reader.bool(); break; } + case 252514344: { + message.availabilityDomain = reader.int32(); + break; + } case 107380667: { message.instanceTerminationAction = reader.string(); break; @@ -420695,6 +421650,10 @@ message.locationHint = reader.string(); break; } + case 430839747: { + message.maxRunDuration = $root.google.cloud.compute.v1.Duration.decode(reader, reader.uint32()); + break; + } case 317231675: { message.minNodeCpus = reader.int32(); break; @@ -420709,6 +421668,10 @@ message.onHostMaintenance = reader.string(); break; } + case 529876681: { + message.onInstanceStopAction = $root.google.cloud.compute.v1.SchedulingOnInstanceStopAction.decode(reader, reader.uint32()); + break; + } case 324203169: { message.preemptible = reader.bool(); break; @@ -420717,6 +421680,10 @@ message.provisioningModel = reader.string(); break; } + case 428082984: { + message.terminationTime = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -420758,6 +421725,11 @@ if (typeof message.automaticRestart !== "boolean") return "automaticRestart: boolean expected"; } + if (message.availabilityDomain != null && message.hasOwnProperty("availabilityDomain")) { + properties._availabilityDomain = 1; + if (!$util.isInteger(message.availabilityDomain)) + return "availabilityDomain: integer expected"; + } if (message.instanceTerminationAction != null && message.hasOwnProperty("instanceTerminationAction")) { properties._instanceTerminationAction = 1; if (!$util.isString(message.instanceTerminationAction)) @@ -420776,6 +421748,14 @@ if (!$util.isString(message.locationHint)) return "locationHint: string expected"; } + if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) { + properties._maxRunDuration = 1; + { + var error = $root.google.cloud.compute.v1.Duration.verify(message.maxRunDuration); + if (error) + return "maxRunDuration." + error; + } + } if (message.minNodeCpus != null && message.hasOwnProperty("minNodeCpus")) { properties._minNodeCpus = 1; if (!$util.isInteger(message.minNodeCpus)) @@ -420795,6 +421775,14 @@ if (!$util.isString(message.onHostMaintenance)) return "onHostMaintenance: string expected"; } + if (message.onInstanceStopAction != null && message.hasOwnProperty("onInstanceStopAction")) { + properties._onInstanceStopAction = 1; + { + var error = $root.google.cloud.compute.v1.SchedulingOnInstanceStopAction.verify(message.onInstanceStopAction); + if (error) + return "onInstanceStopAction." + error; + } + } if (message.preemptible != null && message.hasOwnProperty("preemptible")) { properties._preemptible = 1; if (typeof message.preemptible !== "boolean") @@ -420805,6 +421793,11 @@ if (!$util.isString(message.provisioningModel)) return "provisioningModel: string expected"; } + if (message.terminationTime != null && message.hasOwnProperty("terminationTime")) { + properties._terminationTime = 1; + if (!$util.isString(message.terminationTime)) + return "terminationTime: string expected"; + } return null; }; @@ -420822,6 +421815,8 @@ var message = new $root.google.cloud.compute.v1.Scheduling(); if (object.automaticRestart != null) message.automaticRestart = Boolean(object.automaticRestart); + if (object.availabilityDomain != null) + message.availabilityDomain = object.availabilityDomain | 0; if (object.instanceTerminationAction != null) message.instanceTerminationAction = String(object.instanceTerminationAction); if (object.localSsdRecoveryTimeout != null) { @@ -420831,6 +421826,11 @@ } if (object.locationHint != null) message.locationHint = String(object.locationHint); + if (object.maxRunDuration != null) { + if (typeof object.maxRunDuration !== "object") + throw TypeError(".google.cloud.compute.v1.Scheduling.maxRunDuration: object expected"); + message.maxRunDuration = $root.google.cloud.compute.v1.Duration.fromObject(object.maxRunDuration); + } if (object.minNodeCpus != null) message.minNodeCpus = object.minNodeCpus | 0; if (object.nodeAffinities) { @@ -420845,10 +421845,17 @@ } if (object.onHostMaintenance != null) message.onHostMaintenance = String(object.onHostMaintenance); + if (object.onInstanceStopAction != null) { + if (typeof object.onInstanceStopAction !== "object") + throw TypeError(".google.cloud.compute.v1.Scheduling.onInstanceStopAction: object expected"); + message.onInstanceStopAction = $root.google.cloud.compute.v1.SchedulingOnInstanceStopAction.fromObject(object.onInstanceStopAction); + } if (object.preemptible != null) message.preemptible = Boolean(object.preemptible); if (object.provisioningModel != null) message.provisioningModel = String(object.provisioningModel); + if (object.terminationTime != null) + message.terminationTime = String(object.terminationTime); return message; }; @@ -420882,6 +421889,11 @@ if (options.oneofs) object._instanceTerminationAction = "instanceTerminationAction"; } + if (message.availabilityDomain != null && message.hasOwnProperty("availabilityDomain")) { + object.availabilityDomain = message.availabilityDomain; + if (options.oneofs) + object._availabilityDomain = "availabilityDomain"; + } if (message.localSsdRecoveryTimeout != null && message.hasOwnProperty("localSsdRecoveryTimeout")) { object.localSsdRecoveryTimeout = $root.google.cloud.compute.v1.Duration.toObject(message.localSsdRecoveryTimeout, options); if (options.oneofs) @@ -420907,11 +421919,26 @@ if (options.oneofs) object._automaticRestart = "automaticRestart"; } + if (message.terminationTime != null && message.hasOwnProperty("terminationTime")) { + object.terminationTime = message.terminationTime; + if (options.oneofs) + object._terminationTime = "terminationTime"; + } + if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) { + object.maxRunDuration = $root.google.cloud.compute.v1.Duration.toObject(message.maxRunDuration, options); + if (options.oneofs) + object._maxRunDuration = "maxRunDuration"; + } if (message.nodeAffinities && message.nodeAffinities.length) { object.nodeAffinities = []; for (var j = 0; j < message.nodeAffinities.length; ++j) object.nodeAffinities[j] = $root.google.cloud.compute.v1.SchedulingNodeAffinity.toObject(message.nodeAffinities[j], options); } + if (message.onInstanceStopAction != null && message.hasOwnProperty("onInstanceStopAction")) { + object.onInstanceStopAction = $root.google.cloud.compute.v1.SchedulingOnInstanceStopAction.toObject(message.onInstanceStopAction, options); + if (options.oneofs) + object._onInstanceStopAction = "onInstanceStopAction"; + } return object; }; @@ -421311,6 +422338,227 @@ return SchedulingNodeAffinity; })(); + v1.SchedulingOnInstanceStopAction = (function() { + + /** + * Properties of a SchedulingOnInstanceStopAction. + * @memberof google.cloud.compute.v1 + * @interface ISchedulingOnInstanceStopAction + * @property {boolean|null} [discardLocalSsd] SchedulingOnInstanceStopAction discardLocalSsd + */ + + /** + * Constructs a new SchedulingOnInstanceStopAction. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SchedulingOnInstanceStopAction. + * @implements ISchedulingOnInstanceStopAction + * @constructor + * @param {google.cloud.compute.v1.ISchedulingOnInstanceStopAction=} [properties] Properties to set + */ + function SchedulingOnInstanceStopAction(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchedulingOnInstanceStopAction discardLocalSsd. + * @member {boolean|null|undefined} discardLocalSsd + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @instance + */ + SchedulingOnInstanceStopAction.prototype.discardLocalSsd = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SchedulingOnInstanceStopAction _discardLocalSsd. + * @member {"discardLocalSsd"|undefined} _discardLocalSsd + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @instance + */ + Object.defineProperty(SchedulingOnInstanceStopAction.prototype, "_discardLocalSsd", { + get: $util.oneOfGetter($oneOfFields = ["discardLocalSsd"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SchedulingOnInstanceStopAction instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {google.cloud.compute.v1.ISchedulingOnInstanceStopAction=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SchedulingOnInstanceStopAction} SchedulingOnInstanceStopAction instance + */ + SchedulingOnInstanceStopAction.create = function create(properties) { + return new SchedulingOnInstanceStopAction(properties); + }; + + /** + * Encodes the specified SchedulingOnInstanceStopAction message. Does not implicitly {@link google.cloud.compute.v1.SchedulingOnInstanceStopAction.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {google.cloud.compute.v1.ISchedulingOnInstanceStopAction} message SchedulingOnInstanceStopAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchedulingOnInstanceStopAction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.discardLocalSsd != null && Object.hasOwnProperty.call(message, "discardLocalSsd")) + writer.uint32(/* id 319517903, wireType 0 =*/2556143224).bool(message.discardLocalSsd); + return writer; + }; + + /** + * Encodes the specified SchedulingOnInstanceStopAction message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SchedulingOnInstanceStopAction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {google.cloud.compute.v1.ISchedulingOnInstanceStopAction} message SchedulingOnInstanceStopAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchedulingOnInstanceStopAction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SchedulingOnInstanceStopAction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SchedulingOnInstanceStopAction} SchedulingOnInstanceStopAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchedulingOnInstanceStopAction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SchedulingOnInstanceStopAction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 319517903: { + message.discardLocalSsd = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SchedulingOnInstanceStopAction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SchedulingOnInstanceStopAction} SchedulingOnInstanceStopAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchedulingOnInstanceStopAction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SchedulingOnInstanceStopAction message. + * @function verify + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchedulingOnInstanceStopAction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + properties._discardLocalSsd = 1; + if (typeof message.discardLocalSsd !== "boolean") + return "discardLocalSsd: boolean expected"; + } + return null; + }; + + /** + * Creates a SchedulingOnInstanceStopAction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SchedulingOnInstanceStopAction} SchedulingOnInstanceStopAction + */ + SchedulingOnInstanceStopAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SchedulingOnInstanceStopAction) + return object; + var message = new $root.google.cloud.compute.v1.SchedulingOnInstanceStopAction(); + if (object.discardLocalSsd != null) + message.discardLocalSsd = Boolean(object.discardLocalSsd); + return message; + }; + + /** + * Creates a plain object from a SchedulingOnInstanceStopAction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {google.cloud.compute.v1.SchedulingOnInstanceStopAction} message SchedulingOnInstanceStopAction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SchedulingOnInstanceStopAction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + object.discardLocalSsd = message.discardLocalSsd; + if (options.oneofs) + object._discardLocalSsd = "discardLocalSsd"; + } + return object; + }; + + /** + * Converts this SchedulingOnInstanceStopAction to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @instance + * @returns {Object.} JSON object + */ + SchedulingOnInstanceStopAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SchedulingOnInstanceStopAction + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SchedulingOnInstanceStopAction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SchedulingOnInstanceStopAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SchedulingOnInstanceStopAction"; + }; + + return SchedulingOnInstanceStopAction; + })(); + v1.ScratchDisks = (function() { /** @@ -424513,7 +425761,11 @@ * @property {number|null} [autoDeployExpirationSec] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig autoDeployExpirationSec * @property {number|null} [autoDeployImpactedBaselineThreshold] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig autoDeployImpactedBaselineThreshold * @property {number|null} [autoDeployLoadThreshold] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig autoDeployLoadThreshold + * @property {number|null} [detectionAbsoluteQps] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionAbsoluteQps + * @property {number|null} [detectionLoadThreshold] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionLoadThreshold + * @property {number|null} [detectionRelativeToBaselineQps] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionRelativeToBaselineQps * @property {string|null} [name] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig name + * @property {Array.|null} [trafficGranularityConfigs] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig trafficGranularityConfigs */ /** @@ -424525,6 +425777,7 @@ * @param {google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig=} [properties] Properties to set */ function SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig(properties) { + this.trafficGranularityConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -424563,6 +425816,30 @@ */ SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype.autoDeployLoadThreshold = null; + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionAbsoluteQps. + * @member {number|null|undefined} detectionAbsoluteQps + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + * @instance + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype.detectionAbsoluteQps = null; + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionLoadThreshold. + * @member {number|null|undefined} detectionLoadThreshold + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + * @instance + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype.detectionLoadThreshold = null; + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig detectionRelativeToBaselineQps. + * @member {number|null|undefined} detectionRelativeToBaselineQps + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + * @instance + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype.detectionRelativeToBaselineQps = null; + /** * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig name. * @member {string|null|undefined} name @@ -424571,6 +425848,14 @@ */ SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype.name = null; + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig trafficGranularityConfigs. + * @member {Array.} trafficGranularityConfigs + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + * @instance + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype.trafficGranularityConfigs = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -424618,6 +425903,39 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _detectionAbsoluteQps. + * @member {"detectionAbsoluteQps"|undefined} _detectionAbsoluteQps + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + * @instance + */ + Object.defineProperty(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype, "_detectionAbsoluteQps", { + get: $util.oneOfGetter($oneOfFields = ["detectionAbsoluteQps"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _detectionLoadThreshold. + * @member {"detectionLoadThreshold"|undefined} _detectionLoadThreshold + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + * @instance + */ + Object.defineProperty(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype, "_detectionLoadThreshold", { + get: $util.oneOfGetter($oneOfFields = ["detectionLoadThreshold"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _detectionRelativeToBaselineQps. + * @member {"detectionRelativeToBaselineQps"|undefined} _detectionRelativeToBaselineQps + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + * @instance + */ + Object.defineProperty(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.prototype, "_detectionRelativeToBaselineQps", { + get: $util.oneOfGetter($oneOfFields = ["detectionRelativeToBaselineQps"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig _name. * @member {"name"|undefined} _name @@ -424659,8 +425977,17 @@ writer.uint32(/* id 69638793, wireType 0 =*/557110344).int32(message.autoDeployExpirationSec); if (message.autoDeployConfidenceThreshold != null && Object.hasOwnProperty.call(message, "autoDeployConfidenceThreshold")) writer.uint32(/* id 84309694, wireType 5 =*/674477557).float(message.autoDeployConfidenceThreshold); + if (message.trafficGranularityConfigs != null && message.trafficGranularityConfigs.length) + for (var i = 0; i < message.trafficGranularityConfigs.length; ++i) + $root.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.encode(message.trafficGranularityConfigs[i], writer.uint32(/* id 85367358, wireType 2 =*/682938866).fork()).ldelim(); + if (message.detectionRelativeToBaselineQps != null && Object.hasOwnProperty.call(message, "detectionRelativeToBaselineQps")) + writer.uint32(/* id 291343749, wireType 5 =*/2330749997).float(message.detectionRelativeToBaselineQps); if (message.autoDeployImpactedBaselineThreshold != null && Object.hasOwnProperty.call(message, "autoDeployImpactedBaselineThreshold")) writer.uint32(/* id 292441667, wireType 5 =*/2339533341).float(message.autoDeployImpactedBaselineThreshold); + if (message.detectionAbsoluteQps != null && Object.hasOwnProperty.call(message, "detectionAbsoluteQps")) + writer.uint32(/* id 383123174, wireType 5 =*/3064985397).float(message.detectionAbsoluteQps); + if (message.detectionLoadThreshold != null && Object.hasOwnProperty.call(message, "detectionLoadThreshold")) + writer.uint32(/* id 430499148, wireType 5 =*/3443993189).float(message.detectionLoadThreshold); if (message.autoDeployLoadThreshold != null && Object.hasOwnProperty.call(message, "autoDeployLoadThreshold")) writer.uint32(/* id 522227738, wireType 5 =*/4177821909).float(message.autoDeployLoadThreshold); return writer; @@ -424713,10 +426040,28 @@ message.autoDeployLoadThreshold = reader.float(); break; } + case 383123174: { + message.detectionAbsoluteQps = reader.float(); + break; + } + case 430499148: { + message.detectionLoadThreshold = reader.float(); + break; + } + case 291343749: { + message.detectionRelativeToBaselineQps = reader.float(); + break; + } case 3373707: { message.name = reader.string(); break; } + case 85367358: { + if (!(message.trafficGranularityConfigs && message.trafficGranularityConfigs.length)) + message.trafficGranularityConfigs = []; + message.trafficGranularityConfigs.push($root.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -424773,11 +426118,35 @@ if (typeof message.autoDeployLoadThreshold !== "number") return "autoDeployLoadThreshold: number expected"; } + if (message.detectionAbsoluteQps != null && message.hasOwnProperty("detectionAbsoluteQps")) { + properties._detectionAbsoluteQps = 1; + if (typeof message.detectionAbsoluteQps !== "number") + return "detectionAbsoluteQps: number expected"; + } + if (message.detectionLoadThreshold != null && message.hasOwnProperty("detectionLoadThreshold")) { + properties._detectionLoadThreshold = 1; + if (typeof message.detectionLoadThreshold !== "number") + return "detectionLoadThreshold: number expected"; + } + if (message.detectionRelativeToBaselineQps != null && message.hasOwnProperty("detectionRelativeToBaselineQps")) { + properties._detectionRelativeToBaselineQps = 1; + if (typeof message.detectionRelativeToBaselineQps !== "number") + return "detectionRelativeToBaselineQps: number expected"; + } if (message.name != null && message.hasOwnProperty("name")) { properties._name = 1; if (!$util.isString(message.name)) return "name: string expected"; } + if (message.trafficGranularityConfigs != null && message.hasOwnProperty("trafficGranularityConfigs")) { + if (!Array.isArray(message.trafficGranularityConfigs)) + return "trafficGranularityConfigs: array expected"; + for (var i = 0; i < message.trafficGranularityConfigs.length; ++i) { + var error = $root.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.verify(message.trafficGranularityConfigs[i]); + if (error) + return "trafficGranularityConfigs." + error; + } + } return null; }; @@ -424801,8 +426170,24 @@ message.autoDeployImpactedBaselineThreshold = Number(object.autoDeployImpactedBaselineThreshold); if (object.autoDeployLoadThreshold != null) message.autoDeployLoadThreshold = Number(object.autoDeployLoadThreshold); + if (object.detectionAbsoluteQps != null) + message.detectionAbsoluteQps = Number(object.detectionAbsoluteQps); + if (object.detectionLoadThreshold != null) + message.detectionLoadThreshold = Number(object.detectionLoadThreshold); + if (object.detectionRelativeToBaselineQps != null) + message.detectionRelativeToBaselineQps = Number(object.detectionRelativeToBaselineQps); if (object.name != null) message.name = String(object.name); + if (object.trafficGranularityConfigs) { + if (!Array.isArray(object.trafficGranularityConfigs)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.trafficGranularityConfigs: array expected"); + message.trafficGranularityConfigs = []; + for (var i = 0; i < object.trafficGranularityConfigs.length; ++i) { + if (typeof object.trafficGranularityConfigs[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.trafficGranularityConfigs: object expected"); + message.trafficGranularityConfigs[i] = $root.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.fromObject(object.trafficGranularityConfigs[i]); + } + } return message; }; @@ -424819,6 +426204,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.trafficGranularityConfigs = []; if (message.name != null && message.hasOwnProperty("name")) { object.name = message.name; if (options.oneofs) @@ -424834,11 +426221,31 @@ if (options.oneofs) object._autoDeployConfidenceThreshold = "autoDeployConfidenceThreshold"; } + if (message.trafficGranularityConfigs && message.trafficGranularityConfigs.length) { + object.trafficGranularityConfigs = []; + for (var j = 0; j < message.trafficGranularityConfigs.length; ++j) + object.trafficGranularityConfigs[j] = $root.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.toObject(message.trafficGranularityConfigs[j], options); + } + if (message.detectionRelativeToBaselineQps != null && message.hasOwnProperty("detectionRelativeToBaselineQps")) { + object.detectionRelativeToBaselineQps = options.json && !isFinite(message.detectionRelativeToBaselineQps) ? String(message.detectionRelativeToBaselineQps) : message.detectionRelativeToBaselineQps; + if (options.oneofs) + object._detectionRelativeToBaselineQps = "detectionRelativeToBaselineQps"; + } if (message.autoDeployImpactedBaselineThreshold != null && message.hasOwnProperty("autoDeployImpactedBaselineThreshold")) { object.autoDeployImpactedBaselineThreshold = options.json && !isFinite(message.autoDeployImpactedBaselineThreshold) ? String(message.autoDeployImpactedBaselineThreshold) : message.autoDeployImpactedBaselineThreshold; if (options.oneofs) object._autoDeployImpactedBaselineThreshold = "autoDeployImpactedBaselineThreshold"; } + if (message.detectionAbsoluteQps != null && message.hasOwnProperty("detectionAbsoluteQps")) { + object.detectionAbsoluteQps = options.json && !isFinite(message.detectionAbsoluteQps) ? String(message.detectionAbsoluteQps) : message.detectionAbsoluteQps; + if (options.oneofs) + object._detectionAbsoluteQps = "detectionAbsoluteQps"; + } + if (message.detectionLoadThreshold != null && message.hasOwnProperty("detectionLoadThreshold")) { + object.detectionLoadThreshold = options.json && !isFinite(message.detectionLoadThreshold) ? String(message.detectionLoadThreshold) : message.detectionLoadThreshold; + if (options.oneofs) + object._detectionLoadThreshold = "detectionLoadThreshold"; + } if (message.autoDeployLoadThreshold != null && message.hasOwnProperty("autoDeployLoadThreshold")) { object.autoDeployLoadThreshold = options.json && !isFinite(message.autoDeployLoadThreshold) ? String(message.autoDeployLoadThreshold) : message.autoDeployLoadThreshold; if (options.oneofs) @@ -424876,6 +426283,321 @@ return SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig; })(); + v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig = (function() { + + /** + * Properties of a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @property {boolean|null} [enableEachUniqueValue] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig enableEachUniqueValue + * @property {string|null} [type] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig type + * @property {string|null} [value] SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig value + */ + + /** + * Constructs a new SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig. + * @implements ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig=} [properties] Properties to set + */ + function SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig enableEachUniqueValue. + * @member {boolean|null|undefined} enableEachUniqueValue + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @instance + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.prototype.enableEachUniqueValue = null; + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @instance + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.prototype.type = null; + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig value. + * @member {string|null|undefined} value + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @instance + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.prototype.value = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig _enableEachUniqueValue. + * @member {"enableEachUniqueValue"|undefined} _enableEachUniqueValue + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @instance + */ + Object.defineProperty(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.prototype, "_enableEachUniqueValue", { + get: $util.oneOfGetter($oneOfFields = ["enableEachUniqueValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig _type. + * @member {"type"|undefined} _type + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @instance + */ + Object.defineProperty(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig _value. + * @member {"value"|undefined} _value + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @instance + */ + Object.defineProperty(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.prototype, "_value", { + get: $util.oneOfGetter($oneOfFields = ["value"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig} SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig instance + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.create = function create(properties) { + return new SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig(properties); + }; + + /** + * Encodes the specified SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig} message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 111972721, wireType 2 =*/895781770).string(message.value); + if (message.enableEachUniqueValue != null && Object.hasOwnProperty.call(message, "enableEachUniqueValue")) + writer.uint32(/* id 469206341, wireType 0 =*/3753650728).bool(message.enableEachUniqueValue); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig} message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig} SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 469206341: { + message.enableEachUniqueValue = reader.bool(); + break; + } + case 3575610: { + message.type = reader.string(); + break; + } + case 111972721: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig} SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.enableEachUniqueValue != null && message.hasOwnProperty("enableEachUniqueValue")) { + properties._enableEachUniqueValue = 1; + if (typeof message.enableEachUniqueValue !== "boolean") + return "enableEachUniqueValue: boolean expected"; + } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } + if (message.value != null && message.hasOwnProperty("value")) { + properties._value = 1; + if (!$util.isString(message.value)) + return "value: string expected"; + } + return null; + }; + + /** + * Creates a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig} SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig(); + if (object.enableEachUniqueValue != null) + message.enableEachUniqueValue = Boolean(object.enableEachUniqueValue); + if (object.type != null) + message.type = String(object.type); + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig} message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.value != null && message.hasOwnProperty("value")) { + object.value = message.value; + if (options.oneofs) + object._value = "value"; + } + if (message.enableEachUniqueValue != null && message.hasOwnProperty("enableEachUniqueValue")) { + object.enableEachUniqueValue = message.enableEachUniqueValue; + if (options.oneofs) + object._enableEachUniqueValue = "enableEachUniqueValue"; + } + return object; + }; + + /** + * Converts this SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig"; + }; + + /** + * Type enum. + * @name google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.Type + * @enum {number} + * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value + * @property {number} HTTP_HEADER_HOST=374321891 HTTP_HEADER_HOST value + * @property {number} HTTP_PATH=311503228 HTTP_PATH value + * @property {number} UNSPECIFIED_TYPE=53933922 UNSPECIFIED_TYPE value + */ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TYPE"] = 0; + values[valuesById[374321891] = "HTTP_HEADER_HOST"] = 374321891; + values[valuesById[311503228] = "HTTP_PATH"] = 311503228; + values[valuesById[53933922] = "UNSPECIFIED_TYPE"] = 53933922; + return values; + })(); + + return SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig; + })(); + v1.SecurityPolicyAdvancedOptionsConfig = (function() { /** @@ -433882,6 +435604,7 @@ * @property {string|null} [name] ServiceAttachment name * @property {Array.|null} [natSubnets] ServiceAttachment natSubnets * @property {string|null} [producerForwardingRule] ServiceAttachment producerForwardingRule + * @property {number|null} [propagatedConnectionLimit] ServiceAttachment propagatedConnectionLimit * @property {google.cloud.compute.v1.IUint128|null} [pscServiceAttachmentId] ServiceAttachment pscServiceAttachmentId * @property {boolean|null} [reconcileConnections] ServiceAttachment reconcileConnections * @property {string|null} [region] ServiceAttachment region @@ -434021,6 +435744,14 @@ */ ServiceAttachment.prototype.producerForwardingRule = null; + /** + * ServiceAttachment propagatedConnectionLimit. + * @member {number|null|undefined} propagatedConnectionLimit + * @memberof google.cloud.compute.v1.ServiceAttachment + * @instance + */ + ServiceAttachment.prototype.propagatedConnectionLimit = null; + /** * ServiceAttachment pscServiceAttachmentId. * @member {google.cloud.compute.v1.IUint128|null|undefined} pscServiceAttachmentId @@ -434163,6 +435894,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ServiceAttachment _propagatedConnectionLimit. + * @member {"propagatedConnectionLimit"|undefined} _propagatedConnectionLimit + * @memberof google.cloud.compute.v1.ServiceAttachment + * @instance + */ + Object.defineProperty(ServiceAttachment.prototype, "_propagatedConnectionLimit", { + get: $util.oneOfGetter($oneOfFields = ["propagatedConnectionLimit"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * ServiceAttachment _pscServiceAttachmentId. * @member {"pscServiceAttachmentId"|undefined} _pscServiceAttachmentId @@ -434271,6 +436013,8 @@ writer.uint32(/* id 247927889, wireType 2 =*/1983423114).string(message.producerForwardingRule); if (message.connectionPreference != null && Object.hasOwnProperty.call(message, "connectionPreference")) writer.uint32(/* id 285818076, wireType 2 =*/2286544610).string(message.connectionPreference); + if (message.propagatedConnectionLimit != null && Object.hasOwnProperty.call(message, "propagatedConnectionLimit")) + writer.uint32(/* id 332719230, wireType 0 =*/2661753840).uint32(message.propagatedConnectionLimit); if (message.enableProxyProtocol != null && Object.hasOwnProperty.call(message, "enableProxyProtocol")) writer.uint32(/* id 363791237, wireType 0 =*/2910329896).bool(message.enableProxyProtocol); if (message.natSubnets != null && message.natSubnets.length) @@ -434385,6 +436129,10 @@ message.producerForwardingRule = reader.string(); break; } + case 332719230: { + message.propagatedConnectionLimit = reader.uint32(); + break; + } case 527695214: { message.pscServiceAttachmentId = $root.google.cloud.compute.v1.Uint128.decode(reader, reader.uint32()); break; @@ -434525,6 +436273,11 @@ if (!$util.isString(message.producerForwardingRule)) return "producerForwardingRule: string expected"; } + if (message.propagatedConnectionLimit != null && message.hasOwnProperty("propagatedConnectionLimit")) { + properties._propagatedConnectionLimit = 1; + if (!$util.isInteger(message.propagatedConnectionLimit)) + return "propagatedConnectionLimit: integer expected"; + } if (message.pscServiceAttachmentId != null && message.hasOwnProperty("pscServiceAttachmentId")) { properties._pscServiceAttachmentId = 1; { @@ -434634,6 +436387,8 @@ } if (object.producerForwardingRule != null) message.producerForwardingRule = String(object.producerForwardingRule); + if (object.propagatedConnectionLimit != null) + message.propagatedConnectionLimit = object.propagatedConnectionLimit >>> 0; if (object.pscServiceAttachmentId != null) { if (typeof object.pscServiceAttachmentId !== "object") throw TypeError(".google.cloud.compute.v1.ServiceAttachment.pscServiceAttachmentId: object expected"); @@ -434738,6 +436493,11 @@ if (options.oneofs) object._connectionPreference = "connectionPreference"; } + if (message.propagatedConnectionLimit != null && message.hasOwnProperty("propagatedConnectionLimit")) { + object.propagatedConnectionLimit = message.propagatedConnectionLimit; + if (options.oneofs) + object._propagatedConnectionLimit = "propagatedConnectionLimit"; + } if (message.enableProxyProtocol != null && message.hasOwnProperty("enableProxyProtocol")) { object.enableProxyProtocol = message.enableProxyProtocol; if (options.oneofs) @@ -435311,6 +437071,7 @@ * @interface IServiceAttachmentConnectedEndpoint * @property {string|null} [consumerNetwork] ServiceAttachmentConnectedEndpoint consumerNetwork * @property {string|null} [endpoint] ServiceAttachmentConnectedEndpoint endpoint + * @property {number|null} [propagatedConnectionCount] ServiceAttachmentConnectedEndpoint propagatedConnectionCount * @property {number|Long|null} [pscConnectionId] ServiceAttachmentConnectedEndpoint pscConnectionId * @property {string|null} [status] ServiceAttachmentConnectedEndpoint status */ @@ -435346,6 +437107,14 @@ */ ServiceAttachmentConnectedEndpoint.prototype.endpoint = null; + /** + * ServiceAttachmentConnectedEndpoint propagatedConnectionCount. + * @member {number|null|undefined} propagatedConnectionCount + * @memberof google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint + * @instance + */ + ServiceAttachmentConnectedEndpoint.prototype.propagatedConnectionCount = null; + /** * ServiceAttachmentConnectedEndpoint pscConnectionId. * @member {number|Long|null|undefined} pscConnectionId @@ -435387,6 +437156,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ServiceAttachmentConnectedEndpoint _propagatedConnectionCount. + * @member {"propagatedConnectionCount"|undefined} _propagatedConnectionCount + * @memberof google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint + * @instance + */ + Object.defineProperty(ServiceAttachmentConnectedEndpoint.prototype, "_propagatedConnectionCount", { + get: $util.oneOfGetter($oneOfFields = ["propagatedConnectionCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * ServiceAttachmentConnectedEndpoint _pscConnectionId. * @member {"pscConnectionId"|undefined} _pscConnectionId @@ -435441,6 +437221,8 @@ writer.uint32(/* id 254357221, wireType 2 =*/2034857770).string(message.consumerNetwork); if (message.pscConnectionId != null && Object.hasOwnProperty.call(message, "pscConnectionId")) writer.uint32(/* id 292082397, wireType 0 =*/2336659176).uint64(message.pscConnectionId); + if (message.propagatedConnectionCount != null && Object.hasOwnProperty.call(message, "propagatedConnectionCount")) + writer.uint32(/* id 324594130, wireType 0 =*/2596753040).uint32(message.propagatedConnectionCount); return writer; }; @@ -435483,6 +437265,10 @@ message.endpoint = reader.string(); break; } + case 324594130: { + message.propagatedConnectionCount = reader.uint32(); + break; + } case 292082397: { message.pscConnectionId = reader.uint64(); break; @@ -435537,6 +437323,11 @@ if (!$util.isString(message.endpoint)) return "endpoint: string expected"; } + if (message.propagatedConnectionCount != null && message.hasOwnProperty("propagatedConnectionCount")) { + properties._propagatedConnectionCount = 1; + if (!$util.isInteger(message.propagatedConnectionCount)) + return "propagatedConnectionCount: integer expected"; + } if (message.pscConnectionId != null && message.hasOwnProperty("pscConnectionId")) { properties._pscConnectionId = 1; if (!$util.isInteger(message.pscConnectionId) && !(message.pscConnectionId && $util.isInteger(message.pscConnectionId.low) && $util.isInteger(message.pscConnectionId.high))) @@ -435566,6 +437357,8 @@ message.consumerNetwork = String(object.consumerNetwork); if (object.endpoint != null) message.endpoint = String(object.endpoint); + if (object.propagatedConnectionCount != null) + message.propagatedConnectionCount = object.propagatedConnectionCount >>> 0; if (object.pscConnectionId != null) if ($util.Long) (message.pscConnectionId = $util.Long.fromValue(object.pscConnectionId)).unsigned = true; @@ -435616,6 +437409,11 @@ if (options.oneofs) object._pscConnectionId = "pscConnectionId"; } + if (message.propagatedConnectionCount != null && message.hasOwnProperty("propagatedConnectionCount")) { + object.propagatedConnectionCount = message.propagatedConnectionCount; + if (options.oneofs) + object._propagatedConnectionCount = "propagatedConnectionCount"; + } return object; }; @@ -487402,6 +489200,7 @@ * @property {number} UNDEFINED_STACK_TYPE=0 UNDEFINED_STACK_TYPE value * @property {number} IPV4_IPV6=22197249 IPV4_IPV6 value * @property {number} IPV4_ONLY=22373798 IPV4_ONLY value + * @property {number} IPV6_ONLY=79632100 IPV6_ONLY value * @property {number} UNSPECIFIED_STACK_TYPE=298084569 UNSPECIFIED_STACK_TYPE value */ Subnetwork.StackType = (function() { @@ -487409,6 +489208,7 @@ values[valuesById[0] = "UNDEFINED_STACK_TYPE"] = 0; values[valuesById[22197249] = "IPV4_IPV6"] = 22197249; values[valuesById[22373798] = "IPV4_ONLY"] = 22373798; + values[valuesById[79632100] = "IPV6_ONLY"] = 79632100; values[valuesById[298084569] = "UNSPECIFIED_STACK_TYPE"] = 298084569; return values; })(); @@ -495067,6 +496867,7 @@ * @property {string|null} [serverTlsPolicy] TargetHttpsProxy serverTlsPolicy * @property {Array.|null} [sslCertificates] TargetHttpsProxy sslCertificates * @property {string|null} [sslPolicy] TargetHttpsProxy sslPolicy + * @property {string|null} [tlsEarlyData] TargetHttpsProxy tlsEarlyData * @property {string|null} [urlMap] TargetHttpsProxy urlMap */ @@ -495214,6 +497015,14 @@ */ TargetHttpsProxy.prototype.sslPolicy = null; + /** + * TargetHttpsProxy tlsEarlyData. + * @member {string|null|undefined} tlsEarlyData + * @memberof google.cloud.compute.v1.TargetHttpsProxy + * @instance + */ + TargetHttpsProxy.prototype.tlsEarlyData = null; + /** * TargetHttpsProxy urlMap. * @member {string|null|undefined} urlMap @@ -495390,6 +497199,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * TargetHttpsProxy _tlsEarlyData. + * @member {"tlsEarlyData"|undefined} _tlsEarlyData + * @memberof google.cloud.compute.v1.TargetHttpsProxy + * @instance + */ + Object.defineProperty(TargetHttpsProxy.prototype, "_tlsEarlyData", { + get: $util.oneOfGetter($oneOfFields = ["tlsEarlyData"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * TargetHttpsProxy _urlMap. * @member {"urlMap"|undefined} _urlMap @@ -495435,6 +497255,8 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.authorizationPolicy != null && Object.hasOwnProperty.call(message, "authorizationPolicy")) writer.uint32(/* id 33945528, wireType 2 =*/271564226).string(message.authorizationPolicy); + if (message.tlsEarlyData != null && Object.hasOwnProperty.call(message, "tlsEarlyData")) + writer.uint32(/* id 61108426, wireType 2 =*/488867410).string(message.tlsEarlyData); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.certificateMap != null && Object.hasOwnProperty.call(message, "certificateMap")) @@ -495560,6 +497382,10 @@ message.sslPolicy = reader.string(); break; } + case 61108426: { + message.tlsEarlyData = reader.string(); + break; + } case 367020684: { message.urlMap = reader.string(); break; @@ -495682,6 +497508,11 @@ if (!$util.isString(message.sslPolicy)) return "sslPolicy: string expected"; } + if (message.tlsEarlyData != null && message.hasOwnProperty("tlsEarlyData")) { + properties._tlsEarlyData = 1; + if (!$util.isString(message.tlsEarlyData)) + return "tlsEarlyData: string expected"; + } if (message.urlMap != null && message.hasOwnProperty("urlMap")) { properties._urlMap = 1; if (!$util.isString(message.urlMap)) @@ -495746,6 +497577,8 @@ } if (object.sslPolicy != null) message.sslPolicy = String(object.sslPolicy); + if (object.tlsEarlyData != null) + message.tlsEarlyData = String(object.tlsEarlyData); if (object.urlMap != null) message.urlMap = String(object.urlMap); return message; @@ -495794,6 +497627,11 @@ if (options.oneofs) object._authorizationPolicy = "authorizationPolicy"; } + if (message.tlsEarlyData != null && message.hasOwnProperty("tlsEarlyData")) { + object.tlsEarlyData = message.tlsEarlyData; + if (options.oneofs) + object._tlsEarlyData = "tlsEarlyData"; + } if (message.region != null && message.hasOwnProperty("region")) { object.region = message.region; if (options.oneofs) @@ -495901,6 +497739,24 @@ return values; })(); + /** + * TlsEarlyData enum. + * @name google.cloud.compute.v1.TargetHttpsProxy.TlsEarlyData + * @enum {number} + * @property {number} UNDEFINED_TLS_EARLY_DATA=0 UNDEFINED_TLS_EARLY_DATA value + * @property {number} DISABLED=516696700 DISABLED value + * @property {number} PERMISSIVE=504345247 PERMISSIVE value + * @property {number} STRICT=308826825 STRICT value + */ + TargetHttpsProxy.TlsEarlyData = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TLS_EARLY_DATA"] = 0; + values[valuesById[516696700] = "DISABLED"] = 516696700; + values[valuesById[504345247] = "PERMISSIVE"] = 504345247; + values[valuesById[308826825] = "STRICT"] = 308826825; + return values; + })(); + return TargetHttpsProxy; })(); @@ -499320,6 +501176,7 @@ * @property {number} HEADER_FIELD=200737960 HEADER_FIELD value * @property {number} HTTP_COOKIE=494981627 HTTP_COOKIE value * @property {number} NONE=2402104 NONE value + * @property {number} STRONG_COOKIE_AFFINITY=438628091 STRONG_COOKIE_AFFINITY value */ TargetPool.SessionAffinity = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -499332,6 +501189,7 @@ values[valuesById[200737960] = "HEADER_FIELD"] = 200737960; values[valuesById[494981627] = "HTTP_COOKIE"] = 494981627; values[valuesById[2402104] = "NONE"] = 2402104; + values[valuesById[438628091] = "STRONG_COOKIE_AFFINITY"] = 438628091; return values; })(); @@ -525543,6 +527401,7 @@ * @memberof google.cloud.compute.v1 * @interface IUrlMap * @property {string|null} [creationTimestamp] UrlMap creationTimestamp + * @property {google.cloud.compute.v1.ICustomErrorResponsePolicy|null} [defaultCustomErrorResponsePolicy] UrlMap defaultCustomErrorResponsePolicy * @property {google.cloud.compute.v1.IHttpRouteAction|null} [defaultRouteAction] UrlMap defaultRouteAction * @property {string|null} [defaultService] UrlMap defaultService * @property {google.cloud.compute.v1.IHttpRedirectAction|null} [defaultUrlRedirect] UrlMap defaultUrlRedirect @@ -525585,6 +527444,14 @@ */ UrlMap.prototype.creationTimestamp = null; + /** + * UrlMap defaultCustomErrorResponsePolicy. + * @member {google.cloud.compute.v1.ICustomErrorResponsePolicy|null|undefined} defaultCustomErrorResponsePolicy + * @memberof google.cloud.compute.v1.UrlMap + * @instance + */ + UrlMap.prototype.defaultCustomErrorResponsePolicy = null; + /** * UrlMap defaultRouteAction. * @member {google.cloud.compute.v1.IHttpRouteAction|null|undefined} defaultRouteAction @@ -525711,6 +527578,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * UrlMap _defaultCustomErrorResponsePolicy. + * @member {"defaultCustomErrorResponsePolicy"|undefined} _defaultCustomErrorResponsePolicy + * @memberof google.cloud.compute.v1.UrlMap + * @instance + */ + Object.defineProperty(UrlMap.prototype, "_defaultCustomErrorResponsePolicy", { + get: $util.oneOfGetter($oneOfFields = ["defaultCustomErrorResponsePolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * UrlMap _defaultRouteAction. * @member {"defaultRouteAction"|undefined} _defaultRouteAction @@ -525864,6 +527742,8 @@ writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.defaultCustomErrorResponsePolicy != null && Object.hasOwnProperty.call(message, "defaultCustomErrorResponsePolicy")) + $root.google.cloud.compute.v1.CustomErrorResponsePolicy.encode(message.defaultCustomErrorResponsePolicy, writer.uint32(/* id 81266089, wireType 2 =*/650128714).fork()).ldelim(); if (message.tests != null && message.tests.length) for (var i = 0; i < message.tests.length; ++i) $root.google.cloud.compute.v1.UrlMapTest.encode(message.tests[i], writer.uint32(/* id 110251553, wireType 2 =*/882012426).fork()).ldelim(); @@ -525927,6 +527807,10 @@ message.creationTimestamp = reader.string(); break; } + case 81266089: { + message.defaultCustomErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.decode(reader, reader.uint32()); + break; + } case 378919466: { message.defaultRouteAction = $root.google.cloud.compute.v1.HttpRouteAction.decode(reader, reader.uint32()); break; @@ -526030,6 +527914,14 @@ if (!$util.isString(message.creationTimestamp)) return "creationTimestamp: string expected"; } + if (message.defaultCustomErrorResponsePolicy != null && message.hasOwnProperty("defaultCustomErrorResponsePolicy")) { + properties._defaultCustomErrorResponsePolicy = 1; + { + var error = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.verify(message.defaultCustomErrorResponsePolicy); + if (error) + return "defaultCustomErrorResponsePolicy." + error; + } + } if (message.defaultRouteAction != null && message.hasOwnProperty("defaultRouteAction")) { properties._defaultRouteAction = 1; { @@ -526138,6 +528030,11 @@ var message = new $root.google.cloud.compute.v1.UrlMap(); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); + if (object.defaultCustomErrorResponsePolicy != null) { + if (typeof object.defaultCustomErrorResponsePolicy !== "object") + throw TypeError(".google.cloud.compute.v1.UrlMap.defaultCustomErrorResponsePolicy: object expected"); + message.defaultCustomErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.fromObject(object.defaultCustomErrorResponsePolicy); + } if (object.defaultRouteAction != null) { if (typeof object.defaultRouteAction !== "object") throw TypeError(".google.cloud.compute.v1.UrlMap.defaultRouteAction: object expected"); @@ -526250,6 +528147,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.defaultCustomErrorResponsePolicy != null && message.hasOwnProperty("defaultCustomErrorResponsePolicy")) { + object.defaultCustomErrorResponsePolicy = $root.google.cloud.compute.v1.CustomErrorResponsePolicy.toObject(message.defaultCustomErrorResponsePolicy, options); + if (options.oneofs) + object._defaultCustomErrorResponsePolicy = "defaultCustomErrorResponsePolicy"; + } if (message.tests && message.tests.length) { object.tests = []; for (var j = 0; j < message.tests.length; ++j) @@ -530239,12 +532141,14 @@ * @property {number} UNDEFINED_STACK_TYPE=0 UNDEFINED_STACK_TYPE value * @property {number} IPV4_IPV6=22197249 IPV4_IPV6 value * @property {number} IPV4_ONLY=22373798 IPV4_ONLY value + * @property {number} IPV6_ONLY=79632100 IPV6_ONLY value */ UsableSubnetwork.StackType = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_STACK_TYPE"] = 0; values[valuesById[22197249] = "IPV4_IPV6"] = 22197249; values[valuesById[22373798] = "IPV4_ONLY"] = 22373798; + values[valuesById[79632100] = "IPV6_ONLY"] = 79632100; return values; })(); @@ -533987,12 +535891,14 @@ * @property {number} UNDEFINED_STACK_TYPE=0 UNDEFINED_STACK_TYPE value * @property {number} IPV4_IPV6=22197249 IPV4_IPV6 value * @property {number} IPV4_ONLY=22373798 IPV4_ONLY value + * @property {number} IPV6_ONLY=79632100 IPV6_ONLY value */ VpnGateway.StackType = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_STACK_TYPE"] = 0; values[valuesById[22197249] = "IPV4_IPV6"] = 22197249; values[valuesById[22373798] = "IPV4_ONLY"] = 22373798; + values[valuesById[79632100] = "IPV6_ONLY"] = 79632100; return values; })(); diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index fa92c93700a..570c0c5622e 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -1,4 +1,7 @@ { + "options": { + "syntax": "proto3" + }, "nested": { "google": { "nested": { @@ -3354,11 +3357,21 @@ "enableUefiNetworking" ] }, + "_performanceMonitoringUnit": { + "oneof": [ + "performanceMonitoringUnit" + ] + }, "_threadsPerCore": { "oneof": [ "threadsPerCore" ] }, + "_turboMode": { + "oneof": [ + "turboMode" + ] + }, "_visibleCoreCount": { "oneof": [ "visibleCoreCount" @@ -3380,6 +3393,13 @@ "proto3_optional": true } }, + "performanceMonitoringUnit": { + "type": "string", + "id": 533618956, + "options": { + "proto3_optional": true + } + }, "threadsPerCore": { "type": "int32", "id": 352611671, @@ -3387,6 +3407,13 @@ "proto3_optional": true } }, + "turboMode": { + "type": "string", + "id": 432965412, + "options": { + "proto3_optional": true + } + }, "visibleCoreCount": { "type": "int32", "id": 193198684, @@ -3394,6 +3421,17 @@ "proto3_optional": true } } + }, + "nested": { + "PerformanceMonitoringUnit": { + "values": { + "UNDEFINED_PERFORMANCE_MONITORING_UNIT": 0, + "ARCHITECTURAL": 155113693, + "ENHANCED": 476873590, + "PERFORMANCE_MONITORING_UNIT_UNSPECIFIED": 429210692, + "STANDARD": 484642493 + } + } } }, "AggregatedListAcceleratorTypesRequest": { @@ -7737,8 +7775,10 @@ "VmFamily": { "values": { "UNDEFINED_VM_FAMILY": 0, + "VM_FAMILY_CLOUD_TPU_DEVICE_CT3": 42845948, "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L": 108020067, "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP": 18705267, + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P": 517384376, "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P": 517384407 } }, @@ -8891,36 +8931,6 @@ } } }, - "AuthorizationLoggingOptions": { - "oneofs": { - "_permissionType": { - "oneof": [ - "permissionType" - ] - } - }, - "fields": { - "permissionType": { - "type": "string", - "id": 525978538, - "options": { - "proto3_optional": true - } - } - }, - "nested": { - "PermissionType": { - "values": { - "UNDEFINED_PERMISSION_TYPE": 0, - "ADMIN_READ": 128951462, - "ADMIN_WRITE": 244412079, - "DATA_READ": 305224971, - "DATA_WRITE": 340181738, - "PERMISSION_TYPE_UNSPECIFIED": 440313346 - } - } - } - }, "Autoscaler": { "oneofs": { "_autoscalingPolicy": { @@ -9991,6 +10001,11 @@ "options": { "proto3_optional": true } + }, + "usedBy": { + "rule": "repeated", + "type": "BackendBucketUsedBy", + "id": 389320729 } }, "nested": { @@ -10276,6 +10291,24 @@ } } }, + "BackendBucketUsedBy": { + "oneofs": { + "_reference": { + "oneof": [ + "reference" + ] + } + }, + "fields": { + "reference": { + "type": "string", + "id": 148586315, + "options": { + "proto3_optional": true + } + } + } + }, "BackendService": { "oneofs": { "_affinityCookieTtlSec": { @@ -10353,6 +10386,11 @@ "id" ] }, + "_ipAddressSelectionPolicy": { + "oneof": [ + "ipAddressSelectionPolicy" + ] + }, "_kind": { "oneof": [ "kind" @@ -10438,6 +10476,11 @@ "sessionAffinity" ] }, + "_strongSessionAffinityCookie": { + "oneof": [ + "strongSessionAffinityCookie" + ] + }, "_subsetting": { "oneof": [ "subsetting" @@ -10575,6 +10618,13 @@ "proto3_optional": true } }, + "ipAddressSelectionPolicy": { + "type": "string", + "id": 77600840, + "options": { + "proto3_optional": true + } + }, "kind": { "type": "string", "id": 3292052, @@ -10709,6 +10759,13 @@ "proto3_optional": true } }, + "strongSessionAffinityCookie": { + "type": "BackendServiceHttpCookie", + "id": 238195722, + "options": { + "proto3_optional": true + } + }, "subsetting": { "type": "Subsetting", "id": 450283536, @@ -10737,6 +10794,15 @@ "DISABLED": 516696700 } }, + "IpAddressSelectionPolicy": { + "values": { + "UNDEFINED_IP_ADDRESS_SELECTION_POLICY": 0, + "IPV4_ONLY": 22373798, + "IPV6_ONLY": 79632100, + "IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED": 36210144, + "PREFER_IPV6": 408601302 + } + }, "LoadBalancingScheme": { "values": { "UNDEFINED_LOAD_BALANCING_SCHEME": 0, @@ -10784,7 +10850,8 @@ "GENERATED_COOKIE": 370321204, "HEADER_FIELD": 200737960, "HTTP_COOKIE": 494981627, - "NONE": 2402104 + "NONE": 2402104, + "STRONG_COOKIE_AFFINITY": 438628091 } } } @@ -11195,6 +11262,48 @@ } } }, + "BackendServiceHttpCookie": { + "oneofs": { + "_name": { + "oneof": [ + "name" + ] + }, + "_path": { + "oneof": [ + "path" + ] + }, + "_ttl": { + "oneof": [ + "ttl" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "path": { + "type": "string", + "id": 3433509, + "options": { + "proto3_optional": true + } + }, + "ttl": { + "type": "Duration", + "id": 115180, + "options": { + "proto3_optional": true + } + } + } + }, "BackendServiceIAP": { "oneofs": { "_enabled": { @@ -12810,6 +12919,11 @@ "creationTimestamp" ] }, + "_customEndTimestamp": { + "oneof": [ + "customEndTimestamp" + ] + }, "_description": { "oneof": [ "description" @@ -12850,6 +12964,11 @@ "region" ] }, + "_resourceStatus": { + "oneof": [ + "resourceStatus" + ] + }, "_selfLink": { "oneof": [ "selfLink" @@ -12903,6 +13022,13 @@ "proto3_optional": true } }, + "customEndTimestamp": { + "type": "string", + "id": 181770852, + "options": { + "proto3_optional": true + } + }, "description": { "type": "string", "id": 422937596, @@ -12974,6 +13100,13 @@ "type": "Reservation", "id": 399717927 }, + "resourceStatus": { + "type": "CommitmentResourceStatus", + "id": 249429315, + "options": { + "proto3_optional": true + } + }, "resources": { "rule": "repeated", "type": "ResourceCommitment", @@ -13061,6 +13194,7 @@ "COMPUTE_OPTIMIZED_C3D": 383246484, "COMPUTE_OPTIMIZED_H3": 428004939, "GENERAL_PURPOSE": 299793543, + "GENERAL_PURPOSE_C4": 301911817, "GENERAL_PURPOSE_E2": 301911877, "GENERAL_PURPOSE_N2": 301912156, "GENERAL_PURPOSE_N2D": 232471400, @@ -13222,6 +13356,24 @@ } } }, + "CommitmentResourceStatus": { + "oneofs": { + "_customTermEligibilityEndTimestamp": { + "oneof": [ + "customTermEligibilityEndTimestamp" + ] + } + }, + "fields": { + "customTermEligibilityEndTimestamp": { + "type": "string", + "id": 363976187, + "options": { + "proto3_optional": true + } + } + } + }, "CommitmentsScopedList": { "oneofs": { "_warning": { @@ -13245,113 +13397,43 @@ } } }, - "Condition": { + "ConfidentialInstanceConfig": { "oneofs": { - "_iam": { - "oneof": [ - "iam" - ] - }, - "_op": { - "oneof": [ - "op" - ] - }, - "_svc": { + "_confidentialInstanceType": { "oneof": [ - "svc" + "confidentialInstanceType" ] }, - "_sys": { + "_enableConfidentialCompute": { "oneof": [ - "sys" + "enableConfidentialCompute" ] } }, "fields": { - "iam": { + "confidentialInstanceType": { "type": "string", - "id": 104021, + "id": 43484717, "options": { "proto3_optional": true } }, - "op": { - "type": "string", - "id": 3553, - "options": { - "proto3_optional": true - } - }, - "svc": { - "type": "string", - "id": 114272, - "options": { - "proto3_optional": true - } - }, - "sys": { - "type": "string", - "id": 114381, + "enableConfidentialCompute": { + "type": "bool", + "id": 102135228, "options": { "proto3_optional": true } - }, - "values": { - "rule": "repeated", - "type": "string", - "id": 249928994 } }, "nested": { - "Iam": { + "ConfidentialInstanceType": { "values": { - "UNDEFINED_IAM": 0, - "APPROVER": 357258949, - "ATTRIBUTION": 232465503, - "AUTHORITY": 504108835, - "CREDENTIALS_TYPE": 348222141, - "CREDS_ASSERTION": 332343272, - "JUSTIFICATION_TYPE": 206147719, - "SECURITY_REALM": 526269616 - } - }, - "Op": { - "values": { - "UNDEFINED_OP": 0, - "DISCHARGED": 266338274, - "EQUALS": 442201023, - "IN": 2341, - "NOT_EQUALS": 19718859, - "NOT_IN": 161144369, - "NO_OP": 74481951 - } - }, - "Sys": { - "values": { - "UNDEFINED_SYS": 0, - "IP": 2343, - "NAME": 2388619, - "REGION": 266017524, - "SERVICE": 17781397 - } - } - } - }, - "ConfidentialInstanceConfig": { - "oneofs": { - "_enableConfidentialCompute": { - "oneof": [ - "enableConfidentialCompute" - ] - } - }, - "fields": { - "enableConfidentialCompute": { - "type": "bool", - "id": 102135228, - "options": { - "proto3_optional": true + "UNDEFINED_CONFIDENTIAL_INSTANCE_TYPE": 0, + "CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED": 115021829, + "SEV": 81988, + "SEV_SNP": 21753562, + "TDX": 82920 } } } @@ -13729,6 +13811,64 @@ } } }, + "CustomErrorResponsePolicy": { + "oneofs": { + "_errorService": { + "oneof": [ + "errorService" + ] + } + }, + "fields": { + "errorResponseRules": { + "rule": "repeated", + "type": "CustomErrorResponsePolicyCustomErrorResponseRule", + "id": 14620304 + }, + "errorService": { + "type": "string", + "id": 164214654, + "options": { + "proto3_optional": true + } + } + } + }, + "CustomErrorResponsePolicyCustomErrorResponseRule": { + "oneofs": { + "_overrideResponseCode": { + "oneof": [ + "overrideResponseCode" + ] + }, + "_path": { + "oneof": [ + "path" + ] + } + }, + "fields": { + "matchResponseCodes": { + "rule": "repeated", + "type": "string", + "id": 104973410 + }, + "overrideResponseCode": { + "type": "int32", + "id": 530328568, + "options": { + "proto3_optional": true + } + }, + "path": { + "type": "string", + "id": 3433509, + "options": { + "proto3_optional": true + } + } + } + }, "CustomerEncryptionKey": { "oneofs": { "_kmsKeyName": { @@ -17534,6 +17674,11 @@ }, "Disk": { "oneofs": { + "_accessMode": { + "oneof": [ + "accessMode" + ] + }, "_architecture": { "oneof": [ "architecture" @@ -17741,6 +17886,13 @@ } }, "fields": { + "accessMode": { + "type": "string", + "id": 41155486, + "options": { + "proto3_optional": true + } + }, "architecture": { "type": "string", "id": 302803283, @@ -18070,6 +18222,14 @@ } }, "nested": { + "AccessMode": { + "values": { + "UNDEFINED_ACCESS_MODE": 0, + "READ_ONLY_MANY": 63460265, + "READ_WRITE_MANY": 488743208, + "READ_WRITE_SINGLE": 99323089 + } + }, "Architecture": { "values": { "UNDEFINED_ARCHITECTURE": 0, @@ -25606,6 +25766,7 @@ "SEV_LIVE_MIGRATABLE": 392039820, "SEV_LIVE_MIGRATABLE_V2": 168551983, "SEV_SNP_CAPABLE": 426919, + "TDX_CAPABLE": 240446133, "UEFI_COMPATIBLE": 195865408, "VIRTIO_SCSI_MULTIQUEUE": 201597069, "WINDOWS": 456863331 @@ -26131,6 +26292,11 @@ "proto3_optional": true } }, + "sourceRegions": { + "rule": "repeated", + "type": "string", + "id": 405568475 + }, "sslHealthCheck": { "type": "SSLHealthCheck", "id": 280032440, @@ -26642,6 +26808,16 @@ "ipAddress" ] }, + "_ipv6Address": { + "oneof": [ + "ipv6Address" + ] + }, + "_ipv6HealthState": { + "oneof": [ + "ipv6HealthState" + ] + }, "_port": { "oneof": [ "port" @@ -26699,6 +26875,20 @@ "proto3_optional": true } }, + "ipv6Address": { + "type": "string", + "id": 341563804, + "options": { + "proto3_optional": true + } + }, + "ipv6HealthState": { + "type": "string", + "id": 190316614, + "options": { + "proto3_optional": true + } + }, "port": { "type": "int32", "id": 3446913, @@ -26729,6 +26919,11 @@ "UNHEALTHY": 462118084 } }, + "Ipv6HealthState": { + "values": { + "UNDEFINED_IPV6_HEALTH_STATE": 0 + } + }, "WeightError": { "values": { "UNDEFINED_WEIGHT_ERROR": 0, @@ -26766,6 +26961,11 @@ "oneof": [ "healthState" ] + }, + "_ipv6HealthState": { + "oneof": [ + "ipv6HealthState" + ] } }, "fields": { @@ -26803,6 +27003,13 @@ "options": { "proto3_optional": true } + }, + "ipv6HealthState": { + "type": "string", + "id": 190316614, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -26814,6 +27021,11 @@ "UNHEALTHY": 462118084, "UNKNOWN": 433141802 } + }, + "Ipv6HealthState": { + "values": { + "UNDEFINED_IPV6_HEALTH_STATE": 0 + } } } }, @@ -27425,6 +27637,11 @@ }, "HttpRouteRule": { "oneofs": { + "_customErrorResponsePolicy": { + "oneof": [ + "customErrorResponsePolicy" + ] + }, "_description": { "oneof": [ "description" @@ -27457,6 +27674,13 @@ } }, "fields": { + "customErrorResponsePolicy": { + "type": "CustomErrorResponsePolicy", + "id": 202816619, + "options": { + "proto3_optional": true + } + }, "description": { "type": "string", "id": 422937596, @@ -32184,6 +32408,11 @@ "id" ] }, + "_instanceFlexibilityPolicy": { + "oneof": [ + "instanceFlexibilityPolicy" + ] + }, "_instanceGroup": { "oneof": [ "instanceGroup" @@ -32219,6 +32448,16 @@ "region" ] }, + "_satisfiesPzi": { + "oneof": [ + "satisfiesPzi" + ] + }, + "_satisfiesPzs": { + "oneof": [ + "satisfiesPzs" + ] + }, "_selfLink": { "oneof": [ "selfLink" @@ -32312,6 +32551,13 @@ "proto3_optional": true } }, + "instanceFlexibilityPolicy": { + "type": "InstanceGroupManagerInstanceFlexibilityPolicy", + "id": 26937090, + "options": { + "proto3_optional": true + } + }, "instanceGroup": { "type": "string", "id": 81095253, @@ -32366,6 +32612,20 @@ "proto3_optional": true } }, + "satisfiesPzi": { + "type": "bool", + "id": 480964257, + "options": { + "proto3_optional": true + } + }, + "satisfiesPzs": { + "type": "bool", + "id": 480964267, + "options": { + "proto3_optional": true + } + }, "selfLink": { "type": "string", "id": 456214797, @@ -32715,6 +32975,38 @@ } } }, + "InstanceGroupManagerInstanceFlexibilityPolicy": { + "fields": { + "instanceSelections": { + "keyType": "string", + "type": "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection", + "id": 22954577 + } + } + }, + "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection": { + "oneofs": { + "_rank": { + "oneof": [ + "rank" + ] + } + }, + "fields": { + "machineTypes": { + "rule": "repeated", + "type": "string", + "id": 79720065 + }, + "rank": { + "type": "int32", + "id": 3492908, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceGroupManagerInstanceLifecyclePolicy": { "oneofs": { "_defaultActionOnFailure": { @@ -34919,6 +35211,11 @@ "name" ] }, + "_priority": { + "oneof": [ + "priority" + ] + }, "_shortName": { "oneof": [ "shortName" @@ -34945,6 +35242,13 @@ "proto3_optional": true } }, + "priority": { + "type": "int32", + "id": 445151652, + "options": { + "proto3_optional": true + } + }, "rules": { "rule": "repeated", "type": "FirewallPolicyRule", @@ -34972,6 +35276,8 @@ "HIERARCHY": 69902869, "NETWORK": 413984270, "NETWORK_REGIONAL": 190804272, + "SYSTEM_GLOBAL": 60099507, + "SYSTEM_REGIONAL": 161777199, "UNSPECIFIED": 526786327 } } @@ -47938,180 +48244,6 @@ } } }, - "LogConfig": { - "oneofs": { - "_cloudAudit": { - "oneof": [ - "cloudAudit" - ] - }, - "_counter": { - "oneof": [ - "counter" - ] - }, - "_dataAccess": { - "oneof": [ - "dataAccess" - ] - } - }, - "fields": { - "cloudAudit": { - "type": "LogConfigCloudAuditOptions", - "id": 412852561, - "options": { - "proto3_optional": true - } - }, - "counter": { - "type": "LogConfigCounterOptions", - "id": 420959740, - "options": { - "proto3_optional": true - } - }, - "dataAccess": { - "type": "LogConfigDataAccessOptions", - "id": 286633881, - "options": { - "proto3_optional": true - } - } - } - }, - "LogConfigCloudAuditOptions": { - "oneofs": { - "_authorizationLoggingOptions": { - "oneof": [ - "authorizationLoggingOptions" - ] - }, - "_logName": { - "oneof": [ - "logName" - ] - } - }, - "fields": { - "authorizationLoggingOptions": { - "type": "AuthorizationLoggingOptions", - "id": 217861624, - "options": { - "proto3_optional": true - } - }, - "logName": { - "type": "string", - "id": 402913958, - "options": { - "proto3_optional": true - } - } - }, - "nested": { - "LogName": { - "values": { - "UNDEFINED_LOG_NAME": 0, - "ADMIN_ACTIVITY": 427503135, - "DATA_ACCESS": 238070681, - "UNSPECIFIED_LOG_NAME": 410515182 - } - } - } - }, - "LogConfigCounterOptions": { - "oneofs": { - "_field": { - "oneof": [ - "field" - ] - }, - "_metric": { - "oneof": [ - "metric" - ] - } - }, - "fields": { - "customFields": { - "rule": "repeated", - "type": "LogConfigCounterOptionsCustomField", - "id": 249651015 - }, - "field": { - "type": "string", - "id": 97427706, - "options": { - "proto3_optional": true - } - }, - "metric": { - "type": "string", - "id": 533067184, - "options": { - "proto3_optional": true - } - } - } - }, - "LogConfigCounterOptionsCustomField": { - "oneofs": { - "_name": { - "oneof": [ - "name" - ] - }, - "_value": { - "oneof": [ - "value" - ] - } - }, - "fields": { - "name": { - "type": "string", - "id": 3373707, - "options": { - "proto3_optional": true - } - }, - "value": { - "type": "string", - "id": 111972721, - "options": { - "proto3_optional": true - } - } - } - }, - "LogConfigDataAccessOptions": { - "oneofs": { - "_logMode": { - "oneof": [ - "logMode" - ] - } - }, - "fields": { - "logMode": { - "type": "string", - "id": 402897342, - "options": { - "proto3_optional": true - } - } - }, - "nested": { - "LogMode": { - "values": { - "UNDEFINED_LOG_MODE": 0, - "LOG_FAIL_CLOSED": 360469778, - "LOG_MODE_UNSPECIFIED": 88160822 - } - } - } - }, "MachineImage": { "oneofs": { "_creationTimestamp": { @@ -48398,6 +48530,11 @@ }, "MachineType": { "oneofs": { + "_architecture": { + "oneof": [ + "architecture" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -48475,6 +48612,13 @@ "type": "Accelerators", "id": 269577064 }, + "architecture": { + "type": "string", + "id": 302803283, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -48578,6 +48722,16 @@ "proto3_optional": true } } + }, + "nested": { + "Architecture": { + "values": { + "UNDEFINED_ARCHITECTURE": 0, + "ARCHITECTURE_UNSPECIFIED": 394750507, + "ARM64": 62547450, + "X86_64": 425300551 + } + } } }, "MachineTypeAggregatedList": { @@ -48792,6 +48946,11 @@ "preservedStateFromPolicy" ] }, + "_propertiesFromFlexibilityPolicy": { + "oneof": [ + "propertiesFromFlexibilityPolicy" + ] + }, "_version": { "oneof": [ "version" @@ -48860,6 +49019,13 @@ "proto3_optional": true } }, + "propertiesFromFlexibilityPolicy": { + "type": "ManagedInstancePropertiesFromFlexibilityPolicy", + "id": 155525825, + "options": { + "proto3_optional": true + } + }, "version": { "type": "ManagedInstanceVersion", "id": 351608024, @@ -48962,6 +49128,24 @@ } } }, + "ManagedInstancePropertiesFromFlexibilityPolicy": { + "oneofs": { + "_machineType": { + "oneof": [ + "machineType" + ] + } + }, + "fields": { + "machineType": { + "type": "string", + "id": 227711026, + "options": { + "proto3_optional": true + } + } + } + }, "ManagedInstanceVersion": { "oneofs": { "_instanceTemplate": { @@ -50282,6 +50466,11 @@ }, "NetworkEndpoint": { "oneofs": { + "_clientDestinationPort": { + "oneof": [ + "clientDestinationPort" + ] + }, "_fqdn": { "oneof": [ "fqdn" @@ -50297,6 +50486,11 @@ "ipAddress" ] }, + "_ipv6Address": { + "oneof": [ + "ipv6Address" + ] + }, "_port": { "oneof": [ "port" @@ -50309,6 +50503,13 @@ "type": "string", "id": 112032548 }, + "clientDestinationPort": { + "type": "int32", + "id": 123765766, + "options": { + "proto3_optional": true + } + }, "fqdn": { "type": "string", "id": 3150485, @@ -50330,6 +50531,13 @@ "proto3_optional": true } }, + "ipv6Address": { + "type": "string", + "id": 341563804, + "options": { + "proto3_optional": true + } + }, "port": { "type": "int32", "id": 3446913, @@ -50571,6 +50779,7 @@ "UNDEFINED_NETWORK_ENDPOINT_TYPE": 0, "GCE_VM_IP": 401880793, "GCE_VM_IP_PORT": 501838375, + "GCE_VM_IP_PORTMAP": 22819253, "INTERNET_FQDN_PORT": 404154477, "INTERNET_IP_PORT": 477719963, "NON_GCP_PRIVATE_IP_PORT": 336447968, @@ -50848,6 +51057,11 @@ "consumerPscAddress" ] }, + "_producerPort": { + "oneof": [ + "producerPort" + ] + }, "_pscConnectionId": { "oneof": [ "pscConnectionId" @@ -50867,6 +51081,13 @@ "proto3_optional": true } }, + "producerPort": { + "type": "int32", + "id": 410021134, + "options": { + "proto3_optional": true + } + }, "pscConnectionId": { "type": "uint64", "id": 292082397, @@ -51235,6 +51456,7 @@ "values": { "UNDEFINED_NIC_TYPE": 0, "GVNIC": 68209305, + "IDPF": 2242641, "UNSPECIFIED_NIC_TYPE": 67411801, "VIRTIO_NET": 452123481 } @@ -51244,6 +51466,7 @@ "UNDEFINED_STACK_TYPE": 0, "IPV4_IPV6": 22197249, "IPV4_ONLY": 22373798, + "IPV6_ONLY": 79632100, "UNSPECIFIED_STACK_TYPE": 298084569 } } @@ -51620,6 +51843,11 @@ "name" ] }, + "_priority": { + "oneof": [ + "priority" + ] + }, "_shortName": { "oneof": [ "shortName" @@ -51646,6 +51874,13 @@ "proto3_optional": true } }, + "priority": { + "type": "int32", + "id": 445151652, + "options": { + "proto3_optional": true + } + }, "rules": { "rule": "repeated", "type": "FirewallPolicyRule", @@ -51672,6 +51907,7 @@ "UNDEFINED_TYPE": 0, "HIERARCHY": 69902869, "NETWORK": 413984270, + "SYSTEM": 313484847, "UNSPECIFIED": 526786327 } } @@ -57119,6 +57355,11 @@ }, "PathMatcher": { "oneofs": { + "_defaultCustomErrorResponsePolicy": { + "oneof": [ + "defaultCustomErrorResponsePolicy" + ] + }, "_defaultRouteAction": { "oneof": [ "defaultRouteAction" @@ -57151,6 +57392,13 @@ } }, "fields": { + "defaultCustomErrorResponsePolicy": { + "type": "CustomErrorResponsePolicy", + "id": 81266089, + "options": { + "proto3_optional": true + } + }, "defaultRouteAction": { "type": "HttpRouteAction", "id": 378919466, @@ -57207,6 +57455,11 @@ }, "PathRule": { "oneofs": { + "_customErrorResponsePolicy": { + "oneof": [ + "customErrorResponsePolicy" + ] + }, "_routeAction": { "oneof": [ "routeAction" @@ -57224,6 +57477,13 @@ } }, "fields": { + "customErrorResponsePolicy": { + "type": "CustomErrorResponsePolicy", + "id": 202816619, + "options": { + "proto3_optional": true + } + }, "paths": { "rule": "repeated", "type": "string", @@ -57451,11 +57711,6 @@ "proto3_optional": true } }, - "rules": { - "rule": "repeated", - "type": "Rule", - "id": 108873975 - }, "version": { "type": "int32", "id": 351608024, @@ -62943,6 +63198,11 @@ "physicalHost" ] }, + "_scheduling": { + "oneof": [ + "scheduling" + ] + }, "_upcomingMaintenance": { "oneof": [ "upcomingMaintenance" @@ -62957,6 +63217,13 @@ "proto3_optional": true } }, + "scheduling": { + "type": "ResourceStatusScheduling", + "id": 386688404, + "options": { + "proto3_optional": true + } + }, "upcomingMaintenance": { "type": "UpcomingMaintenance", "id": 227348592, @@ -62966,6 +63233,24 @@ } } }, + "ResourceStatusScheduling": { + "oneofs": { + "_availabilityDomain": { + "oneof": [ + "availabilityDomain" + ] + } + }, + "fields": { + "availabilityDomain": { + "type": "int32", + "id": 252514344, + "options": { + "proto3_optional": true + } + } + } + }, "ResumeInstanceRequest": { "oneofs": { "_requestId": { @@ -65212,74 +65497,6 @@ } } }, - "Rule": { - "oneofs": { - "_action": { - "oneof": [ - "action" - ] - }, - "_description": { - "oneof": [ - "description" - ] - } - }, - "fields": { - "action": { - "type": "string", - "id": 187661878, - "options": { - "proto3_optional": true - } - }, - "conditions": { - "rule": "repeated", - "type": "Condition", - "id": 142882488 - }, - "description": { - "type": "string", - "id": 422937596, - "options": { - "proto3_optional": true - } - }, - "ins": { - "rule": "repeated", - "type": "string", - "id": 104430 - }, - "logConfigs": { - "rule": "repeated", - "type": "LogConfig", - "id": 152873846 - }, - "notIns": { - "rule": "repeated", - "type": "string", - "id": 518443138 - }, - "permissions": { - "rule": "repeated", - "type": "string", - "id": 59962500 - } - }, - "nested": { - "Action": { - "values": { - "UNDEFINED_ACTION": 0, - "ALLOW": 62368553, - "ALLOW_WITH_LOG": 76034177, - "DENY": 2094604, - "DENY_WITH_LOG": 351433982, - "LOG": 75556, - "NO_ACTION": 260643444 - } - } - } - }, "SSLHealthCheck": { "oneofs": { "_port": { @@ -65732,6 +65949,11 @@ "automaticRestart" ] }, + "_availabilityDomain": { + "oneof": [ + "availabilityDomain" + ] + }, "_instanceTerminationAction": { "oneof": [ "instanceTerminationAction" @@ -65747,6 +65969,11 @@ "locationHint" ] }, + "_maxRunDuration": { + "oneof": [ + "maxRunDuration" + ] + }, "_minNodeCpus": { "oneof": [ "minNodeCpus" @@ -65757,6 +65984,11 @@ "onHostMaintenance" ] }, + "_onInstanceStopAction": { + "oneof": [ + "onInstanceStopAction" + ] + }, "_preemptible": { "oneof": [ "preemptible" @@ -65766,6 +65998,11 @@ "oneof": [ "provisioningModel" ] + }, + "_terminationTime": { + "oneof": [ + "terminationTime" + ] } }, "fields": { @@ -65776,6 +66013,13 @@ "proto3_optional": true } }, + "availabilityDomain": { + "type": "int32", + "id": 252514344, + "options": { + "proto3_optional": true + } + }, "instanceTerminationAction": { "type": "string", "id": 107380667, @@ -65797,6 +66041,13 @@ "proto3_optional": true } }, + "maxRunDuration": { + "type": "Duration", + "id": 430839747, + "options": { + "proto3_optional": true + } + }, "minNodeCpus": { "type": "int32", "id": 317231675, @@ -65816,6 +66067,13 @@ "proto3_optional": true } }, + "onInstanceStopAction": { + "type": "SchedulingOnInstanceStopAction", + "id": 529876681, + "options": { + "proto3_optional": true + } + }, "preemptible": { "type": "bool", "id": 324203169, @@ -65829,6 +66087,13 @@ "options": { "proto3_optional": true } + }, + "terminationTime": { + "type": "string", + "id": 428082984, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -65901,6 +66166,24 @@ } } }, + "SchedulingOnInstanceStopAction": { + "oneofs": { + "_discardLocalSsd": { + "oneof": [ + "discardLocalSsd" + ] + } + }, + "fields": { + "discardLocalSsd": { + "type": "bool", + "id": 319517903, + "options": { + "proto3_optional": true + } + } + } + }, "ScratchDisks": { "oneofs": { "_diskGb": { @@ -66379,6 +66662,21 @@ "autoDeployLoadThreshold" ] }, + "_detectionAbsoluteQps": { + "oneof": [ + "detectionAbsoluteQps" + ] + }, + "_detectionLoadThreshold": { + "oneof": [ + "detectionLoadThreshold" + ] + }, + "_detectionRelativeToBaselineQps": { + "oneof": [ + "detectionRelativeToBaselineQps" + ] + }, "_name": { "oneof": [ "name" @@ -66414,12 +66712,90 @@ "proto3_optional": true } }, + "detectionAbsoluteQps": { + "type": "float", + "id": 383123174, + "options": { + "proto3_optional": true + } + }, + "detectionLoadThreshold": { + "type": "float", + "id": 430499148, + "options": { + "proto3_optional": true + } + }, + "detectionRelativeToBaselineQps": { + "type": "float", + "id": 291343749, + "options": { + "proto3_optional": true + } + }, "name": { "type": "string", "id": 3373707, "options": { "proto3_optional": true } + }, + "trafficGranularityConfigs": { + "rule": "repeated", + "type": "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig", + "id": 85367358 + } + } + }, + "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig": { + "oneofs": { + "_enableEachUniqueValue": { + "oneof": [ + "enableEachUniqueValue" + ] + }, + "_type": { + "oneof": [ + "type" + ] + }, + "_value": { + "oneof": [ + "value" + ] + } + }, + "fields": { + "enableEachUniqueValue": { + "type": "bool", + "id": 469206341, + "options": { + "proto3_optional": true + } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + }, + "value": { + "type": "string", + "id": 111972721, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Type": { + "values": { + "UNDEFINED_TYPE": 0, + "HTTP_HEADER_HOST": 374321891, + "HTTP_PATH": 311503228, + "UNSPECIFIED_TYPE": 53933922 + } } } }, @@ -67603,6 +67979,11 @@ "producerForwardingRule" ] }, + "_propagatedConnectionLimit": { + "oneof": [ + "propagatedConnectionLimit" + ] + }, "_pscServiceAttachmentId": { "oneof": [ "pscServiceAttachmentId" @@ -67718,6 +68099,13 @@ "proto3_optional": true } }, + "propagatedConnectionLimit": { + "type": "uint32", + "id": 332719230, + "options": { + "proto3_optional": true + } + }, "pscServiceAttachmentId": { "type": "Uint128", "id": 527695214, @@ -67853,6 +68241,11 @@ "endpoint" ] }, + "_propagatedConnectionCount": { + "oneof": [ + "propagatedConnectionCount" + ] + }, "_pscConnectionId": { "oneof": [ "pscConnectionId" @@ -67879,6 +68272,13 @@ "proto3_optional": true } }, + "propagatedConnectionCount": { + "type": "uint32", + "id": 324594130, + "options": { + "proto3_optional": true + } + }, "pscConnectionId": { "type": "uint64", "id": 292082397, @@ -75599,6 +75999,7 @@ "UNDEFINED_STACK_TYPE": 0, "IPV4_IPV6": 22197249, "IPV4_ONLY": 22373798, + "IPV6_ONLY": 79632100, "UNSPECIFIED_STACK_TYPE": 298084569 } }, @@ -76830,6 +77231,11 @@ "sslPolicy" ] }, + "_tlsEarlyData": { + "oneof": [ + "tlsEarlyData" + ] + }, "_urlMap": { "oneof": [ "urlMap" @@ -76947,6 +77353,13 @@ "proto3_optional": true } }, + "tlsEarlyData": { + "type": "string", + "id": 61108426, + "options": { + "proto3_optional": true + } + }, "urlMap": { "type": "string", "id": 367020684, @@ -76963,6 +77376,14 @@ "ENABLE": 438835587, "NONE": 2402104 } + }, + "TlsEarlyData": { + "values": { + "UNDEFINED_TLS_EARLY_DATA": 0, + "DISABLED": 516696700, + "PERMISSIVE": 504345247, + "STRICT": 308826825 + } } } }, @@ -77587,7 +78008,8 @@ "GENERATED_COOKIE": 370321204, "HEADER_FIELD": 200737960, "HTTP_COOKIE": 494981627, - "NONE": 2402104 + "NONE": 2402104, + "STRONG_COOKIE_AFFINITY": 438628091 } } } @@ -81168,6 +81590,11 @@ "creationTimestamp" ] }, + "_defaultCustomErrorResponsePolicy": { + "oneof": [ + "defaultCustomErrorResponsePolicy" + ] + }, "_defaultRouteAction": { "oneof": [ "defaultRouteAction" @@ -81232,6 +81659,13 @@ "proto3_optional": true } }, + "defaultCustomErrorResponsePolicy": { + "type": "CustomErrorResponsePolicy", + "id": 81266089, + "options": { + "proto3_optional": true + } + }, "defaultRouteAction": { "type": "HttpRouteAction", "id": 378919466, @@ -81909,7 +82343,8 @@ "values": { "UNDEFINED_STACK_TYPE": 0, "IPV4_IPV6": 22197249, - "IPV4_ONLY": 22373798 + "IPV4_ONLY": 22373798, + "IPV6_ONLY": 79632100 } } } @@ -82476,7 +82911,8 @@ "values": { "UNDEFINED_STACK_TYPE": 0, "IPV4_IPV6": 22197249, - "IPV4_ONLY": 22373798 + "IPV4_ONLY": 22373798, + "IPV6_ONLY": 79632100 } } } diff --git a/packages/google-cloud-compute/samples/generated/v1/global_operations.delete.js b/packages/google-cloud-compute/samples/generated/v1/global_operations.delete.js index c0f407c30b8..c1b8dfab53c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_operations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_operations.delete.js @@ -29,7 +29,7 @@ function main(operation, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to delete. + * Name of the Operations resource to delete, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_operations.get.js b/packages/google-cloud-compute/samples/generated/v1/global_operations.get.js index 160e72ea1cd..283b631fefe 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_operations.get.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_operations.get.js @@ -29,7 +29,7 @@ function main(operation, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_operations.wait.js b/packages/google-cloud-compute/samples/generated/v1/global_operations.wait.js index fa411d2cb33..8536dad54e6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_operations.wait.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_operations.wait.js @@ -29,7 +29,7 @@ function main(operation, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.delete.js b/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.delete.js index 27001337d0f..2ab6177ed5e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.delete.js @@ -29,7 +29,7 @@ function main(operation) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to delete. + * Name of the Operations resource to delete, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.get.js b/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.get.js index 211a9f570ed..b47710af37b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.get.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.get.js @@ -29,7 +29,7 @@ function main(operation) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_operations.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_operations.delete.js index 8482b401092..da5fb98d43b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_operations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_operations.delete.js @@ -29,7 +29,7 @@ function main(operation, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to delete. + * Name of the Operations resource to delete, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_operations.get.js b/packages/google-cloud-compute/samples/generated/v1/region_operations.get.js index d787e9199ce..f207b7d906f 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_operations.get.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_operations.get.js @@ -29,7 +29,7 @@ function main(operation, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_operations.wait.js b/packages/google-cloud-compute/samples/generated/v1/region_operations.wait.js index 9a111690f0f..9dae971045d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_operations.wait.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_operations.wait.js @@ -29,7 +29,7 @@ function main(operation, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json index a42834d47e2..40b4b835876 100644 --- a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json +++ b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json @@ -2059,7 +2059,7 @@ "regionTag": "compute_v1_generated_BackendServices_ListUsable_async", "title": "AcceleratorTypes listUsable Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all usable backend services in the specified project.", + "description": " Retrieves a list of all usable backend services in the specified project.", "canonical": true, "file": "backend_services.list_usable.js", "language": "JAVASCRIPT", @@ -18259,7 +18259,7 @@ "regionTag": "compute_v1_generated_Networks_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.", + "description": " Patches the specified network with the data included in the request. Only routingConfig can be modified.", "canonical": true, "file": "networks.patch.js", "language": "JAVASCRIPT", @@ -22439,7 +22439,7 @@ "regionTag": "compute_v1_generated_RegionBackendServices_ListUsable_async", "title": "AcceleratorTypes listUsable Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all usable backend services in the specified project in the given region.", + "description": " Retrieves a list of all usable backend services in the specified project in the given region.", "canonical": true, "file": "region_backend_services.list_usable.js", "language": "JAVASCRIPT", @@ -28487,7 +28487,7 @@ "regionTag": "compute_v1_generated_Regions_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.", + "description": " Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.", "canonical": true, "file": "regions.get.js", "language": "JAVASCRIPT", @@ -28531,7 +28531,7 @@ "regionTag": "compute_v1_generated_Regions_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.", + "description": " Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.", "canonical": true, "file": "regions.list.js", "language": "JAVASCRIPT", @@ -35623,7 +35623,7 @@ "regionTag": "compute_v1_generated_StoragePools_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: size_tb and provisioned_iops.", + "description": " Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput.", "canonical": true, "file": "storage_pools.update.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-compute/samples/generated/v1/zone_operations.delete.js b/packages/google-cloud-compute/samples/generated/v1/zone_operations.delete.js index b2dd8ddcc5a..5b3aacd2cae 100644 --- a/packages/google-cloud-compute/samples/generated/v1/zone_operations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/zone_operations.delete.js @@ -29,7 +29,7 @@ function main(operation, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to delete. + * Name of the Operations resource to delete, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/zone_operations.get.js b/packages/google-cloud-compute/samples/generated/v1/zone_operations.get.js index 83f9ee94bd2..a900e8c5dbe 100644 --- a/packages/google-cloud-compute/samples/generated/v1/zone_operations.get.js +++ b/packages/google-cloud-compute/samples/generated/v1/zone_operations.get.js @@ -29,7 +29,7 @@ function main(operation, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/zone_operations.wait.js b/packages/google-cloud-compute/samples/generated/v1/zone_operations.wait.js index 7828298d9a3..587ddce9fcb 100644 --- a/packages/google-cloud-compute/samples/generated/v1/zone_operations.wait.js +++ b/packages/google-cloud-compute/samples/generated/v1/zone_operations.wait.js @@ -29,7 +29,7 @@ function main(operation, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/src/v1/backend_services_client.ts b/packages/google-cloud-compute/src/v1/backend_services_client.ts index b942e5c9cba..3543402cbee 100644 --- a/packages/google-cloud-compute/src/v1/backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_services_client.ts @@ -2123,7 +2123,7 @@ export class BackendServicesClient { ) as AsyncIterable; } /** - * Retrieves an aggregated list of all usable backend services in the specified project. + * Retrieves a list of all usable backend services in the specified project. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/global_operations_client.ts b/packages/google-cloud-compute/src/v1/global_operations_client.ts index 100b0f0aa51..d706ecb6dc8 100644 --- a/packages/google-cloud-compute/src/v1/global_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/global_operations_client.ts @@ -388,7 +388,7 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to delete. + * Name of the Operations resource to delete, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {object} [options] @@ -481,7 +481,7 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {object} [options] @@ -574,7 +574,7 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts b/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts index 121f82afcd4..f3c510f00d3 100644 --- a/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts @@ -379,7 +379,7 @@ export class GlobalOrganizationOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to delete. + * Name of the Operations resource to delete, or its unique numeric identifier. * @param {string} request.parentId * Parent ID for this request. * @param {object} [options] @@ -477,7 +477,7 @@ export class GlobalOrganizationOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. * @param {string} request.parentId * Parent ID for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/networks_client.ts b/packages/google-cloud-compute/src/v1/networks_client.ts index 0811bedccbd..2c36740f41a 100644 --- a/packages/google-cloud-compute/src/v1/networks_client.ts +++ b/packages/google-cloud-compute/src/v1/networks_client.ts @@ -923,7 +923,7 @@ export class NetworksClient { ); } /** - * Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode. + * Patches the specified network with the data included in the request. Only routingConfig can be modified. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_backend_services_client.ts b/packages/google-cloud-compute/src/v1/region_backend_services_client.ts index 1749196e4e1..cc4be03d168 100644 --- a/packages/google-cloud-compute/src/v1/region_backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1/region_backend_services_client.ts @@ -1735,7 +1735,7 @@ export class RegionBackendServicesClient { ) as AsyncIterable; } /** - * Retrieves an aggregated list of all usable backend services in the specified project in the given region. + * Retrieves a list of all usable backend services in the specified project in the given region. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_operations_client.ts b/packages/google-cloud-compute/src/v1/region_operations_client.ts index 3af946f45d9..bf843c460dc 100644 --- a/packages/google-cloud-compute/src/v1/region_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/region_operations_client.ts @@ -377,7 +377,7 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to delete. + * Name of the Operations resource to delete, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -473,7 +473,7 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -569,7 +569,7 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.region diff --git a/packages/google-cloud-compute/src/v1/regions_client.ts b/packages/google-cloud-compute/src/v1/regions_client.ts index 61897336583..fa27ebec758 100644 --- a/packages/google-cloud-compute/src/v1/regions_client.ts +++ b/packages/google-cloud-compute/src/v1/regions_client.ts @@ -373,7 +373,7 @@ export class RegionsClient { // -- Service calls -- // ------------------- /** - * Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. * * @param {Object} request * The request object that will be sent. @@ -459,7 +459,7 @@ export class RegionsClient { } /** - * Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/storage_pools_client.ts b/packages/google-cloud-compute/src/v1/storage_pools_client.ts index adc728a4c8d..16426061f92 100644 --- a/packages/google-cloud-compute/src/v1/storage_pools_client.ts +++ b/packages/google-cloud-compute/src/v1/storage_pools_client.ts @@ -1041,7 +1041,7 @@ export class StoragePoolsClient { return this.innerApiCalls.testIamPermissions(request, options, callback); } /** - * Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: size_tb and provisioned_iops. + * Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/zone_operations_client.ts b/packages/google-cloud-compute/src/v1/zone_operations_client.ts index dcd56d87a32..c3e469a3d17 100644 --- a/packages/google-cloud-compute/src/v1/zone_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/zone_operations_client.ts @@ -377,7 +377,7 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to delete. + * Name of the Operations resource to delete, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.zone @@ -473,7 +473,7 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.zone @@ -569,7 +569,7 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return. + * Name of the Operations resource to return, or its unique numeric identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.zone diff --git a/packages/google-cloud-dialogflow-cx/README.md b/packages/google-cloud-dialogflow-cx/README.md index c8d06236b53..92ecd2f1eb2 100644 --- a/packages/google-cloud-dialogflow-cx/README.md +++ b/packages/google-cloud-dialogflow-cx/README.md @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. 1. [Select or create a Cloud Platform project][projects]. 1. [Enable billing for your project][billing]. 1. [Enable the Dialogflow CX API API][enable_api]. -1. [Set up authentication with a service account][auth] so you can access the +1. [Set up authentication][auth] so you can access the API from your local workstation. ### Installing the client library @@ -451,4 +451,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=dialogflow.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started +[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto index 18806c4109e..d9e344ddeb2 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto @@ -87,11 +87,16 @@ message AdvancedSettings { // Define behaviors on logging. message LoggingSettings { - // If true, StackDriver logging is currently enabled. + // Enables Google Cloud Logging. bool enable_stackdriver_logging = 2; - // If true, DF Interaction logging is currently enabled. + // Enables DF Interaction logging. bool enable_interaction_logging = 3; + + // Enables consent-based end-user input redaction, if true, a pre-defined + // session parameter `$session.params.conversation-redaction` will be + // used to determine if the utterance should be redacted. + bool enable_consent_based_redaction = 4; } // If present, incoming audio is exported by Dialogflow to the configured diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/data_store_connection.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/data_store_connection.proto index 1c6d663d4e5..be05789b2ab 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/data_store_connection.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/data_store_connection.proto @@ -69,6 +69,10 @@ message DataStoreConnectionSignals { // Output of the generative model. string model_output = 2; + + // Name of the generative model. For example, "gemini-ultra", "gemini-pro", + // "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown. + string model = 3; } // Search snippet details. @@ -90,6 +94,10 @@ message DataStoreConnectionSignals { // Output of the generative model. string model_output = 2; + + // Name of the generative model. For example, "gemini-ultra", "gemini-pro", + // "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown. + string model = 3; } // Answer part with citation. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto index 04ac95cfde8..846f4c5e7d6 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto @@ -353,6 +353,10 @@ message Flow { // Optional. Multi-lingual agent settings for this flow. MultiLanguageSettings multi_language_settings = 28 [(google.api.field_behavior) = OPTIONAL]; + + // Indicates whether the flow is locked for changes. If the flow is locked, + // modifications to the flow will be rejected. + bool locked = 30; } // The request message for diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto index ecb95932ecf..69aa49a5959 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto @@ -340,6 +340,13 @@ message EventHandler { string target_flow = 3 [(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" }]; + + // The target playbook to transition to. + // Format: + // `projects//locations//agents//playbooks/`. + string target_playbook = 7 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Playbook" + }]; } } diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto index ec2f13709f0..21693b1e87c 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -1142,6 +1142,9 @@ message Match { // The query directly triggered an event. EVENT = 6; + // The query was matched to a Knowledge Connector answer. + KNOWLEDGE_CONNECTOR = 8; + // The query was handled by a // [`Playbook`][google.cloud.dialogflow.cx.v3beta1.Playbook]. PLAYBOOK = 9; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto index 6e966a91903..8a7de1de306 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto @@ -293,9 +293,8 @@ message TestConfig { // ID>/flows/`. // // Only one of `flow` and `page` should be set to indicate the starting point - // of the test case. If both are set, `page` takes precedence over `flow`. If - // neither is set, the test case will start with start page on the default - // start flow. + // of the test case. If neither is set, the test case will start with start + // page on the default start flow. string flow = 2 [ (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; @@ -305,9 +304,8 @@ message TestConfig { // ID>/flows//pages/`. // // Only one of `flow` and `page` should be set to indicate the starting point - // of the test case. If both are set, `page` takes precedence over `flow`. If - // neither is set, the test case will start with start page on the default - // start flow. + // of the test case. If neither is set, the test case will start with start + // page on the default start flow. string page = 3 [ (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Page" } ]; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/tool.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/tool.proto index 0f16ab48377..59ab69b3c08 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/tool.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/tool.proto @@ -287,6 +287,10 @@ message Tool { // Optional. TLS configuration for the HTTPS verification. TLSConfig tls_config = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service Directory configuration. + ServiceDirectoryConfig service_directory_config = 4 + [(google.api.field_behavior) = OPTIONAL]; } // A DataStoreTool is a way to provide specifications needed to search a @@ -432,6 +436,22 @@ message Tool { repeated CACert ca_certs = 1 [(google.api.field_behavior) = REQUIRED]; } + // Configuration for tools using Service Directory. + message ServiceDirectoryConfig { + // Required. The name of [Service + // Directory](https://cloud.google.com/service-directory) service. + // Format: + // `projects//locations//namespaces//services/`. + // `LocationID` of the service directory must be the same as the location + // of the agent. + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; + } + // Represents the type of the tool. enum ToolType { // Default value. This value is unused. diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts index 3137ffe57a0..9857e71ca52 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts @@ -38525,6 +38525,9 @@ export namespace google { /** LoggingSettings enableInteractionLogging */ enableInteractionLogging?: (boolean|null); + + /** LoggingSettings enableConsentBasedRedaction */ + enableConsentBasedRedaction?: (boolean|null); } /** Represents a LoggingSettings. */ @@ -38542,6 +38545,9 @@ export namespace google { /** LoggingSettings enableInteractionLogging. */ public enableInteractionLogging: boolean; + /** LoggingSettings enableConsentBasedRedaction. */ + public enableConsentBasedRedaction: boolean; + /** * Creates a new LoggingSettings instance using the specified properties. * @param [properties] Properties to set @@ -42744,6 +42750,9 @@ export namespace google { /** Flow multiLanguageSettings */ multiLanguageSettings?: (google.cloud.dialogflow.cx.v3beta1.Flow.IMultiLanguageSettings|null); + + /** Flow locked */ + locked?: (boolean|null); } /** Represents a Flow. */ @@ -42785,6 +42794,9 @@ export namespace google { /** Flow multiLanguageSettings. */ public multiLanguageSettings?: (google.cloud.dialogflow.cx.v3beta1.Flow.IMultiLanguageSettings|null); + /** Flow locked. */ + public locked: boolean; + /** * Creates a new Flow instance using the specified properties. * @param [properties] Properties to set @@ -45218,6 +45230,9 @@ export namespace google { /** EventHandler targetFlow */ targetFlow?: (string|null); + + /** EventHandler targetPlaybook */ + targetPlaybook?: (string|null); } /** Represents an EventHandler. */ @@ -45244,8 +45259,11 @@ export namespace google { /** EventHandler targetFlow. */ public targetFlow?: (string|null); + /** EventHandler targetPlaybook. */ + public targetPlaybook?: (string|null); + /** EventHandler target. */ - public target?: ("targetPage"|"targetFlow"); + public target?: ("targetPage"|"targetFlow"|"targetPlaybook"); /** * Creates a new EventHandler instance using the specified properties. @@ -46493,6 +46511,9 @@ export namespace google { /** RewriterModelCallSignals modelOutput */ modelOutput?: (string|null); + + /** RewriterModelCallSignals model */ + model?: (string|null); } /** Represents a RewriterModelCallSignals. */ @@ -46510,6 +46531,9 @@ export namespace google { /** RewriterModelCallSignals modelOutput. */ public modelOutput: string; + /** RewriterModelCallSignals model. */ + public model: string; + /** * Creates a new RewriterModelCallSignals instance using the specified properties. * @param [properties] Properties to set @@ -46705,6 +46729,9 @@ export namespace google { /** AnswerGenerationModelCallSignals modelOutput */ modelOutput?: (string|null); + + /** AnswerGenerationModelCallSignals model */ + model?: (string|null); } /** Represents an AnswerGenerationModelCallSignals. */ @@ -46722,6 +46749,9 @@ export namespace google { /** AnswerGenerationModelCallSignals modelOutput. */ public modelOutput: string; + /** AnswerGenerationModelCallSignals model. */ + public model: string; + /** * Creates a new AnswerGenerationModelCallSignals instance using the specified properties. * @param [properties] Properties to set @@ -64600,6 +64630,7 @@ export namespace google { NO_MATCH = 4, NO_INPUT = 5, EVENT = 6, + KNOWLEDGE_CONNECTOR = 8, PLAYBOOK = 9 } } @@ -81714,6 +81745,9 @@ export namespace google { /** OpenApiTool tlsConfig */ tlsConfig?: (google.cloud.dialogflow.cx.v3beta1.Tool.ITLSConfig|null); + + /** OpenApiTool serviceDirectoryConfig */ + serviceDirectoryConfig?: (google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig|null); } /** Represents an OpenApiTool. */ @@ -81734,6 +81768,9 @@ export namespace google { /** OpenApiTool tlsConfig. */ public tlsConfig?: (google.cloud.dialogflow.cx.v3beta1.Tool.ITLSConfig|null); + /** OpenApiTool serviceDirectoryConfig. */ + public serviceDirectoryConfig?: (google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig|null); + /** OpenApiTool schema. */ public schema?: "textSchema"; @@ -82861,6 +82898,103 @@ export namespace google { } } + /** Properties of a ServiceDirectoryConfig. */ + interface IServiceDirectoryConfig { + + /** ServiceDirectoryConfig service */ + service?: (string|null); + } + + /** Represents a ServiceDirectoryConfig. */ + class ServiceDirectoryConfig implements IServiceDirectoryConfig { + + /** + * Constructs a new ServiceDirectoryConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig); + + /** ServiceDirectoryConfig service. */ + public service: string; + + /** + * Creates a new ServiceDirectoryConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDirectoryConfig instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig): google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig; + + /** + * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.verify|verify} messages. + * @param message ServiceDirectoryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.verify|verify} messages. + * @param message ServiceDirectoryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig; + + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig; + + /** + * Verifies a ServiceDirectoryConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDirectoryConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig; + + /** + * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * @param message ServiceDirectoryConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDirectoryConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceDirectoryConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** ToolType enum. */ enum ToolType { TOOL_TYPE_UNSPECIFIED = 0, diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.js b/packages/google-cloud-dialogflow-cx/protos/protos.js index ba920b5f7d4..6d25aea9763 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.js +++ b/packages/google-cloud-dialogflow-cx/protos/protos.js @@ -92475,6 +92475,7 @@ * @interface ILoggingSettings * @property {boolean|null} [enableStackdriverLogging] LoggingSettings enableStackdriverLogging * @property {boolean|null} [enableInteractionLogging] LoggingSettings enableInteractionLogging + * @property {boolean|null} [enableConsentBasedRedaction] LoggingSettings enableConsentBasedRedaction */ /** @@ -92508,6 +92509,14 @@ */ LoggingSettings.prototype.enableInteractionLogging = false; + /** + * LoggingSettings enableConsentBasedRedaction. + * @member {boolean} enableConsentBasedRedaction + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @instance + */ + LoggingSettings.prototype.enableConsentBasedRedaction = false; + /** * Creates a new LoggingSettings instance using the specified properties. * @function create @@ -92536,6 +92545,8 @@ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableStackdriverLogging); if (message.enableInteractionLogging != null && Object.hasOwnProperty.call(message, "enableInteractionLogging")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enableInteractionLogging); + if (message.enableConsentBasedRedaction != null && Object.hasOwnProperty.call(message, "enableConsentBasedRedaction")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enableConsentBasedRedaction); return writer; }; @@ -92578,6 +92589,10 @@ message.enableInteractionLogging = reader.bool(); break; } + case 4: { + message.enableConsentBasedRedaction = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -92619,6 +92634,9 @@ if (message.enableInteractionLogging != null && message.hasOwnProperty("enableInteractionLogging")) if (typeof message.enableInteractionLogging !== "boolean") return "enableInteractionLogging: boolean expected"; + if (message.enableConsentBasedRedaction != null && message.hasOwnProperty("enableConsentBasedRedaction")) + if (typeof message.enableConsentBasedRedaction !== "boolean") + return "enableConsentBasedRedaction: boolean expected"; return null; }; @@ -92638,6 +92656,8 @@ message.enableStackdriverLogging = Boolean(object.enableStackdriverLogging); if (object.enableInteractionLogging != null) message.enableInteractionLogging = Boolean(object.enableInteractionLogging); + if (object.enableConsentBasedRedaction != null) + message.enableConsentBasedRedaction = Boolean(object.enableConsentBasedRedaction); return message; }; @@ -92657,11 +92677,14 @@ if (options.defaults) { object.enableStackdriverLogging = false; object.enableInteractionLogging = false; + object.enableConsentBasedRedaction = false; } if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) object.enableStackdriverLogging = message.enableStackdriverLogging; if (message.enableInteractionLogging != null && message.hasOwnProperty("enableInteractionLogging")) object.enableInteractionLogging = message.enableInteractionLogging; + if (message.enableConsentBasedRedaction != null && message.hasOwnProperty("enableConsentBasedRedaction")) + object.enableConsentBasedRedaction = message.enableConsentBasedRedaction; return object; }; @@ -102319,6 +102342,7 @@ * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] Flow advancedSettings * @property {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] Flow knowledgeConnectorSettings * @property {google.cloud.dialogflow.cx.v3beta1.Flow.IMultiLanguageSettings|null} [multiLanguageSettings] Flow multiLanguageSettings + * @property {boolean|null} [locked] Flow locked */ /** @@ -102419,6 +102443,14 @@ */ Flow.prototype.multiLanguageSettings = null; + /** + * Flow locked. + * @member {boolean} locked + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @instance + */ + Flow.prototype.locked = false; + /** * Creates a new Flow instance using the specified properties. * @function create @@ -102466,6 +102498,8 @@ $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.encode(message.knowledgeConnectorSettings, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); if (message.multiLanguageSettings != null && Object.hasOwnProperty.call(message, "multiLanguageSettings")) $root.google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.encode(message.multiLanguageSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) + writer.uint32(/* id 30, wireType 0 =*/240).bool(message.locked); return writer; }; @@ -102546,6 +102580,10 @@ message.multiLanguageSettings = $root.google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.decode(reader, reader.uint32()); break; } + case 30: { + message.locked = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -102635,6 +102673,9 @@ if (error) return "multiLanguageSettings." + error; } + if (message.locked != null && message.hasOwnProperty("locked")) + if (typeof message.locked !== "boolean") + return "locked: boolean expected"; return null; }; @@ -102703,6 +102744,8 @@ throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.multiLanguageSettings: object expected"); message.multiLanguageSettings = $root.google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.fromObject(object.multiLanguageSettings); } + if (object.locked != null) + message.locked = Boolean(object.locked); return message; }; @@ -102732,6 +102775,7 @@ object.advancedSettings = null; object.knowledgeConnectorSettings = null; object.multiLanguageSettings = null; + object.locked = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -102762,6 +102806,8 @@ object.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.toObject(message.knowledgeConnectorSettings, options); if (message.multiLanguageSettings != null && message.hasOwnProperty("multiLanguageSettings")) object.multiLanguageSettings = $root.google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.toObject(message.multiLanguageSettings, options); + if (message.locked != null && message.hasOwnProperty("locked")) + object.locked = message.locked; return object; }; @@ -108359,6 +108405,7 @@ * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment * @property {string|null} [targetPage] EventHandler targetPage * @property {string|null} [targetFlow] EventHandler targetFlow + * @property {string|null} [targetPlaybook] EventHandler targetPlaybook */ /** @@ -108416,17 +108463,25 @@ */ EventHandler.prototype.targetFlow = null; + /** + * EventHandler targetPlaybook. + * @member {string|null|undefined} targetPlaybook + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.targetPlaybook = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * EventHandler target. - * @member {"targetPage"|"targetFlow"|undefined} target + * @member {"targetPage"|"targetFlow"|"targetPlaybook"|undefined} target * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @instance */ Object.defineProperty(EventHandler.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow", "targetPlaybook"]), set: $util.oneOfSetter($oneOfFields) }); @@ -108464,6 +108519,8 @@ $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.targetPlaybook != null && Object.hasOwnProperty.call(message, "targetPlaybook")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetPlaybook); return writer; }; @@ -108518,6 +108575,10 @@ message.targetFlow = reader.string(); break; } + case 7: { + message.targetPlaybook = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -108577,6 +108638,13 @@ if (!$util.isString(message.targetFlow)) return "targetFlow: string expected"; } + if (message.targetPlaybook != null && message.hasOwnProperty("targetPlaybook")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + if (!$util.isString(message.targetPlaybook)) + return "targetPlaybook: string expected"; + } return null; }; @@ -108605,6 +108673,8 @@ message.targetPage = String(object.targetPage); if (object.targetFlow != null) message.targetFlow = String(object.targetFlow); + if (object.targetPlaybook != null) + message.targetPlaybook = String(object.targetPlaybook); return message; }; @@ -108642,6 +108712,11 @@ object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.targetPlaybook != null && message.hasOwnProperty("targetPlaybook")) { + object.targetPlaybook = message.targetPlaybook; + if (options.oneofs) + object.target = "targetPlaybook"; + } return object; }; @@ -111636,6 +111711,7 @@ * @interface IRewriterModelCallSignals * @property {string|null} [renderedPrompt] RewriterModelCallSignals renderedPrompt * @property {string|null} [modelOutput] RewriterModelCallSignals modelOutput + * @property {string|null} [model] RewriterModelCallSignals model */ /** @@ -111669,6 +111745,14 @@ */ RewriterModelCallSignals.prototype.modelOutput = ""; + /** + * RewriterModelCallSignals model. + * @member {string} model + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.RewriterModelCallSignals + * @instance + */ + RewriterModelCallSignals.prototype.model = ""; + /** * Creates a new RewriterModelCallSignals instance using the specified properties. * @function create @@ -111697,6 +111781,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.renderedPrompt); if (message.modelOutput != null && Object.hasOwnProperty.call(message, "modelOutput")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelOutput); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); return writer; }; @@ -111739,6 +111825,10 @@ message.modelOutput = reader.string(); break; } + case 3: { + message.model = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -111780,6 +111870,9 @@ if (message.modelOutput != null && message.hasOwnProperty("modelOutput")) if (!$util.isString(message.modelOutput)) return "modelOutput: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; return null; }; @@ -111799,6 +111892,8 @@ message.renderedPrompt = String(object.renderedPrompt); if (object.modelOutput != null) message.modelOutput = String(object.modelOutput); + if (object.model != null) + message.model = String(object.model); return message; }; @@ -111818,11 +111913,14 @@ if (options.defaults) { object.renderedPrompt = ""; object.modelOutput = ""; + object.model = ""; } if (message.renderedPrompt != null && message.hasOwnProperty("renderedPrompt")) object.renderedPrompt = message.renderedPrompt; if (message.modelOutput != null && message.hasOwnProperty("modelOutput")) object.modelOutput = message.modelOutput; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; return object; }; @@ -112113,6 +112211,7 @@ * @interface IAnswerGenerationModelCallSignals * @property {string|null} [renderedPrompt] AnswerGenerationModelCallSignals renderedPrompt * @property {string|null} [modelOutput] AnswerGenerationModelCallSignals modelOutput + * @property {string|null} [model] AnswerGenerationModelCallSignals model */ /** @@ -112146,6 +112245,14 @@ */ AnswerGenerationModelCallSignals.prototype.modelOutput = ""; + /** + * AnswerGenerationModelCallSignals model. + * @member {string} model + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.AnswerGenerationModelCallSignals + * @instance + */ + AnswerGenerationModelCallSignals.prototype.model = ""; + /** * Creates a new AnswerGenerationModelCallSignals instance using the specified properties. * @function create @@ -112174,6 +112281,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.renderedPrompt); if (message.modelOutput != null && Object.hasOwnProperty.call(message, "modelOutput")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelOutput); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); return writer; }; @@ -112216,6 +112325,10 @@ message.modelOutput = reader.string(); break; } + case 3: { + message.model = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -112257,6 +112370,9 @@ if (message.modelOutput != null && message.hasOwnProperty("modelOutput")) if (!$util.isString(message.modelOutput)) return "modelOutput: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; return null; }; @@ -112276,6 +112392,8 @@ message.renderedPrompt = String(object.renderedPrompt); if (object.modelOutput != null) message.modelOutput = String(object.modelOutput); + if (object.model != null) + message.model = String(object.model); return message; }; @@ -112295,11 +112413,14 @@ if (options.defaults) { object.renderedPrompt = ""; object.modelOutput = ""; + object.model = ""; } if (message.renderedPrompt != null && message.hasOwnProperty("renderedPrompt")) object.renderedPrompt = message.renderedPrompt; if (message.modelOutput != null && message.hasOwnProperty("modelOutput")) object.modelOutput = message.modelOutput; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; return object; }; @@ -155638,6 +155759,7 @@ case 4: case 5: case 6: + case 8: case 9: break; } @@ -155708,6 +155830,10 @@ case 6: message.matchType = 6; break; + case "KNOWLEDGE_CONNECTOR": + case 8: + message.matchType = 8; + break; case "PLAYBOOK": case 9: message.matchType = 9; @@ -155791,6 +155917,7 @@ * @property {number} NO_MATCH=4 NO_MATCH value * @property {number} NO_INPUT=5 NO_INPUT value * @property {number} EVENT=6 EVENT value + * @property {number} KNOWLEDGE_CONNECTOR=8 KNOWLEDGE_CONNECTOR value * @property {number} PLAYBOOK=9 PLAYBOOK value */ Match.MatchType = (function() { @@ -155802,6 +155929,7 @@ values[valuesById[4] = "NO_MATCH"] = 4; values[valuesById[5] = "NO_INPUT"] = 5; values[valuesById[6] = "EVENT"] = 6; + values[valuesById[8] = "KNOWLEDGE_CONNECTOR"] = 8; values[valuesById[9] = "PLAYBOOK"] = 9; return values; })(); @@ -196392,6 +196520,7 @@ * @property {string|null} [textSchema] OpenApiTool textSchema * @property {google.cloud.dialogflow.cx.v3beta1.Tool.IAuthentication|null} [authentication] OpenApiTool authentication * @property {google.cloud.dialogflow.cx.v3beta1.Tool.ITLSConfig|null} [tlsConfig] OpenApiTool tlsConfig + * @property {google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig|null} [serviceDirectoryConfig] OpenApiTool serviceDirectoryConfig */ /** @@ -196433,6 +196562,14 @@ */ OpenApiTool.prototype.tlsConfig = null; + /** + * OpenApiTool serviceDirectoryConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig|null|undefined} serviceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool + * @instance + */ + OpenApiTool.prototype.serviceDirectoryConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -196477,6 +196614,8 @@ $root.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.encode(message.authentication, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.tlsConfig != null && Object.hasOwnProperty.call(message, "tlsConfig")) $root.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig.encode(message.tlsConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.serviceDirectoryConfig != null && Object.hasOwnProperty.call(message, "serviceDirectoryConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.encode(message.serviceDirectoryConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -196523,6 +196662,10 @@ message.tlsConfig = $root.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig.decode(reader, reader.uint32()); break; } + case 4: { + message.serviceDirectoryConfig = $root.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -196574,6 +196717,11 @@ if (error) return "tlsConfig." + error; } + if (message.serviceDirectoryConfig != null && message.hasOwnProperty("serviceDirectoryConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.verify(message.serviceDirectoryConfig); + if (error) + return "serviceDirectoryConfig." + error; + } return null; }; @@ -196601,6 +196749,11 @@ throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool.tlsConfig: object expected"); message.tlsConfig = $root.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig.fromObject(object.tlsConfig); } + if (object.serviceDirectoryConfig != null) { + if (typeof object.serviceDirectoryConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool.serviceDirectoryConfig: object expected"); + message.serviceDirectoryConfig = $root.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.fromObject(object.serviceDirectoryConfig); + } return message; }; @@ -196620,6 +196773,7 @@ if (options.defaults) { object.authentication = null; object.tlsConfig = null; + object.serviceDirectoryConfig = null; } if (message.textSchema != null && message.hasOwnProperty("textSchema")) { object.textSchema = message.textSchema; @@ -196630,6 +196784,8 @@ object.authentication = $root.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.toObject(message.authentication, options); if (message.tlsConfig != null && message.hasOwnProperty("tlsConfig")) object.tlsConfig = $root.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig.toObject(message.tlsConfig, options); + if (message.serviceDirectoryConfig != null && message.hasOwnProperty("serviceDirectoryConfig")) + object.serviceDirectoryConfig = $root.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.toObject(message.serviceDirectoryConfig, options); return object; }; @@ -199058,6 +199214,209 @@ return TLSConfig; })(); + Tool.ServiceDirectoryConfig = (function() { + + /** + * Properties of a ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool + * @interface IServiceDirectoryConfig + * @property {string|null} [service] ServiceDirectoryConfig service + */ + + /** + * Constructs a new ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool + * @classdesc Represents a ServiceDirectoryConfig. + * @implements IServiceDirectoryConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig=} [properties] Properties to set + */ + function ServiceDirectoryConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceDirectoryConfig service. + * @member {string} service + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @instance + */ + ServiceDirectoryConfig.prototype.service = ""; + + /** + * Creates a new ServiceDirectoryConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig} ServiceDirectoryConfig instance + */ + ServiceDirectoryConfig.create = function create(properties) { + return new ServiceDirectoryConfig(properties); + }; + + /** + * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDirectoryConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.service != null && Object.hasOwnProperty.call(message, "service")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); + return writer; + }; + + /** + * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Tool.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDirectoryConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig} ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDirectoryConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.service = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig} ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDirectoryConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDirectoryConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDirectoryConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.service != null && message.hasOwnProperty("service")) + if (!$util.isString(message.service)) + return "service: string expected"; + return null; + }; + + /** + * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig} ServiceDirectoryConfig + */ + ServiceDirectoryConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig(); + if (object.service != null) + message.service = String(object.service); + return message; + }; + + /** + * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig} message ServiceDirectoryConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDirectoryConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.service = ""; + if (message.service != null && message.hasOwnProperty("service")) + object.service = message.service; + return object; + }; + + /** + * Converts this ServiceDirectoryConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @instance + * @returns {Object.} JSON object + */ + ServiceDirectoryConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceDirectoryConfig + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDirectoryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig"; + }; + + return ServiceDirectoryConfig; + })(); + /** * ToolType enum. * @name google.cloud.dialogflow.cx.v3beta1.Tool.ToolType diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.json b/packages/google-cloud-dialogflow-cx/protos/protos.json index 990824a9116..8e15defa7b2 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.json +++ b/packages/google-cloud-dialogflow-cx/protos/protos.json @@ -1,4 +1,7 @@ { + "options": { + "syntax": "proto3" + }, "nested": { "google": { "nested": { @@ -9788,6 +9791,10 @@ "enableInteractionLogging": { "type": "bool", "id": 3 + }, + "enableConsentBasedRedaction": { + "type": "bool", + "id": 4 } } } @@ -11058,6 +11065,10 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "locked": { + "type": "bool", + "id": 30 } }, "nested": { @@ -11626,7 +11637,8 @@ "target": { "oneof": [ "targetPage", - "targetFlow" + "targetFlow", + "targetPlaybook" ] } }, @@ -11662,6 +11674,13 @@ "options": { "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } + }, + "targetPlaybook": { + "type": "string", + "id": 7, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Playbook" + } } } }, @@ -11972,6 +11991,10 @@ "modelOutput": { "type": "string", "id": 2 + }, + "model": { + "type": "string", + "id": 3 } } }, @@ -12000,6 +12023,10 @@ "modelOutput": { "type": "string", "id": 2 + }, + "model": { + "type": "string", + "id": 3 } } }, @@ -16284,6 +16311,7 @@ "NO_MATCH": 4, "NO_INPUT": 5, "EVENT": 6, + "KNOWLEDGE_CONNECTOR": 8, "PLAYBOOK": 9 } } @@ -20947,6 +20975,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "serviceDirectoryConfig": { + "type": "ServiceDirectoryConfig", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -21137,6 +21172,18 @@ } } }, + "ServiceDirectoryConfig": { + "fields": { + "service": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "servicedirectory.googleapis.com/Service" + } + } + } + }, "ToolType": { "values": { "TOOL_TYPE_UNSPECIFIED": 0, diff --git a/packages/google-cloud-gkehub/README.md b/packages/google-cloud-gkehub/README.md index 90ea1f002fa..33a407ef623 100644 --- a/packages/google-cloud-gkehub/README.md +++ b/packages/google-cloud-gkehub/README.md @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. 1. [Select or create a Cloud Platform project][projects]. 1. [Enable billing for your project][billing]. 1. [Enable the GKE Hub API][enable_api]. -1. [Set up authentication with a service account][auth] so you can access the +1. [Set up authentication][auth] so you can access the API from your local workstation. ### Installing the client library @@ -192,4 +192,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=gkehub.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started +[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/policycontroller/v1beta/policycontroller.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/policycontroller/v1beta/policycontroller.proto new file mode 100644 index 00000000000..ae826d69451 --- /dev/null +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/policycontroller/v1beta/policycontroller.proto @@ -0,0 +1,330 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gkehub.policycontroller.v1beta; + +option csharp_namespace = "Google.Cloud.GkeHub.PolicyController.V1Beta"; +option go_package = "cloud.google.com/go/gkehub/policycontroller/apiv1beta/policycontrollerpb;policycontrollerpb"; +option java_multiple_files = true; +option java_outer_classname = "PolicyControllerProto"; +option java_package = "com.google.cloud.gkehub.policycontroller.v1beta"; +option php_namespace = "Google\\Cloud\\GkeHub\\PolicyController\\V1beta"; +option ruby_package = "Google::Cloud::GkeHub::PolicyController::V1beta"; + +// **Policy Controller**: State for a single cluster. +message MembershipState { + // The set of states Policy Controller can exist in. + enum LifecycleState { + // The lifecycle state is unspecified. + LIFECYCLE_STATE_UNSPECIFIED = 0; + + // The PC does not exist on the given cluster, and no k8s resources of any + // type that are associated with the PC should exist there. The cluster + // does not possess a membership with the PCH. + NOT_INSTALLED = 1; + + // The PCH possesses a Membership, however the PC is not fully installed + // on the cluster. + // In this state the hub can be expected to be taking actions to + // install the PC on the cluster. + INSTALLING = 2; + + // The PC is fully installed on the cluster and in an operational mode. + // In this state PCH will be reconciling state with the PC, and + // the PC will be performing it's operational tasks per that software. + // Entering a READY state requires that the hub has confirmed the PC is + // installed and its pods are operational with the version of + // the PC the PCH expects. + ACTIVE = 3; + + // The PC is fully installed, but in the process of changing the + // configuration (including changing the version of PC either up and down, + // or modifying the manifests of PC) of the resources running on the + // cluster. The PCH has a Membership, is aware of the version the cluster + // should be running in, but has not confirmed for itself that the PC is + // running with that version. + UPDATING = 4; + + // The PC may have resources on the cluster, + // but the PCH wishes to remove the Membership. + // The Membership still exists. + DECOMMISSIONING = 5; + + // The PC is not operational, and the PCH is unable to act to make it + // operational. + // Entering a CLUSTER_ERROR state happens automatically when the PCH + // determines that a PC installed on the cluster is non-operative or + // that the cluster does not meet requirements set for the PCH to + // administer the cluster but has nevertheless been given an instruction to + // do so (such as 'install'). + CLUSTER_ERROR = 6; + + // In this state, the PC may still be operational, + // and only the PCH is unable to act. + // The hub should not issue instructions to change the PC state, + // or otherwise interfere with the on-cluster resources. + // Entering a HUB_ERROR state happens automatically when the PCH determines + // the hub is in an unhealthy state and it wishes to 'take hands off' to + // avoid corrupting the PC or other data. + HUB_ERROR = 7; + + // Policy Controller (PC) is installed but suspended. This means that the + // policies are not enforced, but violations are still recorded (through + // audit). + SUSPENDED = 8; + + // PoCo Hub is not taking any action to reconcile cluster objects. Changes + // to those objects will not be overwritten by PoCo Hub. + DETACHED = 9; + } + + // Currently these include (also serving as map keys): + // 1. "admission" + // 2. "audit" + // 3. "mutation" + map component_states = 3; + + // The overall Policy Controller lifecycle state observed by the Hub Feature + // controller. + LifecycleState state = 4; + + // The overall content state observed by the Hub Feature controller. + PolicyContentState policy_content_state = 6; +} + +// The state of the policy controller policy content +message PolicyContentState { + // The state of the template library + OnClusterState template_library_state = 1; + + // The state of the any bundles included in the chosen + // version of the manifest + map bundle_states = 2; + + // The state of the referential data sync configuration. This could + // represent the state of either the syncSet object(s) or the config + // object, depending on the version of PoCo configured by the user. + OnClusterState referential_sync_config_state = 3; +} + +// **Policy Controller**: Configuration for a single cluster. +// Intended to parallel the PolicyController CR. +message MembershipSpec { + // Policy Controller configuration for the cluster. + HubConfig policy_controller_hub_config = 1; + + // Version of Policy Controller installed. + string version = 2; +} + +// Configuration for Policy Controller +message HubConfig { + // The set of installation specs that the Hub Feature controller may + // actuate. + enum InstallSpec { + // Spec is unknown. + INSTALL_SPEC_UNSPECIFIED = 0; + + // Request to uninstall Policy Controller. + INSTALL_SPEC_NOT_INSTALLED = 1; + + // Request to install and enable Policy Controller. + INSTALL_SPEC_ENABLED = 2; + + // Request to suspend Policy Controller i.e. its webhooks. If Policy + // Controller is not installed, it will be installed but suspended. + INSTALL_SPEC_SUSPENDED = 3; + + // Request to stop all reconciliation actions by PoCo Hub controller. + // This is a breakglass mechanism to stop PoCo Hub from affecting + // cluster resources. + INSTALL_SPEC_DETACHED = 4; + } + + // The install_spec represents the intended state specified by the + // latest request that mutated install_spec in the feature spec, + // not the lifecycle state of the + // feature observed by the Hub feature controller + // that is reported in the feature state. + InstallSpec install_spec = 1; + + // Sets the interval for Policy Controller Audit Scans (in seconds). + // When set to 0, this disables audit functionality altogether. + optional int64 audit_interval_seconds = 2; + + // The set of namespaces that are excluded from Policy Controller checks. + // Namespaces do not need to currently exist on the cluster. + repeated string exemptable_namespaces = 3; + + // Enables the ability to use Constraint Templates that reference to objects + // other than the object currently being evaluated. + bool referential_rules_enabled = 4; + + // Logs all denies and dry run failures. + bool log_denies_enabled = 5; + + // Enables the ability to mutate resources using Policy Controller. + bool mutation_enabled = 6; + + // Monitoring specifies the configuration of monitoring. + optional MonitoringConfig monitoring = 8; + + // Specifies the desired policy content on the cluster + optional PolicyContentSpec policy_content = 9; + + // The maximum number of audit violations to be stored in a constraint. + // If not set, the internal default (currently 20) will be used. + optional int64 constraint_violation_limit = 10; + + // Map of deployment configs to deployments ("admission", "audit", + // "mutation'). + map deployment_configs = 11; +} + +// Deployment-specific configuration. +message PolicyControllerDeploymentConfig { + // Toleration of a node taint. + message Toleration { + // Matches a taint key (not necessarily unique). + optional string key = 1; + + // Matches a taint operator. + optional string operator = 2; + + // Matches a taint value. + optional string value = 3; + + // Matches a taint effect. + optional string effect = 4; + } + + // The pod affinity configuration used by a deployment. + enum Affinity { + // No affinity configuration has been specified. + AFFINITY_UNSPECIFIED = 0; + + // Affinity configurations will be removed from the deployment. + NO_AFFINITY = 1; + + // Anti-affinity configuration will be applied to this deployment. + // Default for admissions deployment. + ANTI_AFFINITY = 2; + } + + // Pod replica count. + optional int64 replica_count = 1; + + // Container resource requirements. + optional ResourceRequirements container_resources = 2; + + // Pod anti-affinity enablement. Deprecated: use `pod_affinity` instead. + optional bool pod_anti_affinity = 3 [deprecated = true]; + + // Pod tolerations of node taints. + repeated Toleration pod_tolerations = 4; + + // Pod affinity configuration. + Affinity pod_affinity = 5; +} + +// ResourceRequirements describes the compute resource requirements. +message ResourceRequirements { + // Limits describes the maximum amount of compute resources allowed for use by + // the running container. + optional ResourceList limits = 1; + + // Requests describes the amount of compute resources reserved for the + // container by the kube-scheduler. + optional ResourceList requests = 2; +} + +// ResourceList contains container resource requirements. +message ResourceList { + // Memory requirement expressed in Kubernetes resource units. + optional string memory = 1; + + // CPU requirement expressed in Kubernetes resource units. + optional string cpu = 2; +} + +// The config specifying which default library templates to install. +message TemplateLibraryConfig { + // How the template library should be installed + enum Installation { + // No installation strategy has been specified. + INSTALLATION_UNSPECIFIED = 0; + + // Do not install the template library. + NOT_INSTALLED = 1; + + // Install the entire template library. + ALL = 2; + } + + // Configures the manner in which the template library is installed on the + // cluster. + Installation installation = 2; +} + +// MonitoringConfig specifies the backends Policy Controller should +// export metrics to. For example, to specify metrics should be exported to +// Cloud Monitoring and Prometheus, specify +// backends: ["cloudmonitoring", "prometheus"] +message MonitoringConfig { + // Supported backend options for monitoring + enum MonitoringBackend { + // Backend cannot be determined + MONITORING_BACKEND_UNSPECIFIED = 0; + + // Prometheus backend for monitoring + PROMETHEUS = 1; + + // Stackdriver/Cloud Monitoring backend for monitoring + CLOUD_MONITORING = 2; + } + + // Specifies the list of backends Policy Controller will export to. + // An empty list would effectively disable metrics export. + repeated MonitoringBackend backends = 1; +} + +// OnClusterState represents the state of a sub-component of Policy Controller. +message OnClusterState { + // The lifecycle state of this component. + MembershipState.LifecycleState state = 1; + + // Surface potential errors or information logs. + string details = 2; +} + +// BundleInstallSpec is the specification configuration for a single managed +// bundle. +message BundleInstallSpec { + // The set of namespaces to be exempted from the bundle. + repeated string exempted_namespaces = 2; +} + +// PolicyContentSpec defines the user's desired content configuration on the +// cluster. +message PolicyContentSpec { + // map of bundle name to BundleInstallSpec. The bundle name maps to the + // `bundleName` key in the `policycontroller.gke.io/constraintData` annotation + // on a constraint. + map bundles = 1; + + // Configures the installation of the Template Library. + TemplateLibraryConfig template_library = 2; +} diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/feature.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/feature.proto index 7ba1bbbf66a..1e7ff348f72 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/feature.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/feature.proto @@ -18,6 +18,7 @@ package google.cloud.gkehub.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/gkehub/policycontroller/v1beta/policycontroller.proto"; import "google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto"; import "google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto"; import "google/cloud/gkehub/v1beta/metering/metering.proto"; @@ -197,6 +198,10 @@ message MembershipFeatureSpec { // Anthos Service Mesh-specific spec google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + + // Policy Controller spec. + google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + policycontroller = 118; } } @@ -213,6 +218,10 @@ message MembershipFeatureState { // Config Management-specific state. google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + + // Policycontroller-specific state. + google.cloud.gkehub.policycontroller.v1beta.MembershipState + policycontroller = 116; } // The high-level state of this Feature for a single membership. diff --git a/packages/google-cloud-gkehub/protos/protos.d.ts b/packages/google-cloud-gkehub/protos/protos.d.ts index be4fa1c2ee0..551e3d13816 100644 --- a/packages/google-cloud-gkehub/protos/protos.d.ts +++ b/packages/google-cloud-gkehub/protos/protos.d.ts @@ -23795,6 +23795,1529 @@ export namespace google { } } + /** Namespace policycontroller. */ + namespace policycontroller { + + /** Namespace v1beta. */ + namespace v1beta { + + /** Properties of a MembershipState. */ + interface IMembershipState { + + /** MembershipState componentStates */ + componentStates?: ({ [k: string]: google.cloud.gkehub.policycontroller.v1beta.IOnClusterState }|null); + + /** MembershipState state */ + state?: (google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState|keyof typeof google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState|null); + + /** MembershipState policyContentState */ + policyContentState?: (google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState|null); + } + + /** Represents a MembershipState. */ + class MembershipState implements IMembershipState { + + /** + * Constructs a new MembershipState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IMembershipState); + + /** MembershipState componentStates. */ + public componentStates: { [k: string]: google.cloud.gkehub.policycontroller.v1beta.IOnClusterState }; + + /** MembershipState state. */ + public state: (google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState|keyof typeof google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState); + + /** MembershipState policyContentState. */ + public policyContentState?: (google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState|null); + + /** + * Creates a new MembershipState instance using the specified properties. + * @param [properties] Properties to set + * @returns MembershipState instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IMembershipState): google.cloud.gkehub.policycontroller.v1beta.MembershipState; + + /** + * Encodes the specified MembershipState message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MembershipState.verify|verify} messages. + * @param message MembershipState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IMembershipState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MembershipState message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MembershipState.verify|verify} messages. + * @param message MembershipState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IMembershipState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MembershipState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MembershipState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.MembershipState; + + /** + * Decodes a MembershipState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MembershipState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.MembershipState; + + /** + * Verifies a MembershipState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MembershipState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MembershipState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.MembershipState; + + /** + * Creates a plain object from a MembershipState message. Also converts values to other types if specified. + * @param message MembershipState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.MembershipState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MembershipState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MembershipState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MembershipState { + + /** LifecycleState enum. */ + enum LifecycleState { + LIFECYCLE_STATE_UNSPECIFIED = 0, + NOT_INSTALLED = 1, + INSTALLING = 2, + ACTIVE = 3, + UPDATING = 4, + DECOMMISSIONING = 5, + CLUSTER_ERROR = 6, + HUB_ERROR = 7, + SUSPENDED = 8, + DETACHED = 9 + } + } + + /** Properties of a PolicyContentState. */ + interface IPolicyContentState { + + /** PolicyContentState templateLibraryState */ + templateLibraryState?: (google.cloud.gkehub.policycontroller.v1beta.IOnClusterState|null); + + /** PolicyContentState bundleStates */ + bundleStates?: ({ [k: string]: google.cloud.gkehub.policycontroller.v1beta.IOnClusterState }|null); + + /** PolicyContentState referentialSyncConfigState */ + referentialSyncConfigState?: (google.cloud.gkehub.policycontroller.v1beta.IOnClusterState|null); + } + + /** Represents a PolicyContentState. */ + class PolicyContentState implements IPolicyContentState { + + /** + * Constructs a new PolicyContentState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState); + + /** PolicyContentState templateLibraryState. */ + public templateLibraryState?: (google.cloud.gkehub.policycontroller.v1beta.IOnClusterState|null); + + /** PolicyContentState bundleStates. */ + public bundleStates: { [k: string]: google.cloud.gkehub.policycontroller.v1beta.IOnClusterState }; + + /** PolicyContentState referentialSyncConfigState. */ + public referentialSyncConfigState?: (google.cloud.gkehub.policycontroller.v1beta.IOnClusterState|null); + + /** + * Creates a new PolicyContentState instance using the specified properties. + * @param [properties] Properties to set + * @returns PolicyContentState instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState): google.cloud.gkehub.policycontroller.v1beta.PolicyContentState; + + /** + * Encodes the specified PolicyContentState message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.verify|verify} messages. + * @param message PolicyContentState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PolicyContentState message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.verify|verify} messages. + * @param message PolicyContentState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PolicyContentState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PolicyContentState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.PolicyContentState; + + /** + * Decodes a PolicyContentState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PolicyContentState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.PolicyContentState; + + /** + * Verifies a PolicyContentState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PolicyContentState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PolicyContentState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.PolicyContentState; + + /** + * Creates a plain object from a PolicyContentState message. Also converts values to other types if specified. + * @param message PolicyContentState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.PolicyContentState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PolicyContentState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PolicyContentState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MembershipSpec. */ + interface IMembershipSpec { + + /** MembershipSpec policyControllerHubConfig */ + policyControllerHubConfig?: (google.cloud.gkehub.policycontroller.v1beta.IHubConfig|null); + + /** MembershipSpec version */ + version?: (string|null); + } + + /** Represents a MembershipSpec. */ + class MembershipSpec implements IMembershipSpec { + + /** + * Constructs a new MembershipSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec); + + /** MembershipSpec policyControllerHubConfig. */ + public policyControllerHubConfig?: (google.cloud.gkehub.policycontroller.v1beta.IHubConfig|null); + + /** MembershipSpec version. */ + public version: string; + + /** + * Creates a new MembershipSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MembershipSpec instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec): google.cloud.gkehub.policycontroller.v1beta.MembershipSpec; + + /** + * Encodes the specified MembershipSpec message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.verify|verify} messages. + * @param message MembershipSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MembershipSpec message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.verify|verify} messages. + * @param message MembershipSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MembershipSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MembershipSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.MembershipSpec; + + /** + * Decodes a MembershipSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MembershipSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.MembershipSpec; + + /** + * Verifies a MembershipSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MembershipSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MembershipSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.MembershipSpec; + + /** + * Creates a plain object from a MembershipSpec message. Also converts values to other types if specified. + * @param message MembershipSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.MembershipSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MembershipSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MembershipSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HubConfig. */ + interface IHubConfig { + + /** HubConfig installSpec */ + installSpec?: (google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec|keyof typeof google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec|null); + + /** HubConfig auditIntervalSeconds */ + auditIntervalSeconds?: (number|Long|string|null); + + /** HubConfig exemptableNamespaces */ + exemptableNamespaces?: (string[]|null); + + /** HubConfig referentialRulesEnabled */ + referentialRulesEnabled?: (boolean|null); + + /** HubConfig logDeniesEnabled */ + logDeniesEnabled?: (boolean|null); + + /** HubConfig mutationEnabled */ + mutationEnabled?: (boolean|null); + + /** HubConfig monitoring */ + monitoring?: (google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig|null); + + /** HubConfig policyContent */ + policyContent?: (google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec|null); + + /** HubConfig constraintViolationLimit */ + constraintViolationLimit?: (number|Long|string|null); + + /** HubConfig deploymentConfigs */ + deploymentConfigs?: ({ [k: string]: google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig }|null); + } + + /** Represents a HubConfig. */ + class HubConfig implements IHubConfig { + + /** + * Constructs a new HubConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IHubConfig); + + /** HubConfig installSpec. */ + public installSpec: (google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec|keyof typeof google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec); + + /** HubConfig auditIntervalSeconds. */ + public auditIntervalSeconds?: (number|Long|string|null); + + /** HubConfig exemptableNamespaces. */ + public exemptableNamespaces: string[]; + + /** HubConfig referentialRulesEnabled. */ + public referentialRulesEnabled: boolean; + + /** HubConfig logDeniesEnabled. */ + public logDeniesEnabled: boolean; + + /** HubConfig mutationEnabled. */ + public mutationEnabled: boolean; + + /** HubConfig monitoring. */ + public monitoring?: (google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig|null); + + /** HubConfig policyContent. */ + public policyContent?: (google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec|null); + + /** HubConfig constraintViolationLimit. */ + public constraintViolationLimit?: (number|Long|string|null); + + /** HubConfig deploymentConfigs. */ + public deploymentConfigs: { [k: string]: google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig }; + + /** HubConfig _auditIntervalSeconds. */ + public _auditIntervalSeconds?: "auditIntervalSeconds"; + + /** HubConfig _monitoring. */ + public _monitoring?: "monitoring"; + + /** HubConfig _policyContent. */ + public _policyContent?: "policyContent"; + + /** HubConfig _constraintViolationLimit. */ + public _constraintViolationLimit?: "constraintViolationLimit"; + + /** + * Creates a new HubConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns HubConfig instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IHubConfig): google.cloud.gkehub.policycontroller.v1beta.HubConfig; + + /** + * Encodes the specified HubConfig message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.HubConfig.verify|verify} messages. + * @param message HubConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IHubConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HubConfig message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.HubConfig.verify|verify} messages. + * @param message HubConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IHubConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HubConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HubConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.HubConfig; + + /** + * Decodes a HubConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HubConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.HubConfig; + + /** + * Verifies a HubConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HubConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HubConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.HubConfig; + + /** + * Creates a plain object from a HubConfig message. Also converts values to other types if specified. + * @param message HubConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.HubConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HubConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HubConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace HubConfig { + + /** InstallSpec enum. */ + enum InstallSpec { + INSTALL_SPEC_UNSPECIFIED = 0, + INSTALL_SPEC_NOT_INSTALLED = 1, + INSTALL_SPEC_ENABLED = 2, + INSTALL_SPEC_SUSPENDED = 3, + INSTALL_SPEC_DETACHED = 4 + } + } + + /** Properties of a PolicyControllerDeploymentConfig. */ + interface IPolicyControllerDeploymentConfig { + + /** PolicyControllerDeploymentConfig replicaCount */ + replicaCount?: (number|Long|string|null); + + /** PolicyControllerDeploymentConfig containerResources */ + containerResources?: (google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements|null); + + /** PolicyControllerDeploymentConfig podAntiAffinity */ + podAntiAffinity?: (boolean|null); + + /** PolicyControllerDeploymentConfig podTolerations */ + podTolerations?: (google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration[]|null); + + /** PolicyControllerDeploymentConfig podAffinity */ + podAffinity?: (google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity|keyof typeof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity|null); + } + + /** Represents a PolicyControllerDeploymentConfig. */ + class PolicyControllerDeploymentConfig implements IPolicyControllerDeploymentConfig { + + /** + * Constructs a new PolicyControllerDeploymentConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig); + + /** PolicyControllerDeploymentConfig replicaCount. */ + public replicaCount?: (number|Long|string|null); + + /** PolicyControllerDeploymentConfig containerResources. */ + public containerResources?: (google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements|null); + + /** PolicyControllerDeploymentConfig podAntiAffinity. */ + public podAntiAffinity?: (boolean|null); + + /** PolicyControllerDeploymentConfig podTolerations. */ + public podTolerations: google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration[]; + + /** PolicyControllerDeploymentConfig podAffinity. */ + public podAffinity: (google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity|keyof typeof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity); + + /** PolicyControllerDeploymentConfig _replicaCount. */ + public _replicaCount?: "replicaCount"; + + /** PolicyControllerDeploymentConfig _containerResources. */ + public _containerResources?: "containerResources"; + + /** PolicyControllerDeploymentConfig _podAntiAffinity. */ + public _podAntiAffinity?: "podAntiAffinity"; + + /** + * Creates a new PolicyControllerDeploymentConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PolicyControllerDeploymentConfig instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig): google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig; + + /** + * Encodes the specified PolicyControllerDeploymentConfig message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.verify|verify} messages. + * @param message PolicyControllerDeploymentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PolicyControllerDeploymentConfig message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.verify|verify} messages. + * @param message PolicyControllerDeploymentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PolicyControllerDeploymentConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PolicyControllerDeploymentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig; + + /** + * Decodes a PolicyControllerDeploymentConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PolicyControllerDeploymentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig; + + /** + * Verifies a PolicyControllerDeploymentConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PolicyControllerDeploymentConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PolicyControllerDeploymentConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig; + + /** + * Creates a plain object from a PolicyControllerDeploymentConfig message. Also converts values to other types if specified. + * @param message PolicyControllerDeploymentConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PolicyControllerDeploymentConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PolicyControllerDeploymentConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace PolicyControllerDeploymentConfig { + + /** Properties of a Toleration. */ + interface IToleration { + + /** Toleration key */ + key?: (string|null); + + /** Toleration operator */ + operator?: (string|null); + + /** Toleration value */ + value?: (string|null); + + /** Toleration effect */ + effect?: (string|null); + } + + /** Represents a Toleration. */ + class Toleration implements IToleration { + + /** + * Constructs a new Toleration. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration); + + /** Toleration key. */ + public key?: (string|null); + + /** Toleration operator. */ + public operator?: (string|null); + + /** Toleration value. */ + public value?: (string|null); + + /** Toleration effect. */ + public effect?: (string|null); + + /** Toleration _key. */ + public _key?: "key"; + + /** Toleration _operator. */ + public _operator?: "operator"; + + /** Toleration _value. */ + public _value?: "value"; + + /** Toleration _effect. */ + public _effect?: "effect"; + + /** + * Creates a new Toleration instance using the specified properties. + * @param [properties] Properties to set + * @returns Toleration instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration): google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration; + + /** + * Encodes the specified Toleration message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.verify|verify} messages. + * @param message Toleration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Toleration message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.verify|verify} messages. + * @param message Toleration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Toleration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Toleration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration; + + /** + * Decodes a Toleration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Toleration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration; + + /** + * Verifies a Toleration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Toleration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Toleration + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration; + + /** + * Creates a plain object from a Toleration message. Also converts values to other types if specified. + * @param message Toleration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Toleration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Toleration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Affinity enum. */ + enum Affinity { + AFFINITY_UNSPECIFIED = 0, + NO_AFFINITY = 1, + ANTI_AFFINITY = 2 + } + } + + /** Properties of a ResourceRequirements. */ + interface IResourceRequirements { + + /** ResourceRequirements limits */ + limits?: (google.cloud.gkehub.policycontroller.v1beta.IResourceList|null); + + /** ResourceRequirements requests */ + requests?: (google.cloud.gkehub.policycontroller.v1beta.IResourceList|null); + } + + /** Represents a ResourceRequirements. */ + class ResourceRequirements implements IResourceRequirements { + + /** + * Constructs a new ResourceRequirements. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements); + + /** ResourceRequirements limits. */ + public limits?: (google.cloud.gkehub.policycontroller.v1beta.IResourceList|null); + + /** ResourceRequirements requests. */ + public requests?: (google.cloud.gkehub.policycontroller.v1beta.IResourceList|null); + + /** ResourceRequirements _limits. */ + public _limits?: "limits"; + + /** ResourceRequirements _requests. */ + public _requests?: "requests"; + + /** + * Creates a new ResourceRequirements instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceRequirements instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements): google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements; + + /** + * Encodes the specified ResourceRequirements message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.verify|verify} messages. + * @param message ResourceRequirements message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceRequirements message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.verify|verify} messages. + * @param message ResourceRequirements message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceRequirements message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceRequirements + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements; + + /** + * Decodes a ResourceRequirements message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceRequirements + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements; + + /** + * Verifies a ResourceRequirements message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceRequirements message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceRequirements + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements; + + /** + * Creates a plain object from a ResourceRequirements message. Also converts values to other types if specified. + * @param message ResourceRequirements + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceRequirements to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceRequirements + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ResourceList. */ + interface IResourceList { + + /** ResourceList memory */ + memory?: (string|null); + + /** ResourceList cpu */ + cpu?: (string|null); + } + + /** Represents a ResourceList. */ + class ResourceList implements IResourceList { + + /** + * Constructs a new ResourceList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IResourceList); + + /** ResourceList memory. */ + public memory?: (string|null); + + /** ResourceList cpu. */ + public cpu?: (string|null); + + /** ResourceList _memory. */ + public _memory?: "memory"; + + /** ResourceList _cpu. */ + public _cpu?: "cpu"; + + /** + * Creates a new ResourceList instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceList instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IResourceList): google.cloud.gkehub.policycontroller.v1beta.ResourceList; + + /** + * Encodes the specified ResourceList message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.ResourceList.verify|verify} messages. + * @param message ResourceList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IResourceList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceList message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.ResourceList.verify|verify} messages. + * @param message ResourceList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IResourceList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.ResourceList; + + /** + * Decodes a ResourceList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.ResourceList; + + /** + * Verifies a ResourceList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.ResourceList; + + /** + * Creates a plain object from a ResourceList message. Also converts values to other types if specified. + * @param message ResourceList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.ResourceList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TemplateLibraryConfig. */ + interface ITemplateLibraryConfig { + + /** TemplateLibraryConfig installation */ + installation?: (google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation|keyof typeof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation|null); + } + + /** Represents a TemplateLibraryConfig. */ + class TemplateLibraryConfig implements ITemplateLibraryConfig { + + /** + * Constructs a new TemplateLibraryConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig); + + /** TemplateLibraryConfig installation. */ + public installation: (google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation|keyof typeof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation); + + /** + * Creates a new TemplateLibraryConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TemplateLibraryConfig instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig): google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig; + + /** + * Encodes the specified TemplateLibraryConfig message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.verify|verify} messages. + * @param message TemplateLibraryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TemplateLibraryConfig message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.verify|verify} messages. + * @param message TemplateLibraryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TemplateLibraryConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TemplateLibraryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig; + + /** + * Decodes a TemplateLibraryConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TemplateLibraryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig; + + /** + * Verifies a TemplateLibraryConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TemplateLibraryConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TemplateLibraryConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig; + + /** + * Creates a plain object from a TemplateLibraryConfig message. Also converts values to other types if specified. + * @param message TemplateLibraryConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TemplateLibraryConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TemplateLibraryConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace TemplateLibraryConfig { + + /** Installation enum. */ + enum Installation { + INSTALLATION_UNSPECIFIED = 0, + NOT_INSTALLED = 1, + ALL = 2 + } + } + + /** Properties of a MonitoringConfig. */ + interface IMonitoringConfig { + + /** MonitoringConfig backends */ + backends?: (google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend[]|null); + } + + /** Represents a MonitoringConfig. */ + class MonitoringConfig implements IMonitoringConfig { + + /** + * Constructs a new MonitoringConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig); + + /** MonitoringConfig backends. */ + public backends: google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend[]; + + /** + * Creates a new MonitoringConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MonitoringConfig instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig): google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig; + + /** + * Encodes the specified MonitoringConfig message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.verify|verify} messages. + * @param message MonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.verify|verify} messages. + * @param message MonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MonitoringConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig; + + /** + * Decodes a MonitoringConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig; + + /** + * Verifies a MonitoringConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MonitoringConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig; + + /** + * Creates a plain object from a MonitoringConfig message. Also converts values to other types if specified. + * @param message MonitoringConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MonitoringConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MonitoringConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MonitoringConfig { + + /** MonitoringBackend enum. */ + enum MonitoringBackend { + MONITORING_BACKEND_UNSPECIFIED = 0, + PROMETHEUS = 1, + CLOUD_MONITORING = 2 + } + } + + /** Properties of an OnClusterState. */ + interface IOnClusterState { + + /** OnClusterState state */ + state?: (google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState|keyof typeof google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState|null); + + /** OnClusterState details */ + details?: (string|null); + } + + /** Represents an OnClusterState. */ + class OnClusterState implements IOnClusterState { + + /** + * Constructs a new OnClusterState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IOnClusterState); + + /** OnClusterState state. */ + public state: (google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState|keyof typeof google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState); + + /** OnClusterState details. */ + public details: string; + + /** + * Creates a new OnClusterState instance using the specified properties. + * @param [properties] Properties to set + * @returns OnClusterState instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IOnClusterState): google.cloud.gkehub.policycontroller.v1beta.OnClusterState; + + /** + * Encodes the specified OnClusterState message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.OnClusterState.verify|verify} messages. + * @param message OnClusterState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IOnClusterState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OnClusterState message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.OnClusterState.verify|verify} messages. + * @param message OnClusterState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IOnClusterState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OnClusterState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OnClusterState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.OnClusterState; + + /** + * Decodes an OnClusterState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OnClusterState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.OnClusterState; + + /** + * Verifies an OnClusterState message. + * @param message Plain 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 OnClusterState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OnClusterState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.OnClusterState; + + /** + * Creates a plain object from an OnClusterState message. Also converts values to other types if specified. + * @param message OnClusterState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.OnClusterState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OnClusterState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OnClusterState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BundleInstallSpec. */ + interface IBundleInstallSpec { + + /** BundleInstallSpec exemptedNamespaces */ + exemptedNamespaces?: (string[]|null); + } + + /** Represents a BundleInstallSpec. */ + class BundleInstallSpec implements IBundleInstallSpec { + + /** + * Constructs a new BundleInstallSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec); + + /** BundleInstallSpec exemptedNamespaces. */ + public exemptedNamespaces: string[]; + + /** + * Creates a new BundleInstallSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns BundleInstallSpec instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec): google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec; + + /** + * Encodes the specified BundleInstallSpec message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.verify|verify} messages. + * @param message BundleInstallSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BundleInstallSpec message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.verify|verify} messages. + * @param message BundleInstallSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BundleInstallSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BundleInstallSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec; + + /** + * Decodes a BundleInstallSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BundleInstallSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec; + + /** + * Verifies a BundleInstallSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BundleInstallSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BundleInstallSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec; + + /** + * Creates a plain object from a BundleInstallSpec message. Also converts values to other types if specified. + * @param message BundleInstallSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BundleInstallSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BundleInstallSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PolicyContentSpec. */ + interface IPolicyContentSpec { + + /** PolicyContentSpec bundles */ + bundles?: ({ [k: string]: google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec }|null); + + /** PolicyContentSpec templateLibrary */ + templateLibrary?: (google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig|null); + } + + /** Represents a PolicyContentSpec. */ + class PolicyContentSpec implements IPolicyContentSpec { + + /** + * Constructs a new PolicyContentSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec); + + /** PolicyContentSpec bundles. */ + public bundles: { [k: string]: google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec }; + + /** PolicyContentSpec templateLibrary. */ + public templateLibrary?: (google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig|null); + + /** + * Creates a new PolicyContentSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns PolicyContentSpec instance + */ + public static create(properties?: google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec): google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec; + + /** + * Encodes the specified PolicyContentSpec message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.verify|verify} messages. + * @param message PolicyContentSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PolicyContentSpec message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.verify|verify} messages. + * @param message PolicyContentSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PolicyContentSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PolicyContentSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec; + + /** + * Decodes a PolicyContentSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PolicyContentSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec; + + /** + * Verifies a PolicyContentSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PolicyContentSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PolicyContentSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec; + + /** + * Creates a plain object from a PolicyContentSpec message. Also converts values to other types if specified. + * @param message PolicyContentSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PolicyContentSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PolicyContentSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + /** Namespace v1beta. */ namespace v1beta { @@ -24384,6 +25907,9 @@ export namespace google { /** MembershipFeatureSpec mesh */ mesh?: (google.cloud.gkehub.servicemesh.v1beta.IMembershipSpec|null); + + /** MembershipFeatureSpec policycontroller */ + policycontroller?: (google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec|null); } /** Represents a MembershipFeatureSpec. */ @@ -24401,8 +25927,11 @@ export namespace google { /** MembershipFeatureSpec mesh. */ public mesh?: (google.cloud.gkehub.servicemesh.v1beta.IMembershipSpec|null); + /** MembershipFeatureSpec policycontroller. */ + public policycontroller?: (google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec|null); + /** MembershipFeatureSpec featureSpec. */ - public featureSpec?: ("configmanagement"|"mesh"); + public featureSpec?: ("configmanagement"|"mesh"|"policycontroller"); /** * Creates a new MembershipFeatureSpec instance using the specified properties. @@ -24494,6 +26023,9 @@ export namespace google { /** MembershipFeatureState configmanagement */ configmanagement?: (google.cloud.gkehub.configmanagement.v1beta.IMembershipState|null); + /** MembershipFeatureState policycontroller */ + policycontroller?: (google.cloud.gkehub.policycontroller.v1beta.IMembershipState|null); + /** MembershipFeatureState state */ state?: (google.cloud.gkehub.v1beta.IFeatureState|null); } @@ -24516,11 +26048,14 @@ export namespace google { /** MembershipFeatureState configmanagement. */ public configmanagement?: (google.cloud.gkehub.configmanagement.v1beta.IMembershipState|null); + /** MembershipFeatureState policycontroller. */ + public policycontroller?: (google.cloud.gkehub.policycontroller.v1beta.IMembershipState|null); + /** MembershipFeatureState state. */ public state?: (google.cloud.gkehub.v1beta.IFeatureState|null); /** MembershipFeatureState featureState. */ - public featureState?: ("servicemesh"|"metering"|"configmanagement"); + public featureState?: ("servicemesh"|"metering"|"configmanagement"|"policycontroller"); /** * Creates a new MembershipFeatureState instance using the specified properties. diff --git a/packages/google-cloud-gkehub/protos/protos.js b/packages/google-cloud-gkehub/protos/protos.js index 62e83f107d5..2822964a037 100644 --- a/packages/google-cloud-gkehub/protos/protos.js +++ b/packages/google-cloud-gkehub/protos/protos.js @@ -61520,6 +61520,4149 @@ return v1alpha2; })(); + gkehub.policycontroller = (function() { + + /** + * Namespace policycontroller. + * @memberof google.cloud.gkehub + * @namespace + */ + var policycontroller = {}; + + policycontroller.v1beta = (function() { + + /** + * Namespace v1beta. + * @memberof google.cloud.gkehub.policycontroller + * @namespace + */ + var v1beta = {}; + + v1beta.MembershipState = (function() { + + /** + * Properties of a MembershipState. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IMembershipState + * @property {Object.|null} [componentStates] MembershipState componentStates + * @property {google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState|null} [state] MembershipState state + * @property {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState|null} [policyContentState] MembershipState policyContentState + */ + + /** + * Constructs a new MembershipState. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a MembershipState. + * @implements IMembershipState + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IMembershipState=} [properties] Properties to set + */ + function MembershipState(properties) { + this.componentStates = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MembershipState componentStates. + * @member {Object.} componentStates + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @instance + */ + MembershipState.prototype.componentStates = $util.emptyObject; + + /** + * MembershipState state. + * @member {google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState} state + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @instance + */ + MembershipState.prototype.state = 0; + + /** + * MembershipState policyContentState. + * @member {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState|null|undefined} policyContentState + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @instance + */ + MembershipState.prototype.policyContentState = null; + + /** + * Creates a new MembershipState instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMembershipState=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.MembershipState} MembershipState instance + */ + MembershipState.create = function create(properties) { + return new MembershipState(properties); + }; + + /** + * Encodes the specified MembershipState message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MembershipState.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMembershipState} message MembershipState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MembershipState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.componentStates != null && Object.hasOwnProperty.call(message, "componentStates")) + for (var keys = Object.keys(message.componentStates), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.encode(message.componentStates[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.policyContentState != null && Object.hasOwnProperty.call(message, "policyContentState")) + $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.encode(message.policyContentState, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MembershipState message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MembershipState.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMembershipState} message MembershipState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MembershipState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MembershipState message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.MembershipState} MembershipState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MembershipState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + if (message.componentStates === $util.emptyObject) + message.componentStates = {}; + 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.gkehub.policycontroller.v1beta.OnClusterState.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.componentStates[key] = value; + break; + } + case 4: { + message.state = reader.int32(); + break; + } + case 6: { + message.policyContentState = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MembershipState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.MembershipState} MembershipState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MembershipState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MembershipState message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MembershipState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.componentStates != null && message.hasOwnProperty("componentStates")) { + if (!$util.isObject(message.componentStates)) + return "componentStates: object expected"; + var key = Object.keys(message.componentStates); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.verify(message.componentStates[key[i]]); + if (error) + return "componentStates." + error; + } + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.policyContentState != null && message.hasOwnProperty("policyContentState")) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.verify(message.policyContentState); + if (error) + return "policyContentState." + error; + } + return null; + }; + + /** + * Creates a MembershipState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.MembershipState} MembershipState + */ + MembershipState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState(); + if (object.componentStates) { + if (typeof object.componentStates !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.MembershipState.componentStates: object expected"); + message.componentStates = {}; + for (var keys = Object.keys(object.componentStates), i = 0; i < keys.length; ++i) { + if (typeof object.componentStates[keys[i]] !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.MembershipState.componentStates: object expected"); + message.componentStates[keys[i]] = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.fromObject(object.componentStates[keys[i]]); + } + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "LIFECYCLE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "NOT_INSTALLED": + case 1: + message.state = 1; + break; + case "INSTALLING": + case 2: + message.state = 2; + break; + case "ACTIVE": + case 3: + message.state = 3; + break; + case "UPDATING": + case 4: + message.state = 4; + break; + case "DECOMMISSIONING": + case 5: + message.state = 5; + break; + case "CLUSTER_ERROR": + case 6: + message.state = 6; + break; + case "HUB_ERROR": + case 7: + message.state = 7; + break; + case "SUSPENDED": + case 8: + message.state = 8; + break; + case "DETACHED": + case 9: + message.state = 9; + break; + } + if (object.policyContentState != null) { + if (typeof object.policyContentState !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.MembershipState.policyContentState: object expected"); + message.policyContentState = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.fromObject(object.policyContentState); + } + return message; + }; + + /** + * Creates a plain object from a MembershipState message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.MembershipState} message MembershipState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MembershipState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.componentStates = {}; + if (options.defaults) { + object.state = options.enums === String ? "LIFECYCLE_STATE_UNSPECIFIED" : 0; + object.policyContentState = null; + } + var keys2; + if (message.componentStates && (keys2 = Object.keys(message.componentStates)).length) { + object.componentStates = {}; + for (var j = 0; j < keys2.length; ++j) + object.componentStates[keys2[j]] = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.toObject(message.componentStates[keys2[j]], options); + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState[message.state] === undefined ? message.state : $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState[message.state] : message.state; + if (message.policyContentState != null && message.hasOwnProperty("policyContentState")) + object.policyContentState = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.toObject(message.policyContentState, options); + return object; + }; + + /** + * Converts this MembershipState to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @instance + * @returns {Object.} JSON object + */ + MembershipState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MembershipState + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MembershipState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.MembershipState"; + }; + + /** + * LifecycleState enum. + * @name google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState + * @enum {number} + * @property {number} LIFECYCLE_STATE_UNSPECIFIED=0 LIFECYCLE_STATE_UNSPECIFIED value + * @property {number} NOT_INSTALLED=1 NOT_INSTALLED value + * @property {number} INSTALLING=2 INSTALLING value + * @property {number} ACTIVE=3 ACTIVE value + * @property {number} UPDATING=4 UPDATING value + * @property {number} DECOMMISSIONING=5 DECOMMISSIONING value + * @property {number} CLUSTER_ERROR=6 CLUSTER_ERROR value + * @property {number} HUB_ERROR=7 HUB_ERROR value + * @property {number} SUSPENDED=8 SUSPENDED value + * @property {number} DETACHED=9 DETACHED value + */ + MembershipState.LifecycleState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LIFECYCLE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "NOT_INSTALLED"] = 1; + values[valuesById[2] = "INSTALLING"] = 2; + values[valuesById[3] = "ACTIVE"] = 3; + values[valuesById[4] = "UPDATING"] = 4; + values[valuesById[5] = "DECOMMISSIONING"] = 5; + values[valuesById[6] = "CLUSTER_ERROR"] = 6; + values[valuesById[7] = "HUB_ERROR"] = 7; + values[valuesById[8] = "SUSPENDED"] = 8; + values[valuesById[9] = "DETACHED"] = 9; + return values; + })(); + + return MembershipState; + })(); + + v1beta.PolicyContentState = (function() { + + /** + * Properties of a PolicyContentState. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IPolicyContentState + * @property {google.cloud.gkehub.policycontroller.v1beta.IOnClusterState|null} [templateLibraryState] PolicyContentState templateLibraryState + * @property {Object.|null} [bundleStates] PolicyContentState bundleStates + * @property {google.cloud.gkehub.policycontroller.v1beta.IOnClusterState|null} [referentialSyncConfigState] PolicyContentState referentialSyncConfigState + */ + + /** + * Constructs a new PolicyContentState. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a PolicyContentState. + * @implements IPolicyContentState + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState=} [properties] Properties to set + */ + function PolicyContentState(properties) { + this.bundleStates = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PolicyContentState templateLibraryState. + * @member {google.cloud.gkehub.policycontroller.v1beta.IOnClusterState|null|undefined} templateLibraryState + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @instance + */ + PolicyContentState.prototype.templateLibraryState = null; + + /** + * PolicyContentState bundleStates. + * @member {Object.} bundleStates + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @instance + */ + PolicyContentState.prototype.bundleStates = $util.emptyObject; + + /** + * PolicyContentState referentialSyncConfigState. + * @member {google.cloud.gkehub.policycontroller.v1beta.IOnClusterState|null|undefined} referentialSyncConfigState + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @instance + */ + PolicyContentState.prototype.referentialSyncConfigState = null; + + /** + * Creates a new PolicyContentState instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyContentState} PolicyContentState instance + */ + PolicyContentState.create = function create(properties) { + return new PolicyContentState(properties); + }; + + /** + * Encodes the specified PolicyContentState message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState} message PolicyContentState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolicyContentState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.templateLibraryState != null && Object.hasOwnProperty.call(message, "templateLibraryState")) + $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.encode(message.templateLibraryState, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.bundleStates != null && Object.hasOwnProperty.call(message, "bundleStates")) + for (var keys = Object.keys(message.bundleStates), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.encode(message.bundleStates[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.referentialSyncConfigState != null && Object.hasOwnProperty.call(message, "referentialSyncConfigState")) + $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.encode(message.referentialSyncConfigState, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PolicyContentState message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentState} message PolicyContentState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolicyContentState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PolicyContentState message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyContentState} PolicyContentState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolicyContentState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.templateLibraryState = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.decode(reader, reader.uint32()); + break; + } + case 2: { + if (message.bundleStates === $util.emptyObject) + message.bundleStates = {}; + 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.gkehub.policycontroller.v1beta.OnClusterState.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.bundleStates[key] = value; + break; + } + case 3: { + message.referentialSyncConfigState = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PolicyContentState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyContentState} PolicyContentState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolicyContentState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PolicyContentState message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PolicyContentState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.templateLibraryState != null && message.hasOwnProperty("templateLibraryState")) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.verify(message.templateLibraryState); + if (error) + return "templateLibraryState." + error; + } + if (message.bundleStates != null && message.hasOwnProperty("bundleStates")) { + if (!$util.isObject(message.bundleStates)) + return "bundleStates: object expected"; + var key = Object.keys(message.bundleStates); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.verify(message.bundleStates[key[i]]); + if (error) + return "bundleStates." + error; + } + } + if (message.referentialSyncConfigState != null && message.hasOwnProperty("referentialSyncConfigState")) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.verify(message.referentialSyncConfigState); + if (error) + return "referentialSyncConfigState." + error; + } + return null; + }; + + /** + * Creates a PolicyContentState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyContentState} PolicyContentState + */ + PolicyContentState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState(); + if (object.templateLibraryState != null) { + if (typeof object.templateLibraryState !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.templateLibraryState: object expected"); + message.templateLibraryState = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.fromObject(object.templateLibraryState); + } + if (object.bundleStates) { + if (typeof object.bundleStates !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.bundleStates: object expected"); + message.bundleStates = {}; + for (var keys = Object.keys(object.bundleStates), i = 0; i < keys.length; ++i) { + if (typeof object.bundleStates[keys[i]] !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.bundleStates: object expected"); + message.bundleStates[keys[i]] = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.fromObject(object.bundleStates[keys[i]]); + } + } + if (object.referentialSyncConfigState != null) { + if (typeof object.referentialSyncConfigState !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.referentialSyncConfigState: object expected"); + message.referentialSyncConfigState = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.fromObject(object.referentialSyncConfigState); + } + return message; + }; + + /** + * Creates a plain object from a PolicyContentState message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.PolicyContentState} message PolicyContentState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PolicyContentState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.bundleStates = {}; + if (options.defaults) { + object.templateLibraryState = null; + object.referentialSyncConfigState = null; + } + if (message.templateLibraryState != null && message.hasOwnProperty("templateLibraryState")) + object.templateLibraryState = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.toObject(message.templateLibraryState, options); + var keys2; + if (message.bundleStates && (keys2 = Object.keys(message.bundleStates)).length) { + object.bundleStates = {}; + for (var j = 0; j < keys2.length; ++j) + object.bundleStates[keys2[j]] = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.toObject(message.bundleStates[keys2[j]], options); + } + if (message.referentialSyncConfigState != null && message.hasOwnProperty("referentialSyncConfigState")) + object.referentialSyncConfigState = $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState.toObject(message.referentialSyncConfigState, options); + return object; + }; + + /** + * Converts this PolicyContentState to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @instance + * @returns {Object.} JSON object + */ + PolicyContentState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PolicyContentState + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PolicyContentState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.PolicyContentState"; + }; + + return PolicyContentState; + })(); + + v1beta.MembershipSpec = (function() { + + /** + * Properties of a MembershipSpec. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IMembershipSpec + * @property {google.cloud.gkehub.policycontroller.v1beta.IHubConfig|null} [policyControllerHubConfig] MembershipSpec policyControllerHubConfig + * @property {string|null} [version] MembershipSpec version + */ + + /** + * Constructs a new MembershipSpec. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a MembershipSpec. + * @implements IMembershipSpec + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec=} [properties] Properties to set + */ + function MembershipSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MembershipSpec policyControllerHubConfig. + * @member {google.cloud.gkehub.policycontroller.v1beta.IHubConfig|null|undefined} policyControllerHubConfig + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @instance + */ + MembershipSpec.prototype.policyControllerHubConfig = null; + + /** + * MembershipSpec version. + * @member {string} version + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @instance + */ + MembershipSpec.prototype.version = ""; + + /** + * Creates a new MembershipSpec instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.MembershipSpec} MembershipSpec instance + */ + MembershipSpec.create = function create(properties) { + return new MembershipSpec(properties); + }; + + /** + * Encodes the specified MembershipSpec message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec} message MembershipSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MembershipSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.policyControllerHubConfig != null && Object.hasOwnProperty.call(message, "policyControllerHubConfig")) + $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig.encode(message.policyControllerHubConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + return writer; + }; + + /** + * Encodes the specified MembershipSpec message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec} message MembershipSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MembershipSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MembershipSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.MembershipSpec} MembershipSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MembershipSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.MembershipSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.policyControllerHubConfig = $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig.decode(reader, reader.uint32()); + break; + } + case 2: { + message.version = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MembershipSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.MembershipSpec} MembershipSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MembershipSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MembershipSpec message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MembershipSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.policyControllerHubConfig != null && message.hasOwnProperty("policyControllerHubConfig")) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig.verify(message.policyControllerHubConfig); + if (error) + return "policyControllerHubConfig." + error; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a MembershipSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.MembershipSpec} MembershipSpec + */ + MembershipSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.MembershipSpec) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.MembershipSpec(); + if (object.policyControllerHubConfig != null) { + if (typeof object.policyControllerHubConfig !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.policyControllerHubConfig: object expected"); + message.policyControllerHubConfig = $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig.fromObject(object.policyControllerHubConfig); + } + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a MembershipSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.MembershipSpec} message MembershipSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MembershipSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.policyControllerHubConfig = null; + object.version = ""; + } + if (message.policyControllerHubConfig != null && message.hasOwnProperty("policyControllerHubConfig")) + object.policyControllerHubConfig = $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig.toObject(message.policyControllerHubConfig, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this MembershipSpec to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @instance + * @returns {Object.} JSON object + */ + MembershipSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MembershipSpec + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.MembershipSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MembershipSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.MembershipSpec"; + }; + + return MembershipSpec; + })(); + + v1beta.HubConfig = (function() { + + /** + * Properties of a HubConfig. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IHubConfig + * @property {google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec|null} [installSpec] HubConfig installSpec + * @property {number|Long|null} [auditIntervalSeconds] HubConfig auditIntervalSeconds + * @property {Array.|null} [exemptableNamespaces] HubConfig exemptableNamespaces + * @property {boolean|null} [referentialRulesEnabled] HubConfig referentialRulesEnabled + * @property {boolean|null} [logDeniesEnabled] HubConfig logDeniesEnabled + * @property {boolean|null} [mutationEnabled] HubConfig mutationEnabled + * @property {google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig|null} [monitoring] HubConfig monitoring + * @property {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec|null} [policyContent] HubConfig policyContent + * @property {number|Long|null} [constraintViolationLimit] HubConfig constraintViolationLimit + * @property {Object.|null} [deploymentConfigs] HubConfig deploymentConfigs + */ + + /** + * Constructs a new HubConfig. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a HubConfig. + * @implements IHubConfig + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IHubConfig=} [properties] Properties to set + */ + function HubConfig(properties) { + this.exemptableNamespaces = []; + this.deploymentConfigs = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HubConfig installSpec. + * @member {google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec} installSpec + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.installSpec = 0; + + /** + * HubConfig auditIntervalSeconds. + * @member {number|Long|null|undefined} auditIntervalSeconds + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.auditIntervalSeconds = null; + + /** + * HubConfig exemptableNamespaces. + * @member {Array.} exemptableNamespaces + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.exemptableNamespaces = $util.emptyArray; + + /** + * HubConfig referentialRulesEnabled. + * @member {boolean} referentialRulesEnabled + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.referentialRulesEnabled = false; + + /** + * HubConfig logDeniesEnabled. + * @member {boolean} logDeniesEnabled + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.logDeniesEnabled = false; + + /** + * HubConfig mutationEnabled. + * @member {boolean} mutationEnabled + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.mutationEnabled = false; + + /** + * HubConfig monitoring. + * @member {google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig|null|undefined} monitoring + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.monitoring = null; + + /** + * HubConfig policyContent. + * @member {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec|null|undefined} policyContent + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.policyContent = null; + + /** + * HubConfig constraintViolationLimit. + * @member {number|Long|null|undefined} constraintViolationLimit + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.constraintViolationLimit = null; + + /** + * HubConfig deploymentConfigs. + * @member {Object.} deploymentConfigs + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + HubConfig.prototype.deploymentConfigs = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HubConfig _auditIntervalSeconds. + * @member {"auditIntervalSeconds"|undefined} _auditIntervalSeconds + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + Object.defineProperty(HubConfig.prototype, "_auditIntervalSeconds", { + get: $util.oneOfGetter($oneOfFields = ["auditIntervalSeconds"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * HubConfig _monitoring. + * @member {"monitoring"|undefined} _monitoring + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + Object.defineProperty(HubConfig.prototype, "_monitoring", { + get: $util.oneOfGetter($oneOfFields = ["monitoring"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * HubConfig _policyContent. + * @member {"policyContent"|undefined} _policyContent + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + Object.defineProperty(HubConfig.prototype, "_policyContent", { + get: $util.oneOfGetter($oneOfFields = ["policyContent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * HubConfig _constraintViolationLimit. + * @member {"constraintViolationLimit"|undefined} _constraintViolationLimit + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + */ + Object.defineProperty(HubConfig.prototype, "_constraintViolationLimit", { + get: $util.oneOfGetter($oneOfFields = ["constraintViolationLimit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HubConfig instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IHubConfig=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.HubConfig} HubConfig instance + */ + HubConfig.create = function create(properties) { + return new HubConfig(properties); + }; + + /** + * Encodes the specified HubConfig message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.HubConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IHubConfig} message HubConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HubConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.installSpec != null && Object.hasOwnProperty.call(message, "installSpec")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.installSpec); + if (message.auditIntervalSeconds != null && Object.hasOwnProperty.call(message, "auditIntervalSeconds")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.auditIntervalSeconds); + if (message.exemptableNamespaces != null && message.exemptableNamespaces.length) + for (var i = 0; i < message.exemptableNamespaces.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exemptableNamespaces[i]); + if (message.referentialRulesEnabled != null && Object.hasOwnProperty.call(message, "referentialRulesEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.referentialRulesEnabled); + if (message.logDeniesEnabled != null && Object.hasOwnProperty.call(message, "logDeniesEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.logDeniesEnabled); + if (message.mutationEnabled != null && Object.hasOwnProperty.call(message, "mutationEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.mutationEnabled); + if (message.monitoring != null && Object.hasOwnProperty.call(message, "monitoring")) + $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.encode(message.monitoring, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.policyContent != null && Object.hasOwnProperty.call(message, "policyContent")) + $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.encode(message.policyContent, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.constraintViolationLimit != null && Object.hasOwnProperty.call(message, "constraintViolationLimit")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.constraintViolationLimit); + if (message.deploymentConfigs != null && Object.hasOwnProperty.call(message, "deploymentConfigs")) + for (var keys = Object.keys(message.deploymentConfigs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.encode(message.deploymentConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified HubConfig message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.HubConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IHubConfig} message HubConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HubConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HubConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.HubConfig} HubConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HubConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.installSpec = reader.int32(); + break; + } + case 2: { + message.auditIntervalSeconds = reader.int64(); + break; + } + case 3: { + if (!(message.exemptableNamespaces && message.exemptableNamespaces.length)) + message.exemptableNamespaces = []; + message.exemptableNamespaces.push(reader.string()); + break; + } + case 4: { + message.referentialRulesEnabled = reader.bool(); + break; + } + case 5: { + message.logDeniesEnabled = reader.bool(); + break; + } + case 6: { + message.mutationEnabled = reader.bool(); + break; + } + case 8: { + message.monitoring = $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.decode(reader, reader.uint32()); + break; + } + case 9: { + message.policyContent = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.decode(reader, reader.uint32()); + break; + } + case 10: { + message.constraintViolationLimit = reader.int64(); + break; + } + case 11: { + if (message.deploymentConfigs === $util.emptyObject) + message.deploymentConfigs = {}; + 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.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.deploymentConfigs[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HubConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.HubConfig} HubConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HubConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HubConfig message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HubConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.installSpec != null && message.hasOwnProperty("installSpec")) + switch (message.installSpec) { + default: + return "installSpec: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.auditIntervalSeconds != null && message.hasOwnProperty("auditIntervalSeconds")) { + properties._auditIntervalSeconds = 1; + if (!$util.isInteger(message.auditIntervalSeconds) && !(message.auditIntervalSeconds && $util.isInteger(message.auditIntervalSeconds.low) && $util.isInteger(message.auditIntervalSeconds.high))) + return "auditIntervalSeconds: integer|Long expected"; + } + if (message.exemptableNamespaces != null && message.hasOwnProperty("exemptableNamespaces")) { + if (!Array.isArray(message.exemptableNamespaces)) + return "exemptableNamespaces: array expected"; + for (var i = 0; i < message.exemptableNamespaces.length; ++i) + if (!$util.isString(message.exemptableNamespaces[i])) + return "exemptableNamespaces: string[] expected"; + } + if (message.referentialRulesEnabled != null && message.hasOwnProperty("referentialRulesEnabled")) + if (typeof message.referentialRulesEnabled !== "boolean") + return "referentialRulesEnabled: boolean expected"; + if (message.logDeniesEnabled != null && message.hasOwnProperty("logDeniesEnabled")) + if (typeof message.logDeniesEnabled !== "boolean") + return "logDeniesEnabled: boolean expected"; + if (message.mutationEnabled != null && message.hasOwnProperty("mutationEnabled")) + if (typeof message.mutationEnabled !== "boolean") + return "mutationEnabled: boolean expected"; + if (message.monitoring != null && message.hasOwnProperty("monitoring")) { + properties._monitoring = 1; + { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.verify(message.monitoring); + if (error) + return "monitoring." + error; + } + } + if (message.policyContent != null && message.hasOwnProperty("policyContent")) { + properties._policyContent = 1; + { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.verify(message.policyContent); + if (error) + return "policyContent." + error; + } + } + if (message.constraintViolationLimit != null && message.hasOwnProperty("constraintViolationLimit")) { + properties._constraintViolationLimit = 1; + if (!$util.isInteger(message.constraintViolationLimit) && !(message.constraintViolationLimit && $util.isInteger(message.constraintViolationLimit.low) && $util.isInteger(message.constraintViolationLimit.high))) + return "constraintViolationLimit: integer|Long expected"; + } + if (message.deploymentConfigs != null && message.hasOwnProperty("deploymentConfigs")) { + if (!$util.isObject(message.deploymentConfigs)) + return "deploymentConfigs: object expected"; + var key = Object.keys(message.deploymentConfigs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.verify(message.deploymentConfigs[key[i]]); + if (error) + return "deploymentConfigs." + error; + } + } + return null; + }; + + /** + * Creates a HubConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.HubConfig} HubConfig + */ + HubConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig(); + switch (object.installSpec) { + default: + if (typeof object.installSpec === "number") { + message.installSpec = object.installSpec; + break; + } + break; + case "INSTALL_SPEC_UNSPECIFIED": + case 0: + message.installSpec = 0; + break; + case "INSTALL_SPEC_NOT_INSTALLED": + case 1: + message.installSpec = 1; + break; + case "INSTALL_SPEC_ENABLED": + case 2: + message.installSpec = 2; + break; + case "INSTALL_SPEC_SUSPENDED": + case 3: + message.installSpec = 3; + break; + case "INSTALL_SPEC_DETACHED": + case 4: + message.installSpec = 4; + break; + } + if (object.auditIntervalSeconds != null) + if ($util.Long) + (message.auditIntervalSeconds = $util.Long.fromValue(object.auditIntervalSeconds)).unsigned = false; + else if (typeof object.auditIntervalSeconds === "string") + message.auditIntervalSeconds = parseInt(object.auditIntervalSeconds, 10); + else if (typeof object.auditIntervalSeconds === "number") + message.auditIntervalSeconds = object.auditIntervalSeconds; + else if (typeof object.auditIntervalSeconds === "object") + message.auditIntervalSeconds = new $util.LongBits(object.auditIntervalSeconds.low >>> 0, object.auditIntervalSeconds.high >>> 0).toNumber(); + if (object.exemptableNamespaces) { + if (!Array.isArray(object.exemptableNamespaces)) + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.HubConfig.exemptableNamespaces: array expected"); + message.exemptableNamespaces = []; + for (var i = 0; i < object.exemptableNamespaces.length; ++i) + message.exemptableNamespaces[i] = String(object.exemptableNamespaces[i]); + } + if (object.referentialRulesEnabled != null) + message.referentialRulesEnabled = Boolean(object.referentialRulesEnabled); + if (object.logDeniesEnabled != null) + message.logDeniesEnabled = Boolean(object.logDeniesEnabled); + if (object.mutationEnabled != null) + message.mutationEnabled = Boolean(object.mutationEnabled); + if (object.monitoring != null) { + if (typeof object.monitoring !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.HubConfig.monitoring: object expected"); + message.monitoring = $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.fromObject(object.monitoring); + } + if (object.policyContent != null) { + if (typeof object.policyContent !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.HubConfig.policyContent: object expected"); + message.policyContent = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.fromObject(object.policyContent); + } + if (object.constraintViolationLimit != null) + if ($util.Long) + (message.constraintViolationLimit = $util.Long.fromValue(object.constraintViolationLimit)).unsigned = false; + else if (typeof object.constraintViolationLimit === "string") + message.constraintViolationLimit = parseInt(object.constraintViolationLimit, 10); + else if (typeof object.constraintViolationLimit === "number") + message.constraintViolationLimit = object.constraintViolationLimit; + else if (typeof object.constraintViolationLimit === "object") + message.constraintViolationLimit = new $util.LongBits(object.constraintViolationLimit.low >>> 0, object.constraintViolationLimit.high >>> 0).toNumber(); + if (object.deploymentConfigs) { + if (typeof object.deploymentConfigs !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.HubConfig.deploymentConfigs: object expected"); + message.deploymentConfigs = {}; + for (var keys = Object.keys(object.deploymentConfigs), i = 0; i < keys.length; ++i) { + if (typeof object.deploymentConfigs[keys[i]] !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.HubConfig.deploymentConfigs: object expected"); + message.deploymentConfigs[keys[i]] = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.fromObject(object.deploymentConfigs[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a HubConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.HubConfig} message HubConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HubConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exemptableNamespaces = []; + if (options.objects || options.defaults) + object.deploymentConfigs = {}; + if (options.defaults) { + object.installSpec = options.enums === String ? "INSTALL_SPEC_UNSPECIFIED" : 0; + object.referentialRulesEnabled = false; + object.logDeniesEnabled = false; + object.mutationEnabled = false; + } + if (message.installSpec != null && message.hasOwnProperty("installSpec")) + object.installSpec = options.enums === String ? $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec[message.installSpec] === undefined ? message.installSpec : $root.google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec[message.installSpec] : message.installSpec; + if (message.auditIntervalSeconds != null && message.hasOwnProperty("auditIntervalSeconds")) { + if (typeof message.auditIntervalSeconds === "number") + object.auditIntervalSeconds = options.longs === String ? String(message.auditIntervalSeconds) : message.auditIntervalSeconds; + else + object.auditIntervalSeconds = options.longs === String ? $util.Long.prototype.toString.call(message.auditIntervalSeconds) : options.longs === Number ? new $util.LongBits(message.auditIntervalSeconds.low >>> 0, message.auditIntervalSeconds.high >>> 0).toNumber() : message.auditIntervalSeconds; + if (options.oneofs) + object._auditIntervalSeconds = "auditIntervalSeconds"; + } + if (message.exemptableNamespaces && message.exemptableNamespaces.length) { + object.exemptableNamespaces = []; + for (var j = 0; j < message.exemptableNamespaces.length; ++j) + object.exemptableNamespaces[j] = message.exemptableNamespaces[j]; + } + if (message.referentialRulesEnabled != null && message.hasOwnProperty("referentialRulesEnabled")) + object.referentialRulesEnabled = message.referentialRulesEnabled; + if (message.logDeniesEnabled != null && message.hasOwnProperty("logDeniesEnabled")) + object.logDeniesEnabled = message.logDeniesEnabled; + if (message.mutationEnabled != null && message.hasOwnProperty("mutationEnabled")) + object.mutationEnabled = message.mutationEnabled; + if (message.monitoring != null && message.hasOwnProperty("monitoring")) { + object.monitoring = $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.toObject(message.monitoring, options); + if (options.oneofs) + object._monitoring = "monitoring"; + } + if (message.policyContent != null && message.hasOwnProperty("policyContent")) { + object.policyContent = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.toObject(message.policyContent, options); + if (options.oneofs) + object._policyContent = "policyContent"; + } + if (message.constraintViolationLimit != null && message.hasOwnProperty("constraintViolationLimit")) { + if (typeof message.constraintViolationLimit === "number") + object.constraintViolationLimit = options.longs === String ? String(message.constraintViolationLimit) : message.constraintViolationLimit; + else + object.constraintViolationLimit = options.longs === String ? $util.Long.prototype.toString.call(message.constraintViolationLimit) : options.longs === Number ? new $util.LongBits(message.constraintViolationLimit.low >>> 0, message.constraintViolationLimit.high >>> 0).toNumber() : message.constraintViolationLimit; + if (options.oneofs) + object._constraintViolationLimit = "constraintViolationLimit"; + } + var keys2; + if (message.deploymentConfigs && (keys2 = Object.keys(message.deploymentConfigs)).length) { + object.deploymentConfigs = {}; + for (var j = 0; j < keys2.length; ++j) + object.deploymentConfigs[keys2[j]] = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.toObject(message.deploymentConfigs[keys2[j]], options); + } + return object; + }; + + /** + * Converts this HubConfig to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @instance + * @returns {Object.} JSON object + */ + HubConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HubConfig + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.HubConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HubConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.HubConfig"; + }; + + /** + * InstallSpec enum. + * @name google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec + * @enum {number} + * @property {number} INSTALL_SPEC_UNSPECIFIED=0 INSTALL_SPEC_UNSPECIFIED value + * @property {number} INSTALL_SPEC_NOT_INSTALLED=1 INSTALL_SPEC_NOT_INSTALLED value + * @property {number} INSTALL_SPEC_ENABLED=2 INSTALL_SPEC_ENABLED value + * @property {number} INSTALL_SPEC_SUSPENDED=3 INSTALL_SPEC_SUSPENDED value + * @property {number} INSTALL_SPEC_DETACHED=4 INSTALL_SPEC_DETACHED value + */ + HubConfig.InstallSpec = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INSTALL_SPEC_UNSPECIFIED"] = 0; + values[valuesById[1] = "INSTALL_SPEC_NOT_INSTALLED"] = 1; + values[valuesById[2] = "INSTALL_SPEC_ENABLED"] = 2; + values[valuesById[3] = "INSTALL_SPEC_SUSPENDED"] = 3; + values[valuesById[4] = "INSTALL_SPEC_DETACHED"] = 4; + return values; + })(); + + return HubConfig; + })(); + + v1beta.PolicyControllerDeploymentConfig = (function() { + + /** + * Properties of a PolicyControllerDeploymentConfig. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IPolicyControllerDeploymentConfig + * @property {number|Long|null} [replicaCount] PolicyControllerDeploymentConfig replicaCount + * @property {google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements|null} [containerResources] PolicyControllerDeploymentConfig containerResources + * @property {boolean|null} [podAntiAffinity] PolicyControllerDeploymentConfig podAntiAffinity + * @property {Array.|null} [podTolerations] PolicyControllerDeploymentConfig podTolerations + * @property {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity|null} [podAffinity] PolicyControllerDeploymentConfig podAffinity + */ + + /** + * Constructs a new PolicyControllerDeploymentConfig. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a PolicyControllerDeploymentConfig. + * @implements IPolicyControllerDeploymentConfig + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig=} [properties] Properties to set + */ + function PolicyControllerDeploymentConfig(properties) { + this.podTolerations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PolicyControllerDeploymentConfig replicaCount. + * @member {number|Long|null|undefined} replicaCount + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + */ + PolicyControllerDeploymentConfig.prototype.replicaCount = null; + + /** + * PolicyControllerDeploymentConfig containerResources. + * @member {google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements|null|undefined} containerResources + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + */ + PolicyControllerDeploymentConfig.prototype.containerResources = null; + + /** + * PolicyControllerDeploymentConfig podAntiAffinity. + * @member {boolean|null|undefined} podAntiAffinity + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + */ + PolicyControllerDeploymentConfig.prototype.podAntiAffinity = null; + + /** + * PolicyControllerDeploymentConfig podTolerations. + * @member {Array.} podTolerations + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + */ + PolicyControllerDeploymentConfig.prototype.podTolerations = $util.emptyArray; + + /** + * PolicyControllerDeploymentConfig podAffinity. + * @member {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity} podAffinity + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + */ + PolicyControllerDeploymentConfig.prototype.podAffinity = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PolicyControllerDeploymentConfig _replicaCount. + * @member {"replicaCount"|undefined} _replicaCount + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + */ + Object.defineProperty(PolicyControllerDeploymentConfig.prototype, "_replicaCount", { + get: $util.oneOfGetter($oneOfFields = ["replicaCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PolicyControllerDeploymentConfig _containerResources. + * @member {"containerResources"|undefined} _containerResources + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + */ + Object.defineProperty(PolicyControllerDeploymentConfig.prototype, "_containerResources", { + get: $util.oneOfGetter($oneOfFields = ["containerResources"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PolicyControllerDeploymentConfig _podAntiAffinity. + * @member {"podAntiAffinity"|undefined} _podAntiAffinity + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + */ + Object.defineProperty(PolicyControllerDeploymentConfig.prototype, "_podAntiAffinity", { + get: $util.oneOfGetter($oneOfFields = ["podAntiAffinity"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PolicyControllerDeploymentConfig instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig} PolicyControllerDeploymentConfig instance + */ + PolicyControllerDeploymentConfig.create = function create(properties) { + return new PolicyControllerDeploymentConfig(properties); + }; + + /** + * Encodes the specified PolicyControllerDeploymentConfig message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig} message PolicyControllerDeploymentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolicyControllerDeploymentConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.replicaCount != null && Object.hasOwnProperty.call(message, "replicaCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.replicaCount); + if (message.containerResources != null && Object.hasOwnProperty.call(message, "containerResources")) + $root.google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.encode(message.containerResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.podAntiAffinity != null && Object.hasOwnProperty.call(message, "podAntiAffinity")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.podAntiAffinity); + if (message.podTolerations != null && message.podTolerations.length) + for (var i = 0; i < message.podTolerations.length; ++i) + $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.encode(message.podTolerations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.podAffinity != null && Object.hasOwnProperty.call(message, "podAffinity")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.podAffinity); + return writer; + }; + + /** + * Encodes the specified PolicyControllerDeploymentConfig message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyControllerDeploymentConfig} message PolicyControllerDeploymentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolicyControllerDeploymentConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PolicyControllerDeploymentConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig} PolicyControllerDeploymentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolicyControllerDeploymentConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.replicaCount = reader.int64(); + break; + } + case 2: { + message.containerResources = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.decode(reader, reader.uint32()); + break; + } + case 3: { + message.podAntiAffinity = reader.bool(); + break; + } + case 4: { + if (!(message.podTolerations && message.podTolerations.length)) + message.podTolerations = []; + message.podTolerations.push($root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.decode(reader, reader.uint32())); + break; + } + case 5: { + message.podAffinity = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PolicyControllerDeploymentConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig} PolicyControllerDeploymentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolicyControllerDeploymentConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PolicyControllerDeploymentConfig message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PolicyControllerDeploymentConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) { + properties._replicaCount = 1; + if (!$util.isInteger(message.replicaCount) && !(message.replicaCount && $util.isInteger(message.replicaCount.low) && $util.isInteger(message.replicaCount.high))) + return "replicaCount: integer|Long expected"; + } + if (message.containerResources != null && message.hasOwnProperty("containerResources")) { + properties._containerResources = 1; + { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.verify(message.containerResources); + if (error) + return "containerResources." + error; + } + } + if (message.podAntiAffinity != null && message.hasOwnProperty("podAntiAffinity")) { + properties._podAntiAffinity = 1; + if (typeof message.podAntiAffinity !== "boolean") + return "podAntiAffinity: boolean expected"; + } + if (message.podTolerations != null && message.hasOwnProperty("podTolerations")) { + if (!Array.isArray(message.podTolerations)) + return "podTolerations: array expected"; + for (var i = 0; i < message.podTolerations.length; ++i) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.verify(message.podTolerations[i]); + if (error) + return "podTolerations." + error; + } + } + if (message.podAffinity != null && message.hasOwnProperty("podAffinity")) + switch (message.podAffinity) { + default: + return "podAffinity: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a PolicyControllerDeploymentConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig} PolicyControllerDeploymentConfig + */ + PolicyControllerDeploymentConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig(); + if (object.replicaCount != null) + if ($util.Long) + (message.replicaCount = $util.Long.fromValue(object.replicaCount)).unsigned = false; + else if (typeof object.replicaCount === "string") + message.replicaCount = parseInt(object.replicaCount, 10); + else if (typeof object.replicaCount === "number") + message.replicaCount = object.replicaCount; + else if (typeof object.replicaCount === "object") + message.replicaCount = new $util.LongBits(object.replicaCount.low >>> 0, object.replicaCount.high >>> 0).toNumber(); + if (object.containerResources != null) { + if (typeof object.containerResources !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.containerResources: object expected"); + message.containerResources = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.fromObject(object.containerResources); + } + if (object.podAntiAffinity != null) + message.podAntiAffinity = Boolean(object.podAntiAffinity); + if (object.podTolerations) { + if (!Array.isArray(object.podTolerations)) + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.podTolerations: array expected"); + message.podTolerations = []; + for (var i = 0; i < object.podTolerations.length; ++i) { + if (typeof object.podTolerations[i] !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.podTolerations: object expected"); + message.podTolerations[i] = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.fromObject(object.podTolerations[i]); + } + } + switch (object.podAffinity) { + default: + if (typeof object.podAffinity === "number") { + message.podAffinity = object.podAffinity; + break; + } + break; + case "AFFINITY_UNSPECIFIED": + case 0: + message.podAffinity = 0; + break; + case "NO_AFFINITY": + case 1: + message.podAffinity = 1; + break; + case "ANTI_AFFINITY": + case 2: + message.podAffinity = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a PolicyControllerDeploymentConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig} message PolicyControllerDeploymentConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PolicyControllerDeploymentConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.podTolerations = []; + if (options.defaults) + object.podAffinity = options.enums === String ? "AFFINITY_UNSPECIFIED" : 0; + if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) { + if (typeof message.replicaCount === "number") + object.replicaCount = options.longs === String ? String(message.replicaCount) : message.replicaCount; + else + object.replicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.replicaCount) : options.longs === Number ? new $util.LongBits(message.replicaCount.low >>> 0, message.replicaCount.high >>> 0).toNumber() : message.replicaCount; + if (options.oneofs) + object._replicaCount = "replicaCount"; + } + if (message.containerResources != null && message.hasOwnProperty("containerResources")) { + object.containerResources = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.toObject(message.containerResources, options); + if (options.oneofs) + object._containerResources = "containerResources"; + } + if (message.podAntiAffinity != null && message.hasOwnProperty("podAntiAffinity")) { + object.podAntiAffinity = message.podAntiAffinity; + if (options.oneofs) + object._podAntiAffinity = "podAntiAffinity"; + } + if (message.podTolerations && message.podTolerations.length) { + object.podTolerations = []; + for (var j = 0; j < message.podTolerations.length; ++j) + object.podTolerations[j] = $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.toObject(message.podTolerations[j], options); + } + if (message.podAffinity != null && message.hasOwnProperty("podAffinity")) + object.podAffinity = options.enums === String ? $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity[message.podAffinity] === undefined ? message.podAffinity : $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity[message.podAffinity] : message.podAffinity; + return object; + }; + + /** + * Converts this PolicyControllerDeploymentConfig to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @instance + * @returns {Object.} JSON object + */ + PolicyControllerDeploymentConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PolicyControllerDeploymentConfig + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PolicyControllerDeploymentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig"; + }; + + PolicyControllerDeploymentConfig.Toleration = (function() { + + /** + * Properties of a Toleration. + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @interface IToleration + * @property {string|null} [key] Toleration key + * @property {string|null} [operator] Toleration operator + * @property {string|null} [value] Toleration value + * @property {string|null} [effect] Toleration effect + */ + + /** + * Constructs a new Toleration. + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig + * @classdesc Represents a Toleration. + * @implements IToleration + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration=} [properties] Properties to set + */ + function Toleration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Toleration key. + * @member {string|null|undefined} key + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + */ + Toleration.prototype.key = null; + + /** + * Toleration operator. + * @member {string|null|undefined} operator + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + */ + Toleration.prototype.operator = null; + + /** + * Toleration value. + * @member {string|null|undefined} value + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + */ + Toleration.prototype.value = null; + + /** + * Toleration effect. + * @member {string|null|undefined} effect + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + */ + Toleration.prototype.effect = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Toleration _key. + * @member {"key"|undefined} _key + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + */ + Object.defineProperty(Toleration.prototype, "_key", { + get: $util.oneOfGetter($oneOfFields = ["key"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Toleration _operator. + * @member {"operator"|undefined} _operator + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + */ + Object.defineProperty(Toleration.prototype, "_operator", { + get: $util.oneOfGetter($oneOfFields = ["operator"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Toleration _value. + * @member {"value"|undefined} _value + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + */ + Object.defineProperty(Toleration.prototype, "_value", { + get: $util.oneOfGetter($oneOfFields = ["value"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Toleration _effect. + * @member {"effect"|undefined} _effect + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + */ + Object.defineProperty(Toleration.prototype, "_effect", { + get: $util.oneOfGetter($oneOfFields = ["effect"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Toleration instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration} Toleration instance + */ + Toleration.create = function create(properties) { + return new Toleration(properties); + }; + + /** + * Encodes the specified Toleration message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration} message Toleration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Toleration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.operator != null && Object.hasOwnProperty.call(message, "operator")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.operator); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); + if (message.effect != null && Object.hasOwnProperty.call(message, "effect")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.effect); + return writer; + }; + + /** + * Encodes the specified Toleration message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.IToleration} message Toleration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Toleration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Toleration message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration} Toleration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Toleration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.key = reader.string(); + break; + } + case 2: { + message.operator = reader.string(); + break; + } + case 3: { + message.value = reader.string(); + break; + } + case 4: { + message.effect = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Toleration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration} Toleration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Toleration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Toleration message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Toleration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.key != null && message.hasOwnProperty("key")) { + properties._key = 1; + if (!$util.isString(message.key)) + return "key: string expected"; + } + if (message.operator != null && message.hasOwnProperty("operator")) { + properties._operator = 1; + if (!$util.isString(message.operator)) + return "operator: string expected"; + } + if (message.value != null && message.hasOwnProperty("value")) { + properties._value = 1; + if (!$util.isString(message.value)) + return "value: string expected"; + } + if (message.effect != null && message.hasOwnProperty("effect")) { + properties._effect = 1; + if (!$util.isString(message.effect)) + return "effect: string expected"; + } + return null; + }; + + /** + * Creates a Toleration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration} Toleration + */ + Toleration.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration(); + if (object.key != null) + message.key = String(object.key); + if (object.operator != null) + message.operator = String(object.operator); + if (object.value != null) + message.value = String(object.value); + if (object.effect != null) + message.effect = String(object.effect); + return message; + }; + + /** + * Creates a plain object from a Toleration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration} message Toleration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Toleration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.key != null && message.hasOwnProperty("key")) { + object.key = message.key; + if (options.oneofs) + object._key = "key"; + } + if (message.operator != null && message.hasOwnProperty("operator")) { + object.operator = message.operator; + if (options.oneofs) + object._operator = "operator"; + } + if (message.value != null && message.hasOwnProperty("value")) { + object.value = message.value; + if (options.oneofs) + object._value = "value"; + } + if (message.effect != null && message.hasOwnProperty("effect")) { + object.effect = message.effect; + if (options.oneofs) + object._effect = "effect"; + } + return object; + }; + + /** + * Converts this Toleration to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @instance + * @returns {Object.} JSON object + */ + Toleration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Toleration + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Toleration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration"; + }; + + return Toleration; + })(); + + /** + * Affinity enum. + * @name google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity + * @enum {number} + * @property {number} AFFINITY_UNSPECIFIED=0 AFFINITY_UNSPECIFIED value + * @property {number} NO_AFFINITY=1 NO_AFFINITY value + * @property {number} ANTI_AFFINITY=2 ANTI_AFFINITY value + */ + PolicyControllerDeploymentConfig.Affinity = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AFFINITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_AFFINITY"] = 1; + values[valuesById[2] = "ANTI_AFFINITY"] = 2; + return values; + })(); + + return PolicyControllerDeploymentConfig; + })(); + + v1beta.ResourceRequirements = (function() { + + /** + * Properties of a ResourceRequirements. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IResourceRequirements + * @property {google.cloud.gkehub.policycontroller.v1beta.IResourceList|null} [limits] ResourceRequirements limits + * @property {google.cloud.gkehub.policycontroller.v1beta.IResourceList|null} [requests] ResourceRequirements requests + */ + + /** + * Constructs a new ResourceRequirements. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a ResourceRequirements. + * @implements IResourceRequirements + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements=} [properties] Properties to set + */ + function ResourceRequirements(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceRequirements limits. + * @member {google.cloud.gkehub.policycontroller.v1beta.IResourceList|null|undefined} limits + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @instance + */ + ResourceRequirements.prototype.limits = null; + + /** + * ResourceRequirements requests. + * @member {google.cloud.gkehub.policycontroller.v1beta.IResourceList|null|undefined} requests + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @instance + */ + ResourceRequirements.prototype.requests = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResourceRequirements _limits. + * @member {"limits"|undefined} _limits + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @instance + */ + Object.defineProperty(ResourceRequirements.prototype, "_limits", { + get: $util.oneOfGetter($oneOfFields = ["limits"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ResourceRequirements _requests. + * @member {"requests"|undefined} _requests + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @instance + */ + Object.defineProperty(ResourceRequirements.prototype, "_requests", { + get: $util.oneOfGetter($oneOfFields = ["requests"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResourceRequirements instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements} ResourceRequirements instance + */ + ResourceRequirements.create = function create(properties) { + return new ResourceRequirements(properties); + }; + + /** + * Encodes the specified ResourceRequirements message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements} message ResourceRequirements message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceRequirements.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.limits != null && Object.hasOwnProperty.call(message, "limits")) + $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.encode(message.limits, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.requests != null && Object.hasOwnProperty.call(message, "requests")) + $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.encode(message.requests, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ResourceRequirements message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IResourceRequirements} message ResourceRequirements message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceRequirements.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceRequirements message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements} ResourceRequirements + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceRequirements.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.limits = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.decode(reader, reader.uint32()); + break; + } + case 2: { + message.requests = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceRequirements message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements} ResourceRequirements + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceRequirements.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceRequirements message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceRequirements.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.limits != null && message.hasOwnProperty("limits")) { + properties._limits = 1; + { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.verify(message.limits); + if (error) + return "limits." + error; + } + } + if (message.requests != null && message.hasOwnProperty("requests")) { + properties._requests = 1; + { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.verify(message.requests); + if (error) + return "requests." + error; + } + } + return null; + }; + + /** + * Creates a ResourceRequirements message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements} ResourceRequirements + */ + ResourceRequirements.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements(); + if (object.limits != null) { + if (typeof object.limits !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.limits: object expected"); + message.limits = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.fromObject(object.limits); + } + if (object.requests != null) { + if (typeof object.requests !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements.requests: object expected"); + message.requests = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.fromObject(object.requests); + } + return message; + }; + + /** + * Creates a plain object from a ResourceRequirements message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements} message ResourceRequirements + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceRequirements.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.limits != null && message.hasOwnProperty("limits")) { + object.limits = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.toObject(message.limits, options); + if (options.oneofs) + object._limits = "limits"; + } + if (message.requests != null && message.hasOwnProperty("requests")) { + object.requests = $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList.toObject(message.requests, options); + if (options.oneofs) + object._requests = "requests"; + } + return object; + }; + + /** + * Converts this ResourceRequirements to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @instance + * @returns {Object.} JSON object + */ + ResourceRequirements.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceRequirements + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceRequirements.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements"; + }; + + return ResourceRequirements; + })(); + + v1beta.ResourceList = (function() { + + /** + * Properties of a ResourceList. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IResourceList + * @property {string|null} [memory] ResourceList memory + * @property {string|null} [cpu] ResourceList cpu + */ + + /** + * Constructs a new ResourceList. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a ResourceList. + * @implements IResourceList + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IResourceList=} [properties] Properties to set + */ + function ResourceList(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceList memory. + * @member {string|null|undefined} memory + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @instance + */ + ResourceList.prototype.memory = null; + + /** + * ResourceList cpu. + * @member {string|null|undefined} cpu + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @instance + */ + ResourceList.prototype.cpu = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResourceList _memory. + * @member {"memory"|undefined} _memory + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @instance + */ + Object.defineProperty(ResourceList.prototype, "_memory", { + get: $util.oneOfGetter($oneOfFields = ["memory"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ResourceList _cpu. + * @member {"cpu"|undefined} _cpu + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @instance + */ + Object.defineProperty(ResourceList.prototype, "_cpu", { + get: $util.oneOfGetter($oneOfFields = ["cpu"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResourceList instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IResourceList=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.ResourceList} ResourceList instance + */ + ResourceList.create = function create(properties) { + return new ResourceList(properties); + }; + + /** + * Encodes the specified ResourceList message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.ResourceList.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IResourceList} message ResourceList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.memory != null && Object.hasOwnProperty.call(message, "memory")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.memory); + if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cpu); + return writer; + }; + + /** + * Encodes the specified ResourceList message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.ResourceList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IResourceList} message ResourceList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.ResourceList} ResourceList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.memory = reader.string(); + break; + } + case 2: { + message.cpu = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.ResourceList} ResourceList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceList message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.memory != null && message.hasOwnProperty("memory")) { + properties._memory = 1; + if (!$util.isString(message.memory)) + return "memory: string expected"; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) { + properties._cpu = 1; + if (!$util.isString(message.cpu)) + return "cpu: string expected"; + } + return null; + }; + + /** + * Creates a ResourceList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.ResourceList} ResourceList + */ + ResourceList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.ResourceList(); + if (object.memory != null) + message.memory = String(object.memory); + if (object.cpu != null) + message.cpu = String(object.cpu); + return message; + }; + + /** + * Creates a plain object from a ResourceList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.ResourceList} message ResourceList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.memory != null && message.hasOwnProperty("memory")) { + object.memory = message.memory; + if (options.oneofs) + object._memory = "memory"; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) { + object.cpu = message.cpu; + if (options.oneofs) + object._cpu = "cpu"; + } + return object; + }; + + /** + * Converts this ResourceList to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @instance + * @returns {Object.} JSON object + */ + ResourceList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceList + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.ResourceList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.ResourceList"; + }; + + return ResourceList; + })(); + + v1beta.TemplateLibraryConfig = (function() { + + /** + * Properties of a TemplateLibraryConfig. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface ITemplateLibraryConfig + * @property {google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation|null} [installation] TemplateLibraryConfig installation + */ + + /** + * Constructs a new TemplateLibraryConfig. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a TemplateLibraryConfig. + * @implements ITemplateLibraryConfig + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig=} [properties] Properties to set + */ + function TemplateLibraryConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TemplateLibraryConfig installation. + * @member {google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation} installation + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @instance + */ + TemplateLibraryConfig.prototype.installation = 0; + + /** + * Creates a new TemplateLibraryConfig instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig} TemplateLibraryConfig instance + */ + TemplateLibraryConfig.create = function create(properties) { + return new TemplateLibraryConfig(properties); + }; + + /** + * Encodes the specified TemplateLibraryConfig message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig} message TemplateLibraryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TemplateLibraryConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.installation != null && Object.hasOwnProperty.call(message, "installation")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.installation); + return writer; + }; + + /** + * Encodes the specified TemplateLibraryConfig message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig} message TemplateLibraryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TemplateLibraryConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TemplateLibraryConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig} TemplateLibraryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TemplateLibraryConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.installation = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TemplateLibraryConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig} TemplateLibraryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TemplateLibraryConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TemplateLibraryConfig message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TemplateLibraryConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.installation != null && message.hasOwnProperty("installation")) + switch (message.installation) { + default: + return "installation: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a TemplateLibraryConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig} TemplateLibraryConfig + */ + TemplateLibraryConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig(); + switch (object.installation) { + default: + if (typeof object.installation === "number") { + message.installation = object.installation; + break; + } + break; + case "INSTALLATION_UNSPECIFIED": + case 0: + message.installation = 0; + break; + case "NOT_INSTALLED": + case 1: + message.installation = 1; + break; + case "ALL": + case 2: + message.installation = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a TemplateLibraryConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig} message TemplateLibraryConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TemplateLibraryConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.installation = options.enums === String ? "INSTALLATION_UNSPECIFIED" : 0; + if (message.installation != null && message.hasOwnProperty("installation")) + object.installation = options.enums === String ? $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation[message.installation] === undefined ? message.installation : $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation[message.installation] : message.installation; + return object; + }; + + /** + * Converts this TemplateLibraryConfig to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @instance + * @returns {Object.} JSON object + */ + TemplateLibraryConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TemplateLibraryConfig + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TemplateLibraryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig"; + }; + + /** + * Installation enum. + * @name google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation + * @enum {number} + * @property {number} INSTALLATION_UNSPECIFIED=0 INSTALLATION_UNSPECIFIED value + * @property {number} NOT_INSTALLED=1 NOT_INSTALLED value + * @property {number} ALL=2 ALL value + */ + TemplateLibraryConfig.Installation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INSTALLATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "NOT_INSTALLED"] = 1; + values[valuesById[2] = "ALL"] = 2; + return values; + })(); + + return TemplateLibraryConfig; + })(); + + v1beta.MonitoringConfig = (function() { + + /** + * Properties of a MonitoringConfig. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IMonitoringConfig + * @property {Array.|null} [backends] MonitoringConfig backends + */ + + /** + * Constructs a new MonitoringConfig. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a MonitoringConfig. + * @implements IMonitoringConfig + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig=} [properties] Properties to set + */ + function MonitoringConfig(properties) { + this.backends = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MonitoringConfig backends. + * @member {Array.} backends + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @instance + */ + MonitoringConfig.prototype.backends = $util.emptyArray; + + /** + * Creates a new MonitoringConfig instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig} MonitoringConfig instance + */ + MonitoringConfig.create = function create(properties) { + return new MonitoringConfig(properties); + }; + + /** + * Encodes the specified MonitoringConfig message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig} message MonitoringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MonitoringConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.backends != null && message.backends.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.backends.length; ++i) + writer.int32(message.backends[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified MonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IMonitoringConfig} message MonitoringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MonitoringConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig} MonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MonitoringConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.backends && message.backends.length)) + message.backends = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.backends.push(reader.int32()); + } else + message.backends.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MonitoringConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig} MonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MonitoringConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MonitoringConfig message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MonitoringConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.backends != null && message.hasOwnProperty("backends")) { + if (!Array.isArray(message.backends)) + return "backends: array expected"; + for (var i = 0; i < message.backends.length; ++i) + switch (message.backends[i]) { + default: + return "backends: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } + } + return null; + }; + + /** + * Creates a MonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig} MonitoringConfig + */ + MonitoringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig(); + if (object.backends) { + if (!Array.isArray(object.backends)) + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.backends: array expected"); + message.backends = []; + for (var i = 0; i < object.backends.length; ++i) + switch (object.backends[i]) { + default: + if (typeof object.backends[i] === "number") { + message.backends[i] = object.backends[i]; + break; + } + case "MONITORING_BACKEND_UNSPECIFIED": + case 0: + message.backends[i] = 0; + break; + case "PROMETHEUS": + case 1: + message.backends[i] = 1; + break; + case "CLOUD_MONITORING": + case 2: + message.backends[i] = 2; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a MonitoringConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig} message MonitoringConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MonitoringConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.backends = []; + if (message.backends && message.backends.length) { + object.backends = []; + for (var j = 0; j < message.backends.length; ++j) + object.backends[j] = options.enums === String ? $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend[message.backends[j]] === undefined ? message.backends[j] : $root.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend[message.backends[j]] : message.backends[j]; + } + return object; + }; + + /** + * Converts this MonitoringConfig to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @instance + * @returns {Object.} JSON object + */ + MonitoringConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MonitoringConfig + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MonitoringConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig"; + }; + + /** + * MonitoringBackend enum. + * @name google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend + * @enum {number} + * @property {number} MONITORING_BACKEND_UNSPECIFIED=0 MONITORING_BACKEND_UNSPECIFIED value + * @property {number} PROMETHEUS=1 PROMETHEUS value + * @property {number} CLOUD_MONITORING=2 CLOUD_MONITORING value + */ + MonitoringConfig.MonitoringBackend = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MONITORING_BACKEND_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROMETHEUS"] = 1; + values[valuesById[2] = "CLOUD_MONITORING"] = 2; + return values; + })(); + + return MonitoringConfig; + })(); + + v1beta.OnClusterState = (function() { + + /** + * Properties of an OnClusterState. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IOnClusterState + * @property {google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState|null} [state] OnClusterState state + * @property {string|null} [details] OnClusterState details + */ + + /** + * Constructs a new OnClusterState. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents an OnClusterState. + * @implements IOnClusterState + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IOnClusterState=} [properties] Properties to set + */ + function OnClusterState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OnClusterState state. + * @member {google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState} state + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @instance + */ + OnClusterState.prototype.state = 0; + + /** + * OnClusterState details. + * @member {string} details + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @instance + */ + OnClusterState.prototype.details = ""; + + /** + * Creates a new OnClusterState instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IOnClusterState=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.OnClusterState} OnClusterState instance + */ + OnClusterState.create = function create(properties) { + return new OnClusterState(properties); + }; + + /** + * Encodes the specified OnClusterState message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.OnClusterState.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IOnClusterState} message OnClusterState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OnClusterState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.details != null && Object.hasOwnProperty.call(message, "details")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.details); + return writer; + }; + + /** + * Encodes the specified OnClusterState message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.OnClusterState.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IOnClusterState} message OnClusterState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OnClusterState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OnClusterState message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.OnClusterState} OnClusterState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OnClusterState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + case 2: { + message.details = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OnClusterState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.OnClusterState} OnClusterState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OnClusterState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OnClusterState message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OnClusterState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.details != null && message.hasOwnProperty("details")) + if (!$util.isString(message.details)) + return "details: string expected"; + return null; + }; + + /** + * Creates an OnClusterState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.OnClusterState} OnClusterState + */ + OnClusterState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.OnClusterState(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "LIFECYCLE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "NOT_INSTALLED": + case 1: + message.state = 1; + break; + case "INSTALLING": + case 2: + message.state = 2; + break; + case "ACTIVE": + case 3: + message.state = 3; + break; + case "UPDATING": + case 4: + message.state = 4; + break; + case "DECOMMISSIONING": + case 5: + message.state = 5; + break; + case "CLUSTER_ERROR": + case 6: + message.state = 6; + break; + case "HUB_ERROR": + case 7: + message.state = 7; + break; + case "SUSPENDED": + case 8: + message.state = 8; + break; + case "DETACHED": + case 9: + message.state = 9; + break; + } + if (object.details != null) + message.details = String(object.details); + return message; + }; + + /** + * Creates a plain object from an OnClusterState message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.OnClusterState} message OnClusterState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OnClusterState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.state = options.enums === String ? "LIFECYCLE_STATE_UNSPECIFIED" : 0; + object.details = ""; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState[message.state] === undefined ? message.state : $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState[message.state] : message.state; + if (message.details != null && message.hasOwnProperty("details")) + object.details = message.details; + return object; + }; + + /** + * Converts this OnClusterState to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @instance + * @returns {Object.} JSON object + */ + OnClusterState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OnClusterState + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.OnClusterState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OnClusterState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.OnClusterState"; + }; + + return OnClusterState; + })(); + + v1beta.BundleInstallSpec = (function() { + + /** + * Properties of a BundleInstallSpec. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IBundleInstallSpec + * @property {Array.|null} [exemptedNamespaces] BundleInstallSpec exemptedNamespaces + */ + + /** + * Constructs a new BundleInstallSpec. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a BundleInstallSpec. + * @implements IBundleInstallSpec + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec=} [properties] Properties to set + */ + function BundleInstallSpec(properties) { + this.exemptedNamespaces = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BundleInstallSpec exemptedNamespaces. + * @member {Array.} exemptedNamespaces + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @instance + */ + BundleInstallSpec.prototype.exemptedNamespaces = $util.emptyArray; + + /** + * Creates a new BundleInstallSpec instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec} BundleInstallSpec instance + */ + BundleInstallSpec.create = function create(properties) { + return new BundleInstallSpec(properties); + }; + + /** + * Encodes the specified BundleInstallSpec message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec} message BundleInstallSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BundleInstallSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exemptedNamespaces != null && message.exemptedNamespaces.length) + for (var i = 0; i < message.exemptedNamespaces.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.exemptedNamespaces[i]); + return writer; + }; + + /** + * Encodes the specified BundleInstallSpec message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IBundleInstallSpec} message BundleInstallSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BundleInstallSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BundleInstallSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec} BundleInstallSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BundleInstallSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.exemptedNamespaces && message.exemptedNamespaces.length)) + message.exemptedNamespaces = []; + message.exemptedNamespaces.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BundleInstallSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec} BundleInstallSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BundleInstallSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BundleInstallSpec message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BundleInstallSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exemptedNamespaces != null && message.hasOwnProperty("exemptedNamespaces")) { + if (!Array.isArray(message.exemptedNamespaces)) + return "exemptedNamespaces: array expected"; + for (var i = 0; i < message.exemptedNamespaces.length; ++i) + if (!$util.isString(message.exemptedNamespaces[i])) + return "exemptedNamespaces: string[] expected"; + } + return null; + }; + + /** + * Creates a BundleInstallSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec} BundleInstallSpec + */ + BundleInstallSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec(); + if (object.exemptedNamespaces) { + if (!Array.isArray(object.exemptedNamespaces)) + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.exemptedNamespaces: array expected"); + message.exemptedNamespaces = []; + for (var i = 0; i < object.exemptedNamespaces.length; ++i) + message.exemptedNamespaces[i] = String(object.exemptedNamespaces[i]); + } + return message; + }; + + /** + * Creates a plain object from a BundleInstallSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec} message BundleInstallSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BundleInstallSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exemptedNamespaces = []; + if (message.exemptedNamespaces && message.exemptedNamespaces.length) { + object.exemptedNamespaces = []; + for (var j = 0; j < message.exemptedNamespaces.length; ++j) + object.exemptedNamespaces[j] = message.exemptedNamespaces[j]; + } + return object; + }; + + /** + * Converts this BundleInstallSpec to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @instance + * @returns {Object.} JSON object + */ + BundleInstallSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BundleInstallSpec + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BundleInstallSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec"; + }; + + return BundleInstallSpec; + })(); + + v1beta.PolicyContentSpec = (function() { + + /** + * Properties of a PolicyContentSpec. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @interface IPolicyContentSpec + * @property {Object.|null} [bundles] PolicyContentSpec bundles + * @property {google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig|null} [templateLibrary] PolicyContentSpec templateLibrary + */ + + /** + * Constructs a new PolicyContentSpec. + * @memberof google.cloud.gkehub.policycontroller.v1beta + * @classdesc Represents a PolicyContentSpec. + * @implements IPolicyContentSpec + * @constructor + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec=} [properties] Properties to set + */ + function PolicyContentSpec(properties) { + this.bundles = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PolicyContentSpec bundles. + * @member {Object.} bundles + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @instance + */ + PolicyContentSpec.prototype.bundles = $util.emptyObject; + + /** + * PolicyContentSpec templateLibrary. + * @member {google.cloud.gkehub.policycontroller.v1beta.ITemplateLibraryConfig|null|undefined} templateLibrary + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @instance + */ + PolicyContentSpec.prototype.templateLibrary = null; + + /** + * Creates a new PolicyContentSpec instance using the specified properties. + * @function create + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec=} [properties] Properties to set + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec} PolicyContentSpec instance + */ + PolicyContentSpec.create = function create(properties) { + return new PolicyContentSpec(properties); + }; + + /** + * Encodes the specified PolicyContentSpec message. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec} message PolicyContentSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolicyContentSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bundles != null && Object.hasOwnProperty.call(message, "bundles")) + for (var keys = Object.keys(message.bundles), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.encode(message.bundles[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.templateLibrary != null && Object.hasOwnProperty.call(message, "templateLibrary")) + $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.encode(message.templateLibrary, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PolicyContentSpec message, length delimited. Does not implicitly {@link google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.IPolicyContentSpec} message PolicyContentSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolicyContentSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PolicyContentSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec} PolicyContentSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolicyContentSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.bundles === $util.emptyObject) + message.bundles = {}; + 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.gkehub.policycontroller.v1beta.BundleInstallSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.bundles[key] = value; + break; + } + case 2: { + message.templateLibrary = $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PolicyContentSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec} PolicyContentSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolicyContentSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PolicyContentSpec message. + * @function verify + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PolicyContentSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bundles != null && message.hasOwnProperty("bundles")) { + if (!$util.isObject(message.bundles)) + return "bundles: object expected"; + var key = Object.keys(message.bundles); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.verify(message.bundles[key[i]]); + if (error) + return "bundles." + error; + } + } + if (message.templateLibrary != null && message.hasOwnProperty("templateLibrary")) { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.verify(message.templateLibrary); + if (error) + return "templateLibrary." + error; + } + return null; + }; + + /** + * Creates a PolicyContentSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec} PolicyContentSpec + */ + PolicyContentSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec) + return object; + var message = new $root.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec(); + if (object.bundles) { + if (typeof object.bundles !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.bundles: object expected"); + message.bundles = {}; + for (var keys = Object.keys(object.bundles), i = 0; i < keys.length; ++i) { + if (typeof object.bundles[keys[i]] !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.bundles: object expected"); + message.bundles[keys[i]] = $root.google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.fromObject(object.bundles[keys[i]]); + } + } + if (object.templateLibrary != null) { + if (typeof object.templateLibrary !== "object") + throw TypeError(".google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.templateLibrary: object expected"); + message.templateLibrary = $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.fromObject(object.templateLibrary); + } + return message; + }; + + /** + * Creates a plain object from a PolicyContentSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec} message PolicyContentSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PolicyContentSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.bundles = {}; + if (options.defaults) + object.templateLibrary = null; + var keys2; + if (message.bundles && (keys2 = Object.keys(message.bundles)).length) { + object.bundles = {}; + for (var j = 0; j < keys2.length; ++j) + object.bundles[keys2[j]] = $root.google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec.toObject(message.bundles[keys2[j]], options); + } + if (message.templateLibrary != null && message.hasOwnProperty("templateLibrary")) + object.templateLibrary = $root.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.toObject(message.templateLibrary, options); + return object; + }; + + /** + * Converts this PolicyContentSpec to JSON. + * @function toJSON + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @instance + * @returns {Object.} JSON object + */ + PolicyContentSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PolicyContentSpec + * @function getTypeUrl + * @memberof google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PolicyContentSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec"; + }; + + return PolicyContentSpec; + })(); + + return v1beta; + })(); + + return policycontroller; + })(); + gkehub.v1beta = (function() { /** @@ -63098,6 +67241,7 @@ * @interface IMembershipFeatureSpec * @property {google.cloud.gkehub.configmanagement.v1beta.IMembershipSpec|null} [configmanagement] MembershipFeatureSpec configmanagement * @property {google.cloud.gkehub.servicemesh.v1beta.IMembershipSpec|null} [mesh] MembershipFeatureSpec mesh + * @property {google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec|null} [policycontroller] MembershipFeatureSpec policycontroller */ /** @@ -63131,17 +67275,25 @@ */ MembershipFeatureSpec.prototype.mesh = null; + /** + * MembershipFeatureSpec policycontroller. + * @member {google.cloud.gkehub.policycontroller.v1beta.IMembershipSpec|null|undefined} policycontroller + * @memberof google.cloud.gkehub.v1beta.MembershipFeatureSpec + * @instance + */ + MembershipFeatureSpec.prototype.policycontroller = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * MembershipFeatureSpec featureSpec. - * @member {"configmanagement"|"mesh"|undefined} featureSpec + * @member {"configmanagement"|"mesh"|"policycontroller"|undefined} featureSpec * @memberof google.cloud.gkehub.v1beta.MembershipFeatureSpec * @instance */ Object.defineProperty(MembershipFeatureSpec.prototype, "featureSpec", { - get: $util.oneOfGetter($oneOfFields = ["configmanagement", "mesh"]), + get: $util.oneOfGetter($oneOfFields = ["configmanagement", "mesh", "policycontroller"]), set: $util.oneOfSetter($oneOfFields) }); @@ -63173,6 +67325,8 @@ $root.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.encode(message.configmanagement, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); if (message.mesh != null && Object.hasOwnProperty.call(message, "mesh")) $root.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.encode(message.mesh, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); + if (message.policycontroller != null && Object.hasOwnProperty.call(message, "policycontroller")) + $root.google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.encode(message.policycontroller, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); return writer; }; @@ -63215,6 +67369,10 @@ message.mesh = $root.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.decode(reader, reader.uint32()); break; } + case 118: { + message.policycontroller = $root.google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -63269,6 +67427,16 @@ return "mesh." + error; } } + if (message.policycontroller != null && message.hasOwnProperty("policycontroller")) { + if (properties.featureSpec === 1) + return "featureSpec: multiple values"; + properties.featureSpec = 1; + { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.verify(message.policycontroller); + if (error) + return "policycontroller." + error; + } + } return null; }; @@ -63294,6 +67462,11 @@ throw TypeError(".google.cloud.gkehub.v1beta.MembershipFeatureSpec.mesh: object expected"); message.mesh = $root.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.fromObject(object.mesh); } + if (object.policycontroller != null) { + if (typeof object.policycontroller !== "object") + throw TypeError(".google.cloud.gkehub.v1beta.MembershipFeatureSpec.policycontroller: object expected"); + message.policycontroller = $root.google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.fromObject(object.policycontroller); + } return message; }; @@ -63320,6 +67493,11 @@ if (options.oneofs) object.featureSpec = "mesh"; } + if (message.policycontroller != null && message.hasOwnProperty("policycontroller")) { + object.policycontroller = $root.google.cloud.gkehub.policycontroller.v1beta.MembershipSpec.toObject(message.policycontroller, options); + if (options.oneofs) + object.featureSpec = "policycontroller"; + } return object; }; @@ -63361,6 +67539,7 @@ * @property {google.cloud.gkehub.servicemesh.v1beta.IMembershipState|null} [servicemesh] MembershipFeatureState servicemesh * @property {google.cloud.gkehub.metering.v1beta.IMembershipState|null} [metering] MembershipFeatureState metering * @property {google.cloud.gkehub.configmanagement.v1beta.IMembershipState|null} [configmanagement] MembershipFeatureState configmanagement + * @property {google.cloud.gkehub.policycontroller.v1beta.IMembershipState|null} [policycontroller] MembershipFeatureState policycontroller * @property {google.cloud.gkehub.v1beta.IFeatureState|null} [state] MembershipFeatureState state */ @@ -63403,6 +67582,14 @@ */ MembershipFeatureState.prototype.configmanagement = null; + /** + * MembershipFeatureState policycontroller. + * @member {google.cloud.gkehub.policycontroller.v1beta.IMembershipState|null|undefined} policycontroller + * @memberof google.cloud.gkehub.v1beta.MembershipFeatureState + * @instance + */ + MembershipFeatureState.prototype.policycontroller = null; + /** * MembershipFeatureState state. * @member {google.cloud.gkehub.v1beta.IFeatureState|null|undefined} state @@ -63416,12 +67603,12 @@ /** * MembershipFeatureState featureState. - * @member {"servicemesh"|"metering"|"configmanagement"|undefined} featureState + * @member {"servicemesh"|"metering"|"configmanagement"|"policycontroller"|undefined} featureState * @memberof google.cloud.gkehub.v1beta.MembershipFeatureState * @instance */ Object.defineProperty(MembershipFeatureState.prototype, "featureState", { - get: $util.oneOfGetter($oneOfFields = ["servicemesh", "metering", "configmanagement"]), + get: $util.oneOfGetter($oneOfFields = ["servicemesh", "metering", "configmanagement", "policycontroller"]), set: $util.oneOfSetter($oneOfFields) }); @@ -63457,6 +67644,8 @@ $root.google.cloud.gkehub.metering.v1beta.MembershipState.encode(message.metering, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); if (message.configmanagement != null && Object.hasOwnProperty.call(message, "configmanagement")) $root.google.cloud.gkehub.configmanagement.v1beta.MembershipState.encode(message.configmanagement, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); + if (message.policycontroller != null && Object.hasOwnProperty.call(message, "policycontroller")) + $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.encode(message.policycontroller, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); return writer; }; @@ -63503,6 +67692,10 @@ message.configmanagement = $root.google.cloud.gkehub.configmanagement.v1beta.MembershipState.decode(reader, reader.uint32()); break; } + case 116: { + message.policycontroller = $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.decode(reader, reader.uint32()); + break; + } case 1: { message.state = $root.google.cloud.gkehub.v1beta.FeatureState.decode(reader, reader.uint32()); break; @@ -63571,6 +67764,16 @@ return "configmanagement." + error; } } + if (message.policycontroller != null && message.hasOwnProperty("policycontroller")) { + if (properties.featureState === 1) + return "featureState: multiple values"; + properties.featureState = 1; + { + var error = $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.verify(message.policycontroller); + if (error) + return "policycontroller." + error; + } + } if (message.state != null && message.hasOwnProperty("state")) { var error = $root.google.cloud.gkehub.v1beta.FeatureState.verify(message.state); if (error) @@ -63606,6 +67809,11 @@ throw TypeError(".google.cloud.gkehub.v1beta.MembershipFeatureState.configmanagement: object expected"); message.configmanagement = $root.google.cloud.gkehub.configmanagement.v1beta.MembershipState.fromObject(object.configmanagement); } + if (object.policycontroller != null) { + if (typeof object.policycontroller !== "object") + throw TypeError(".google.cloud.gkehub.v1beta.MembershipFeatureState.policycontroller: object expected"); + message.policycontroller = $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.fromObject(object.policycontroller); + } if (object.state != null) { if (typeof object.state !== "object") throw TypeError(".google.cloud.gkehub.v1beta.MembershipFeatureState.state: object expected"); @@ -63646,6 +67854,11 @@ if (options.oneofs) object.featureState = "configmanagement"; } + if (message.policycontroller != null && message.hasOwnProperty("policycontroller")) { + object.policycontroller = $root.google.cloud.gkehub.policycontroller.v1beta.MembershipState.toObject(message.policycontroller, options); + if (options.oneofs) + object.featureState = "policycontroller"; + } return object; }; diff --git a/packages/google-cloud-gkehub/protos/protos.json b/packages/google-cloud-gkehub/protos/protos.json index 874479b71d3..511827354c3 100644 --- a/packages/google-cloud-gkehub/protos/protos.json +++ b/packages/google-cloud-gkehub/protos/protos.json @@ -1,4 +1,7 @@ { + "options": { + "syntax": "proto3" + }, "nested": { "google": { "nested": { @@ -6026,6 +6029,420 @@ } } }, + "policycontroller": { + "nested": { + "v1beta": { + "options": { + "csharp_namespace": "Google.Cloud.GkeHub.PolicyController.V1Beta", + "go_package": "cloud.google.com/go/gkehub/policycontroller/apiv1beta/policycontrollerpb;policycontrollerpb", + "java_multiple_files": true, + "java_outer_classname": "PolicyControllerProto", + "java_package": "com.google.cloud.gkehub.policycontroller.v1beta", + "php_namespace": "Google\\Cloud\\GkeHub\\PolicyController\\V1beta", + "ruby_package": "Google::Cloud::GkeHub::PolicyController::V1beta" + }, + "nested": { + "MembershipState": { + "fields": { + "componentStates": { + "keyType": "string", + "type": "OnClusterState", + "id": 3 + }, + "state": { + "type": "LifecycleState", + "id": 4 + }, + "policyContentState": { + "type": "PolicyContentState", + "id": 6 + } + }, + "nested": { + "LifecycleState": { + "values": { + "LIFECYCLE_STATE_UNSPECIFIED": 0, + "NOT_INSTALLED": 1, + "INSTALLING": 2, + "ACTIVE": 3, + "UPDATING": 4, + "DECOMMISSIONING": 5, + "CLUSTER_ERROR": 6, + "HUB_ERROR": 7, + "SUSPENDED": 8, + "DETACHED": 9 + } + } + } + }, + "PolicyContentState": { + "fields": { + "templateLibraryState": { + "type": "OnClusterState", + "id": 1 + }, + "bundleStates": { + "keyType": "string", + "type": "OnClusterState", + "id": 2 + }, + "referentialSyncConfigState": { + "type": "OnClusterState", + "id": 3 + } + } + }, + "MembershipSpec": { + "fields": { + "policyControllerHubConfig": { + "type": "HubConfig", + "id": 1 + }, + "version": { + "type": "string", + "id": 2 + } + } + }, + "HubConfig": { + "oneofs": { + "_auditIntervalSeconds": { + "oneof": [ + "auditIntervalSeconds" + ] + }, + "_monitoring": { + "oneof": [ + "monitoring" + ] + }, + "_policyContent": { + "oneof": [ + "policyContent" + ] + }, + "_constraintViolationLimit": { + "oneof": [ + "constraintViolationLimit" + ] + } + }, + "fields": { + "installSpec": { + "type": "InstallSpec", + "id": 1 + }, + "auditIntervalSeconds": { + "type": "int64", + "id": 2, + "options": { + "proto3_optional": true + } + }, + "exemptableNamespaces": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "referentialRulesEnabled": { + "type": "bool", + "id": 4 + }, + "logDeniesEnabled": { + "type": "bool", + "id": 5 + }, + "mutationEnabled": { + "type": "bool", + "id": 6 + }, + "monitoring": { + "type": "MonitoringConfig", + "id": 8, + "options": { + "proto3_optional": true + } + }, + "policyContent": { + "type": "PolicyContentSpec", + "id": 9, + "options": { + "proto3_optional": true + } + }, + "constraintViolationLimit": { + "type": "int64", + "id": 10, + "options": { + "proto3_optional": true + } + }, + "deploymentConfigs": { + "keyType": "string", + "type": "PolicyControllerDeploymentConfig", + "id": 11 + } + }, + "nested": { + "InstallSpec": { + "values": { + "INSTALL_SPEC_UNSPECIFIED": 0, + "INSTALL_SPEC_NOT_INSTALLED": 1, + "INSTALL_SPEC_ENABLED": 2, + "INSTALL_SPEC_SUSPENDED": 3, + "INSTALL_SPEC_DETACHED": 4 + } + } + } + }, + "PolicyControllerDeploymentConfig": { + "oneofs": { + "_replicaCount": { + "oneof": [ + "replicaCount" + ] + }, + "_containerResources": { + "oneof": [ + "containerResources" + ] + }, + "_podAntiAffinity": { + "oneof": [ + "podAntiAffinity" + ] + } + }, + "fields": { + "replicaCount": { + "type": "int64", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "containerResources": { + "type": "ResourceRequirements", + "id": 2, + "options": { + "proto3_optional": true + } + }, + "podAntiAffinity": { + "type": "bool", + "id": 3, + "options": { + "deprecated": true, + "proto3_optional": true + } + }, + "podTolerations": { + "rule": "repeated", + "type": "Toleration", + "id": 4 + }, + "podAffinity": { + "type": "Affinity", + "id": 5 + } + }, + "nested": { + "Toleration": { + "oneofs": { + "_key": { + "oneof": [ + "key" + ] + }, + "_operator": { + "oneof": [ + "operator" + ] + }, + "_value": { + "oneof": [ + "value" + ] + }, + "_effect": { + "oneof": [ + "effect" + ] + } + }, + "fields": { + "key": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "operator": { + "type": "string", + "id": 2, + "options": { + "proto3_optional": true + } + }, + "value": { + "type": "string", + "id": 3, + "options": { + "proto3_optional": true + } + }, + "effect": { + "type": "string", + "id": 4, + "options": { + "proto3_optional": true + } + } + } + }, + "Affinity": { + "values": { + "AFFINITY_UNSPECIFIED": 0, + "NO_AFFINITY": 1, + "ANTI_AFFINITY": 2 + } + } + } + }, + "ResourceRequirements": { + "oneofs": { + "_limits": { + "oneof": [ + "limits" + ] + }, + "_requests": { + "oneof": [ + "requests" + ] + } + }, + "fields": { + "limits": { + "type": "ResourceList", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "requests": { + "type": "ResourceList", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, + "ResourceList": { + "oneofs": { + "_memory": { + "oneof": [ + "memory" + ] + }, + "_cpu": { + "oneof": [ + "cpu" + ] + } + }, + "fields": { + "memory": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "cpu": { + "type": "string", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, + "TemplateLibraryConfig": { + "fields": { + "installation": { + "type": "Installation", + "id": 2 + } + }, + "nested": { + "Installation": { + "values": { + "INSTALLATION_UNSPECIFIED": 0, + "NOT_INSTALLED": 1, + "ALL": 2 + } + } + } + }, + "MonitoringConfig": { + "fields": { + "backends": { + "rule": "repeated", + "type": "MonitoringBackend", + "id": 1 + } + }, + "nested": { + "MonitoringBackend": { + "values": { + "MONITORING_BACKEND_UNSPECIFIED": 0, + "PROMETHEUS": 1, + "CLOUD_MONITORING": 2 + } + } + } + }, + "OnClusterState": { + "fields": { + "state": { + "type": "MembershipState.LifecycleState", + "id": 1 + }, + "details": { + "type": "string", + "id": 2 + } + } + }, + "BundleInstallSpec": { + "fields": { + "exemptedNamespaces": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, + "PolicyContentSpec": { + "fields": { + "bundles": { + "keyType": "string", + "type": "BundleInstallSpec", + "id": 1 + }, + "templateLibrary": { + "type": "TemplateLibraryConfig", + "id": 2 + } + } + } + } + } + } + }, "v1beta": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.V1Beta", @@ -6192,7 +6609,8 @@ "featureSpec": { "oneof": [ "configmanagement", - "mesh" + "mesh", + "policycontroller" ] } }, @@ -6204,6 +6622,10 @@ "mesh": { "type": "google.cloud.gkehub.servicemesh.v1beta.MembershipSpec", "id": 116 + }, + "policycontroller": { + "type": "google.cloud.gkehub.policycontroller.v1beta.MembershipSpec", + "id": 118 } } }, @@ -6213,7 +6635,8 @@ "oneof": [ "servicemesh", "metering", - "configmanagement" + "configmanagement", + "policycontroller" ] } }, @@ -6230,6 +6653,10 @@ "type": "google.cloud.gkehub.configmanagement.v1beta.MembershipState", "id": 106 }, + "policycontroller": { + "type": "google.cloud.gkehub.policycontroller.v1beta.MembershipState", + "id": 116 + }, "state": { "type": "FeatureState", "id": 1 diff --git a/packages/google-cloud-gkehub/src/v1beta/gke_hub_proto_list.json b/packages/google-cloud-gkehub/src/v1beta/gke_hub_proto_list.json index c7a1b8adc80..22f5719c0bc 100644 --- a/packages/google-cloud-gkehub/src/v1beta/gke_hub_proto_list.json +++ b/packages/google-cloud-gkehub/src/v1beta/gke_hub_proto_list.json @@ -1,4 +1,5 @@ [ + "../../protos/google/cloud/gkehub/policycontroller/v1beta/policycontroller.proto", "../../protos/google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto", "../../protos/google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto", "../../protos/google/cloud/gkehub/v1beta/feature.proto", diff --git a/packages/google-cloud-parallelstore/src/v1beta/parallelstore_client.ts b/packages/google-cloud-parallelstore/src/v1beta/parallelstore_client.ts index bc4f40170a4..0c86b56d7c9 100644 --- a/packages/google-cloud-parallelstore/src/v1beta/parallelstore_client.ts +++ b/packages/google-cloud-parallelstore/src/v1beta/parallelstore_client.ts @@ -276,7 +276,6 @@ export class ParallelstoreClient { { selector: 'google.longrunning.Operations.CancelOperation', post: '/v1beta/{name=projects/*/locations/*/operations/*}:cancel', - body: '*', }, { selector: 'google.longrunning.Operations.DeleteOperation', diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/k8s.min.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/k8s.min.proto index a2489a4788a..9daf861e865 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/k8s.min.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/k8s.min.proto @@ -128,14 +128,9 @@ message EnvVar { string name = 1 [(google.api.field_behavior) = REQUIRED]; oneof values { - // Variable references $(VAR_NAME) are expanded - // using the previous defined environment variables in the container and - // any route environment variables. If a variable cannot be resolved, - // the reference in the input string will be unchanged. The $(VAR_NAME) - // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped - // references will never be expanded, regardless of whether the variable - // exists or not. + // Literal value of the environment variable. // Defaults to "", and the maximum length is 32768 bytes. + // Variable references are not supported in Cloud Run. string value = 2; // Source for the environment variable's value. @@ -350,6 +345,10 @@ message GCSVolumeSource { // If true, the volume will be mounted as read only for all mounts. bool read_only = 2; + + // A list of additional flags to pass to the gcsfuse CLI. + // Options should be specified without the leading "--". + repeated string mount_options = 3; } // Probe describes a health check to be performed against a container to diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/service.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/service.proto index fb6012a2e96..0f9e9b56b8c 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/service.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/service.proto @@ -397,7 +397,9 @@ message Service { ServiceScaling scaling = 20 [(google.api.field_behavior) = OPTIONAL]; // Optional. Disables IAM permission check for run.routes.invoke for callers - // of this service. This setting should not be used with external ingress. + // of this service. This feature is available by invitation only. For more + // information, visit + // https://cloud.google.com/run/docs/securing/managing-access#invoker_check. bool invoker_iam_disabled = 21 [(google.api.field_behavior) = OPTIONAL]; // Optional. Disables public resolution of the default URI of this service. diff --git a/packages/google-cloud-run/protos/protos.d.ts b/packages/google-cloud-run/protos/protos.d.ts index eeab7751af0..26d50aa577b 100644 --- a/packages/google-cloud-run/protos/protos.d.ts +++ b/packages/google-cloud-run/protos/protos.d.ts @@ -3363,6 +3363,9 @@ export namespace google { /** GCSVolumeSource readOnly */ readOnly?: (boolean|null); + + /** GCSVolumeSource mountOptions */ + mountOptions?: (string[]|null); } /** Represents a GCSVolumeSource. */ @@ -3380,6 +3383,9 @@ export namespace google { /** GCSVolumeSource readOnly. */ public readOnly: boolean; + /** GCSVolumeSource mountOptions. */ + public mountOptions: string[]; + /** * Creates a new GCSVolumeSource instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-run/protos/protos.js b/packages/google-cloud-run/protos/protos.js index 637d3dc0320..fe01717cadc 100644 --- a/packages/google-cloud-run/protos/protos.js +++ b/packages/google-cloud-run/protos/protos.js @@ -8970,6 +8970,7 @@ * @interface IGCSVolumeSource * @property {string|null} [bucket] GCSVolumeSource bucket * @property {boolean|null} [readOnly] GCSVolumeSource readOnly + * @property {Array.|null} [mountOptions] GCSVolumeSource mountOptions */ /** @@ -8981,6 +8982,7 @@ * @param {google.cloud.run.v2.IGCSVolumeSource=} [properties] Properties to set */ function GCSVolumeSource(properties) { + this.mountOptions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9003,6 +9005,14 @@ */ GCSVolumeSource.prototype.readOnly = false; + /** + * GCSVolumeSource mountOptions. + * @member {Array.} mountOptions + * @memberof google.cloud.run.v2.GCSVolumeSource + * @instance + */ + GCSVolumeSource.prototype.mountOptions = $util.emptyArray; + /** * Creates a new GCSVolumeSource instance using the specified properties. * @function create @@ -9031,6 +9041,9 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.bucket); if (message.readOnly != null && Object.hasOwnProperty.call(message, "readOnly")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.readOnly); + if (message.mountOptions != null && message.mountOptions.length) + for (var i = 0; i < message.mountOptions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.mountOptions[i]); return writer; }; @@ -9073,6 +9086,12 @@ message.readOnly = reader.bool(); break; } + case 3: { + if (!(message.mountOptions && message.mountOptions.length)) + message.mountOptions = []; + message.mountOptions.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -9114,6 +9133,13 @@ if (message.readOnly != null && message.hasOwnProperty("readOnly")) if (typeof message.readOnly !== "boolean") return "readOnly: boolean expected"; + if (message.mountOptions != null && message.hasOwnProperty("mountOptions")) { + if (!Array.isArray(message.mountOptions)) + return "mountOptions: array expected"; + for (var i = 0; i < message.mountOptions.length; ++i) + if (!$util.isString(message.mountOptions[i])) + return "mountOptions: string[] expected"; + } return null; }; @@ -9133,6 +9159,13 @@ message.bucket = String(object.bucket); if (object.readOnly != null) message.readOnly = Boolean(object.readOnly); + if (object.mountOptions) { + if (!Array.isArray(object.mountOptions)) + throw TypeError(".google.cloud.run.v2.GCSVolumeSource.mountOptions: array expected"); + message.mountOptions = []; + for (var i = 0; i < object.mountOptions.length; ++i) + message.mountOptions[i] = String(object.mountOptions[i]); + } return message; }; @@ -9149,6 +9182,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.mountOptions = []; if (options.defaults) { object.bucket = ""; object.readOnly = false; @@ -9157,6 +9192,11 @@ object.bucket = message.bucket; if (message.readOnly != null && message.hasOwnProperty("readOnly")) object.readOnly = message.readOnly; + if (message.mountOptions && message.mountOptions.length) { + object.mountOptions = []; + for (var j = 0; j < message.mountOptions.length; ++j) + object.mountOptions[j] = message.mountOptions[j]; + } return object; }; diff --git a/packages/google-cloud-run/protos/protos.json b/packages/google-cloud-run/protos/protos.json index 8fc53aeb44d..dbb9f527439 100644 --- a/packages/google-cloud-run/protos/protos.json +++ b/packages/google-cloud-run/protos/protos.json @@ -1070,6 +1070,11 @@ "readOnly": { "type": "bool", "id": 2 + }, + "mountOptions": { + "rule": "repeated", + "type": "string", + "id": 3 } } }, diff --git a/packages/google-cloud-translate/README.md b/packages/google-cloud-translate/README.md index f0b337787c3..11cbc7675ca 100644 --- a/packages/google-cloud-translate/README.md +++ b/packages/google-cloud-translate/README.md @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. 1. [Select or create a Cloud Platform project][projects]. 1. [Enable billing for your project][billing]. 1. [Enable the Cloud Translation API][enable_api]. -1. [Set up authentication with a service account][auth] so you can access the +1. [Set up authentication][auth] so you can access the API from your local workstation. ### Installing the client library @@ -211,4 +211,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=translate.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started +[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local diff --git a/packages/google-cloud-translate/protos/google/cloud/translate/v3/adaptive_mt.proto b/packages/google-cloud-translate/protos/google/cloud/translate/v3/adaptive_mt.proto index 576c13fc0c1..f29ffd0f78b 100644 --- a/packages/google-cloud-translate/protos/google/cloud/translate/v3/adaptive_mt.proto +++ b/packages/google-cloud-translate/protos/google/cloud/translate/v3/adaptive_mt.proto @@ -201,6 +201,11 @@ message AdaptiveMtTranslateRequest { // Optional. Indicates match is case insensitive. The default value is // `false` if missing. bool ignore_case = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the glossary will be used for contextual + // translation. + bool contextual_translation_enabled = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Required. Location to make a regional call. diff --git a/packages/google-cloud-translate/protos/google/cloud/translate/v3/translation_service.proto b/packages/google-cloud-translate/protos/google/cloud/translate/v3/translation_service.proto index 584188ffa9d..23ce9b52bba 100644 --- a/packages/google-cloud-translate/protos/google/cloud/translate/v3/translation_service.proto +++ b/packages/google-cloud-translate/protos/google/cloud/translate/v3/translation_service.proto @@ -1980,4 +1980,9 @@ message TranslateTextGlossaryConfig { // Optional. Indicates match is case insensitive. The default value is `false` // if missing. bool ignore_case = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the glossary will be used for contextual + // translation. + bool contextual_translation_enabled = 4 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-translate/protos/protos.d.ts b/packages/google-cloud-translate/protos/protos.d.ts index d348cc3e938..97388f22503 100644 --- a/packages/google-cloud-translate/protos/protos.d.ts +++ b/packages/google-cloud-translate/protos/protos.d.ts @@ -1120,6 +1120,9 @@ export namespace google { /** GlossaryConfig ignoreCase */ ignoreCase?: (boolean|null); + + /** GlossaryConfig contextualTranslationEnabled */ + contextualTranslationEnabled?: (boolean|null); } /** Represents a GlossaryConfig. */ @@ -1137,6 +1140,9 @@ export namespace google { /** GlossaryConfig ignoreCase. */ public ignoreCase: boolean; + /** GlossaryConfig contextualTranslationEnabled. */ + public contextualTranslationEnabled: boolean; + /** * Creates a new GlossaryConfig instance using the specified properties. * @param [properties] Properties to set @@ -12757,6 +12763,9 @@ export namespace google { /** TranslateTextGlossaryConfig ignoreCase */ ignoreCase?: (boolean|null); + + /** TranslateTextGlossaryConfig contextualTranslationEnabled */ + contextualTranslationEnabled?: (boolean|null); } /** Represents a TranslateTextGlossaryConfig. */ @@ -12774,6 +12783,9 @@ export namespace google { /** TranslateTextGlossaryConfig ignoreCase. */ public ignoreCase: boolean; + /** TranslateTextGlossaryConfig contextualTranslationEnabled. */ + public contextualTranslationEnabled: boolean; + /** * Creates a new TranslateTextGlossaryConfig instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-translate/protos/protos.js b/packages/google-cloud-translate/protos/protos.js index 330791fba29..7165982c9fd 100644 --- a/packages/google-cloud-translate/protos/protos.js +++ b/packages/google-cloud-translate/protos/protos.js @@ -2664,6 +2664,7 @@ * @interface IGlossaryConfig * @property {string|null} [glossary] GlossaryConfig glossary * @property {boolean|null} [ignoreCase] GlossaryConfig ignoreCase + * @property {boolean|null} [contextualTranslationEnabled] GlossaryConfig contextualTranslationEnabled */ /** @@ -2697,6 +2698,14 @@ */ GlossaryConfig.prototype.ignoreCase = false; + /** + * GlossaryConfig contextualTranslationEnabled. + * @member {boolean} contextualTranslationEnabled + * @memberof google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig + * @instance + */ + GlossaryConfig.prototype.contextualTranslationEnabled = false; + /** * Creates a new GlossaryConfig instance using the specified properties. * @function create @@ -2725,6 +2734,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.glossary); if (message.ignoreCase != null && Object.hasOwnProperty.call(message, "ignoreCase")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ignoreCase); + if (message.contextualTranslationEnabled != null && Object.hasOwnProperty.call(message, "contextualTranslationEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.contextualTranslationEnabled); return writer; }; @@ -2767,6 +2778,10 @@ message.ignoreCase = reader.bool(); break; } + case 4: { + message.contextualTranslationEnabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -2808,6 +2823,9 @@ if (message.ignoreCase != null && message.hasOwnProperty("ignoreCase")) if (typeof message.ignoreCase !== "boolean") return "ignoreCase: boolean expected"; + if (message.contextualTranslationEnabled != null && message.hasOwnProperty("contextualTranslationEnabled")) + if (typeof message.contextualTranslationEnabled !== "boolean") + return "contextualTranslationEnabled: boolean expected"; return null; }; @@ -2827,6 +2845,8 @@ message.glossary = String(object.glossary); if (object.ignoreCase != null) message.ignoreCase = Boolean(object.ignoreCase); + if (object.contextualTranslationEnabled != null) + message.contextualTranslationEnabled = Boolean(object.contextualTranslationEnabled); return message; }; @@ -2846,11 +2866,14 @@ if (options.defaults) { object.glossary = ""; object.ignoreCase = false; + object.contextualTranslationEnabled = false; } if (message.glossary != null && message.hasOwnProperty("glossary")) object.glossary = message.glossary; if (message.ignoreCase != null && message.hasOwnProperty("ignoreCase")) object.ignoreCase = message.ignoreCase; + if (message.contextualTranslationEnabled != null && message.hasOwnProperty("contextualTranslationEnabled")) + object.contextualTranslationEnabled = message.contextualTranslationEnabled; return object; }; @@ -30844,6 +30867,7 @@ * @interface ITranslateTextGlossaryConfig * @property {string|null} [glossary] TranslateTextGlossaryConfig glossary * @property {boolean|null} [ignoreCase] TranslateTextGlossaryConfig ignoreCase + * @property {boolean|null} [contextualTranslationEnabled] TranslateTextGlossaryConfig contextualTranslationEnabled */ /** @@ -30877,6 +30901,14 @@ */ TranslateTextGlossaryConfig.prototype.ignoreCase = false; + /** + * TranslateTextGlossaryConfig contextualTranslationEnabled. + * @member {boolean} contextualTranslationEnabled + * @memberof google.cloud.translation.v3.TranslateTextGlossaryConfig + * @instance + */ + TranslateTextGlossaryConfig.prototype.contextualTranslationEnabled = false; + /** * Creates a new TranslateTextGlossaryConfig instance using the specified properties. * @function create @@ -30905,6 +30937,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.glossary); if (message.ignoreCase != null && Object.hasOwnProperty.call(message, "ignoreCase")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ignoreCase); + if (message.contextualTranslationEnabled != null && Object.hasOwnProperty.call(message, "contextualTranslationEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.contextualTranslationEnabled); return writer; }; @@ -30947,6 +30981,10 @@ message.ignoreCase = reader.bool(); break; } + case 4: { + message.contextualTranslationEnabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -30988,6 +31026,9 @@ if (message.ignoreCase != null && message.hasOwnProperty("ignoreCase")) if (typeof message.ignoreCase !== "boolean") return "ignoreCase: boolean expected"; + if (message.contextualTranslationEnabled != null && message.hasOwnProperty("contextualTranslationEnabled")) + if (typeof message.contextualTranslationEnabled !== "boolean") + return "contextualTranslationEnabled: boolean expected"; return null; }; @@ -31007,6 +31048,8 @@ message.glossary = String(object.glossary); if (object.ignoreCase != null) message.ignoreCase = Boolean(object.ignoreCase); + if (object.contextualTranslationEnabled != null) + message.contextualTranslationEnabled = Boolean(object.contextualTranslationEnabled); return message; }; @@ -31026,11 +31069,14 @@ if (options.defaults) { object.glossary = ""; object.ignoreCase = false; + object.contextualTranslationEnabled = false; } if (message.glossary != null && message.hasOwnProperty("glossary")) object.glossary = message.glossary; if (message.ignoreCase != null && message.hasOwnProperty("ignoreCase")) object.ignoreCase = message.ignoreCase; + if (message.contextualTranslationEnabled != null && message.hasOwnProperty("contextualTranslationEnabled")) + object.contextualTranslationEnabled = message.contextualTranslationEnabled; return object; }; diff --git a/packages/google-cloud-translate/protos/protos.json b/packages/google-cloud-translate/protos/protos.json index edb55f747a9..1861d8893bf 100644 --- a/packages/google-cloud-translate/protos/protos.json +++ b/packages/google-cloud-translate/protos/protos.json @@ -1,4 +1,7 @@ { + "options": { + "syntax": "proto3" + }, "nested": { "google": { "nested": { @@ -269,6 +272,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "contextualTranslationEnabled": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } } @@ -3397,6 +3407,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "contextualTranslationEnabled": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } } diff --git a/packages/google-maps-fleetengine-delivery/README.md b/packages/google-maps-fleetengine-delivery/README.md index 639813a9a86..c82f7e7f9b7 100644 --- a/packages/google-maps-fleetengine-delivery/README.md +++ b/packages/google-maps-fleetengine-delivery/README.md @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. 1. [Select or create a Cloud Platform project][projects]. 1. [Enable billing for your project][billing]. 1. [Enable the Last Mile Fleet Solution Delivery API API][enable_api]. -1. [Set up authentication with a service account][auth] so you can access the +1. [Set up authentication][auth] so you can access the API from your local workstation. ### Installing the client library @@ -223,4 +223,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=fleetengine.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started +[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local diff --git a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/common.proto b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/common.proto index 494a98f127a..cfaeba579e3 100644 --- a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/common.proto +++ b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/common.proto @@ -25,7 +25,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "Common"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto index 5de3073c0ec..449ed26358d 100644 --- a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto +++ b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto @@ -32,7 +32,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "DeliveryApi"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto index 149f9f25354..3314b1af70b 100644 --- a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto +++ b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto @@ -27,7 +27,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "DeliveryVehicles"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/header.proto b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/header.proto index 4bbc9766c86..bd7e647da1c 100644 --- a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/header.proto +++ b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/header.proto @@ -22,7 +22,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "Headers"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto index c241eaca6a6..91334496da2 100644 --- a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto +++ b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto @@ -29,7 +29,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "TaskTrackingInfoProto"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/tasks.proto b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/tasks.proto index 5ddbf7453ad..b7a22f65bcc 100644 --- a/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/tasks.proto +++ b/packages/google-maps-fleetengine-delivery/protos/google/maps/fleetengine/delivery/v1/tasks.proto @@ -27,7 +27,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "Tasks"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine-delivery/protos/protos.json b/packages/google-maps-fleetengine-delivery/protos/protos.json index 33ad1477b8d..c3536c77604 100644 --- a/packages/google-maps-fleetengine-delivery/protos/protos.json +++ b/packages/google-maps-fleetengine-delivery/protos/protos.json @@ -1,4 +1,7 @@ { + "options": { + "syntax": "proto3" + }, "nested": { "maps": { "nested": { @@ -12,7 +15,7 @@ "go_package": "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb", "java_multiple_files": true, "java_outer_classname": "Tasks", - "java_package": "google.maps.fleetengine.delivery.v1", + "java_package": "com.google.maps.fleetengine.delivery.v1", "objc_class_prefix": "CFED", "php_namespace": "Google\\Maps\\FleetEngine\\Delivery\\V1", "ruby_package": "Google::Maps::FleetEngine::Delivery::V1", diff --git a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/fleetengine.proto b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/fleetengine.proto index fcad8f0888b..d88579bc581 100644 --- a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/fleetengine.proto +++ b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/fleetengine.proto @@ -27,7 +27,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb"; option java_multiple_files = true; option java_outer_classname = "FleetEngine"; -option java_package = "google.maps.fleetengine.v1"; +option java_package = "com.google.maps.fleetengine.v1"; option objc_class_prefix = "CFE"; option php_namespace = "Google\\Maps\\FleetEngine\\V1"; option ruby_package = "Google::Maps::FleetEngine::V1"; diff --git a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/header.proto b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/header.proto index 3d81e1020fd..616e6bc99e5 100644 --- a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/header.proto +++ b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/header.proto @@ -22,7 +22,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb"; option java_multiple_files = true; option java_outer_classname = "Headers"; -option java_package = "google.maps.fleetengine.v1"; +option java_package = "com.google.maps.fleetengine.v1"; option objc_class_prefix = "CFE"; option php_namespace = "Google\\Maps\\FleetEngine\\V1"; option ruby_package = "Google::Maps::FleetEngine::V1"; diff --git a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/traffic.proto b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/traffic.proto index 6244b74d757..14357fed78c 100644 --- a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/traffic.proto +++ b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/traffic.proto @@ -20,7 +20,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb"; option java_multiple_files = true; option java_outer_classname = "TrafficProto"; -option java_package = "google.maps.fleetengine.v1"; +option java_package = "com.google.maps.fleetengine.v1"; option objc_class_prefix = "CFE"; option php_namespace = "Google\\Maps\\FleetEngine\\V1"; option ruby_package = "Google::Maps::FleetEngine::V1"; diff --git a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trip_api.proto b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trip_api.proto index 194ab253b36..cedfc9bbbc7 100644 --- a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trip_api.proto +++ b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trip_api.proto @@ -33,7 +33,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb"; option java_multiple_files = true; option java_outer_classname = "TripApi"; -option java_package = "google.maps.fleetengine.v1"; +option java_package = "com.google.maps.fleetengine.v1"; option objc_class_prefix = "CFE"; option php_namespace = "Google\\Maps\\FleetEngine\\V1"; option ruby_package = "Google::Maps::FleetEngine::V1"; diff --git a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trips.proto b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trips.proto index a60363a46be..c1e803574f1 100644 --- a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trips.proto +++ b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trips.proto @@ -29,7 +29,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb"; option java_multiple_files = true; option java_outer_classname = "Trips"; -option java_package = "google.maps.fleetengine.v1"; +option java_package = "com.google.maps.fleetengine.v1"; option objc_class_prefix = "CFE"; option php_namespace = "Google\\Maps\\FleetEngine\\V1"; option ruby_package = "Google::Maps::FleetEngine::V1"; diff --git a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicle_api.proto b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicle_api.proto index 34274f54c6d..9f07c14bfba 100644 --- a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicle_api.proto +++ b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicle_api.proto @@ -35,7 +35,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb"; option java_multiple_files = true; option java_outer_classname = "VehicleApi"; -option java_package = "google.maps.fleetengine.v1"; +option java_package = "com.google.maps.fleetengine.v1"; option objc_class_prefix = "CFE"; option php_namespace = "Google\\Maps\\FleetEngine\\V1"; option ruby_package = "Google::Maps::FleetEngine::V1"; diff --git a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicles.proto b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicles.proto index 882ac22c883..67d49f29cd1 100644 --- a/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicles.proto +++ b/packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicles.proto @@ -26,7 +26,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb"; option java_multiple_files = true; option java_outer_classname = "Vehicles"; -option java_package = "google.maps.fleetengine.v1"; +option java_package = "com.google.maps.fleetengine.v1"; option objc_class_prefix = "CFE"; option php_namespace = "Google\\Maps\\FleetEngine\\V1"; option ruby_package = "Google::Maps::FleetEngine::V1"; diff --git a/packages/google-maps-fleetengine/protos/protos.json b/packages/google-maps-fleetengine/protos/protos.json index 410e0bfcf3f..e78dcc27633 100644 --- a/packages/google-maps-fleetengine/protos/protos.json +++ b/packages/google-maps-fleetengine/protos/protos.json @@ -13,7 +13,7 @@ "go_package": "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb", "java_multiple_files": true, "java_outer_classname": "Vehicles", - "java_package": "google.maps.fleetengine.v1", + "java_package": "com.google.maps.fleetengine.v1", "objc_class_prefix": "CFE", "php_namespace": "Google\\Maps\\FleetEngine\\V1", "ruby_package": "Google::Maps::FleetEngine::V1" diff --git a/packages/google-maps-fleetengine/v1/package.json b/packages/google-maps-fleetengine/v1/package.json index 6f345d0b333..33ae284e0d4 100644 --- a/packages/google-maps-fleetengine/v1/package.json +++ b/packages/google-maps-fleetengine/v1/package.json @@ -40,10 +40,10 @@ "devDependencies": { "@types/mocha": "^10.0.6", "@types/node": "^20.12.12", - "@types/sinon": "^17.0.0", + "@types/sinon": "^10.0.20", "c8": "^9.1.0", "gapic-tools": "^0.4.2", - "gts": "5.3.1", + "gts": "5.3.0", "jsdoc": "^4.0.3", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", diff --git a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/common.proto b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/common.proto index 494a98f127a..cfaeba579e3 100644 --- a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/common.proto +++ b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/common.proto @@ -25,7 +25,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "Common"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto index 5de3073c0ec..449ed26358d 100644 --- a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto +++ b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto @@ -32,7 +32,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "DeliveryApi"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto index 149f9f25354..3314b1af70b 100644 --- a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto +++ b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto @@ -27,7 +27,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "DeliveryVehicles"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/header.proto b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/header.proto index 4bbc9766c86..bd7e647da1c 100644 --- a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/header.proto +++ b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/header.proto @@ -22,7 +22,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "Headers"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto index c241eaca6a6..91334496da2 100644 --- a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto +++ b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto @@ -29,7 +29,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "TaskTrackingInfoProto"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/tasks.proto b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/tasks.proto index 5ddbf7453ad..b7a22f65bcc 100644 --- a/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/tasks.proto +++ b/packages/google-maps-fleetengine/v1/protos/google/maps/fleetengine/delivery/v1/tasks.proto @@ -27,7 +27,7 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1"; option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb"; option java_multiple_files = true; option java_outer_classname = "Tasks"; -option java_package = "google.maps.fleetengine.delivery.v1"; +option java_package = "com.google.maps.fleetengine.delivery.v1"; option objc_class_prefix = "CFED"; option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1"; option ruby_package = "Google::Maps::FleetEngine::Delivery::V1"; diff --git a/packages/google-maps-fleetengine/v1/protos/protos.json b/packages/google-maps-fleetengine/v1/protos/protos.json index caa0c9f8da9..1f7959fe15d 100644 --- a/packages/google-maps-fleetengine/v1/protos/protos.json +++ b/packages/google-maps-fleetengine/v1/protos/protos.json @@ -12,7 +12,7 @@ "go_package": "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb", "java_multiple_files": true, "java_outer_classname": "Tasks", - "java_package": "google.maps.fleetengine.delivery.v1", + "java_package": "com.google.maps.fleetengine.delivery.v1", "objc_class_prefix": "CFED", "php_namespace": "Google\\Maps\\FleetEngine\\Delivery\\V1", "ruby_package": "Google::Maps::FleetEngine::Delivery::V1",